]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Constify add_info
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2017-11-07 Tom Tromey <tom@tromey.com>
2
3 * frame.h (info_locals_command, info_args_command): Constify.
4 * auto-load.h (auto_load_info_scripts): Constify.
5 * inferior.h (registers_info): Constify.
6 * copying.c: Rebuild.
7 * copying.awk: Constify generated commands.
8 * auto-load.c (auto_load_info_scripts)
9 (info_auto_load_gdb_scripts): Constify.
10 * cli/cli-decode.c (struct cmd_list_element): Take a
11 cmd_const_cfunc_ftype.
12 * command.h (add_info): Take a cmd_const_cfunc_ftype.
13 * tui/tui-win.c (tui_all_windows_info): Constify.
14 * python/py-auto-load.c (info_auto_load_python_scripts):
15 Constify.
16 * cli/cli-cmds.c (show_command): Remove non-const overload.
17 * tracepoint.c (info_tvariables_command, info_scope_command):
18 Constify.
19 (info_static_tracepoint_markers_command): Constify.
20 * thread.c (info_threads_command): Constify.
21 (print_thread_info_1): Constify.
22 * target.c (info_target_command): Constify.
23 * symtab.c (info_sources_command, info_functions_command)
24 (info_types_command): Constify.
25 (info_variables_command): Remove non-const overload.
26 * symfile.c (info_ext_lang_command): Constify.
27 * stack.c (info_frame_command, info_locals_command)
28 (info_args_command): Constify.
29 (backtrace_command): Remove non-const overload.
30 * source.c (info_source_command, info_line_command): Constify.
31 * solib.c (info_sharedlibrary_command): Constify.
32 * skip.c (info_skip_command): Constify.
33 * ser-go32.c (info_serial_command): Constify.
34 * reverse.c (info_bookmarks_command): Constify.
35 * printcmd.c (info_symbol_command, info_address_command)
36 (info_display_command): Constify.
37 * osdata.c (info_osdata_command): Constify.
38 * objc-lang.c (info_selectors_command, info_classes_command):
39 Constify.
40 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
41 * memattr.c (info_mem_command): Constify.
42 * macrocmd.c (info_macro_command, info_macros_command): Constify.
43 * linux-fork.c (info_checkpoints_command): Constify.
44 * infrun.c (info_signals_command): Constify.
45 * inflow.c (info_terminal_command): Constify.
46 * inferior.c (info_inferiors_command): Constify.
47 (print_inferior): Constify.
48 * infcmd.c (info_program_command, info_all_registers_command)
49 (info_registers_command, info_vector_command)
50 (info_float_command): Constify.
51 (registers_info): Constify.
52 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
53 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
54 Constify.
55 * f-valprint.c (info_common_command): Constify.
56 * dcache.c (info_dcache_command): Constify.
57 (dcache_info_1): Constify.
58 * darwin-nat-info.c (info_mach_tasks_command)
59 (info_mach_task_command, info_mach_ports_command)
60 (info_mach_port_command, info_mach_threads_command)
61 (info_mach_thread_command, info_mach_regions_command)
62 (info_mach_regions_recurse_command, info_mach_region_command)
63 (info_mach_exceptions_command): Constify.
64 (get_task_from_args): Constify.
65 * cp-support.c (info_vtbl_command): Constify.
66 * breakpoint.c (info_watchpoints_command)
67 (info_tracepoints_command): Constify.
68 (info_breakpoints_command): Remove non-const overload.
69 * avr-tdep.c (avr_io_reg_read_command): Constify.
70 * auxv.c (info_auxv_command): Constify.
71 * ada-tasks.c (info_tasks_command): Constify.
72 (info_task): Constify.
73 * ada-lang.c (info_exceptions_command): Constify.
74
75 2017-11-07 Tom Tromey <tom@tromey.com>
76
77 * solib.h (no_shared_libraries): Constify.
78 * frame.h (return_command): Constify.
79 * cli/cli-cmds.h (quit_command): Constify.
80 * top.h (quit_command, execute_command): Constify.
81 * target.h (flash_erase_command): Constify.
82 * inferior.h (set_inferior_args, attach_command): Constify.
83 * tracepoint.h (start_tracing, stop_tracing): Constify.
84 * breakpoint.h (break_command, tbreak_command)
85 (hbreak_command_wrapper, thbreak_command_wrapper)
86 (rbreak_command_wrapper, watch_command_wrapper)
87 (awatch_command_wrapper, rwatch_command_wrapper)
88 (get_tracepoint_by_number): Constify.
89 * symtab.c (info_variables_command, rbreak_command)
90 (symtab_symbol_info): Constify.
91 (info_variables_command): Add non-const overload.
92 * top.c (dont_repeat_command): Constify.
93 * breakpoint.c (ignore_command, commands_command)
94 (condition_command, tbreak_command, hbreak_command)
95 (thbreak_command, clear_command, break_command)
96 (info_breakpoints_command, watch_command, rwatch_command)
97 (awatch_command, trace_command, ftrace_command, strace_command)
98 (trace_pass_command, break_range_command, dprintf_command)
99 (agent_printf_command, get_tracepoint_by_number)
100 (watch_maybe_just_location, trace_pass_command): Constify.
101 (info_breakpoints_command): Add non-const overload.
102 * tracefile.c (tsave_command): Constify.
103 * infcmd.c (attach_command, disconnect_command, signal_command)
104 (queue_signal_command, stepi_command, nexti_command)
105 (finish_command, next_command, step_command, until_command)
106 (advance_command, jump_command, continue_command, run_command)
107 (start_command, starti_command, interrupt_command)
108 (run_command_1, set_inferior_args, step_1): Constify.
109 * inferior.c (add_inferior_command, remove_inferior_command)
110 (clone_inferior_command): Constify.
111 * linux-fork.c (checkpoint_command, restart_command): Constify.
112 * windows-nat.c (signal_event_command): Constify.
113 * guile/guile.c (guile_repl_command, guile_command): Constify.
114 * printcmd.c (x_command, display_command, printf_command)
115 (output_command, set_command, call_command, print_command)
116 (eval_command): Constify.
117 (non_const_set_command): Remove.
118 (_initialize_printcmd): Update.
119 * source.c (forward_search_command, reverse_search_command):
120 Constify.
121 * jit.c (jit_reader_load_command, jit_reader_unload_command):
122 Constify.
123 * infrun.c (handle_command): Constify.
124 * memattr.c (mem_command): Constify.
125 * stack.c (return_command, up_command, up_silently_command)
126 (down_command, down_silently_command, frame_command)
127 (backtrace_command, func_command, backtrace_command_1): Constify.
128 (backtrace_command): Add non-const overload.
129 * remote-sim.c (simulator_command): Constify.
130 * exec.c (set_section_command): Constify.
131 * tracepoint.c (tdump_command, trace_variable_command)
132 (tstatus_command, tstop_command, tstart_command)
133 (end_actions_pseudocommand, while_stepping_pseudocommand)
134 (collect_pseudocommand, teval_pseudocommand, actions_command)
135 (start_tracing, stop_tracing): Constify.
136 * value.c (init_if_undefined_command): Constify.
137 * tui/tui-stack.c (tui_update_command): Constify.
138 * tui/tui-win.c (tui_refresh_all_command)
139 (tui_set_tab_width_command, tui_set_win_height_command)
140 (tui_set_focus_command, tui_scroll_forward_command)
141 (tui_scroll_backward_command, tui_scroll_left_command)
142 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
143 (tui_set_win_height): Constify.
144 * tui/tui-layout.c (tui_layout_command): Constify.
145 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
146 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
147 (proc_untrace_sysexit_cmd): Constify.
148 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
149 (threadset_test_cmd, threadlist_update_test_cmd)
150 (threadalive_test): Constify.
151 * objc-lang.c (print_object_command): Constify.
152 * command.h (add_com): Constify.
153 * cli/cli-dump.c (restore_command): Constify.
154 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
155 (help_command, complete_command, shell_command, edit_command)
156 (list_command, disassemble_command, make_command)
157 (apropos_command, alias_command): Constify.
158 * cli/cli-script.c (document_command, define_command)
159 (while_command, if_command, validate_comname): Constify.
160 * cli/cli-decode.c (struct cmd_list_element): Change type of
161 "fun".
162 * target.c (do_monitor_command, flash_erase_command): Constify.
163 * regcache.c (reg_flush_command): Constify.
164 * reverse.c (reverse_step, reverse_next, reverse_stepi)
165 (reverse_nexti, reverse_continue, reverse_finish)
166 (save_bookmark_command, goto_bookmark_command)
167 (exec_reverse_once): Constify.
168 * python/python.c (python_interactive_command, python_command):
169 Constify.
170 * typeprint.c (ptype_command, whatis_command, whatis_exp):
171 Constify.
172 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
173 * gcore.c (gcore_command): Constify.
174
175 2017-11-07 Tom Tromey <tom@tromey.com>
176
177 * printcmd.c (x_command): Call set_repeat_arguments.
178 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
179 * top.c (repeat_arguments): New global.
180 (set_repeat_arguments): New function.
181 (execute_command): Handle repeat_arguments.
182 (show_commands): Calls set_repeat_arguments.
183 * command.h (set_repeat_arguments): Declare.
184
185 2017-11-07 Tom Tromey <tom@tromey.com>
186
187 * stack.c (backtrace_command): Use std::string.
188 (backtrace_command_1): Make "count_exp" const.
189
190 2017-11-07 Tom Tromey <tom@tromey.com>
191
192 * source.c (directory_switch, mod_path, add_path): Constify.
193 * defs.h (add_path, mod_path, directory_switch): Constify.
194 * mi/mi-cmd-env.c (env_mod_path): Constify.
195
196 2017-11-07 Tom Tromey <tom@tromey.com>
197
198 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
199 (run_command_1, continue_command, step_1, jump_command)
200 (signal_command, until_command, advance_command, finish_command)
201 (attach_command): Update.
202
203 2017-11-07 Tom Tromey <tom@tromey.com>
204
205 * command.h (set_cmd_cfunc): Don't declare.
206 * cli/cli-decode.c (set_cmd_cfunc): Now static.
207
208 2017-11-07 Tom Tromey <tom@tromey.com>
209
210 * stack.c (select_frame_command): Constify.
211 * cli/cli-decode.c (add_com_suppress_notification): Constify.
212 * command.h (add_com_suppress_notification): Constify.
213
214 2017-11-07 Tom Tromey <tom@tromey.com>
215
216 * breakpoint.c (stop_command): Constify.
217 * cli/cli-decode.c (struct cmd_list_element): Constify.
218 * command.h (add_abbrev_prefix_cmd): Constify.
219
220 2017-11-07 Pedro Alves <palves@redhat.com>
221
222 * breakpoint.c (extract_bp_kind): New enum.
223 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
224 factored out from ...
225 (extract_bp_number_and_location): ... here.
226 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
227
228 2017-11-07 Pedro Alves <palves@redhat.com>
229
230 * breakpoint.c (extract_bp_number_and_location): Change return
231 type to void. Throw error instead of warning.
232 (enable_disable_command): Adjust.
233
234 2017-11-07 Xavier Roirand <roirand@adacore.com>
235 Pedro Alves <palves@redhat.com>
236
237 * breakpoint.c (map_breakpoint_number_range): New, factored out
238 from ...
239 (map_breakpoint_numbers): ... here.
240 (find_location_by_number): Change parameters from string to
241 breakpoint number and location.
242 (extract_bp_number_and_location): New function.
243 (enable_disable_bp_num_loc)
244 (enable_disable_breakpoint_location_range)
245 (enable_disable_command): New functions, factored out ...
246 (enable_command, disable_command): ... these functions, and
247 adjusted to support ranges.
248 * NEWS: Document enable/disable breakpoint location range feature.
249
250 2017-11-06 Luis Machado <luis.machado@linaro.org>
251
252 * MAINTAINERS (Write After Approval): Update my e-mail address.
253
254 2017-11-06 Pedro Alves <palves@redhat.com>
255
256 * gnu-nat.c (gnu_terminal_init): Delete.
257 (gnu_target): Don't install gnu_terminal_init.
258 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
259 (child_terminal_init): ... this function.
260
261 2017-11-06 Pedro Alves <palves@redhat.com>
262
263 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
264 sgtty.h.
265 * config.in, configure: Regenerate.
266
267 2017-11-06 Pedro Alves <palves@redhat.com>
268
269 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
270 (async_init_signals): Adjust.
271 (handle_stop_sig): Rename to ...
272 (handle_sigtstp): ... this.
273 (async_stop_sig): Rename to ...
274 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
275 SIGTSTP path.
276 * event-top.h: Move signal.h include to the top. Check SIGTSTP
277 instead of STOP_SIGNAL thoughout.
278 (handle_stop_sig): Rename to ...
279 (handle_sigtstp): ... this.
280 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
281
282 2017-11-06 Pedro Alves <palves@redhat.com>
283
284 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
285 longer set flags twice in row.
286
287 2017-11-06 Pedro Alves <palves@redhat.com>
288
289 * Makefile.in (SER_HARDWIRE): Update comment.
290 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
291 * common/gdb_termios.h: Delete file.
292 * common/job-control.c: Include termios.h and unistd.h instead of
293 gdb_termios.h.
294 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
295 check.
296 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
297 Remove sgtty code.
298 * configure.ac: No longer check for termio.h and sgtty.h.
299 * configure: Regenerate.
300 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
301 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
302 Replace PROCESS_GROUP_TYPE references with pid_t references
303 throughout.
304 (gdb_getpgrp): Delete.
305 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
306 (child_terminal_inferior): Remove comment. Remove sgtty code.
307 (child_terminal_ours_1): Use tcgetpgrp directly instead of
308 gdb_getpgrp. Use serial_set_tty_state instead aof
309 serial_noflush_set_tty_state. Remove sgtty code.
310 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
311 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
312 (inferior_process_group): Now returns pid_t.
313 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
314 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
315 * ser-event.c (serial_event_ops): Update.
316 * ser-go32.c (dos_noflush_set_tty_state): Delete.
317 (dos_ops): Update.
318 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
319 * ser-pipe.c (pipe_ops): Update.
320 * ser-tcp.c (tcp_ops): Update.
321 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
322 HAVE_TERMIOS checks.
323 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
324 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
325 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
326 assume termios.
327 (hardwire_noflush_set_tty_state): Delete.
328 (hardwire_print_tty_state, hardwire_drain_output)
329 (hardwire_flush_output, hardwire_flush_input)
330 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
331 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
332 code, and assume termios.
333 (hardwire_ops): Update.
334 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
335 * serial.c (serial_noflush_set_tty_state): Delete.
336 * serial.h (serial_noflush_set_tty_state): Delete.
337 (serial_ops::noflush_set_tty_state): Delete.
338
339 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
340
341 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
342 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
343 (COMMON_OBS): Remove doublest.o and dfp.o.
344 Do not build target-float.c (instead of doublest.c)
345 with -Wformat-nonliteral.
346
347 * doublest.c: Remove file.
348 * doublest.h: Remove file.
349 * dfp.c: Remove file.
350 * dfp.h: Remove file.
351
352 * target-float.c: Do not include "doublest.h" and "dfp.h".
353 (DOUBLEST): Move here from doublest.h.
354 (enum float_kind): Likewise.
355 (FLOATFORMAT_CHAR_BIT): Likewise.
356 (FLOATFORMAT_LARGEST_BYTES): Likewise.
357 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
358 (floatformat_precision): Likewise.
359 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
360 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
361 Likewise.
362 (host_float_format, host_double_format, host_long_double_format):
363 Likewise.
364 (floatformat_to_string, floatformat_from_string): Likewise.
365 (floatformat_to_doublest): Likewise. Also, inline the original
366 convert_floatformat_to_doublest.
367 (floatformat_from_doublest): Likewise. Also, inline the original
368 convert_floatformat_from_doublest.
369
370 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
371 (MAX_DECIMAL_STRING): Move here from dfp.c.
372 (match_endianness): Likewise.
373 (set_decnumber_context, decimal_check_errors): Likewise.
374 (decimal_from_number, decimal_to_number): Likewise.
375 (decimal_to_string, decimal_from_string): Likewise. Make static.
376 (decimal_from_longest, decimal_from_ulongest): Likewise.
377 (decimal_to_longest): Likewise.
378 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
379 (decimal_convert): Likewise.
380
381 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
382
383 * doublest.c: Do not include "gdbtypes.h".
384 (extract_typed_floating): Remove.
385 (store_typed_floating): Remove.
386 (convert_typed_floating): Remove.
387 * doublest.h (struct type): Remove.
388 (DOUBLEST_PRINT_FORMAT): Remove.
389 (DOUBLEST_SCAN_FORMAT): Remove.
390 (extract_typed_floating): Remove.
391 (store_typed_floating): Remove.
392 (convert_typed_floating): Remove.
393
394 * dfp.c (decimal_from_doublest): Remove.
395 (decimal_to_doublest): Remove.
396 * dfp.h: Do not include "doublest.h".
397 (decimal_from_doublest): Remove.
398 (decimal_to_doublest): Remove.
399
400 * value.c: Do not include "doublest.h" and "dfp.h".
401 (value_as_double): Remove.
402 (unpack_double): Remove.
403 (value_from_double): Remove.
404 (value_from_decfloat): Remove.
405 * value.h: Do not include "doublest.h".
406 (value_as_double): Remove.
407 (unpack_double): Remove.
408 (value_from_double): Remove.
409 (value_from_decfloat): Remove.
410
411 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
412
413 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
414 (i386_extract_return_value): Use target_float_convert.
415 (i386_store_return_value): Likewise.
416 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
417 (i387_value_to_register): Likewise.
418 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
419 (ia64_register_to_value): Use target_float_convert.
420 (ia64_value_to_register): Likewise.
421 (ia64_extract_return_value): Likewise.
422 (ia64_store_return_value): Likewise.
423 (ia64_push_dummy_call): Likewise.
424 * m68k-tdep.c: Include "target-float.h".
425 (m68k_register_to_value): Use target_float_convert.
426 (m68k_value_to_register): Likewise.
427 (m68k_svr4_extract_return_value): Likewise.
428 (m68k_svr4_store_return_value): Likewise.
429 * ppc-sysv-tdep.c: Include "target-float.h".
430 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
431 (do_ppc_sysv_return_value): Likewise.
432 (ppc64_sysv_abi_push_freg): Likewise.
433 (ppc64_sysv_abi_return_value_base): Likewise.
434 * rs6000-aix-tdep.c: Include "target-float.h".
435 (rs6000_push_dummy_call): Use target_float_convert.
436 (rs6000_return_value): Likewise.
437 * rs6000-lynx178-tdep.c: Include "target-float.h".
438 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
439 (rs6000_lynx178_return_value): Likewise.
440 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
441 (rs6000_register_to_value): Use target_float_convert.
442 (rs6000_value_to_register): Likewise.
443 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
444 (arm_extract_return_value): Use target_float_convert.
445 (arm_store_return_value): Likewise.
446 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
447 (sh_register_convert_to_virtual): Use target_float_convert.
448 (sh_register_convert_to_raw): Likewise.
449 * sh64-tdep.c: Include "target-float.h".
450 (sh64_extract_return_value): Use target_float_convert.
451 (sh64_register_convert_to_virtual): Likewise.
452 (sh64_register_convert_to_raw): Likewise. Fix argument types.
453
454 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
455
456 * target-float.c (floatformat_to_host_double): New function.
457 (floatformat_from_host_double): Likewise.
458 (target_float_to_host_double): Likewise.
459 (target_float_from_host_double): Likewise.
460 * target-float.h (target_float_to_host_double): Add prototype.
461 (target_float_from_host_double): Likewise.
462
463 * guile/scm-value.c: Include "target-float.h".
464 (gdbscm_value_to_real): Use target_float_to_host_double.
465 Handle integer source values via value_as_long.
466 * guile/scm-math.c: Include "target-float.h". Do not include
467 "doublest.h", "dfp.h", and "expression.h".
468 (vlscm_convert_typed_number): Use target_float_from_host_double.
469 (vlscm_convert_number): Likewise.
470
471 * python/py-value.c (valpy_float): Use target_float_to_host_double.
472 (convert_value_from_python): Use target_float_from_host_double.
473
474 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
475
476 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
477 (cast_from_fixed): Likewise.
478 (ada_scaling_type): New function.
479 (ada_delta): Return value instead of DOUBLEST. Perform target
480 arithmetic instead of host arithmetic.
481 (scaling_factor): Rename to ...
482 (ada_scaling_factor) ... this. Make non-static. Return value instead
483 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
484 (ada_fixed_to_float): Remove.
485 (ada_float_to_fixed): Remove.
486 * ada-lang.h (ada_fixed_to_float): Remove.
487 (ada_float_to_fixed): Remove.
488 (ada_delta): Return value instead of DOUBLEST.
489 (ada_scaling_factor): Add prototype.
490
491 * ada-typeprint.c: Include "target-float.h".
492 (print_fixed_point_type): Perform target arithmetic instead of
493 host arithmetic.
494 * ada-valprint.c: Include "target-float.h".
495 (ada_val_print_num): Perform target arithmetic instead of
496 host arithmetic for fixed-point types.
497
498 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
499
500 * target-float.c: Include <math.h>.
501 (floatformat_binop): New function.
502 (floatformat_compare): Likewise.
503 (target_float_binop): Likewise.
504 (target_float_compare): Likewise.
505 * target-float.h: Include "expression.h".
506 (target_float_binop): Add prototype.
507 (target_float_compare): Likewise.
508
509 * valarith.c: Do not include "doublest.h" and "dfp.h".
510 Include "common/byte-vector.h".
511 (value_args_as_decimal): Remove, replace by ...
512 (value_args_as_target_float): ... this function. Handle both
513 binary and decimal target floating-point formats.
514 (scalar_binop): Handle both binary and decimal FP using
515 value_args_as_target_float and target_float_binop.
516 (value_equal): Handle both binary and decimal FP using
517 value_args_as_target_float and target_float_compare.
518 (value_less): Likewise.
519 (value_pos): Handle all scalar types as simple copy.
520 (value_neg): Handle all scalar types via BINOP_SUB from 0.
521 * dfp.c (decimal_binop): Throw error instead of internal_error
522 when called with an unsupported operation code.
523
524 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
525
526 * target-float.c (target_float_to_string): New function.
527 (target_float_from_string): New function.
528 * target-float.h (target_float_to_string): Add prototype.
529 (target_float_from_string): Add prototype.
530
531 * valprint.c: Include "target-float.h". Do not include
532 "doublest.h" and "dfp.h".
533 (print_floating): Use target_float_to_string.
534 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
535 (printf_floating): Use target_float_to_string.
536 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
537 (print_i387_value): Use target_float_to_string.
538 * mips-tdep.c: Include "target-float.h".
539 (mips_print_fp_register): Use target_float_to_string.
540 * sh64-tdep.c: Include "target-float.h".
541 (sh64_do_fp_register): Use target_float_to_string.
542
543 * parse.c: Include "target-float.h". Do not include
544 "doublest.h" and "dfp.h".
545 (parse_float): Use target_float_from_string.
546 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
547 (define_symbol): Use target_float_from_string.
548 * gdbarch-selftests.c: Include "target-float.h".
549 (register_to_value_test): Use target_float_from_string.
550
551 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
552
553 * Makefile.c (SFILES): Add target-float.c.
554 (HFILES_NO_SRCDIR): Add target-float.h.
555 (COMMON_OBS): Add target-float.o.
556 * target-float.h: New file.
557 * target-float.c: New file.
558
559 * doublest.c (floatformat_classify): Fix detection of float_zero.
560
561 * gdbtypes.c (is_floating_type): New function.
562 * gdbtypes.h (is_floating_type): Add prototype.
563
564 * value.c: Do not include "floatformat.h".
565 (unpack_double): Use target_float_is_valid.
566 (is_floating_value): New function.
567 * value.h (is_floating_value): Add prototype-
568
569 * valarith.c: Include "target-float.h".
570 (value_logical_not): Use target_float_is_zero.
571
572 * python/py-value.c: Include "target-float.h".
573 (valpy_nonzero): Use target_float_is_zero.
574
575 2017-11-04 Tom Tromey <tom@tromey.com>
576
577 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
578
579 2017-11-04 Tom Tromey <tom@tromey.com>
580
581 * breakpoint.c (set_momentary_breakpoint): Return
582 breakpoint_up.
583 (until_break_command): Update.
584 (new_until_break_fsm): Change argument types to
585 breakpoint_up.
586 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
587 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
588 Remove.
589 * infcmd.c (finish_forward): Update.
590 * breakpoint.h (set_momentary_breakpoint)
591 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
592 (make_cleanup_delete_breakpoint): Remove.
593 (struct breakpoint_deleter): New.
594 (breakpoint_up): New typedef.
595 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
596 (insert_exception_resume_breakpoint): Update.
597 (insert_exception_resume_from_probe): Update.
598 (insert_longjmp_resume_breakpoint): Update.
599 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
600 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
601 * infcall.c (call_function_by_hand_dummy): Update
602
603 2017-11-04 Tom Tromey <tom@tromey.com>
604
605 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
606
607 2017-11-04 Tom Tromey <tom@tromey.com>
608
609 * linux-tdep.c (linux_core_info_proc_mappings): Use
610 gdb::def_vector.
611 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
612 "size" argument.
613 (linux_corefile_thread): Update.
614 (linux_make_corefile_notes): Remove unused variable.
615
616 2017-11-04 Tom Tromey <tom@tromey.com>
617
618 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
619 gdb::byte_vector.
620
621 2017-11-04 Tom Tromey <tom@tromey.com>
622
623 * objfiles.c (do_free_objfile_cleanup): Remove.
624 * compile/compile-object-load.c (compile_object_load): Update.
625 * objfiles.h (make_cleanup_free_objfile): Remove.
626
627 2017-11-04 Tom Tromey <tom@tromey.com>
628
629 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
630 (adi_read_versions): Change "tags" to "gdb_byte *".
631 (adi_print_versions): Likewise.
632
633 2017-11-04 Tom Tromey <tom@tromey.com>
634
635 * breakpoint.c
636 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
637 from start_rbreak_breakpoints.
638 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
639 * breakpoint.h (class scoped_rbreak_breakpoints): New.
640 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
641 * symtab.c (do_end_rbreak_breakpoints): Remove.
642 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
643
644 2017-11-04 Tom Tromey <tom@tromey.com>
645
646 * cp-namespace.c (reset_directive_searched): Remove.
647 (cp_lookup_symbol_via_imports): Use scoped_restore.
648 * cp-support.c (reset_directive_searched): Remove.
649 (make_symbol_overload_list_using): Use scoped_restore.
650 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
651 (reset_directive_searched): Remove.
652
653 2017-11-04 Tom Tromey <tom@tromey.com>
654
655 * symfile.c (find_separate_debug_file_by_debuglink): Use
656 unique_xmalloc_ptr.
657
658 2017-11-04 Tom Tromey <tom@tromey.com>
659
660 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
661 type of "info".
662 (compute_stack_depth): Likewise.
663 (do_compile_dwarf_expr_to_c): Use std::vector.
664
665 2017-11-04 Tom Tromey <tom@tromey.com>
666
667 * compile/compile-object-load.c (link_callbacks_einfo): Use
668 std::string.
669
670 2017-11-04 Tom Tromey <tom@tromey.com>
671
672 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
673 Use scoped_free_pendings.
674 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
675 scoped_free_pendings.
676 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
677 (xcoff_initial_scan): Likewise.
678 * buildsym.c (reset_symtab_globals): Update comment.
679 (scoped_free_pendings): Rename from really_free_pendings.
680 (prepare_for_building): Update comment.
681 (buildsym_init): Likewise.
682 * buildsym.h (class scoped_free_pendings): New class.
683 (really_free_pendings): Don't declare.
684
685 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
686
687 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
688 output when converting a zero value to a special byteorder format.
689
690 2017-11-02 Yao Qi <yao.qi@linaro.org>
691
692 * frame.c (do_frame_register_read): Remove aspace.
693 * jit.c (jit_frame_sniffer): Likwise.
694 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
695 * regcache.c (regcache::regcache): Pass nullptr.
696 (regcache_print): Caller updated.
697 * regcache.h (regcache::regcache): Remove one constructor
698 parameter aspace.
699
700 2017-11-02 Yao Qi <yao.qi@linaro.org>
701
702 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
703
704 2017-11-02 Yao Qi <yao.qi@linaro.org>
705
706 * breakpoint.c (insert_single_step_breakpoints): Update.
707 * frame.c (struct frame_info) <aspace>: Add const.
708 (frame_save_as_regcache): Add const.
709 (get_frame_address_space): Return const address_space *.
710 * frame.h (get_frame_address_space): Update declaration.
711 * infrun.c (struct step_over_info) <aspace>: Add const.
712 (set_step_over_info): Make aspace const.
713 (displaced_step_prepare_throw): Change variable const.
714 (resume): Likewise.
715 (proceed): Likewise.
716 (adjust_pc_after_break): Likewise.
717 (save_waitstatus): Likewise.
718 (handle_signal_stop): Likewise.
719 (keep_going_pass_signal): Likewise.
720 * jit.c (jit_frame_sniffer): Add const.
721 * mips-tdep.c (mips_single_step_through_delay): Likewise.
722 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
723 * record-full.c (record_full_wait_1): Likewise.
724 * regcache.c (regcache::regcache): Change parameter to const.
725 * regcache.h (regcache::regcache): Likewise.
726 (regcache::aspace): Return const address_space *.
727 (regcache) <m_aspace>: Add const.
728
729 2017-11-02 Yao Qi <yao.qi@linaro.org>
730
731 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
732 * frame.c (create_sentinel_frame): Likewise.
733 * infrun.c (displaced_step_prepare_throw): Likewise.
734 (resume): Likewise.
735 (thread_still_needs_step_over_bp): Likewise.
736 (proceed): Likewise.
737 (do_target_wait): Likewise.
738 (adjust_pc_after_break): Likewise.
739 (handle_syscall_event): Likewise.
740 (save_waitstatus): Likewise.
741 (handle_inferior_event_1): Likewise.
742 (handle_signal_stop): Likewise.
743 (keep_going_pass_signal): Likewise.
744 * linux-nat.c (status_callback): Likewise.
745 (save_stop_reason): Likewise.
746 (resume_stopped_resumed_lwps): Likewise.
747 * record-full.c (record_full_exec_insn): Likewise.
748 (record_full_wait_1): Likewise.
749 * regcache.c (get_regcache_aspace): Remove.
750 * regcache.h (get_regcache_aspace): Remove.
751
752 2017-11-02 Yao Qi <yao.qi@linaro.org>
753
754 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
755 (init_regcache_descr): Use gdbarch_num_regs.
756 (regcache::regcache): Likewise.
757 (regcache::get_register_status): Likewise.
758 (regcache::assert_raw_regnum): Likewise.
759 (regcache::cooked_read): Likewise.
760 (regcache::cooked_read_value): Likewise.
761 (regcache::cooked_write): Likewise.
762 (regcache::dump): Likewise.
763 (regcache::num_raw_registers): New method.
764 * regcache.h (class regcache) <num_raw_registers>: New.
765
766 2017-11-02 Yao Qi <yao.qi@linaro.org>
767
768 * regcache.c (regcache::assert_regnum): New method.
769 (regcache::invalidate): Call assert_regnum.
770 (regcache::raw_update): Likewise.
771 (regcache::raw_write): Likewise.
772 (regcache::raw_read_part): Likewise.
773 (regcache::raw_write_part): Likewise.
774 (regcache::raw_supply): Likewise.
775 (regcache::raw_supply_integer): Likewise.
776 (regcache::raw_supply_zeroed): Likewise.
777 (regcache::raw_collect): Likewise.
778 (regcache::raw_collect_integer): Likewise.
779 * regcache.h (regcache::assert_regnum): Declare.
780
781 2017-11-02 Yao Qi <yao.qi@linaro.org>
782
783 * regcache.c (regcache::dump): Remove code.
784
785 2017-11-02 Yao Qi <yao.qi@linaro.org>
786
787 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
788 Remove.
789 <sizeof_cooked_register_status>: Remove.
790 (init_regcache_descr): Update.
791 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
792 (regcache::save): Likewise.
793 (regcache::dump): Likewise.
794
795 2017-11-01 James Bowman <james.bowman@ftdichip.com>
796
797 * ft32-tdep.c (ft32_fetch_instruction): New function.
798 (ft32_analyze_prologue): Use ft32_fetch_instruction().
799
800 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
801
802 * cli/cli-script.c (execute_control_command): Rename to ...
803 (execute_control_command_1): ... this.
804 (execute_control_command): New function.
805
806 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
807
808 * tracepoint.c (tfind_command): Remove const_cast.
809
810 2017-10-30 Mike Gulick <mgulick@mathworks.com>
811
812 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
813
814 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
815
816 * common/common-utils.h (in_inclusive_range): New function.
817 * arm-tdep.c (arm_record_extension_space): Use
818 in_inclusive_range.
819 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
820 * cris-tdep.c (cris_spec_reg_applicable): Use
821 in_inclusive_range.
822
823 2017-10-30 Pedro Alves <palves@redhat.com>
824 Simon Marchi <simon.marchi@ericsson.com>
825
826 * remote.c (remote_set_syscall_catchpoint): Build a std::string
827 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
828
829 2017-10-30 Pedro Alves <palves@redhat.com>
830
831 * common/common-utils.c (string_appendf, string_vappendf): New
832 functions.
833 * common/common-utils.h (string_appendf, string_vappendf): New
834 declarations.
835 * unittests/common-utils-selftests.c (string_appendf_func)
836 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
837 (string_vappendf_tests): New functions.
838 (_initialize_common_utils_selftests): Register "string_appendf" and
839 "string_vappendf tests".
840
841 2017-10-30 Pedro Alves <palves@redhat.com>
842
843 * unittests/common-utils-selftests.c (format_func): New typedef.
844 (string_printf_tests, string_vprintf_tests): Tests factored out
845 and merged to ...
846 (test_format_func): ... this new function.
847 (string_printf_tests, string_vprintf_tests): Reimplement on top of
848 test_format_func.
849
850 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
851
852 * darwin-nat.c: Remove include of gdb.h.
853
854 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
855
856 * xtensa-xtregs.c: Fix formatting issues.
857
858 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
859
860 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
861
862 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
863
864 PR python/21213
865 * python/py-infthread.c (thpy_get_inferior): Increment reference
866 of inferior before returning it.
867
868 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
869
870 * unittests/common-utils-selftests.c (format): Add
871 ATTRIBUTE_PRINTF.
872
873 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
874
875 * xml-syscall.c (struct syscall_desc): Add constructor.
876 <name>: Change type to std::string.
877 (syscall_desc_up): New typedef.
878 (syscall_desc_p): Remove typeder.
879 (DEF_VEC_P(syscall_desc_p)): Remove.
880 (struct syscall_group_desc): Add constructor.
881 <name>: Change type to std::string.
882 <syscalls>: Change type to std::vector.
883 (syscall_group_desc_up): New typedef.
884 (syscall_group_desc_p): Remove typedef.
885 (DEF_VEC_P(syscall_group_desc_p)): Remove.
886 (struct syscalls_info) <syscalls>: Change type to std::vector of
887 unique_ptr.
888 <groups>: Likewise.
889 <my_gdb_datadir>: Change type to std::string.
890 (syscalls_info_up): New typedef.
891 (allocate_syscalls_info): Remove.
892 (syscalls_info_free_syscalls_desc): Remove.
893 (syscalls_info_free_syscall_group_desc): Remove.
894 (free_syscalls_info): Remove.
895 (make_cleanup_free_syscalls_info): Remove.
896 (syscall_group_create_syscall_group_desc): Adjust.
897 (syscall_group_add_syscall): Adjust.
898 (syscall_create_syscall_desc): Adjust.
899 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
900 (init_syscalls_info): Adjust.
901 (syscall_group_get_group_by_name): Adjust.
902 (xml_get_syscall_number): Adjust.
903 (xml_get_syscall_name): Adjust.
904 (xml_list_of_syscalls): Adjust.
905 (xml_list_syscalls_by_group): Adjust.
906 (xml_list_of_groups): Adjust.
907
908 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
909
910 * probe.h: Don't include gdb_vecs.h.
911 (DEF_VEC_P (probe_p)): Remove.
912 (find_probes_in_objfile): Return an std::vector.
913 * probe.c (find_probes_in_objfile): Likewise.
914 * breakpoint.c (breakpoint_objfile_data)
915 <longjmp_probes>: Change type to std::vector.
916 <exception_probes>: Likewise.
917 (free_breakpoint_probes): Don't manually free vectors.
918 (create_longjmp_master_breakpoint): Adjust.
919 (create_exception_master_breakpoint): Adjust.
920 * solib-svr4.c (svr4_create_probe_breakpoints): Change
921 parameter type, adjust.
922 (svr4_create_solib_event_breakpoints): Adjust.
923
924 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
925
926 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
927 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
928 with new.
929 (free_breakpoint_probes): Rename to ...
930 (free_breakpoint_objfile_data): ... this, and call delete on
931 bp_objfile_data..
932
933 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
934
935 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
936 (loaded_script_ptr): Remove typedef.
937 (DEF_VEC_P (loaded_script_ptr)): Remove.
938 (struct collect_matching_scripts_data): Add constructor.
939 <scripts_p>: Change type to (pointer to) std::vector.
940 (collect_matching_scripts_data): Adjust.
941 (sort_scripts_by_name): Make suitable for std::sort.
942 (print_scripts): Don't sort vector, adjust to std::vector.
943 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
944
945 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
946
947 * symfile.c (filename_language): Make struct, not typedef. Add
948 constructor.
949 <ext>: Change type to std::string.
950 (DEF_VEC_O (filename_language)): Remove.
951 (filename_language_table): Change type to std::vector.
952 (add_filename_language): Adjust.
953 (set_ext_lang_command): Adjust.
954 (info_ext_lang_command): Adjust.
955 (deduce_language_from_filename): Adjust.
956 (class scoped_restore_filename_language_table): Remove.
957 (test_filename_language): Use scoped_restore.
958 (test_set_ext_lang_command): Use scoped_restore, adjust to
959 std::vector change.
960
961 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
962
963 * symfile.c: Include selftest.h.
964 (class scoped_restore_filename_language_table): New.
965 (test_filename_language): New test.
966 (test_set_ext_lang_command): New test.
967 (_initialize_symfile): Register tests.
968
969 2017-10-27 Keith Seitz <keiths@redhat.com>
970
971 * breakpoint.c (print_breakpoint_location): Use the symbol saved
972 in the bp_location, falling back to find_pc_sect_function when
973 needed.
974 (add_location_to_breakpoint): Save sal->symbol.
975 * breakpoint.h (struct bp_location) <symbol>: New field.
976 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
977 * symtab.h (struct symtab_and_line) <symbol>: New field.
978
979 2017-10-26 Patrick Frants <osscontribute@gmail.com>
980
981 PR gdb/13669
982 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
983 to rewind obstack.
984
985 2017-10-26 Pedro Alves <palves@redhat.com>
986
987 * remote.c (remote_async_terminal_ours_p): Delete.
988 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
989 Remove references to 'remote_async_terminal_ours_p'.
990
991 2017-10-26 Yao Qi <yao.qi@linaro.org>
992
993 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
994
995 2017-10-26 Yao Qi <yao.qi@linaro.org>
996
997 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
998 aspace const.
999 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
1000 Likewise.
1001 * breakpoint.c (bpstat_check_location): Remove cast.
1002 (breakpoint_hit_catch_fork): Make aspce const.
1003 (breakpoint_hit_catch_solib): Likewise.
1004 (breakpoint_hit_catch_exec): Likewise.
1005 (breakpoint_hit_ranged_breakpoint): Likewise.
1006 (breakpoint_hit_watchpoint): Likewise.
1007 (base_breakpoint_breakpoint_hit): Likewise.
1008 (bkpt_breakpoint_hit): Likewise.
1009 (dprintf_breakpoint_hit): Likewise.
1010 (tracepoint_breakpoint_hit): Likewise.
1011 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
1012
1013 2017-10-26 Yao Qi <yao.qi@linaro.org>
1014
1015 * breakpoint.c (breakpoint_location_address_match): Change
1016 "struct address_space *" to "const address_space".
1017 (breakpoint_location_address_range_overlap): Likewise.
1018 (breakpoint_here_p): Likewise.
1019 (breakpoint_in_range_p): Likewise.
1020 (moribund_breakpoint_here_p): Likewise.
1021 (bp_location_inserted_here_p): Likewise.
1022 (software_breakpoint_inserted_here_p): Likewise.
1023 (hardware_breakpoint_inserted_here_p): Likewise.
1024 (hardware_watchpoint_inserted_in_range): Likewise.
1025 (bpstat_check_location): Likewise.
1026 (bpstat_stop_status): Likewise.
1027 (breakpoint_address_match): Likewise.
1028 (breakpoint_address_match_range): Likewise.
1029 (breakpoint_location_address_match): Likewise.
1030 (breakpoint_location_address_range_overlap): Likewise.
1031 (insert_single_step_breakpoint): Likewise.
1032 (breakpoint_has_location_inserted_here): Likewise.
1033 (single_step_breakpoint_inserted_here_p): Likewise.
1034 (pc_at_non_inline_function): Likewise.
1035 * breakpoint.h (bpstat_stop_status): Update declaration.
1036 (breakpoint_here_p): Likewise.
1037 (breakpoint_in_range_p): Likewise.
1038 (moribund_breakpoint_here_p): Likewise.
1039 (breakpoint_inserted_here_p): Likewise.
1040 (software_breakpoint_inserted_here_p): Likewise.
1041 (hardware_breakpoint_inserted_here_p): Likewise.
1042 (breakpoint_has_location_inserted_here): Likewise.
1043 (single_step_breakpoint_inserted_here_p): Likewise.
1044 (hardware_watchpoint_inserted_in_range): Likewise.
1045 (breakpoint_address_match): Likewise.
1046 (insert_single_step_breakpoint): Likewise.
1047 (pc_at_non_inline_function): Likewise.
1048 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
1049 * record.c (record_check_stopped_by_breakpoint): Likewise.
1050 * record.h (record_check_stopped_by_breakpoint): Likewise.
1051 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
1052
1053 2017-10-25 Yao Qi <yao.qi@linaro.org>
1054
1055 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
1056 regcache->arch () instead get_regcache_arch.
1057 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
1058 Likewise.
1059 (aarch64_fbsd_store_inferior_registers): Likewise.
1060 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
1061 (store_gregs_to_thread): Likewise.
1062 (fetch_fpregs_from_thread): Likewise.
1063 (store_fpregs_to_thread): Likewise.
1064 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
1065 (aarch64_store_return_value): Likewise.
1066 (aarch64_software_single_step): Likewise.
1067 * aix-thread.c (aix_thread_wait): Likewise.
1068 (supply_reg32): Likewise.
1069 (supply_sprs64): Likewise.
1070 (supply_sprs32): Likewise.
1071 (fill_gprs64): Likewise.
1072 (fill_gprs32): Likewise.
1073 (fill_sprs64): Likewise.
1074 (fill_sprs32): Likewise.
1075 (store_regs_user_thread): Likewise.
1076 (store_regs_kernel_thread): Likewise.
1077 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
1078 (alphabsd_store_inferior_registers): Likewise.
1079 * alpha-tdep.c (alpha_extract_return_value): Likewise.
1080 (alpha_store_return_value): Likewise.
1081 (alpha_deal_with_atomic_sequence): Likewise.
1082 (alpha_next_pc): Likewise.
1083 (alpha_software_single_step): Likewise.
1084 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
1085 (amd64bsd_store_inferior_registers): Likewise.
1086 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
1087 Likewise.
1088 (amd64_linux_store_inferior_registers): Likewise.
1089 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1090 (amd64_collect_native_gregset): Likewise.
1091 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
1092 (amd64obsd_collect_uthread): Likewise.
1093 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
1094 (amd64_collect_fpregset): Likewise.
1095 (amd64_supply_fxsave): Likewise.
1096 (amd64_supply_xsave): Likewise.
1097 (amd64_collect_fxsave): Likewise.
1098 (amd64_collect_xsave): Likewise.
1099 * arc-tdep.c (arc_write_pc): Likewise.
1100 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
1101 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
1102 (arm_fbsd_store_inferior_registers): Likewise.
1103 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
1104 (store_vfp_regs): Likewise.
1105 (arm_linux_fetch_inferior_registers): Likewise.
1106 (arm_linux_store_inferior_registers): Likewise.
1107 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1108 (arm_linux_sigreturn_next_pc): Likewise.
1109 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
1110 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
1111 (fetch_register): Likewise.
1112 (store_register): Likewise.
1113 * arm-tdep.c (arm_is_thumb): Likewise.
1114 (displaced_in_arm_mode): Likewise.
1115 (bx_write_pc): Likewise.
1116 (arm_get_next_pcs_addr_bits_remove): Likewise.
1117 (arm_software_single_step): Likewise.
1118 (arm_extract_return_value): Likewise.
1119 (arm_store_return_value): Likewise.
1120 (arm_write_pc): Likewise.
1121 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1122 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
1123 (bsd_uthread_store_registers): Likewise.
1124 * core-regset.c (fetch_core_registers): Likewise.
1125 * corelow.c (get_core_registers): Likewise.
1126 * cris-tdep.c (cris_store_return_value): Likewise.
1127 (cris_extract_return_value): Likewise.
1128 (find_step_target): Likewise.
1129 (find_step_target): Likewise.
1130 (cris_software_single_step): Likewise.
1131 * ctf.c (ctf_fetch_registers): Likewise.
1132 * darwin-nat.c (cancel_breakpoint): Likewise.
1133 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
1134 * frv-tdep.c (frv_extract_return_value): Likewise.
1135 * ft32-tdep.c (ft32_store_return_value): Likewise.
1136 (ft32_extract_return_value): Likewise.
1137 * go32-nat.c (fetch_register): Likewise.
1138 (go32_fetch_registers): Likewise.
1139 (go32_store_registers): Likewise.
1140 (store_register): Likewise.
1141 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1142 (h8300_store_return_value): Likewise.
1143 * hppa-linux-nat.c (fetch_register): Likewise.
1144 (store_register): Likewise.
1145 (hppa_linux_fetch_inferior_registers): Likewise.
1146 (hppa_linux_store_inferior_registers): Likewise.
1147 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
1148 (i386_darwin_store_inferior_registers): Likewise.
1149 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
1150 (gnu_store_registers): Likewise.
1151 * i386-linux-nat.c (fetch_register): Likewise.
1152 (store_register): Likewise.
1153 (supply_gregset): Likewise.
1154 (fill_gregset): Likewise.
1155 (i386_linux_fetch_inferior_registers): Likewise.
1156 (i386_linux_store_inferior_registers): Likewise.
1157 (i386_linux_resume): Likewise.
1158 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
1159 Likewise.
1160 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
1161 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
1162 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
1163 (i386obsd_collect_uthread): Likewise.
1164 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1165 (i386_supply_gregset): Likewise.
1166 (i386_collect_gregset): Likewise.
1167 (i386_supply_fpregset): Likewise.
1168 (i386_collect_fpregset): Likewise.
1169 (i386_mpx_bd_base): Likewise.
1170 * i386-v4-nat.c (supply_fpregset): Likewise.
1171 (fill_fpregset): Likewise.
1172 * i387-tdep.c (i387_supply_fsave): Likewise.
1173 (i387_collect_fsave): Likewise.
1174 (i387_supply_fxsave): Likewise.
1175 (i387_collect_fxsave): Likewise.
1176 (i387_supply_xsave): Likewise.
1177 (i387_collect_xsave): Likewise.
1178 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
1179 (ia64_linux_store_registers): Likewise.
1180 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
1181 (ia64_extract_return_value): Likewise.
1182 (ia64_store_return_value): Likewise.
1183 (find_func_descr): Likewise.
1184 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
1185 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
1186 (inf_ptrace_store_registers): Likewise.
1187 * infrun.c (use_displaced_stepping): Likewise.
1188 (displaced_step_prepare_throw): Likewise.
1189 (resume): Likewise.
1190 (proceed): Likewise.
1191 (do_target_wait): Likewise.
1192 (adjust_pc_after_break): Likewise.
1193 (handle_inferior_event_1): Likewise.
1194 (handle_signal_stop): Likewise.
1195 (save_infcall_suspend_state): Likewise.
1196 (restore_infcall_suspend_state): Likewise.
1197 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
1198 * jit.c (jit_frame_prev_register): Likewise.
1199 * linux-nat.c (save_stop_reason): Likewise.
1200 (linux_nat_wait_1): Likewise.
1201 (resume_stopped_resumed_lwps): Likewise.
1202 * linux-record.c (record_linux_sockaddr): Likewise.
1203 (record_linux_msghdr): Likewise.
1204 (record_linux_system_call): Likewise.
1205 * linux-tdep.c (linux_collect_thread_registers): Likewise.
1206 * lm32-tdep.c (lm32_extract_return_value): Likewise.
1207 (lm32_store_return_value): Likewise.
1208 * m32c-tdep.c (m32c_read_flg): Likewise.
1209 (m32c_pseudo_register_read): Likewise.
1210 (m32c_pseudo_register_write): Likewise.
1211 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
1212 (m32r_linux_collect_gregset): Likewise.
1213 * m32r-tdep.c (m32r_store_return_value): Likewise.
1214 (m32r_extract_return_value): Likewise.
1215 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
1216 (m68kbsd_collect_fpregset): Likewise.
1217 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1218 * m68k-linux-nat.c (fetch_register): Likewise.
1219 (old_fetch_inferior_registers): Likewise.
1220 (old_store_inferior_registers): Likewise.
1221 (store_regs): Likewise.
1222 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
1223 (m68k_svr4_store_return_value): Likewise.
1224 * m88k-tdep.c (m88k_store_arguments): Likewise.
1225 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
1226 (mi_cmd_data_write_register_values): Likewise.
1227 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
1228 (mips_fbsd_store_inferior_registers): Likewise.
1229 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
1230 (mips_fbsd_supply_gregs): Likewise.
1231 (mips_fbsd_collect_fpregs): Likewise.
1232 (mips_fbsd_collect_gregs): Likewise.
1233 (mips_fbsd_supply_fpregset): Likewise.
1234 (mips_fbsd_collect_fpregset): Likewise.
1235 (mips_fbsd_supply_gregset): Likewise.
1236 (mips_fbsd_collect_gregset): Likewise.
1237 * mips-linux-nat.c (supply_gregset): Likewise.
1238 (fill_gregset): Likewise.
1239 (supply_fpregset): Likewise.
1240 (fill_fpregset): Likewise.
1241 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
1242 (mips_fill_gregset): Likewise.
1243 (mips_supply_fpregset): Likewise.
1244 (mips_fill_fpregset): Likewise.
1245 (mips64_supply_gregset): Likewise.
1246 (micromips_linux_sigframe_validate): Likewise.
1247 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
1248 (mipsnbsd_fetch_inferior_registers): Likewise.
1249 (mipsnbsd_store_inferior_registers): Likewise.
1250 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1251 (mipsnbsd_supply_gregset): Likewise.
1252 (mipsnbsd_iterate_over_regset_sections): Likewise.
1253 (mipsnbsd_supply_reg): Likewise.
1254 (mipsnbsd_supply_fpreg): Likewise.
1255 * mips-tdep.c (mips_in_frame_stub): Likewise.
1256 (mips_dummy_id): Likewise.
1257 (is_octeon_bbit_op): Likewise.
1258 (micromips_bc1_pc): Likewise.
1259 (extended_mips16_next_pc): Likewise.
1260 (mips16_next_pc): Likewise.
1261 (deal_with_atomic_sequence): Likewise.
1262 * moxie-tdep.c (moxie_process_readu): Likewise.
1263 * nios2-tdep.c (nios2_get_next_pc): Likewise.
1264 * nto-procfs.c (procfs_store_registers): Likewise.
1265 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
1266 (ppcfbsd_store_inferior_registers): Likewise.
1267 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
1268 (fetch_altivec_register): Likewise.
1269 (get_spe_registers): Likewise.
1270 (fetch_spe_register): Likewise.
1271 (fetch_altivec_registers): Likewise.
1272 (fetch_all_gp_regs): Likewise.
1273 (fetch_all_fp_regs): Likewise.
1274 (store_vsx_register): Likewise.
1275 (store_altivec_register): Likewise.
1276 (set_spe_registers): Likewise.
1277 (store_spe_register): Likewise.
1278 (store_altivec_registers): Likewise.
1279 (store_all_gp_regs): Likewise.
1280 (store_all_fp_regs): Likewise.
1281 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1282 (ppc_linux_collect_gregset): Likewise.
1283 (ppc_canonicalize_syscall): Likewise.
1284 (ppc_linux_record_signal): Likewise.
1285 (ppu2spu_prev_register): Likewise.
1286 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1287 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
1288 (ppcobsd_store_registers): Likewise.
1289 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
1290 Likewise.
1291 (ppc_ravenscar_generic_store_registers): Likewise.
1292 * procfs.c (procfs_fetch_registers): Likewise.
1293 (procfs_store_registers): Likewise.
1294 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
1295 (ravenscar_store_registers): Likewise.
1296 (ravenscar_prepare_to_store): Likewise.
1297 * record-btrace.c (record_btrace_fetch_registers): Likewise.
1298 * record-full.c (record_full_wait_1): Likewise.
1299 (record_full_registers_change): Likewise.
1300 (record_full_store_registers): Likewise.
1301 (record_full_core_fetch_registers): Likewise.
1302 (record_full_save): Likewise.
1303 (record_full_goto_insn): Likewise.
1304 * regcache.c (regcache_register_size): Likewise.
1305 (get_regcache_arch): Remove.
1306 (regcache_read_pc): Likewise.
1307 * regcache.h (get_regcache_arch): Remove.
1308 * remote-sim.c (gdbsim_fetch_register): Likewise.
1309 (gdbsim_store_register): Likewise.
1310 * remote.c (fetch_register_using_p): Likewise.
1311 (send_g_packet): Likewise.
1312 (remote_prepare_to_store): Likewise.
1313 (store_registers_using_G): Likewise.
1314 * reverse.c (save_bookmark_command): Likewise.
1315 (goto_bookmark_command): Likewise.
1316 * rs6000-aix-tdep.c (branch_dest): Likewise.
1317 * rs6000-nat.c (rs6000_ptrace64): Likewise.
1318 (fetch_register): Likewise.
1319 * rs6000-tdep.c (ppc_supply_reg): Likewise.
1320 (ppc_collect_reg): Likewise.
1321 (ppc_collect_gregset): Likewise.
1322 (ppc_collect_fpregset): Likewise.
1323 (ppc_collect_vsxregset): Likewise.
1324 (ppc_collect_vrregset): Likewise.
1325 (ppc_displaced_step_hw_singlestep): Likewise.
1326 (rs6000_pseudo_register_read): Likewise.
1327 (rs6000_pseudo_register_write): Likewise.
1328 * s390-linux-nat.c (supply_gregset): Likewise.
1329 (fill_gregset): Likewise.
1330 (s390_linux_fetch_inferior_registers): Likewise.
1331 * s390-linux-tdep.c (s390_write_pc): Likewise.
1332 (s390_software_single_step): Likewise.
1333 (s390_all_but_pc_registers_record): Likewise.
1334 (s390_linux_syscall_record): Likewise.
1335 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
1336 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
1337 (shnbsd_store_inferior_registers): Likewise.
1338 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
1339 (sh_extract_return_value_fpu): Likewise.
1340 (sh_store_return_value_nofpu): Likewise.
1341 (sh_corefile_supply_regset): Likewise.
1342 (sh_corefile_collect_regset): Likewise.
1343 * sh64-tdep.c (sh64_extract_return_value): Likewise.
1344 (sh64_store_return_value): Likewise.
1345 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
1346 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
1347 (sparc_store_inferior_registers): Likewise.
1348 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
1349 (sparc_ravenscar_prepare_to_store): Likewise.
1350 * sparc-tdep.c (sparc32_store_arguments): Likewise.
1351 (sparc_analyze_control_transfer): Likewise.
1352 (sparc_step_trap): Likewise.
1353 (sparc_software_single_step): Likewise.
1354 (sparc32_gdbarch_init): Likewise.
1355 (sparc_supply_rwindow): Likewise.
1356 (sparc_collect_rwindow): Likewise.
1357 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
1358 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
1359 (sparc64nbsd_collect_gregset): Likewise.
1360 (sparc64nbsd_supply_fpregset): Likewise.
1361 (sparc64nbsd_collect_fpregset): Likewise.
1362 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
1363 (sparc64_supply_gregset): Likewise.
1364 (sparc64_collect_gregset): Likewise.
1365 (sparc64_supply_fpregset): Likewise.
1366 (sparc64_collect_fpregset): Likewise.
1367 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
1368 * spu-tdep.c (spu_unwind_sp): Likewise.
1369 (spu2ppu_prev_register): Likewise.
1370 (spu_memory_remove_breakpoint): Likewise.
1371 * stack.c (return_command): Likewise.
1372 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
1373 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1374 * tracefile.c (trace_save_ctf): Likewise.
1375 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
1376 (do_windows_store_inferior_registers): Likewise.
1377 (windows_resume): Likewise.
1378 * xtensa-linux-nat.c (fill_gregset): Likewise.
1379 (supply_gregset_reg): Likewise.
1380 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
1381 (xtensa_register_read_masked): Likewise.
1382 (xtensa_supply_gregset): Likewise.
1383 (xtensa_extract_return_value): Likewise.
1384 (xtensa_store_return_value): Likewise.
1385
1386 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
1387
1388 * doublest.c (floatformat_from_string): New function.
1389 * doublest.h (floatformat_from_string): Add prototype.
1390
1391 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
1392 (OP_FLOAT): ... this.
1393 * expression.h: Do not include "doublest.h".
1394 (union exp_element): Replace doubleconst and decfloatconst by
1395 new element floatconst.
1396 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
1397 (ada_evaluate_subexp): Likewise.
1398 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
1399 OP_DOUBLE and OP_DECFLOAT.
1400 * expprint.c (print_subexp_standard): Likewise.
1401 (dump_subexp_body_standard): Likewise.
1402 * breakpoint.c (watchpoint_exp_is_const): Likewise.
1403
1404 * parse.c: Include "dfp.h".
1405 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
1406 (write_exp_elt_floatcst): New function.
1407 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
1408 and OP_DECFLOAT.
1409 (operator_check_standard): Likewise.
1410 (parse_float): Do not accept suffix. Take type as input. Return bool.
1411 Return target format buffer instead of host DOUBLEST.
1412 Use floatformat_from_string and decimal_from_string to parse
1413 either binary or decimal floating-point types.
1414 (parse_c_float): Remove.
1415 * parser-defs.h: Do not include "doublest.h".
1416 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
1417 (write_exp_elt_floatcst): Add prototype.
1418 (parse_float): Update prototype.
1419 (parse_c_float): Remove.
1420
1421 * c-exp.y: Do not include "dfp.h".
1422 (typed_val_float): Use byte buffer instead of DOUBLEST.
1423 (typed_val_decfloat): Remove.
1424 (DECFLOAT): Remove.
1425 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1426 (parse_number): Update to new parse_float interface.
1427 Parse suffixes and determine type before calling parse_float.
1428 Handle decimal and binary FP types the same way.
1429
1430 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1431 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
1432 (parse_number): Update to new parse_float interface.
1433 Parse suffixes and determine type before calling parse_float.
1434
1435 * f-exp.y: Replace dval by typed_val_float.
1436 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1437 (parse_number): Use parse_float instead of atof.
1438
1439 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1440 (parse_go_float): Remove.
1441 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1442 (parse_number): Call parse_float instead of parse_go_float.
1443 Parse suffixes and determine type before calling parse_float.
1444
1445 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1446 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1447 (parse_number): Update to new parse_float interface.
1448 Parse suffixes and determine type before calling parse_float.
1449
1450 * m2-exp.y: Replace dval by byte buffer val.
1451 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1452 (parse_number): Call parse_float instead of atof.
1453
1454 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1455 (lex_number): Call parse_float instead of strtod.
1456 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
1457 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
1458 Use write_exp_elt_floatcst.
1459 (unit_testing): Remove static variable.
1460 (rust_type): Do not check unit_testing.
1461 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
1462
1463 * ada-exp.y (type_float, type_double): Remove.
1464 (typed_val_float): Use byte buffer instead of DOUBLEST.
1465 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1466 * ada-lex.l (processReal): Use parse_float instead of sscanf.
1467
1468 2017-10-25 Alan Hayward <alan.hayward@arm.com>
1469
1470 * aarch64-tdep.h (enum aarch64_regnum): Remove.
1471 * arch/aarch64.h: New file.
1472
1473 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1474
1475 * dfp.h (decimal_from_string): Use const reference for argument.
1476 * dfp.c (decimal_from_string): Likewise.
1477
1478 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1479
1480 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
1481 * sh64-tdep.c (sh64_do_fp_register): Likewise.
1482 * mips-tdep.c (mips_print_fp_register): Likewise.
1483
1484 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1485
1486 * common/format.h (enum argclass): Replace decfloat_arg by
1487 dec32float_arg, dec64float_arg, and dec128float_arg.
1488 * common/format.c (parse_format_string): Update to return
1489 new decimal float argument classes.
1490
1491 * printcmd.c (printf_decfloat): Rename to ...
1492 (printf_floating): ... this. Add argclass argument, and use it
1493 instead of parsing the format string again. Add support for
1494 binary floating-point values, using floatformat_to_string.
1495 Convert value to the target format if it doesn't already match.
1496 (ui_printf): Call printf_floating instead of printf_decfloat,
1497 also for double_arg / long_double_arg. Pass argclass.
1498
1499 * dfp.c (decimal_to_string): Add format string argument.
1500 * dfp.h (decimal_to_string): Likewise.
1501
1502 * doublest.c (floatformat_to_string): Add format string argument.
1503 * doublest.h (floatformat_to_string): Likewise.
1504
1505 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1506
1507 * doublest.c (floatformat_precision): New routine.
1508 (floatformat_to_string): Likewise.
1509 * doublest.c (floatformat_to_string): Add prototype.
1510
1511 * printcmd.c (print_scalar_formatted): Only call print_floating
1512 on floating-point types.
1513 * valprint.c: Do not include "floatformat.h".
1514 (generic_val_print_decfloat): Remove.
1515 (generic_val_print): Call generic_val_print_float for both
1516 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
1517 (print_floating): Use floatformat_to_string. Handle decimal float.
1518 (print_decimal_floating): Remove, merge into floatformat_to_string.
1519 * value.h (print_decimal_floating): Remove.
1520
1521 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
1522
1523 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1524
1525 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
1526
1527 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1528
1529 * memattr.h: Don't include vec.h.
1530 (struct mem_attrib): Initialize fields.
1531 <unknown>: New static method.
1532 (struct mem_region): Add constructors, operator<, initialize
1533 fields.
1534 * memattr.c: Include algorithm.
1535 (default_mem_attrib, unknown_mem_attrib): Remove.
1536 (user_mem_region_list): New global.
1537 (target_mem_region_list, mem_region_list): Change type to
1538 std::vector<mem_region>.
1539 (mem_use_target): Now a function.
1540 (target_mem_regions_valid): Change type to bool.
1541 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
1542 (require_user_regions): Adjust.
1543 (require_target_regions): Adjust.
1544 (create_mem_region): Adjust.
1545 (lookup_mem_region): Adjust.
1546 (invalidate_target_mem_regions): Adjust.
1547 (mem_clear): Rename to...
1548 (user_mem_clear): ... this, and adjust.
1549 (mem_command): Adjust.
1550 (info_mem_command): Adjust.
1551 (mem_enable, enable_mem_command, mem_disable,
1552 disable_mem_command): Adjust.
1553 (mem_delete): Adjust.
1554 (delete_mem_command): Adjust.
1555 * memory-map.h (parse_memory_map): Return an std::vector.
1556 * memory-map.c (parse_memory_map): Likewise.
1557 (struct memory_map_parsing_data): Add constructor.
1558 <memory_map>: Point to std::vector.
1559 (memory_map_start_memory): Adjust.
1560 (memory_map_end_memory): Adjust.
1561 (memory_map_end_property): Adjust.
1562 (clear_result): Remove.
1563 * remote.c (remote_memory_map): Return an std::vector.
1564 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
1565 Remove.
1566 (target_debug_print_mem_region_vector): New.
1567 * target-delegates.c: Regenerate.
1568 * target.h (mem_region_vector): New typedef.
1569 (to_memory_map): Return mem_region_vector.
1570 (target_memory_map): Return an std::vector.
1571 * target.c (target_memory_map): Return an std::vector.
1572 (flash_erase_command): Adjust.
1573
1574 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1575
1576 * memory-map.c (struct memory_map_parsing_data) <property_name>:
1577 Change type to std::string.
1578 (memory_map_start_property): Adjust.
1579 (memory_map_end_property): Adjust.
1580
1581 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1582
1583 * infrun.h: Include common/byte-vector.h.
1584 (struct displaced_step_closure): New struct.
1585 (struct buf_displaced_step_closure): New struct.
1586 * infrun.c (displaced_step_closure::~displaced_step_closure):
1587 Provide default implementation.
1588 (displaced_step_clear): Deallocate step closure with delete.
1589 * aarch64-tdep.c (displaced_step_closure): Rename to ...
1590 (aarch64_displaced_step_closure): ... this, extend
1591 displaced_step_closure.
1592 (aarch64_displaced_step_data) <dsc>: Change type to
1593 aarch64_displaced_step_closure.
1594 (aarch64_displaced_step_copy_insn): Adjust to type change, use
1595 unique_ptr.
1596 (aarch64_displaced_step_fixup): Add cast for displaced step
1597 closure.
1598 * amd64-tdep.c (displaced_step_closure): Rename to ...
1599 (amd64_displaced_step_closure): ... this, extend
1600 displaced_step_closure.
1601 <insn_buf>: Change type to std::vector<gdb_byte>.
1602 <max_len>: Remove.
1603 (fixup_riprel): Change type of DSC parameter, adjust to type
1604 change of insn_buf.
1605 (fixup_displaced_copy): Change type of DSC parameter.
1606 (amd64_displaced_step_copy_insn): Instantiate
1607 amd64_displaced_step_closure.
1608 (amd64_displaced_step_fixup): Add cast for closure type, adjust
1609 to type change of insn_buf.
1610 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
1611 parameter DSC.
1612 (arm_linux_copy_svc): Likewise.
1613 (cleanup_kernel_helper_return): Likewise.
1614 (arm_catch_kernel_helper_return): Likewise.
1615 (arm_linux_displaced_step_copy_insn): Instantiate
1616 arm_displaced_step_closure.
1617 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
1618 (displaced_read_reg): Change type of parameter DSC.
1619 (branch_write_pc): Likewise.
1620 (load_write_pc): Likewise.
1621 (alu_write_pc): Likewise.
1622 (displaced_write_reg): Likewise.
1623 (arm_copy_unmodified): Likewise.
1624 (thumb_copy_unmodified_32bit): Likewise.
1625 (thumb_copy_unmodified_16bit): Likewise.
1626 (cleanup_preload): Likewise.
1627 (install_preload): Likewise.
1628 (arm_copy_preload): Likewise.
1629 (thumb2_copy_preload): Likewise.
1630 (install_preload_reg): Likewise.
1631 (arm_copy_preload_reg): Likewise.
1632 (cleanup_copro_load_store): Likewise.
1633 (install_copro_load_store): Likewise.
1634 (arm_copy_copro_load_store) Likewise.
1635 (thumb2_copy_copro_load_store): Likewise.
1636 (cleanup_branch): Likewise.
1637 (install_b_bl_blx): Likewise.
1638 (arm_copy_b_bl_blx): Likewise.
1639 (thumb2_copy_b_bl_blx): Likewise.
1640 (thumb_copy_b): Likewise.
1641 (install_bx_blx_reg): Likewise.
1642 (arm_copy_bx_blx_reg): Likewise.
1643 (thumb_copy_bx_blx_reg): Likewise.
1644 (cleanup_alu_imm): Likewise.
1645 (arm_copy_alu_imm): Likewise.
1646 (thumb2_copy_alu_imm): Likewise.
1647 (cleanup_alu_reg): Likewise.
1648 (install_alu_reg): Likewise.
1649 (arm_copy_alu_reg): Likewise.
1650 (thumb_copy_alu_reg): Likewise.
1651 (cleanup_alu_shifted_reg): Likewise.
1652 (install_alu_shifted_reg): Likewise.
1653 (arm_copy_alu_shifted_reg): Likewise.
1654 (cleanup_load): Likewise.
1655 (cleanup_store): Likewise.
1656 (arm_copy_extra_ld_st): Likewise.
1657 (install_load_store): Likewise.
1658 (thumb2_copy_load_literal): Likewise.
1659 (thumb2_copy_load_reg_imm): Likewise.
1660 (arm_copy_ldr_str_ldrb_strb): Likewise.
1661 (cleanup_block_load_all): Likewise.
1662 (cleanup_block_store_pc): Likewise.
1663 (cleanup_block_load_pc): Likewise.
1664 (arm_copy_block_xfer): Likewise.
1665 (thumb2_copy_block_xfer): Likewise.
1666 (cleanup_svc): Likewise.
1667 (install_svc): Likewise.
1668 (arm_copy_svc): Likewise.
1669 (thumb_copy_svc): Likewise.
1670 (arm_copy_undef): Likewise.
1671 (thumb_32bit_copy_undef): Likewise.
1672 (arm_copy_unpred): Likewise.
1673 (arm_decode_misc_memhint_neon): Likewise.
1674 (arm_decode_unconditional): Likewise.
1675 (arm_decode_miscellaneous): Likewise.
1676 (arm_decode_dp_misc): Likewise.
1677 (arm_decode_ld_st_word_ubyte): Likewise.
1678 (arm_decode_media): Likewise.
1679 (arm_decode_b_bl_ldmstm): Likewise.
1680 (arm_decode_ext_reg_ld_st): Likewise.
1681 (thumb2_decode_dp_shift_reg): Likewise.
1682 (thumb2_decode_ext_reg_ld_st): Likewise.
1683 (arm_decode_svc_copro): Likewise.
1684 (thumb2_decode_svc_copro): Likewise.
1685 (install_pc_relative): Likewise.
1686 (thumb_copy_pc_relative_16bit): Likewise.
1687 (thumb_decode_pc_relative_16bit): Likewise.
1688 (thumb_copy_pc_relative_32bit): Likewise.
1689 (thumb_copy_16bit_ldr_literal): Likewise.
1690 (thumb_copy_cbnz_cbz): Likewise.
1691 (thumb2_copy_table_branch): Likewise.
1692 (cleanup_pop_pc_16bit_all): Likewise.
1693 (thumb_copy_pop_pc_16bit): Likewise.
1694 (thumb_process_displaced_16bit_insn): Likewise.
1695 (decode_thumb_32bit_ld_mem_hints): Likewise.
1696 (thumb_process_displaced_32bit_insn): Likewise.
1697 (thumb_process_displaced_insn): Likewise.
1698 (arm_process_displaced_insn): Likewise.
1699 (arm_displaced_init_closure): Likewise.
1700 (arm_displaced_step_fixup): Add cast for closure.
1701 * arm-tdep.h: Include infrun.h.
1702 (displaced_step_closure): Rename to ...
1703 (arm_displaced_step_closure): ... this, extend
1704 displaced_step_closure.
1705 <u::svc::copy_svc_os>: Change type of parameter DSC.
1706 <cleanup>: Likewise.
1707 (arm_process_displaced_insn): Likewise.
1708 (arm_displaced_init_closure): Likewise.
1709 (displaced_read_reg): Likewise.
1710 (displaced_write_reg): Likewise.
1711 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1712 Adjust.
1713 * i386-tdep.h: Include infrun.h.
1714 (i386_displaced_step_closure): New typedef.
1715 * i386-tdep.c (i386_displaced_step_copy_insn): Use
1716 i386_displaced_step_closure.
1717 (i386_displaced_step_fixup): Adjust.
1718 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
1719 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
1720 and unique_ptr.
1721 (ppc_displaced_step_fixup): Adjust.
1722 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
1723 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
1724 and unique_ptr.
1725 (s390_displaced_step_fixup): Adjust.
1726
1727 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1728
1729 * interps.h (interp_resume, interp_suspend, interp_set_temp):
1730 Remove declarations.
1731
1732 2017-10-20 Tom Tromey <tom@tromey.com>
1733
1734 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
1735 std::vector.
1736 (gdb_bfd_record_inclusion): Update.
1737 (bfdp): Remove typedef.
1738
1739 2017-10-20 Tom Tromey <tom@tromey.com>
1740
1741 * gdb_bfd.c (gdb_bfd_ref): Use new.
1742 (struct gdb_bfd_data): Add constructor, destructor, and member
1743 initializers.
1744 (gdb_bfd_unref): Use delete.
1745
1746 2017-10-20 Tom Tromey <tom@tromey.com>
1747
1748 * exec.c (exec_file_attach): Use new_bfd_ref.
1749 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
1750 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1751 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
1752 new_bfd_ref.
1753 * gdb_bfd.h (new_bfd_ref): New function.
1754
1755 2017-10-20 Pedro Alves <palves@redhat.com>
1756
1757 * main.c (captured_command_loop): Add attribute noinline.
1758
1759 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
1760
1761 * interps.c (struct interp_factory): Add constructor.
1762 (interp_factory_p): Remove typedef.
1763 (DEF_VEC_P(interp_factory_p)): Remove.
1764 (interpreter_factories): Change type to std::vector.
1765 (interp_factory_register): Adjust.
1766 (interp_lookup): Adjust.
1767 (interpreter_completer): Adjust.
1768
1769 2017-10-19 Tom Tromey <tom@tromey.com>
1770
1771 * break-catch-syscall.c (catch_syscall_completer): Use
1772 std::string, gdb::unique_xmalloc_ptr.
1773
1774 2017-10-19 Tom Tromey <tom@tromey.com>
1775
1776 * infcall.c (call_function_by_hand_dummy): Use std::string.
1777
1778 2017-10-19 Tom Tromey <tom@tromey.com>
1779
1780 * mi/mi-main.c (mi_cmd_execute): Update.
1781 * top.h (prepare_execute_command): Return scoped_value_mark.
1782 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
1783 Add move constructor.
1784 * top.c (prepare_execute_command): Return scoped_value_mark.
1785 (execute_command): Update.
1786
1787 2017-10-19 Pedro Alves <palves@redhat.com>
1788
1789 * xml-support.c (xml_fetch_content_from_file): Check fread's
1790 return.
1791
1792 2017-10-19 Pedro Alves <palves@redhat.com>
1793
1794 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
1795 async.
1796 (handle_error_fd): New function.
1797 (ser_base_async): Add/delete an event loop file handler for
1798 error_fd.
1799
1800 2017-10-19 Pedro Alves <palves@redhat.com>
1801
1802 * xml-support.c (xml_fetch_content_from_file): Don't read in
1803 chunks. Instead use fseek to determine the file's size, and read
1804 it in one go.
1805
1806 2017-11-18 Keith Seitz <keiths@redhat.com>
1807
1808 * c-exp.y (oper): Canonicalize conversion operators of user-defined
1809 types.
1810 Add whitespace to front of type name.
1811
1812 2017-10-18 Keith Seitz <keiths@redhat.com>
1813
1814 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
1815 DW_AT_accessibility.
1816
1817 2017-10-18 Yao Qi <yao.qi@linaro.org>
1818
1819 * features/tic6x-c62x-linux.c: Remove.
1820
1821 2017-10-17 Tom Tromey <tom@tromey.com>
1822
1823 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
1824 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
1825 (do_mixed_source_and_assembly): Likewise.
1826
1827 2017-10-17 Tom Tromey <tom@tromey.com>
1828
1829 * regcache.c (regcache::xfer_part): Remove assertion.
1830
1831 2017-10-17 Pedro Alves <palves@redhat.com>
1832
1833 * xml-support.c (xml_fetch_content_from_file): Call
1834 unique_ptr::release() instead unique_ptr::get() when passing
1835 through xrealloc.
1836
1837 2017-10-17 Yao Qi <yao.qi@linaro.org>
1838
1839 * regcache.c (regcache::xfer_part): Remove parameters read and
1840 write, add parameter is_raw. All callers are updated.
1841
1842 2017-10-16 Keith Seitz <keiths@redhat.com>
1843
1844 * c-typeprint.c (enum access_specifier): Moved here from
1845 c_type_print_base.
1846 (output_access_specifier): New function.
1847 (c_type_print_base): Consider typedefs when assessing
1848 whether access labels are needed.
1849 Use output_access_specifier as needed.
1850 Output access specifier for typedefs, if needed.
1851 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
1852 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
1853 fields.
1854 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
1855 accessor macros.
1856
1857 2017-10-16 Tom Tromey <tom@tromey.com>
1858
1859 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
1860 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
1861 * target.c (target_fileio_read_stralloc): Update.
1862 * sparc64-tdep.c (adi_is_addr_mapped): Update.
1863 * target.h (target_fileio_read_stralloc): Return
1864 unique_xmalloc_ptr.
1865
1866 2017-10-16 Tom Tromey <tom@tromey.com>
1867
1868 * xml-syscall.c (xml_init_syscalls_info): Update.
1869 * xml-support.c (xinclude_start_include): Update.
1870 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
1871 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
1872 (xml_fetch_content_from_file): Likewise.
1873 * osdata.c (get_osdata): Update.
1874 * target.h (target_read_stralloc, target_get_osdata): Return
1875 unique_xmalloc_ptr.
1876 * solib-aix.c (solib_aix_get_library_list): Update.
1877 * solib-target.c (solib_target_current_sos): Update.
1878 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
1879 * xml-tdesc.c (fetch_available_features_from_target): Update.
1880 (target_fetch_description_xml): Update.
1881 (file_read_description_xml): Update.
1882 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
1883 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
1884 (remote_pid_to_exec_file): Update.
1885 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
1886 (target_get_osdata): Likewise.
1887
1888 2017-10-16 Tom Tromey <tom@tromey.com>
1889
1890 * remote.c (remote_register_number_and_offset): Use std::vector.
1891 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
1892 (putpkt_binary): Use gdb::def_vector.
1893 (compare_sections_command): Use gdb::byte_vector.
1894
1895 2017-10-16 Tom Tromey <tom@tromey.com>
1896
1897 * ppc-linux-nat.c (hwdebug_insert_point): Use
1898 gdb::unique_xmalloc_ptr, XDUP.
1899
1900 2017-10-16 Tom Tromey <tom@tromey.com>
1901
1902 * probe.c (parse_probes): Use std::string.
1903 (info_probes_for_ops, enable_probes_command)
1904 (disable_probes_command): Remove cleanups.
1905
1906 2017-10-16 Tom Tromey <tom@tromey.com>
1907
1908 * buildsym.c (block_compar): Remove.
1909 (end_symtab_get_static_block): Use std::vector.
1910
1911 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
1912
1913 * memrange.h (struct mem_range): Define operator< and operator==.
1914 (mem_range_s): Remove.
1915 (DEF_VEC_O (mem_range_s)): Remove.
1916 (normalize_mem_ranges): Change parameter type to std::vector.
1917 * memrange.c (compare_mem_ranges): Remove.
1918 (normalize_mem_ranges): Change parameter type to std::vector,
1919 adjust to vector change.
1920 * exec.c (section_table_available_memory): Return vector, remove
1921 parameter.
1922 (section_table_read_available_memory): Adjust to std::vector
1923 change.
1924 * remote.c (remote_read_bytes): Adjust to std::vector
1925 change.
1926 * tracepoint.h (traceframe_available_memory): Change parameter
1927 type to std::vector.
1928 * tracepoint.c (traceframe_available_memory): Change parameter
1929 type to std::vector, adjust.
1930 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
1931 std::vector change.
1932 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1933 unittests/memrange-selftests.c.
1934 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
1935 * gdb/unittests/memrange-selftests.c: New file.
1936
1937 2017-10-16 Pedro Alves <palves@redhat.com>
1938
1939 * elfread.c (probe_key_free): Rename range-for variable.
1940 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
1941 (find_probe_by_pc, collect_probes): Rename range-for variable.
1942
1943 2017-10-16 Yao Qi <yao.qi@linaro.org>
1944
1945 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1946 * features/tic6x-c62x.c: Remove.
1947 * features/tic6x-c64x-linux.c: Remove.
1948 * features/tic6x-c64x.c: Remove.
1949 * features/tic6x-c64xp-linux.c: Remove.
1950 * features/tic6x-c64xp.c: Remove.
1951 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1952 initialize_tdesc_tic6x_*_linux functions.
1953 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1954 initialize_tdesc_tic6x_* functions.
1955
1956 2017-10-16 Yao Qi <yao.qi@linaro.org>
1957
1958 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1959 tic6x-c62x.
1960 * regformats/tic6x-c62x.dat: Remove.
1961 * regformats/tic6x-c64x.dat: Remove.
1962 * regformats/tic6x-c64xp.dat: Remove.
1963
1964 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1965
1966 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1967 (the !HAVE_LIBEXPAT version).
1968
1969 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1970
1971 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1972 const.
1973
1974 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1975
1976 * target.h: Include tracepoint.h.
1977 (enum trace_find_type): Move to tracepoint.h.
1978 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1979 * tracepoint.h: Don't include target.h
1980 (enum trace_find_type): Move from target.h.
1981 (parse_traceframe_info): Return a unique ptr.
1982 * tracepoint.c (current_traceframe_info): Change type to unique
1983 ptr.
1984 (free_traceframe_info): Remove.
1985 (clear_traceframe_info): Don't manually free
1986 current_traceframe_info.
1987 (free_result): Remove.
1988 (parse_traceframe_info): Return a unique ptr.
1989 (get_traceframe_info): Adjust to unique ptr.
1990 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1991 * remote.c (remote_traceframe_info): Return a unique ptr.
1992 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1993 ptr.
1994 * target-debug.h (target_debug_print_traceframe_info_up): New
1995 macro.
1996 * target-delegates.c: Regenerate.
1997
1998 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1999
2000 * memrange.h (struct mem_range): Add constructors.
2001 * tracepoint.h (struct traceframe_info) <memory>: Change type to
2002 std::vector<mem_range>.
2003 * tracepoint.c (free_traceframe_info): Don't manually free
2004 vector.
2005 (traceframe_info_start_memory): Adjust to vector change.
2006 (traceframe_available_memory): Likewise.
2007 * tracefile-tfile.c (build_traceframe_info): Likewise.
2008 * ctf.c (ctf_traceframe_info): Likewise.
2009
2010 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2011
2012 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
2013 std::vector<int>.
2014 * tracepoint.c (free_traceframe_info): Deallocate with delete.
2015 (traceframe_info_start_tvar): Adjust to vector change.
2016 (parse_traceframe_info): Allocate with new.
2017 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
2018 vector change.
2019 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
2020 change.
2021 tfile_traceframe_info): Allocate with new.
2022 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
2023 change.
2024
2025 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2026
2027 * tracepoint.c (traceframe_info): Rename to...
2028 (current_traceframe_info): ...this.
2029 (clear_traceframe_info): Adjust.
2030 (get_traceframe_info): Adjust.
2031
2032 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
2033
2034 * nat/linux-osdata.c: Include algorithm.
2035 (compare_processes): Remove.
2036 (struct pid_pgid_entry): New struct.
2037 (linux_xfer_osdata_processgroups): Use std::vector instead of
2038 XNEWVEC.
2039
2040 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
2041
2042 * objfiles.h: Don't include symfile.h.
2043 (struct partial_symbol): Remove forward-declaration.
2044 (struct objfile) <global_psymbols, static_psymbols>: Change type
2045 to std::vector<partial_symbol *>.
2046 * objfiles.c (objfile::objfile): Don't memset those fields.
2047 (objfile::~objfile): Don't free those fields.
2048 * psympriv.h (struct psymbol_allocation_list): Remove
2049 forward-declaration.
2050 (add_psymbol_to_list): Change psymbol_allocation_list parameter
2051 to std::vector.
2052 (start_psymtab_common): Change parameters to std::vector.
2053 * psymtab.c: Include algorithm.
2054 (require_partial_symbols): Call shrink_to_fit.
2055 (find_pc_sect_psymbol): Adjust to vector change.
2056 (match_partial_symbol): Likewise.
2057 (lookup_partial_symbol): Likewise.
2058 (psym_relocate): Likewise.
2059 (dump_psymtab): Likewise.
2060 (recursively_search_psymtabs): Likewise.
2061 (compare_psymbols): Remove.
2062 (sort_pst_symbols): Adjust to vector change.
2063 (start_psymtab_common): Likewise.
2064 (end_psymtab_common): Likewise.
2065 (psymbol_bcache_full): De-constify return value.
2066 (add_psymbol_to_bcache): Likewise.
2067 (extend_psymbol_list): Remove.
2068 (append_psymbol_to_list): Adjust to vector change.
2069 (add_psymbol_to_list): Likewise.
2070 (init_psymbol_list): Likewise.
2071 (maintenance_info_psymtabs): Likewise.
2072 (maintenance_check_psymtabs): Likewise.
2073 * symfile.h (struct psymbol_allocation_list): Remove.
2074 * symfile.c (reread_symbols): Adjust to vector change.
2075 * dbxread.c (start_psymtab): Change type of parameters.
2076 (dbx_symfile_read): Adjust to vector change.
2077 (read_dbx_symtab): Likewise.
2078 (start_psymtab): Change type of parameters.
2079 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
2080 (create_partial_symtab): Likewise.
2081 (add_partial_symbol): Likewise.
2082 (write_one_signatured_type): Likewise.
2083 (recursively_write_psymbols): Likewise.
2084 * mdebugread.c (parse_partial_symbols): Likewise.
2085 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
2086 (scan_xcoff_symtab): Adjust to vector change.
2087 (xcoff_initial_scan): Likewise.
2088
2089 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
2090
2091 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
2092
2093 2017-10-13 Yao Qi <yao.qi@linaro.org>
2094
2095 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
2096 Remove s390x-*-expedite, add s390x-expedite.
2097
2098 2017-10-13 Yao Qi <yao.qi@linaro.org>
2099
2100 * features/s390-gs-linux64.c: Regenerated.
2101 * features/s390x-gs-linux64.c: Regenerated.
2102
2103 2017-10-13 Tom Tromey <tom@tromey.com>
2104
2105 * compile/compile-object-run.c (do_module_cleanup): Use delete.
2106 * solib.c (update_solib_list, reload_shared_libraries_1): Use
2107 delete.
2108 * symfile.c (symbol_file_add_with_addrs): Use new.
2109 (symbol_file_add_separate): Update comment.
2110 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
2111 * jit.c (jit_object_close_impl): Use new.
2112 (jit_unregister_code): Use delete.
2113 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
2114 (~objfile): Rename from free_objfile.
2115 (free_objfile_separate_debug, do_free_objfile_cleanup)
2116 (free_all_objfiles, objfile_purge_solibs): Use delete.
2117 * objfiles.h (struct objfile): Add constructor and destructor.
2118 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
2119 (allocate_objfile, free_objfile): Don't declare.
2120 (struct objstats): Add initializers.
2121
2122 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2123
2124 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
2125 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
2126 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
2127 * gdbarch.h: Regenerate.
2128 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
2129 Adjust comment.
2130 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
2131 (i386_displaced_step_fixup): Adjust comment.
2132 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
2133
2134 2017-10-12 Tom Tromey <tom@tromey.com>
2135
2136 * prologue-value.h (pv_area::store_would_trash): Return bool.
2137 (pv_area::find_reg): Likewise.
2138 * prologue-value.c (pv_area::store_would_trash): Return bool.
2139 (pv_area::find_reg): Likewise.
2140
2141 2017-10-12 Tom Tromey <tom@tromey.com>
2142
2143 * s390-linux-tdep.c (s390_store, s390_load)
2144 (s390_check_for_saved, s390_analyze_prologue): Update.
2145 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
2146 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
2147 * prologue-value.h (class pv_area): Move from prologue-value.c.
2148 Change names of members. Add constructor, destructor, member
2149 functions.
2150 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
2151 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
2152 (pv_area_fetch, pv_area_scan): Don't declare.
2153 * prologue-value.c (struct pv_area::area_entry): Now member of
2154 pv_area.
2155 (struct pv_area): Move to prologue-value.h.
2156 (pv_area::pv_area): Rename from make_pv_area.
2157 (pv_area::~pv_area): Rename from free_pv_area.
2158 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
2159 (clear_entries, find_entry, overlaps, store_would_trash, store)
2160 (fetch, find_reg, scan): Now member of pv_area.
2161 Remove "area" argument. Update.
2162 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
2163 Update.
2164 * mn10300-tdep.c (push_reg, check_for_saved)
2165 (mn10300_analyze_prologue): Update.
2166 * mep-tdep.c (is_arg_spill, check_for_saved)
2167 (mep_analyze_prologue): Update.
2168 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
2169 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
2170 (m32c_is_struct_return, m32c_analyze_prologue): Update.
2171 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
2172 Update.
2173 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
2174 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
2175
2176 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2177
2178 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
2179 * linux-nat.c (linux_nat_delete_thread): New variable.
2180 (lwp_free): Invoke linux_nat_delete_thread if set.
2181 (linux_nat_set_delete_thread): New function.
2182 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
2183 thread delete callback.
2184 * arm-linux-nat.c (arm_linux_delete_thread): New function.
2185 (_initialize_arm_linux_nat): Assign thread delete callback.
2186 * s390-linux-nat.c (s390_delete_thread): New function.
2187 (_initialize_s390_nat): Assign thread delete callback.
2188 * x86-linux-nat.c (x86_linux_add_target): Likewise.
2189 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
2190 function.
2191 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
2192 declaration.
2193 * nat/x86-linux.c (x86_linux_delete_thread): New function.
2194 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
2195
2196 2017-10-09 Tom Tromey <tom@tromey.com>
2197
2198 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
2199 std::string.
2200 * tui/tui-layout.c (enum tui_status): Use std::string.
2201
2202 2017-10-11 Tom Tromey <tom@tromey.com>
2203
2204 * gdbthread.h (thread_command): Constify.
2205 * inferior.h (detach_command): Constify.
2206 * top.h (set_history, show_history): Constify.
2207 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
2208 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
2209 * bsd-kvm.c (bsd_kvm_cmd): Constify.
2210 * printcmd.c (set_command): Constify.
2211 (non_const_set_command): New function.
2212 * dcache.c (set_dcache_command, show_dcache_command): Constify.
2213 * breakpoint.c (enable_command, disable_command, delete_command)
2214 (catch_command, tcatch_command, set_breakpoint_cmd)
2215 (show_breakpoint_cmd): Constify.
2216 * macrocmd.c (macro_command): Constify.
2217 * infcmd.c (unset_command, kill_command, detach_command)
2218 (info_proc_cmd): Constify.
2219 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
2220 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
2221 (info_auto_load_cmd): Constify.
2222 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
2223 (unset_tdesc_cmd): Constify.
2224 * ada-lang.c (set_ada_command, show_ada_command)
2225 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
2226 * guile/guile.c (set_guile_command, show_guile_command)
2227 (info_guile_command): Constify.
2228 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
2229 Constify.
2230 * skip.c (skip_command): Constify.
2231 * compile/compile.c (_initialize_compile): Constify.
2232 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
2233 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
2234 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
2235 (maint_btrace_pt_show_cmd): Constify.
2236 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
2237 Constify.
2238 * python/python.c (user_show_python, user_set_python): Constify.
2239 * mips-tdep.c (set_mips_command, show_mips_command)
2240 (set_mipsfpu_command): Constify.
2241 * record-btrace.c (cmd_record_btrace_start)
2242 (cmd_set_record_btrace, cmd_show_record_btrace)
2243 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
2244 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
2245 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
2246 Constify.
2247 * symfile.c (overlay_command): Constify.
2248 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
2249 * cli/cli-logging.c (set_logging_command, show_logging_command):
2250 Constify.
2251 * cli/cli-dump.c (dump_command, append_command)
2252 (srec_dump_command, ihex_dump_command, verilog_dump_command)
2253 (tekhex_dump_command, binary_dump_command)
2254 (binary_append_command): Constify.
2255 * cli/cli-decode.c (struct cmd_list_element): Change type of
2256 "fun".
2257 * cli/cli-cmds.c (info_command, show_command, set_debug)
2258 (show_debug): Constify.
2259 (show_command): Add non-const overload.
2260 * top.c (set_history, show_history): Constify.
2261 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
2262 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
2263 * target.c (target_command): Constify.
2264 * sparc64-tdep.c (info_adi_command): Constify.
2265 * record-full.c (cmd_record_full_start): Constify.
2266 (set_record_full_command): Constify. Fix typo.
2267 (show_record_full_command): Constify.
2268 * thread.c (thread_command, thread_apply_command): Constify.
2269 * memattr.c (dummy_cmd): Constify.
2270 * value.c (function_command): Constify.
2271 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
2272 * probe.c (info_probes_command): Constify.
2273 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
2274 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
2275 (show_thread_cmd, set_thread_default_cmd)
2276 (show_thread_default_cmd): Constify.
2277 (check_empty): Constify.
2278 * tracepoint.c (tfind_command): Constify.
2279 * cp-support.c (maint_cplus_command): Constify.
2280 * windows-tdep.c (info_w32_command): Constify.
2281 * record.c (cmd_record_start, set_record_command)
2282 (show_record_command, info_record_command, cmd_record_goto):
2283 Constify.
2284 * ravenscar-thread.c (set_ravenscar_command)
2285 (show_ravenscar_command): Constify.
2286 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
2287 Constify.
2288 (add_internal_problem_command): Remove casts.
2289 * arc-tdep.c (maintenance_print_arc_command): Constify.
2290 * valprint.c (set_print, show_print, set_print_raw)
2291 (show_print_raw): Constify.
2292 * maint.c (maintenance_command, maintenance_info_command)
2293 (maintenance_print_command, maintenance_set_cmd)
2294 (maintenance_show_cmd, set_per_command_cmd)
2295 (show_per_command_cmd, maintenance_check_command): Constify.
2296 * language.c (set_check, show_check): Constify.
2297 * typeprint.c (show_print_type, set_print_type): Constify.
2298 * go32-nat.c (go32_info_dos_command): Constify.
2299
2300 2017-10-11 Tom Tromey <tom@tromey.com>
2301
2302 * breakpoint.c (prepare_re_set_context): Remove.
2303 (breakpoint_re_set_one): Update. Don't use cleanups.
2304 (breakpoint_re_set): Use scoped_restore, std::string, and
2305 scoped_restore_current_language.
2306
2307 2017-10-11 Tom Tromey <tom@tromey.com>
2308
2309 * breakpoint.c (commands_command_1): Use std::string.
2310 (cleanup_executing_breakpoints): Remove.
2311 (bpstat_do_actions_1): Use scoped_restore.
2312 (bpstat_check_watchpoint): Use std::string.
2313 (decode_static_tracepoint_spec): Likewise.
2314 (break_range_command): Likewise.
2315 (watch_command_1): Likewise.
2316 (compare_breakpoints): Change argument types.
2317 (clear_command): Use std::vector.
2318 (cleanup_executing_breakpoints): Remove.
2319 (update_global_location_list): Use unique_xmalloc_ptr.
2320 (strace_command): Remove unused declaration.
2321
2322 2017-10-11 John Baldwin <jhb@FreeBSD.org>
2323
2324 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
2325 * NEWS: Mention new FreeBSD/arm native configuration.
2326 * configure.host: Add arm*-*-freebsd*.
2327 * configure.nat: Likewise.
2328 * arm-fbsd-nat.c: New file.
2329
2330 2017-10-11 John Baldwin <jhb@FreeBSD.org>
2331
2332 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
2333 (ALLDEPFILES): Add arm-fbsd-tdep.c.
2334 * NEWS: Mention new FreeBSD/arm target.
2335 * configure.tgt: Add arm*-*-freebsd*.
2336 * arm-fbsd-tdep.c: New file.
2337 * arm-fbsd-tdep.h: New file.
2338
2339 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
2340
2341 * linux-tdep.c (linux_make_corefile_notes): Remove call to
2342 `gdbarch_elfcore_write_linux_prpsinfo'.
2343 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
2344 method.
2345 (elf_internal_linux_prpsinfo): Remove declaration.
2346 * gdbarch.h: Regenerate.
2347 * gdbarch.c: Regenerate.
2348
2349 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
2350
2351 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
2352 `set_gdbarch_elfcore_write_linux_prpsinfo'.
2353
2354 2017-10-11 Pedro Alves <palves@redhat.com>
2355
2356 * breakpoint.c (reattach_breakpoints): Delete.
2357 * breakpoint.h (reattach_breakpoints): Delete.
2358
2359 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
2360
2361 * symfile.c (registered_sym_fns): Make struct, not typedef.
2362 (DEF_VEC_O (registered_sym_fns)): Remove.
2363 (symtab_fns): Change type to std::vector.
2364 (add_symtab_fns): Adjust.
2365 (find_sym_fns): Adjust.
2366
2367 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
2368
2369 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
2370 * arc-tdep.h (arc_arch_is_em): New function.
2371 (arc_arch_is_hs): Likewise.
2372
2373 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
2374
2375 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
2376 parentheses in the declaration.
2377 (macro_lookup_inclusion): Likewise.
2378 (macro_lookup_definition): Likewise.
2379 * p-lang.h (pascal_builtin_types): Likewise.
2380 * tui/tui-data.c (tui_win_list): Likewise.
2381 * tui/tui-data.h (tui_win_list): Likewise.
2382 * utils.h (make_cleanup_free_section_addr_info): Likewise.
2383
2384 2017-10-11 Mark Rages <markrages@gmail.com>
2385
2386 * target-memory.c (block_boundaries): Fix for block address not
2387 aligned on block size.
2388
2389 2017-10-10 Pedro Alves <palves@redhat.com>
2390 Tom Tromey <tom@tromey.com>
2391
2392 * breakpoint.c (struct captured_breakpoint_query_args)
2393 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
2394 (print_breakpoint): New.
2395 * breakpoint.h (print_breakpoint): Declare.
2396 * common/common-exceptions.h (enum return_reason): Remove
2397 references to catch_exceptions.
2398 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
2399 Delete.
2400 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
2401 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
2402 * gdb.h: Delete.
2403 * gdbthread.h (thread_select): Declare.
2404 * mi/mi-cmd-break.c: Don't include gdb.h.
2405 (breakpoint_notify): Use print_breakpoint.
2406 * mi/mi-cmd-catch.c: Don't include gdb.h.
2407 * mi/mi-interp.c: Don't include gdb.h.
2408 (mi_print_breakpoint_for_event): New.
2409 (mi_breakpoint_created, mi_breakpoint_modified): Use
2410 mi_print_breakpoint_for_event.
2411 * mi/mi-main.c: Don't include gdb.h.
2412 (mi_cmd_thread_select): Parse the global thread ID here. Use
2413 thread_select instead of gdb_thread_select.
2414 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
2415 of using gdb_list_thread_ids.
2416 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
2417 FILEIO_ENOSYS here.
2418 (remote_fileio_request): Use TRY/CATCH instead of
2419 catch_exceptions.
2420 * symfile-mem.c (struct symbol_file_add_from_memory_args)
2421 (symbol_file_add_from_memory_wrapper): Delete.
2422 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
2423 * thread.c: Don't include gdb.h.
2424 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
2425 (thread_alive): Use thread_select.
2426 (do_captured_thread_select): Delete, parts salvaged as ...
2427 (thread_select): ... this new function.
2428 (gdb_thread_select): Delete.
2429
2430 2017-10-10 Pedro Alves <palves@redhat.com>
2431 Tom Tromey <tom@tromey.com>
2432
2433 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
2434 and reverse logic.
2435 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
2436 No longer macros. Instead ...
2437 (enum wp_check_result): They're now values of this new
2438 enumeration.
2439 (watchpoint_check): Change return type to wp_check_result and
2440 parameter type to bpstat.
2441 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
2442 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
2443 catch_errors. Reverse logic of watchpoint_check call.
2444 (breakpoint_re_set_one): Now returns void and takes a breakpoint
2445 pointer as parameter.
2446 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
2447 * common/common-exceptions.c (throw_exception_sjlj): Update
2448 comments to avoid mentioning catch_errors.
2449 * exceptions.c (catch_errors): Delete.
2450 * exceptions.h: Update comments to avoid mentioning catch_errors.
2451 (catch_errors_ftype, catch_errors): Delete.
2452 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
2453 (hook_stop_stub): Delete.
2454 (restore_selected_frame): Change return type to void, and
2455 parameter type to const frame_id &.
2456 (restore_infcall_control_state): Use TRY/CATCH instead of
2457 catch_errors.
2458 * main.c (captured_command_loop): Return void and remove
2459 parameter. Remove references to catch_errors.
2460 (captured_main): Use TRY/CATCH instead of catch_errors.
2461 * objc-lang.c (objc_submethod_helper_data)
2462 (find_objc_msgcall_submethod_helper): Delete.
2463 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
2464 catch_errors.
2465 * record-full.c (record_full_message): Return void.
2466 (record_full_message_args, record_full_message_wrapper): Delete.
2467 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
2468 instead of catch_errors.
2469 * solib-aix.c (solib_aix_open_symbol_file_object): Change
2470 parameter type to int.
2471 * solib-darwin.c (open_symbol_file_object): Ditto.
2472 * solib-dsbt.c (open_symbol_file_object): Ditto.
2473 * solib-frv.c (open_symbol_file_object): Ditto.
2474 * solib-svr4.c (open_symbol_file_object): Ditto.
2475 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
2476 * solib.c (update_solib_list): Use TRY/CATCH instead of
2477 catch_errors.
2478 * solist.h (struct target_so_ops) <open_symbol_file_object>:
2479 Change type.
2480 * symmisc.c (struct print_symbol_args): Remove.
2481 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
2482 (print_symbol): Change type.
2483 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
2484 and remove parameters.
2485 (catch_errors): New.
2486 (get_windows_debug_event): Adjust.
2487
2488 2017-10-09 Tom Tromey <tom@tromey.com>
2489
2490 * mi/mi-main.c (free_splay_tree): Remove.
2491 (list_available_thread_groups): Use splay_tree_up.
2492 * common/gdb_splay_tree.h: New file.
2493
2494 2017-10-09 Tom Tromey <tom@tromey.com>
2495
2496 * mi/mi-main.c (do_nothing): Remove.
2497 (list_available_thread_groups): Update.
2498
2499 2017-10-09 Pedro Alves <palves@redhat.com>
2500
2501 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
2502 reading registers when switching context.
2503
2504 2017-10-09 John Baldwin <jhb@FreeBSD.org>
2505
2506 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
2507 (fbsd_convert_siginfo): Likewise.
2508 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
2509
2510 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
2511
2512 * configure.ac (try_guile_versions): Remove guile-2.2.
2513 * configure: Regenerate.
2514
2515 2017-10-09 Tom Tromey <tom@tromey.com>
2516
2517 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
2518 (COMPILE.pre): Use $(CXX).
2519
2520 2017-10-09 Pedro Alves <palves@redhat.com>
2521
2522 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
2523 Use bool.
2524 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
2525 * cp-support.h (cp_remove_params): Now returns a
2526 gdb::unique_xmalloc_ptr.
2527 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
2528 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
2529 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
2530 returning a gdb::unique_xmalloc_ptr.
2531 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
2532 * stack.c (find_frame_funname): Adjust to cp_remove_params
2533 returning a gdb::unique_xmalloc_ptr.
2534
2535 2017-10-08 Tom Tromey <tom@tromey.com>
2536
2537 * dwarf2read.c (dwarf2_get_dwz_file): Use
2538 gdb::unique_xmalloc_ptr.
2539 (find_slot_in_mapped_hash): Likewise.
2540 (dwarf2_physname): Likewise.
2541 (create_dwo_unit_in_dwp_v1): Use std::string.
2542 (create_dwo_unit_in_dwp_v2): Likewise.
2543 (lookup_dwo_cutu): Likewise.
2544 (inherit_abstract_dies): Use std::vector.
2545 (read_array_type): Likewise.
2546 (dwarf_decode_macros): Remove unused declaration.
2547 (unsigned_int_compar): Remove.
2548 (dwarf2_build_psymtabs_hard): Use scoped_restore.
2549 (psymtabs_addrmap_cleanup): Remove.
2550
2551 2017-10-08 Tom Tromey <tom@tromey.com>
2552
2553 * frame-unwind.c (frame_unwind_try_unwinder): Update.
2554 * frame.h (frame_cleanup_after_sniffer): Declare.
2555 (frame_prepare_for_sniffer): Return void.
2556 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
2557 type of argument.
2558 (frame_prepare_for_sniffer): Return void.
2559
2560 2017-10-08 Tom Tromey <tom@tromey.com>
2561
2562 * utils.h (make_cleanup_value_free): Remove.
2563 * utils.c (do_value_free, struct cleanup): Remove.
2564 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
2565 Use gdb_value_up.
2566 * value.h (struct value_deleter): New.
2567 (gdb_value_up): New typedef.
2568
2569 2017-10-08 Tom Tromey <tom@tromey.com>
2570
2571 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
2572 (make_cleanup_free_search_symbols): Remove.
2573 (search_symbols): Return std::vector.
2574 (symbol_search::compare_search_syms): Now member of
2575 symbol_search. Change arguments.
2576 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
2577 (symtab_symbol_info, rbreak_command): Update.
2578 * symtab.h (struct symbol_search) <next>: Remove.
2579 Add constructors.
2580 (symbol_search::operator<): New function.
2581 (symbol_search::operator==): New function.
2582 (search_symbols): Remove std::vector.
2583 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
2584 (symbol_search::compare_search_syms): Declare.
2585
2586 2017-10-06 Yao Qi <yao.qi@linaro.org>
2587
2588 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
2589 arch/aarch64-insn.o.
2590 Remove one rule.
2591 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
2592
2593 2017-10-06 Yao Qi <yao.qi@linaro.org>
2594
2595 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
2596 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
2597 arch/arm-linux.o respectively.
2598 * configure.tgt: Likewise.
2599
2600 2017-10-06 Yao Qi <yao.qi@linaro.org>
2601
2602 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
2603 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
2604
2605 2017-10-06 Pedro Alves <palves@redhat.com>
2606
2607 * windows-nat.c: Include <algorithm>.
2608
2609 2017-10-06 Yao Qi <yao.qi@linaro.org>
2610
2611 * configure.tgt (i386_tobjs): New variable.
2612 (amd64_tobjs): New variable.
2613 Set $cpu_obs and $os_obs.
2614
2615 2017-10-06 Yao Qi <yao.qi@linaro.org>
2616
2617 * Makefile.in (CONFIG_SRC_SUBDIR): New.
2618 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
2619 (clean): Remove object files and dependency files.
2620 (distclean): Remove the directory.
2621 * configure.ac: Invoke AC_CONFIG_COMMANDS.
2622 * configure: Re-generated.
2623 * configure.tgt: Replace amd64.o with arch/amd64.o.
2624
2625 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
2626
2627 PR build/22188
2628 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
2629 and SETEND.
2630
2631 2017-10-05 Pedro Alves <palves@redhat.com>
2632
2633 * linux-nat.c (linux_child_follow_fork): When following the parent
2634 and detaching the child, consult the parent thread's architecture
2635 instead of the child's.
2636
2637 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2638
2639 * ax.h: Do not include "doublest.h".
2640 (union agent_val): Remove.
2641
2642 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2643
2644 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
2645 (decimal_to_string): Return std::string object.
2646 (decimal_from_string): Accept std::string object. Return bool.
2647 (decimal_from_integral, decimal_from_doublest): Remove.
2648 (decimal_from_longest): Add prototype.
2649 (decimal_from_ulongest): Likewise.
2650 (decimal_to_longest): Likewise.
2651 (decimal_from_doublest): Likewise.
2652 * dfp.c: Do not include "gdbtypes.h" or "value.h".
2653 (MAX_DECIMAL_STRING): Move here.
2654 (decimal_to_string): Return std::string object.
2655 (decimal_from_string): Accept std::string object. Return bool.
2656 (decimal_from_integral): Remove, replace by ...
2657 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
2658 (decimal_to_longest): New function.
2659 (decimal_from_floating): Remove, replace by ...
2660 (decimal_from_doublest): ... this new function.
2661 (decimal_to_doublest): Update to new decimal_to_string interface.
2662
2663 * value.c (unpack_long): Use decimal_to_longest.
2664 * valops.c (value_cast): Use decimal_from_doublest instead of
2665 decimal_from_floating. Use decimal_from_[u]longest isntead of
2666 decimal_from_integral.
2667 * valarith.c (value_args_as_decimal): Likewise.
2668 * valprint.c (print_decimal_floating): Update to new
2669 decimal_to_string interface.
2670 * printcmd.c (printf_decfloat): Likewise.
2671 * c-exp.y (parse_number): Update to new decimal_from_string interface.
2672
2673 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2674
2675 * doublest.h: Do not include "floatformat.h". Remove stale comments.
2676 * gdbtypes.c: Include "floatformat.h".
2677 * value.c: Likewise.
2678 * m68k-tdep.c: Likewise.
2679
2680 * findvar.c: Do not include "floatformat.h".
2681 * amd64-darwin-tdep.c: Likewise.
2682 * arm-linux-tdep.c: Likewise.
2683 * i386-darwin-tdep.c: Likewise.
2684 * i387-tdep.c: Likewise.
2685 * m68k-linux-tdep.c: Likewise.
2686 * mep-tdep.c: Likewise.
2687 * mips-tdep.c: Likewise.
2688 * nios2-tdep.c: Likewise.
2689 * s390-linux-tdep.c: Likewise.
2690 * sparc-obsd-tdep.c: Likewise.
2691 * sparc-tdep.c: Likewise.
2692 * sparc64-tdep.c: Likewise.
2693 * spu-tdep.c: Likewise.
2694 * tic6x-tdep.c: Likewise.
2695 * tilegx-tdep.c: Likewise.
2696 * vax-tdep.c: Likewise.
2697 * xstormy16-tdep.c: Likewise.
2698 * xtensa-tdep.c: Likewise.
2699
2700 * top.c: Do not include "doublest.h".
2701 * aarch64-tdep.c: Likewise.
2702 * alpha-tdep.c: Likewise.
2703 * arm-linux-tdep.c: Likewise.
2704 * m68k-linux-tdep.c: Likewise.
2705 * tilegx-tdep.c: Likewise.
2706 * xstormy16-tdep.c: Likewise.
2707
2708 2017-10-05 John Baldwin <jhb@FreeBSD.org>
2709
2710 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
2711 (mipsn32_fbsd_sigframe): Define.
2712 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
2713 for FreeBSD/mipsn32.
2714
2715 2017-10-05 John Baldwin <jhb@FreeBSD.org>
2716
2717 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
2718 AT_HWCAP.
2719
2720 2017-10-05 Tristan Gingold <tgingold@free.fr>
2721
2722 * MAINTAINERS (Misc): Update my email address.
2723
2724 2017-10-04 Pedro Alves <palves@redhat.com>
2725
2726 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
2727 it instead of target_gdbarch.
2728 (get_remote_state, get_remote_packet_size): Adjust
2729 get_remote_arch_state calls, passing down target_gdbarch
2730 explicitly.
2731 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
2732 'gdbarch' and use it instead of target_gdbarch.
2733 (get_memory_packet_size): Adjust get_remote_arch_state calls,
2734 passing down target_gdbarch explicitly.
2735 (struct stop_reply) <arch>: New field.
2736 (remote_parse_stop_reply): Use the stopped thread's architecture,
2737 not the current inferior's. Save the architecture in the
2738 stop_reply.
2739 (process_stop_reply): Use the stop reply's architecture.
2740 (process_g_packet, remote_fetch_registers)
2741 (remote_prepare_to_store, store_registers_using_G)
2742 (remote_store_registers): Adjust get_remote_arch_state calls,
2743 using the regcache's architecture.
2744 (remote_get_trace_status): Adjust get_remote_arch_state calls,
2745 passing down target_gdbarch explicitly.
2746 * spu-multiarch.c (spu_thread_architecture): Defer to the target
2747 beneath instead of calling target_gdbarch.
2748 * target.c (default_thread_architecture): Use the specified
2749 inferior's architecture, instead of the current inferior's
2750 architecture (via target_gdbarch).
2751
2752 2017-10-04 Pedro Alves <palves@redhat.com>
2753
2754 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
2755 case.
2756 (regcache_print): Handle !target_has_registers here instead.
2757
2758 2017-10-04 Pedro Alves <palves@redhat.com>
2759
2760 * frame.c (create_test_frame): Delete.
2761 * frame.h (create_test_frame): Delete.
2762 * gdbarch-selftests.c: Include gdbthread.h and target.h.
2763 (class regcache_test): Delete.
2764 (test_target_has_registers, test_target_has_stack)
2765 (test_target_has_memory, test_target_prepare_to_store)
2766 (test_target_store_registers): New functions.
2767 (test_target_ops): New class.
2768 (register_to_value_test): Error out if there's already a
2769 process_stratum (or higher) target pushed. Create a fuller mock
2770 environment, with mock target_ops, inferior, address space, thread
2771 and inferior_ptid.
2772 * progspace.c (struct address_space): Move to ...
2773 * progspace.h (struct address_space): ... here.
2774 * regcache.h (regcache::~regcache, regcache::raw_write)
2775 [GDB_SELF_TEST]: No longer virtual.
2776
2777 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
2778
2779 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
2780
2781 2017-10-04 Pedro Alves <palves@redhat.com>
2782
2783 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
2784 out of 'between TRY and CATCH'.
2785
2786 2017-10-04 Pedro Alves <palves@redhat.com>
2787
2788 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
2789 * common/common-exceptions.h (TRY): Open an outermost scope.
2790 Expand intro comment.
2791 (CATCH): Reindent.
2792 (END_CATCH): Close the outermost scope.
2793 * completer.c (complete_line_internal): Add missing END_CATCH.
2794
2795 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2796
2797 * NEWS (Changes since GDB 8.0): Add entry about new
2798 'set-cwd-on-gdbserver' feature.
2799 (New remote packets): Add entry for QSetWorkingDir.
2800 * common/common-inferior.h (set_inferior_cwd): New prototype.
2801 * infcmd.c (set_inferior_cwd): Remove "static".
2802 (show_cwd_command): Expand text to include remote debugging.
2803 * remote.c: Add PACKET_QSetWorkingDir.
2804 (remote_protocol_features) <QSetWorkingDir>: New entry for
2805 PACKET_QSetWorkingDir.
2806 (extended_remote_set_inferior_cwd): New function.
2807 (extended_remote_create_inferior): Call
2808 "extended_remote_set_inferior_cwd".
2809 (_initialize_remote): Call "add_packet_config_cmd" for
2810 QSetWorkingDir.
2811
2812 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2813
2814 * NEWS (New commands): Mention "set/show cwd".
2815 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
2816 "cd" command's help text.
2817 * common/common-inferior.h (get_inferior_cwd): New prototype.
2818 * infcmd.c (inferior_cwd_scratch): New global variable.
2819 (set_inferior_cwd): New function.
2820 (get_inferior_cwd): Likewise.
2821 (set_cwd_command): Likewise.
2822 (show_cwd_command): Likewise.
2823 (_initialize_infcmd): Add "set/show cwd" commands.
2824 * inferior.h (class inferior) <cwd>: New field.
2825 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
2826 (fork_inferior): Change inferior's cwd before its execution.
2827 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
2828 to CreateProcess.
2829
2830 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2831
2832 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
2833 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
2834 (COMMON_OBS): Add gdb_tilde_expand.o.
2835 * common/gdb_tilde_expand.c: New file.
2836 * common/gdb_tilde_expand.h: Likewise.
2837
2838 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
2839
2840 * gdbarch.sh (objfile): Remove duplicate declaration.
2841 * gdbarch.h: Regenerate.
2842
2843 2017-10-03 Tom Tromey <tom@tromey.com>
2844
2845 * utils.c (internal_vproblem): Use string_vprintf.
2846
2847 2017-10-03 Tom Tromey <tom@tromey.com>
2848
2849 * printcmd.c (info_symbol_command): Use std::string.
2850
2851 2017-10-03 Tom Tromey <tom@tromey.com>
2852
2853 * top.c (gdb_safe_append_history): Use std::string.
2854
2855 2017-10-03 Tom Tromey <tom@tromey.com>
2856
2857 * event-top.c (stdin_event_handler): Update.
2858 * main.c (captured_main_1): Update.
2859 * top.h (make_delete_ui_cleanup): Remove.
2860 (struct ui): Add constructor and destructor.
2861 (new_ui, delete_ui): Remove.
2862 * top.c (make_delete_ui_cleanup): Remove.
2863 (new_ui_command): Use std::unique_ptr.
2864 (delete_ui_cleanup): Remove.
2865 (ui::ui): Rename from new_ui. Update.
2866 (free_ui): Remove.
2867 (ui::~ui): Rename from delete_ui. Update.
2868
2869 2017-10-03 Tom Tromey <tom@tromey.com>
2870
2871 * symfile.c (load_progress): Use gdb::byte_vector.
2872
2873 2017-10-03 Tom Tromey <tom@tromey.com>
2874
2875 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
2876 declaration.
2877 * printcmd.c (x_command): Remove unused declaration.
2878 * symfile.c (symbol_file_command): Remove unused declaration.
2879
2880 2017-10-03 Tom Tromey <tom@tromey.com>
2881
2882 * utils.c (internal_vproblem): Use std::string.
2883 (defaulted_query): Likewise.
2884
2885 2017-10-03 Tom Tromey <tom@tromey.com>
2886
2887 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
2888 * top.c (execute_command_to_string): Update.
2889 * utils.c (make_cleanup_restore_page_info): Remove.
2890 (do_restore_page_info_cleanup): Remove.
2891 (set_batch_flag_and_restore_page_info):
2892 New.
2893 (make_cleanup_restore_page_info): Remove.
2894 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2895 (~set_batch_flag_and_restore_page_info): New
2896 (make_cleanup_restore_uinteger): Remove.
2897 (make_cleanup_restore_integer): Remove.
2898 (struct restore_integer_closure): Remove.
2899 (restore_integer): Remove.
2900 * utils.h (struct set_batch_flag_and_restore_page_info): New
2901 class.
2902 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2903 (make_cleanup_restore_page_info): Remove.
2904 (make_cleanup_restore_uinteger) Remove.
2905 (make_cleanup_restore_integer) Remove.
2906
2907 2017-10-03 Tom Tromey <tom@tromey.com>
2908
2909 * record-full.h (record_full_gdb_operation_disable_set): Return
2910 scoped_restore_tmpl<int>.
2911 * infrun.c (adjust_pc_after_break): Update.
2912 (handle_signal_stop): Update.
2913 * record-full.c (record_full_gdb_operation_disable_set): Return
2914 scoped_restore_tmpl<int>.
2915 (record_full_wait_1, record_full_insert_breakpoint)
2916 (record_full_remove_breakpoint, record_full_save)
2917 (record_full_goto_insn): Update.
2918
2919 2017-10-02 Tom Tromey <tom@tromey.com>
2920
2921 PR rust/22236:
2922 * rust-lang.c (rust_val_print_str): New function.
2923 (val_print_struct): Call it.
2924 (rust_subscript): Preserve name of slice type.
2925
2926 2017-10-02 Tom Tromey <tom@tromey.com>
2927
2928 * rust-lang.c (rust_subscript): Handle slices in
2929 EVAL_AVOID_SIDE_EFFECTS case.
2930
2931 2017-10-02 Tom Tromey <tom@tromey.com>
2932
2933 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
2934
2935 2017-10-02 Tom Tromey <tom@tromey.com>
2936
2937 * rust-lang.h (rust_slice_type): Add "extern".
2938
2939 2017-10-02 Tom Tromey <tom@tromey.com>
2940 Pedro Alves <palves@redhat.com>
2941
2942 * ada-lang.h (ada_exc_info::operator<): Make const.
2943 (ada_exc_info::operator==): Make const.
2944 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2945 Make const.
2946
2947 2017-09-29 Tom Tromey <tom@tromey.com>
2948
2949 * target.c (read_whatever_is_readable): Change type of "result".
2950 Update.
2951 (free_memory_read_result_vector): Remove.
2952 (read_memory_robust): Change return type. Update.
2953 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2954 bin2hex, std::string.
2955 * target.h (memory_read_result_s): Remove typedef.
2956 (free_memory_read_result_vector): Remove.
2957 (read_memory_robust): Return std::vector.
2958
2959 2017-09-29 Tom Tromey <tom@tromey.com>
2960
2961 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2962
2963 2017-09-29 Tom Tromey <tom@tromey.com>
2964
2965 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2966 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2967 operator< and operator==.
2968 (ada_exceptions_list): Return a std::vector.
2969 * ada-lang.c (ada_exc_info::operator<): Rename from
2970 compare_ada_exception_info.
2971 (ada_exc_info::operator==): New.
2972 (sort_remove_dups_ada_exceptions_list): Change type of
2973 "exceptions".
2974 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2975 (ada_add_global_exceptions): Likewise.
2976 (ada_exceptions_list_1): Return a std::vector.
2977 (ada_exceptions_list): Likewise.
2978
2979 2017-09-29 Tom Tromey <tom@tromey.com>
2980
2981 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2982 'std::set *'.
2983 (print_one_inferior): Update.
2984 (free_vector_of_ints): Remove.
2985 (list_available_thread_groups): Change "ids" to std::set.
2986 (mi_cmd_list_thread_groups): Update.
2987 (struct collect_cores_data) <core>: Now a std::set.
2988 (collect_cores): Update.
2989 (unique): Remove.
2990 (print_one_inferior): Update.
2991
2992 2017-09-29 Tom Tromey <tom@tromey.com>
2993
2994 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2995 (mi_execute_async_cli_command): Likewise.
2996 (mi_cmd_trace_frame_collected): Use field_fmt.
2997
2998 2017-09-29 Tom Tromey <tom@tromey.com>
2999
3000 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
3001 gdb::byte_vector.
3002
3003 2017-09-29 Tom Tromey <tom@tromey.com>
3004
3005 * mi/mi-parse.c (mi_parse): Remove unused declaration.
3006
3007 2017-09-29 Tom Tromey <tom@tromey.com>
3008
3009 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
3010
3011 2017-09-29 Tom Tromey <tom@tromey.com>
3012
3013 * varobj.h (varobj_gen_name): Return std::string.
3014 * varobj.c (varobj_gen_name): Return std::string.
3015 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
3016 (mi_cmd_var_delete): Don't copy "name".
3017
3018 2017-09-29 Tom Tromey <tom@tromey.com>
3019
3020 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
3021 (mi_cmd_break_insert_1): Update.
3022
3023 2017-09-29 Tom Tromey <tom@tromey.com>
3024
3025 * target.h (make_scoped_defer_target_commit_resume): Update.
3026 * target.c (make_scoped_defer_target_commit_resume): Rename from
3027 make_cleanup_defer_target_commit_resume. Return a
3028 scoped_restore.
3029 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
3030
3031 2017-09-29 Tom Tromey <tom@tromey.com>
3032
3033 * main.c (captured_main_1): Remove unused declaration.
3034 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
3035
3036 2017-09-29 Tom Tromey <tom@tromey.com>
3037
3038 * symtab.c (search_symbols): Remove unused outer cleanup.
3039 (make_source_files_completion_list): Remove unused declaration.
3040
3041 2017-09-29 Tom Tromey <tom@tromey.com>
3042
3043 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
3044
3045 2017-09-29 Tom Tromey <tom@tromey.com>
3046
3047 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
3048 gdb::byte_vector.
3049
3050 2017-09-29 Tom Tromey <tom@tromey.com>
3051
3052 * complaints.c (vcomplaint): Use std::string.
3053
3054 2017-09-29 Tom Tromey <tom@tromey.com>
3055
3056 * tracepoint.c (trace_variable_command): Use std::string.
3057 (encode_actions_1): Remove unused declarations.
3058 (create_tsv_from_upload): Use std::string.
3059
3060 2017-09-29 Tom Tromey <tom@tromey.com>
3061
3062 * cp-support.c (gdb_demangle): Use std::string.
3063
3064 2017-09-29 Tom Tromey <tom@tromey.com>
3065
3066 * stack.c (parse_frame_specification): Use std::string
3067 (info_frame_command): Use gdb::unique_xmalloc_ptr.
3068
3069 2017-09-29 Tom Tromey <tom@tromey.com>
3070
3071 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
3072
3073 2017-09-29 Tom Tromey <tom@tromey.com>
3074
3075 * utils.c (vfprintf_maybe_filtered): Use std::string.
3076 (vfprintf_unfiltered): Likewise.
3077
3078 2017-09-29 Tom Tromey <tom@tromey.com>
3079
3080 * event-top.c (top_level_prompt): Return std::string.
3081 (display_gdb_prompt): Update.
3082
3083 2017-09-29 Tom Tromey <tom@tromey.com>
3084
3085 * unittests/common-utils-selftests.c (format): New function.
3086 (string_vprintf_tests): New function.
3087 (_initialize_common_utils_selftests): Register new tests.
3088 * common/common-utils.c (string_vprintf): New function.
3089 * common/common-utils.h (string_vprintf): Declare.
3090
3091 2017-09-29 Pedro Alves <palves@redhat.com>
3092
3093 * common/rsp-low.c (unpack_varlen_hex): Constify.
3094 * common/rsp-low.h (unpack_varlen_hex): Constify.
3095 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3096 Constify.
3097 * remote.c (remote_set_permissions, read_ptid)
3098 (remote_current_thread, remote_get_threads_with_qthreadinfo)
3099 (remote_static_tracepoint_marker_at)
3100 (remote_static_tracepoint_markers_by_strid)
3101 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
3102 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
3103 (parse_tracepoint_definition, parse_tsv_definition)
3104 (parse_static_tracepoint_marker_definition): Constify.
3105 * tracepoint.h (parse_static_tracepoint_marker_definition)
3106 (parse_trace_status, parse_tracepoint_status)
3107 (parse_tracepoint_definition, parse_tsv_definition): Constify.
3108
3109 2017-09-29 Pedro Alves <palves@redhat.com>
3110
3111 * remote.c (target_buf, target_buf_size): Delete.
3112 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
3113 Use the connection's packet buffer instead.
3114 All callers adjusted.
3115 (_initialize_remote): Remove references to target_buf and
3116 target_buf_size.
3117
3118 2017-09-28 Pedro Alves <palves@redhat.com>
3119
3120 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3121 unittests/common-utils-selftests.c.
3122 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
3123 (COMMON_OBS): Remove utils-selftests.o.
3124 * utils-selftests.c: Move to ...
3125 * unittests/common-utils-selftests.c: ... here and rename self
3126 test to "string_printf".
3127
3128 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
3129
3130 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
3131 having NULL cus or tus.
3132
3133 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3134
3135 * arm-tdep.c: (convert_from_extended): Remove.
3136 (convert_to_extended): Likewise.
3137 (arm_extract_return_value): Use convert_typed_floating.
3138 (arm_store_return_value): Likewise.
3139
3140 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
3141 * sh-tdep.c: Do not include "floatformat.h".
3142 (sh_littlebyte_bigword_type): New function.
3143 (sh_register_convert_to_virtual): Use convert_typed_floating.
3144 (sh_register_convert_to_raw): Likewise.
3145 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
3146 (sh64_littlebyte_bigword_type): New function.
3147 (sh64_extract_return_value): Use convert_typed_floating.
3148 (sh64_register_convert_to_virtual): Likewise.
3149 (sh64_register_convert_to_raw): Likewise.
3150
3151 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3152
3153 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
3154 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
3155
3156 * gdbtypes.h (union type_specific): Make field floatformat hold
3157 just a single struct floatformat, not an array.
3158 (floatformat_from_type): Move here.
3159 * gdbtypes.c (floatformat_from_type): Move here. Update to
3160 changed TYPE_FLOATFORMAT definition.
3161 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
3162 (recursive_dump_type): Likewise.
3163 (init_float_type): Install correct floatformat for byte order.
3164 (arch_float_type): Likewise.
3165
3166 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3167
3168 * gdbtypes.c (init_type): Change incoming argument from
3169 length-in-bytes to length-in-bits. Assert length is a
3170 multiple of TARGET_CHAR_BITS.
3171 (arch_type, arch_flags_type): Likewise.
3172 (init_integer_type): Update call to init_type.
3173 (init_character_type): Likewise.
3174 (init_boolean_type): Likewise.
3175 (init_float_type): Likewise.
3176 (init_decfloat_type): Likewise.
3177 (init_complex_type): Likewise.
3178 (init_pointer_type): Likewise.
3179 (objfile_type): Likewise.
3180 (arch_integer_type): Update call to arch_type.
3181 (arch_character_type): Likewise.
3182 (arch_boolean_type): Likewise.
3183 (arch_float_type): Likewise.
3184 (arch_decfloat_type): Likewise.
3185 (arch_complex_type): Likewise.
3186 (arch_pointer_type): Likewise.
3187 (gdbtypes_post_init): Likewise.
3188
3189 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
3190 (read_base_type): Likewise.
3191 * mdebugread.c (basic_type): Likewise.
3192 * stabsread.c (dbx_init_float_type): Likewise.
3193 (rs6000_builtin_type): Likewise.
3194 (read_range_type): Likewise. Also, fix call to init_integer_type
3195 with erroneous length argument.
3196
3197 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
3198 * d-lang.c (build_d_types): Likewise.
3199 * f-lang.c (build_fortran_types): Likewise.
3200 * go-lang.c (build_go_types): Likewise.
3201 * opencl-lang.c (build_opencl_types): Likewise.
3202 * jit.c (finalize_symtab): Likewise.
3203 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3204 (build_std_type_info_type): Likewise.
3205 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
3206 update call to arch_flags_type.
3207
3208 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
3209 arch_type.
3210 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
3211 * windows-tdep.c (windows_get_tlb_type): Likewise.
3212
3213 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
3214 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
3215 * m32c-tdep.c (make_types): Likewise.
3216 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3217 (rl78_psw_type): Update call to arch_flags_type.
3218 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
3219 * rx-tdep.c (rx_psw_type): Likewise.
3220 (rx_fpsw_type): Likewise.
3221 * sparc-tdep.c (sparc_psr_type): Likewise.
3222 (sparc_fsr_type): Likewise.
3223 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
3224 (sparc64_ccr_type): Likewise.
3225 (sparc64_fsr_type): Likewise.
3226 (sparc64_fprs_type): Likewise.
3227
3228 2017-09-27 Tom Tromey <tom@tromey.com>
3229
3230 * findcmd.c (find_command): Constify.
3231
3232 2017-09-27 Tom Tromey <tom@tromey.com>
3233
3234 * ada-tasks.c (task_command_1, task_command): Constify.
3235
3236 2017-09-27 Tom Tromey <tom@tromey.com>
3237
3238 * symtab.c (maintenance_print_symbol_cache)
3239 (maintenance_flush_symbol_cache)
3240 (maintenance_print_symbol_cache_statistics): Constify.
3241
3242 2017-09-27 Tom Tromey <tom@tromey.com>
3243
3244 * inferior.c (detach_inferior_command, kill_inferior_command)
3245 (inferior_command): Constify.
3246
3247 2017-09-27 Tom Tromey <tom@tromey.com>
3248
3249 * regcache.c (regcache_print, maintenance_print_registers)
3250 (maintenance_print_raw_registers)
3251 (maintenance_print_cooked_registers)
3252 (maintenance_print_register_groups)
3253 (maintenance_print_remote_registers): Constify.
3254
3255 2017-09-27 Tom Tromey <tom@tromey.com>
3256
3257 * printcmd.c (map_display_numbers, undisplay_command)
3258 (enable_disable_display_command, enable_display_command)
3259 (disable_display_command): Constify.
3260
3261 2017-09-27 Tom Tromey <tom@tromey.com>
3262
3263 * breakpoint.h (delete_command): Don't declare.
3264 * breakpoint.c (delete_command, enable_once_command)
3265 (enable_count_command, enable_delete_command, breakpoint_1)
3266 (maintenance_info_breakpoints, stopin_command, stopat_command)
3267 (delete_command, delete_trace_command, save_breakpoints)
3268 (save_breakpoints_command, save_tracepoints_command): Constify.
3269
3270 2017-09-27 Tom Tromey <tom@tromey.com>
3271
3272 * macrocmd.c (macro_expand_command, macro_expand_once_command)
3273 (skip_ws, extract_identifier, macro_define_command)
3274 (macro_undef_command, macro_list_command): Constify.
3275
3276 2017-09-27 Tom Tromey <tom@tromey.com>
3277
3278 * infcmd.c (environment_info, set_environment_command)
3279 (unset_environment_command, path_info, info_proc_cmd_1)
3280 (info_proc_cmd_mappings, info_proc_cmd_stat)
3281 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
3282 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
3283
3284 2017-09-27 Tom Tromey <tom@tromey.com>
3285
3286 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
3287 Constify.
3288
3289 2017-09-27 Tom Tromey <tom@tromey.com>
3290
3291 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
3292
3293 2017-09-27 Tom Tromey <tom@tromey.com>
3294
3295 * demangle.c (demangle_command): Constify.
3296
3297 2017-09-27 Tom Tromey <tom@tromey.com>
3298
3299 * progspace.c (maintenance_info_program_spaces_command):
3300 Constify.
3301
3302 2017-09-27 Tom Tromey <tom@tromey.com>
3303
3304 * compile/compile.c (check_raw_argument, compile_file_command)
3305 (compile_code_command, compile_print_command): Constify.
3306
3307 2017-09-27 Tom Tromey <tom@tromey.com>
3308
3309 * reggroups.c (maintenance_print_reggroups): Constify.
3310
3311 2017-09-27 Tom Tromey <tom@tromey.com>
3312
3313 * dwarf2read.c (save_gdb_index_command): Constify.
3314
3315 2017-09-27 Tom Tromey <tom@tromey.com>
3316
3317 * stap-probe.c (info_probes_stap_command): Constify.
3318
3319 2017-09-27 Tom Tromey <tom@tromey.com>
3320
3321 * fork-child.c (unset_exec_wrapper_command): Constify.
3322
3323 2017-09-27 Tom Tromey <tom@tromey.com>
3324
3325 * btrace.c (get_uint, get_context_size, no_chunk)
3326 (maint_btrace_packet_history_cmd)
3327 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
3328 (maint_info_btrace_cmd): Constify.
3329
3330 2017-09-27 Tom Tromey <tom@tromey.com>
3331
3332 * reverse.c (delete_bookmark_command): Constify.
3333
3334 2017-09-27 Tom Tromey <tom@tromey.com>
3335
3336 * remote.c (set_memory_packet_size)
3337 (set_memory_write_packet_size, show_memory_write_packet_size)
3338 (set_memory_read_packet_size, show_memory_read_packet_size)
3339 (compare_sections_command, packet_command, remote_put_command)
3340 (remote_get_command, remote_delete_command): Constify.
3341
3342 2017-09-27 Tom Tromey <tom@tromey.com>
3343
3344 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
3345 (set_mipsfpu_double_command, set_mipsfpu_none_command)
3346 (set_mipsfpu_auto_command): Constify.
3347
3348 2017-09-27 Tom Tromey <tom@tromey.com>
3349
3350 * cli/cli-cmds.h (cd_command): Constify.
3351 * cli/cli-cmds.c (cd_command): Constify.
3352
3353 2017-09-27 Tom Tromey <tom@tromey.com>
3354
3355 * thread.c (thread_name_command, thread_find_command): Constify.
3356
3357 2017-09-27 Tom Tromey <tom@tromey.com>
3358
3359 * probe.c (enable_probes_command, disable_probes_command):
3360 Constify.
3361
3362 2017-09-27 Tom Tromey <tom@tromey.com>
3363
3364 * symfile.c (symbol_file_command): Constify.
3365 * gdbcore.h (deprecated_file_changed_hook): Constify.
3366 * exec.c (deprecated_file_changed_hook, exec_file_command)
3367 (file_command): Constify.
3368 * defs.h (symbol_file_command): Constify.
3369
3370 2017-09-27 Tom Tromey <tom@tromey.com>
3371
3372 * remote-fileio.c (set_system_call_allowed)
3373 (show_system_call_allowed): Constify.
3374
3375 2017-09-27 Tom Tromey <tom@tromey.com>
3376
3377 * tracepoint.c (delete_trace_variable_command)
3378 (tfind_end_command, tfind_start_command, tfind_pc_command)
3379 (tfind_tracepoint_command, tfind_line_command)
3380 (tfind_range_command, tfind_outside_command): Constify.
3381
3382 2017-09-27 Tom Tromey <tom@tromey.com>
3383
3384 * ax-gdb.c (maint_agent_printf_command, agent_command)
3385 (agent_eval_command): Constify.
3386
3387 2017-09-27 Tom Tromey <tom@tromey.com>
3388
3389 * tracepoint.c (info_scope_command): Constify.
3390 * python/python.c (gdbpy_decode_line): Constify.
3391 * python/py-breakpoint.c (bppy_init): Constify.
3392 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
3393 * location.h: (new_linespec_location)
3394 (string_to_event_location_basic, string_to_event_location):
3395 Constify.
3396 * location.c (new_linespec_location)
3397 (string_to_event_location_basic, string_to_event_location):
3398 Constify.
3399 * linespec.h (decode_line_with_current_source)
3400 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
3401 * linespec.c (linespec_lex_to_end)
3402 (decode_line_with_current_source)
3403 (decode_line_with_last_displayed): Constify.
3404 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
3405 Constify.
3406 * cli/cli-cmds.c (edit_command, list_command): Constify.
3407 * breakpoint.h (until_break_command, watch_command_wrapper)
3408 (awatch_command_wrapper, rwatch_command_wrapper)
3409 (init_ada_exception_breakpoint): Constify.
3410 * breakpoint.c (break_command_1, dprintf_command)
3411 (break_range_command, watch_command_wrapper)
3412 (rwatch_command_wrapper, awatch_command_wrapper)
3413 (until_break_command, init_ada_exception_breakpoint)
3414 (strace_marker_create_sals_from_location, trace_command)
3415 (ftrace_command, strace_command, struct tracepoint): Constify.
3416 * ax-gdb.c (agent_command_1): Constify.
3417 * ada-lang.c (ada_exception_sal): Constify.
3418
3419 2017-09-27 Tom Tromey <tom@tromey.com>
3420
3421 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
3422 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
3423 (get_context_size, no_chunk, get_insn_history_modifiers)
3424 (cmd_record_insn_history, get_call_history_modifiers)
3425 (cmd_record_call_history): Constify.
3426
3427 2017-09-27 Tom Tromey <tom@tromey.com>
3428
3429 * source.c (show_substitute_path_command)
3430 (unset_substitute_path_command, set_substitute_path_command):
3431 Constify.
3432
3433 2017-09-27 Tom Tromey <tom@tromey.com>
3434
3435 * typeprint.c (maintenance_print_type): Constify.
3436 * maint.c (maintenance_dump_me, maintenance_demangle)
3437 (maintenance_time_display, maintenance_info_sections)
3438 (maintenance_print_statistics, maintenance_deprecate)
3439 (maintenance_undeprecate): Constify.
3440 (maintenance_do_deprecate): Constify. Use std::string.
3441 (maintenance_selftest): Constify.
3442 * gdbtypes.h (maintenance_print_type): Constify.
3443
3444 2017-09-27 Tom Tromey <tom@tromey.com>
3445
3446 * hppa-tdep.c (unwind_command): Constify.
3447
3448 2017-09-27 Tom Tromey <tom@tromey.com>
3449
3450 * target-descriptions.c (unset_tdesc_filename_cmd)
3451 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
3452 Constify.
3453
3454 2017-09-27 Tom Tromey <tom@tromey.com>
3455
3456 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
3457
3458 2017-09-27 Tom Tromey <tom@tromey.com>
3459
3460 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
3461
3462 2017-09-27 Tom Tromey <tom@tromey.com>
3463
3464 * tui/tui-regs.c (tui_reg_command): Constify.
3465
3466 2017-09-27 Tom Tromey <tom@tromey.com>
3467
3468 * skip.c (skip_file_command, skip_function_command)
3469 (skip_enable_command, skip_disable_command, skip_delete_command):
3470 Constify.
3471
3472 2017-09-27 Tom Tromey <tom@tromey.com>
3473
3474 * record-btrace.c (cmd_record_btrace_bts_start)
3475 (cmd_record_btrace_pt_start): Constify.
3476
3477 2017-09-27 Tom Tromey <tom@tromey.com>
3478
3479 * symmisc.c (maintenance_print_symbols)
3480 (maintenance_print_msymbols, maintenance_print_objfiles)
3481 (maintenance_info_symtabs, maintenance_check_symtabs)
3482 (maintenance_expand_symtabs, maintenance_info_line_tables):
3483 Constify.
3484
3485 2017-09-27 Tom Tromey <tom@tromey.com>
3486
3487 * top.c (new_ui_command): Constify.
3488
3489 2017-09-27 Tom Tromey <tom@tromey.com>
3490
3491 * symfile.c (add_symbol_file_command)
3492 (remove_symbol_file_command, list_overlays_command)
3493 (map_overlay_command, unmap_overlay_command)
3494 (overlay_auto_command, overlay_manual_command)
3495 (overlay_off_command, overlay_load_command): Constify.
3496
3497 2017-09-27 Tom Tromey <tom@tromey.com>
3498
3499 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3500 (info_spu_mailbox_command, info_spu_dma_command)
3501 (info_spu_proxydma_command): Constify.
3502
3503 2017-09-27 Tom Tromey <tom@tromey.com>
3504
3505 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
3506
3507 2017-09-27 Tom Tromey <tom@tromey.com>
3508
3509 * cli/cli-script.c (user_defined_command): Constify.
3510
3511 2017-09-27 Tom Tromey <tom@tromey.com>
3512
3513 * cli/cli-dump.c (dump_memory_command, dump_value_command)
3514 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
3515 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
3516 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
3517 (dump_binary_value, append_binary_memory, append_binary_value):
3518 Constify.
3519 (struct dump_context) <func>: Constify.
3520 (add_dump_command): Update.
3521
3522 2017-09-27 Tom Tromey <tom@tromey.com>
3523
3524 * cli/cli-cmds.c (show_version, show_configuration)
3525 (source_command, show_user): Constify.
3526
3527 2017-09-27 Tom Tromey <tom@tromey.com>
3528
3529 * target.c (maintenance_print_target_stack): Constify.
3530
3531 2017-09-27 Tom Tromey <tom@tromey.com>
3532
3533 * interps.c (interpreter_exec_cmd): Constify.
3534
3535 2017-09-27 Tom Tromey <tom@tromey.com>
3536
3537 * record-full.c (cmd_record_full_restore): Constify.
3538
3539 2017-09-27 Tom Tromey <tom@tromey.com>
3540
3541 * memattr.c (enable_mem_command, disable_mem_command)
3542 (delete_mem_command): Constify.
3543
3544 2017-09-27 Tom Tromey <tom@tromey.com>
3545
3546 * value.c (show_convenience): Constify.
3547
3548 2017-09-27 Tom Tromey <tom@tromey.com>
3549
3550 * gdbcore.h (core_file_command): Update.
3551 * corefile.c (core_file_command): Constify.
3552
3553 2017-09-27 Tom Tromey <tom@tromey.com>
3554
3555 * user-regs.c (maintenance_print_user_registers): Constify.
3556
3557 2017-09-27 Tom Tromey <tom@tromey.com>
3558
3559 * cp-namespace.c (maintenance_cplus_namespace): Constify.
3560
3561 2017-09-27 Tom Tromey <tom@tromey.com>
3562
3563 * cp-support.c (first_component_command): Constify.
3564
3565 2017-09-27 Tom Tromey <tom@tromey.com>
3566
3567 * psymtab.c (maintenance_print_psymbols)
3568 (maintenance_info_psymtabs, maintenance_check_psymtabs):
3569 Constify.
3570
3571 2017-09-27 Tom Tromey <tom@tromey.com>
3572
3573 * windows-tdep.c (display_tib): Constify.
3574
3575 2017-09-27 Tom Tromey <tom@tromey.com>
3576
3577 * linux-fork.c (delete_checkpoint_command)
3578 (detach_checkpoint_command): Constify.
3579
3580 2017-09-27 Tom Tromey <tom@tromey.com>
3581
3582 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
3583
3584 2017-09-27 Tom Tromey <tom@tromey.com>
3585
3586 * arc-tdep.c (dump_arc_instruction_command): Constify.
3587
3588 2017-09-27 Tom Tromey <tom@tromey.com>
3589
3590 * valprint.c (set_radix, show_radix): Constify.
3591
3592 2017-09-27 Tom Tromey <tom@tromey.com>
3593
3594 * dtrace-probe.c (info_probes_dtrace_command): Constify.
3595
3596 2017-09-27 Tom Tromey <tom@tromey.com>
3597
3598 * command.h (not_just_help_class_command): Update.
3599 * cli/cli-decode.h (not_just_help_class_command): Update.
3600 * cli/cli-decode.c (not_just_help_class_command): Constify.
3601
3602 2017-09-27 Tom Tromey <tom@tromey.com>
3603
3604 * gdb_bfd.c (maintenance_info_bfds): Constify.
3605
3606 2017-09-27 Tom Tromey <tom@tromey.com>
3607
3608 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
3609 overloads.
3610 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
3611 (do_const_cfunc): New function.
3612 (cmd_cfunc_eq): New overload.
3613 (cli_user_command_p): Check do_const_cfunc.
3614 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
3615 const_cfunc.
3616 * command.h (add_cmd): Add const overload and no-function
3617 overload.
3618 (set_cmd_cfunc): Add const overload.
3619 (cmd_const_cfunc_ftype): Declare.
3620 (cmd_cfunc_eq): Add const overload.
3621 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
3622 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
3623 overload.
3624
3625 2017-09-27 Tom Tromey <tom@tromey.com>
3626
3627 * macroexp.c (get_next_token_for_substitution): New function.
3628 (substitute_args): Call it. Check for __VA_OPT__.
3629
3630 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3631 Pedro Alves <palves@redhat.com>
3632
3633 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
3634 producer_is_icc_lt_14.
3635 (producer_is_icc_lt_14): New function.
3636 (check_producer): Add code for checking version of ICC.
3637 (producer_is_icc): Move to producer.c.
3638 (read_structure_type): Restrict ICC workaround to ICC<14.
3639 * producer.c: Include selftest.h.
3640 (producer_is_icc, producer_parsing_tests, _initialize_producer):
3641 New functions.
3642 * producer.h (producer_is_icc): New declaration.
3643
3644 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3645
3646 * Makefile.in (SFILES): Add producer.c.
3647 (COMMON_OBS): Add producer.o
3648 * amd64-tdep.c (producer.h): Add new include.
3649 * dwarf2read.c (producer.h): Add new include.
3650 * producer.c: New file.
3651 * producer.h: New file.
3652 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
3653 producer.c.
3654 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
3655 producer.h.
3656
3657 2017-09-26 Matthias Klose <doko@ubuntu.com>
3658
3659 * configure.ac: Search ncursesw before ncurses.
3660 Check ncursesw/ncurses.h before ncurses/ncurses.h.
3661 * gdb_curses.h: Include <ncursesw/ncurses.h>
3662 * config.in, configure: Regenerate.
3663
3664 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3665
3666 PR gdb/22185
3667 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
3668 obsolete.
3669 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
3670 Remove i386sol2 support.
3671 * configure.nat <i386sol2>: Remove.
3672 <sol2-64>: Fold into ...
3673 <sol2>: ... this.
3674 Move common settings to default section.
3675 Add sol-thread.o.
3676 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
3677 x86_64-*-solaris2.1[0-9]*>: Rename to ...
3678 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
3679 <i[34567]86-*-solaris*>: Remove.
3680 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
3681
3682 * configure.ac: Remove wctype in libw check.
3683 (_MSE_INT_H): Don't define on Solaris 7-9.
3684 <solaris*>: Remove libthread_db.so.1 check.
3685 * configure: Regenerate.
3686 * config.in: Regenerate.
3687
3688 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
3689 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
3690 (gdb_ps_size_t): Remove.
3691 Use base types in users.
3692 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
3693
3694 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
3695
3696 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3697
3698 PR build/22206
3699 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
3700 (adi_is_addr_mapped): Likewise.
3701 (PSR_ICC): Don't redefine.
3702 (PSR_IMPL): Likewise.
3703
3704 2017-09-25 Tom Tromey <tom@tromey.com>
3705
3706 * regcache.c (regcache::dump): Use string_printf.
3707
3708 2017-09-25 Tom Tromey <tom@tromey.com>
3709
3710 * regcache.c (class regcache_invalidator): New.
3711 (struct register_to_invalidate): Remove.
3712 (make_cleanup_regcache_invalidate): Remove.
3713 (regcache::raw_write): Use regcache_invalidator.
3714
3715 2017-09-25 Tom Tromey <tom@tromey.com>
3716
3717 * spu-tdep.c (spu2ppu_sniffer): Update.
3718 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
3719 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
3720 Remove.
3721 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
3722 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
3723 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
3724 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
3725 (frame_pop): Update.
3726
3727 2017-09-25 Tom Tromey <tom@tromey.com>
3728
3729 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
3730 * regcache.h (regcache_xfree): Don't declare.
3731 * regcache.c (regcache_xfree): Remove.
3732 (do_regcache_xfree): Use delete.
3733 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
3734 * linux-fork.c (free_fork): Use delete.
3735 (fork_save_infrun_state): Likewise.
3736 * jit.c (jit_dealloc_cache): Use delete.
3737 * infrun.c (discard_infcall_suspend_state): Use delete.
3738
3739 2017-09-25 Tom Tromey <tom@tromey.com>
3740
3741 * regcache.h (regcache_xmalloc): Don't declare.
3742 (regcache_raw_set_cached_value): Update comment.
3743 * regcache.c (regcache_xmalloc): Remove.
3744 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
3745 * jit.c (jit_frame_sniffer): Use new.
3746 * frame.c (frame_save_as_regcache): Use new.
3747
3748 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3749
3750 * NEWS: Advertise support for guarded-storage registers on IBM z.
3751
3752 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3753
3754 * s390-linux-nat.c (have_regset_gs): New static variable.
3755 (s390_linux_fetch_inferior_registers): Handle guarded-storage
3756 control block and guarded-storage broadcast control regsets.
3757 (s390_read_description): Detect whether the target has
3758 guarded-storage support, return appropriate tdesc.
3759 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
3760 (features/s390x-gs-linux64.c): Likewise.
3761 (struct gdbarch_tdep) <have_gs>: New field.
3762 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
3763 (s390_gsbc_regset): New variables.
3764 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
3765 and s390_gsbc_regset, if applicable.
3766 (s390_core_read_description): Check whether core file was from a
3767 target with guarded-storage support; include appropriate regsets.
3768 (s390_gdbarch_init): Add registers for guarded-storage support.
3769 (_initialize_s390_tdep): Initialize new target descriptions that
3770 include registers for guarded-storage support.
3771 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
3772 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
3773 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
3774 (S390_NUM_REGS): Adjust macro definition.
3775 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
3776 (tdesc_s390x_gs_linux64): New declarations.
3777
3778 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3779
3780 * features/s390-gs-linux64.xml: New file.
3781 * features/s390-gs.xml: New file.
3782 * features/s390-gsbc.xml: New file.
3783 * features/s390x-gs-linux64.xml: New file.
3784 * features/Makefile (WHICH): Add s390-gs-linux64 and
3785 s390x-gs-linux64.
3786 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
3787 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
3788 * features/s390-gs-linux64.c: New generated file.
3789 * features/s390x-gs-linux64.c: New file.
3790 * regformats/s390-gs-linux64.dat: New file.
3791 * regformats/s390x-gs-linux64.dat: New file.
3792
3793 2017-09-23 Tom Tromey <tom@tromey.com>
3794
3795 * defs.h (make_cleanup_override_quit_handler): Don't declare.
3796
3797 2017-09-22 Tom Tromey <tom@tromey.com>
3798
3799 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
3800 type to scoped_restore_tmpl.
3801 <scoped_input_handler>: Initialize m_quit_handler directly.
3802
3803 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3804
3805 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
3806 (cd_command): Likewise. Free "current_directory" before
3807 assigning to it.
3808 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
3809 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
3810 * top.c (gdb_dirbuf): Remove global declaration.
3811 * top.h (gdb_dirbuf): Likewise.
3812
3813 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3814
3815 * gnulib/aclocal.m4: Regenerate.
3816 * gnulib/config.in: Regenerate.
3817 * gnulib/configure: Regenerate.
3818 * gnulib/import/Makefile.am: Regenerate.
3819 * gnulib/import/Makefile.in: Regenerate.
3820 * gnulib/import/assure.h: New file.
3821 * gnulib/import/at-func.c: Likewise
3822 * gnulib/import/chdir-long.c: New file.
3823 * gnulib/import/chdir-long.h: New file.
3824 * gnulib/import/cloexec.c: New file.
3825 * gnulib/import/cloexec.h: New file.
3826 * gnulib/import/close.c: New file.
3827 * gnulib/import/closedir.c: New file.
3828 * gnulib/import/dirent-private.h: New file.
3829 * gnulib/import/dup-safer.c: New file.
3830 * gnulib/import/dup.c: New file.
3831 * gnulib/import/dup2.c: New file.
3832 * gnulib/import/error.c: New file.
3833 * gnulib/import/error.h: New file.
3834 * gnulib/import/exitfail.c: New file.
3835 * gnulib/import/exitfail.h: New file.
3836 * gnulib/import/fchdir.c: New file.
3837 * gnulib/import/fcntl.c: New file.
3838 * gnulib/import/fcntl.in.h: New file.
3839 * gnulib/import/fd-hook.c: New file.
3840 * gnulib/import/fd-hook.h: New file.
3841 * gnulib/import/fd-safer.c: New file.
3842 * gnulib/import/fdopendir.c: New file.
3843 * gnulib/import/filename.h: New file.
3844 * gnulib/import/filenamecat-lgpl.c: New file.
3845 * gnulib/import/filenamecat.h: New file.
3846 * gnulib/import/fstat.c: New file.
3847 * gnulib/import/fstatat.c: New file.
3848 * gnulib/import/getcwd-lgpl.c: New file.
3849 * gnulib/import/getcwd.c: New file.
3850 * gnulib/import/getdtablesize.c: New file.
3851 * gnulib/import/getlogin_r.c: New file.
3852 * gnulib/import/getprogname.c: New file.
3853 * gnulib/import/getprogname.h: New file.
3854 * gnulib/import/gettext.h: New file.
3855 * gnulib/import/glob-libc.h: New file.
3856 * gnulib/import/glob.c: New file.
3857 * gnulib/import/glob.in.h: New file.
3858 * gnulib/import/intprops.h: New file.
3859 * gnulib/import/m4/chdir-long.m4: New file.
3860 * gnulib/import/m4/close.m4: New file.
3861 * gnulib/import/m4/closedir.m4: New file.
3862 * gnulib/import/m4/d-ino.m4: New file.
3863 * gnulib/import/m4/d-type.m4: New file.
3864 * gnulib/import/m4/dup.m4: New file.
3865 * gnulib/import/m4/dup2.m4: New file.
3866 * gnulib/import/m4/error.m4: New file.
3867 * gnulib/import/m4/fchdir.m4: New file.
3868 * gnulib/import/m4/fcntl.m4: New file.
3869 * gnulib/import/m4/fcntl_h.m4: New file.
3870 * gnulib/import/m4/fdopendir.m4: New file.
3871 * gnulib/import/m4/filenamecat.m4: New file.
3872 * gnulib/import/m4/fstat.m4: New file.
3873 * gnulib/import/m4/fstatat.m4: New file.
3874 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
3875 * gnulib/import/m4/getcwd-path-max.m4: New file.
3876 * gnulib/import/m4/getcwd.m4: New file.
3877 * gnulib/import/m4/getdtablesize.m4: New file.
3878 * gnulib/import/m4/getlogin_r.m4: New file.
3879 * gnulib/import/m4/getprogname.m4: New file.
3880 * gnulib/import/m4/glob.m4: New file.
3881 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3882 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3883 * gnulib/import/m4/mempcpy.m4: New file.
3884 * gnulib/import/m4/memrchr.m4: New file.
3885 * gnulib/import/m4/mode_t.m4: New file.
3886 * gnulib/import/m4/msvc-inval.m4: New file.
3887 * gnulib/import/m4/msvc-nothrow.m4: New file.
3888 * gnulib/import/m4/open.m4: New file.
3889 * gnulib/import/m4/openat.m4: New file.
3890 * gnulib/import/m4/opendir.m4: New file.
3891 * gnulib/import/m4/readdir.m4: New file.
3892 * gnulib/import/m4/realloc.m4: New file.
3893 * gnulib/import/m4/rewinddir.m4: New file.
3894 * gnulib/import/m4/save-cwd.m4: New file.
3895 * gnulib/import/m4/strdup.m4: New file.
3896 * gnulib/import/m4/strerror.m4: New file.
3897 * gnulib/import/m4/unistd-safer.m4: New file.
3898 * gnulib/import/mempcpy.c: New file.
3899 * gnulib/import/memrchr.c: New file.
3900 * gnulib/import/msvc-inval.c: New file.
3901 * gnulib/import/msvc-inval.h: New file.
3902 * gnulib/import/msvc-nothrow.c: New file.
3903 * gnulib/import/msvc-nothrow.h: New file.
3904 * gnulib/import/open.c: New file.
3905 * gnulib/import/openat-die.c: New file.
3906 * gnulib/import/openat-priv.h: New file.
3907 * gnulib/import/openat-proc.c: New file.
3908 * gnulib/import/openat.c: New file.
3909 * gnulib/import/openat.h: New file.
3910 * gnulib/import/opendir.c: New file.
3911 * gnulib/import/pipe-safer.c: New file.
3912 * gnulib/import/readdir.c: New file.
3913 * gnulib/import/realloc.c: New file.
3914 * gnulib/import/rewinddir.c: New file.
3915 * gnulib/import/save-cwd.c: New file.
3916 * gnulib/import/save-cwd.h: New file.
3917 * gnulib/import/strdup.c: New file.
3918 * gnulib/import/strerror-override.c: New file.
3919 * gnulib/import/strerror-override.h: New file.
3920 * gnulib/import/strerror.c: New file.
3921 * gnulib/import/unistd--.h: New file.
3922 * gnulib/import/unistd-safer.h: New file.
3923 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3924 "getcwd" and "glob".
3925 * ser-tcp.c: Undefine "close" before redefining it.
3926
3927 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3928
3929 * guile/scm-value.c (gdbscm_value_address): Initialize address,
3930 get rid of res_val.
3931
3932 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3933
3934 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
3935 <sol2,sparc>: Likewise.
3936 <sol2-64,i386>: Likewise.
3937
3938 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
3939 -Wdeprecated-declarations on *-*-solaris*.
3940 * configure: Regenerate.
3941
3942 * procfs.c: Include "nat/inferior.h".
3943 (procfs_info_proc): Fix typo.
3944
3945 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3946
3947 * remote.c (vector): Include.
3948 (struct private_thread_info): Add field, thread_handle.
3949 (free_private_thread_info): Deallocate storage associated with
3950 thread handle.
3951 (get_private_info_thread): Initialize `thread_handle' field.
3952 (struct thread_item): Add field, thread_handle.
3953 (clear_threads_listing_context): Deallocate storage associated
3954 with thread handle.
3955 (start_thread): Add support for "handle" attribute.
3956 (thread_attributes): Add "handle".
3957 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3958 field.
3959 (remote_update_thread_list): Update thread_handle.
3960 (remote_thread_handle_to_thread_info): New function.
3961 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3962
3963 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3964
3965 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3966 function.
3967 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3968 * python/python-internal.h (thread_object_type): Declare.
3969
3970 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3971
3972 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3973 (target_thread_handle_to_thread_info): Declare.
3974 * target.c (target_thread_handle_to_thread_info): New function.
3975 * target-delegates.c: Regenerate.
3976 * gdbthread.h (find_thread_by_handle): Declare.
3977 * thread.c (find_thread_by_handle): New function.
3978 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3979 function.
3980 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3981
3982 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3983
3984 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3985
3986 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3987
3988 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3989
3990 2017-09-21 Yao Qi <yao.qi@linaro.org>
3991
3992 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3993 to gdb_target_obs.
3994
3995 2017-09-20 Tom Tromey <tom@tromey.com>
3996
3997 * breakpoint.c (struct counted_command_line): Remove.
3998 (breakpoint_commands): Update.
3999 (alloc_counted_command_line, incref_counted_command_line)
4000 (decref_counted_command_line, do_cleanup_counted_command_line)
4001 (make_cleanup_decref_counted_command_line): Remove.
4002 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
4003 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
4004 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
4005 (save_breakpoints): Update.
4006 * breakpoint.h (counted_command_line): Now a typedef to
4007 shared_ptr.
4008 (struct breakpoint) <commands>: Now a counted_command_line.
4009 (struct bpstats) <command>: Likewise.
4010
4011 2017-09-20 Tom Tromey <tom@tromey.com>
4012
4013 * breakpoint.c (struct commands_info, do_map_commands_command):
4014 Remove.
4015 (commands_command_1): Update.
4016 (iterate_over_related_breakpoints): Take a function_view.
4017 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
4018 (delete_command): Update.
4019 (map_breakpoint_numbers): Take a function_view.
4020 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
4021 (disable_command): Update.
4022 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
4023 (enable_command): Update.
4024 (struct disp_data, do_enable_breakpoint_disp)
4025 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
4026 (do_map_enable_delete_breakpoint): Remove.
4027 (enable_once_command, enable_count_command, enable_delete_command)
4028 (delete_trace_variable_command): Update.
4029
4030 2017-09-20 Tom Tromey <tom@tromey.com>
4031
4032 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
4033 (bpstat_clear): Use delete.
4034 (bpstats): New constructors.
4035 (bpstat_copy, bpstat_stop_status): Use new.
4036 (dprintf_after_condition_true): Update.
4037 * breakpoint.h (bpstats::bpstats): Add constructors.
4038 (bpstats::~bpstats): Add destructor.
4039
4040 2017-09-20 Pedro Alves <palves@redhat.com>
4041
4042 * eval.c (make_params): Delete, refactored as ...
4043 (class fake_method): ... this new type's ctor.
4044 (fake_method::~fake_method): New.
4045 (evaluate_subexp_standard): Use 'fake_method'.
4046
4047 2017-09-20 Tom Tromey <tom@tromey.com>
4048
4049 * windows-nat.c (get_windows_debug_event, windows_wait)
4050 (do_initial_windows_stuff, windows_attach): Update.
4051 * utils.c (vwarning, internal_vproblem): Update.
4052 (ui_unregister_input_event_handler_cleanup)
4053 (prepare_to_handle_input): Remove.
4054 (class scoped_input_handler): New.
4055 (defaulted_query, prompt_for_continue): Update.
4056 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
4057 Update.
4058 * top.c (undo_terminal_modifications_before_exit): Update.
4059 * target/target.h (target_terminal_init, target_terminal_inferior)
4060 (target_terminal_ours): Don't declare.
4061 (class target_terminal): New.
4062 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
4063 (target_terminal_ours_for_output)
4064 (make_cleanup_restore_target_terminal): Don't declare.
4065 (target_terminal_info): Remove.
4066 * target.c (enum terminal_state, terminal_state): Remove.
4067 (target_terminal::terminal_state): Define.
4068 (target_terminal::init): Rename from target_terminal_init.
4069 (target_terminal::inferior): Rename from
4070 target_terminal_inferior.
4071 (target_terminal::ours): Rename from target_terminal_ours.
4072 (target_terminal::ours_for_output): Rename from
4073 target_terminal_ours_for_output.
4074 (target_terminal::info): New method.
4075 (cleanup_restore_target_terminal)
4076 (make_cleanup_restore_target_terminal): Remove.
4077 * solib.c (handle_solib_event): Update.
4078 * remote.c (remote_serial_quit_handler): Update.
4079 (remote_terminal_inferior, remote_wait_as): Update.
4080 * record-full.c (record_full_wait_1): Update.
4081 * nto-procfs.c (procfs_create_inferior): Update.
4082 * nat/fork-inferior.c (startup_inferior): Update.
4083 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
4084 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
4085 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
4086 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
4087 (mi_breakpoint_created, mi_breakpoint_deleted)
4088 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
4089 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
4090 (mi_user_selected_context_changed, report_initial_inferior):
4091 Update.
4092 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
4093 (linux_nat_terminal_inferior): Update.
4094 * infrun.c (follow_fork_inferior)
4095 (handle_vfork_child_exec_or_exit, do_target_resume)
4096 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
4097 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
4098 Update.
4099 * inflow.c (child_terminal_init, info_terminal_command): Update.
4100 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
4101 (attach_command): Update.
4102 * infcall.c (call_thread_fsm_should_stop): Update.
4103 * gnu-nat.c (gnu_attach): Update.
4104 * extension.c (struct active_ext_lang_state)
4105 (restore_active_ext_lang): Update.
4106 * exceptions.c (print_flush): Update.
4107 * event-top.c (async_enable_stdin, default_quit_handler): Update.
4108 (struct quit_handler_cleanup_data, restore_quit_handler)
4109 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
4110 Remove.
4111 * cp-support.c (gdb_demangle): Update.
4112 * breakpoint.c (update_inserted_breakpoint_locations)
4113 (insert_breakpoint_locations, handle_jit_event)
4114 (disable_breakpoints_in_unloaded_shlib): Update.
4115 * annotate.c (annotate_breakpoints_invalid)
4116 (annotate_frames_invalid): Update.
4117
4118 2017-09-20 Tom Tromey <tom@tromey.com>
4119
4120 * main.c (catch_command_errors): Rename from
4121 catch_command_errors_const.
4122 (captured_main_1): Update.
4123
4124 2017-09-20 Pedro Alves <palves@redhat.com>
4125
4126 * cli/cli-cmds.c (list_command): Use print_sal_location.
4127 (print_sal_location): New function.
4128 (ambiguous_line_spec): Use print_sal_location.
4129 * linespec.c (symbol_to_sal): Record the symbol in the sal.
4130 * symtab.c (find_function_start_sal): Likewise.
4131 * symtab.h (symtab_and_line::symbol): New field.
4132
4133 2017-09-20 Pedro Alves <palves@redhat.com>
4134
4135 * linespec.c (minsym_found): Handle non-text minsyms.
4136 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
4137
4138 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
4139
4140 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
4141 backslash.
4142
4143 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
4144
4145 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
4146 vmovups instead vmovaps.
4147 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
4148
4149 2017-09-19 John Baldwin <jhb@FreeBSD.org>
4150
4151 * NEWS (Changes since GDB 8.0): Add starti.
4152 * infcmd.c (enum run_break): New.
4153 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
4154 case.
4155 (run_command): Use enum run_how.
4156 (start_command): Likewise.
4157 (starti_command): New function.
4158 (RUN_ARGS_HELP): New macro.
4159 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
4160 commands. Add starti command.
4161
4162 2017-09-19 Yao Qi <yao.qi@linaro.org>
4163
4164 * Makefile.in (monitor.o): Remove the rule.
4165
4166 2017-09-19 Yao Qi <yao.qi@linaro.org>
4167
4168 * annotate.h (struct annotate_arg_emitter): Use
4169 DISABLE_COPY_AND_ASSIGN.
4170 * common/refcounted-object.h (refcounted_object): Likewise.
4171 * completer.h (struct completion_result): Likewise.
4172 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
4173 * filename-seen-cache.h (filename_seen_cache): Likewise.
4174 * gdbcore.h (thread_section_name): Likewise.
4175 * gdb_regex.h (compiled_regex): Likewise.
4176 * gdbthread.h (scoped_restore_current_thread): Likewise.
4177 * inferior.h (scoped_restore_current_inferior): Likewise.
4178 * jit.c (jit_reader): Likewise.
4179 * linespec.h (struct linespec_result): Likewise.
4180 * mi/mi-parse.h (struct mi_parse): Likewise.
4181 * nat/fork-inferior.c (execv_argv): Likewise.
4182 * progspace.h (scoped_restore_current_program_space): Likewise.
4183 * python/python-internal.h (class gdbpy_enter): Likewise.
4184 * regcache.h (regcache): Likewise.
4185 * target-descriptions.c (struct tdesc_reg): Likewise.
4186 (struct tdesc_type): Likewise.
4187 (struct tdesc_feature): Likewise.
4188 * ui-out.h (ui_out_emit_type): Likewise.
4189
4190 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
4191
4192 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
4193 label abort_expression.
4194
4195 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4196
4197 * common/buffer.c (buffer_xml_printf): Adjust.
4198 * common/xml-utils.c (xml_escape_text): Change return type to
4199 std::string, update code accordingly.
4200 * common/xml-utils.h (xml_escape_text): Change return type to
4201 std::string.
4202 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
4203 * windows-tdep.c (windows_xfer_shared_library): Adjust.
4204 * unittests/xml-utils-selftests.c (test_xml_escape_text):
4205 Adjust.
4206
4207 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4208
4209 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
4210 (SUBDIR_UNITTESTS_OBS): Add new object file.
4211 * unittests/xml-utils-selftests.c: New file.
4212
4213 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4214
4215 * common/selftest.h (selftest): New struct/interface.
4216 (register_test): Add name parameter, add new overload.
4217 (run_tests): Add filter parameter.
4218 (for_each_selftest_ftype): New typedef.
4219 (for_each_selftest): New declaration.
4220 * common/selftest.c (tests): Change type to
4221 map<string, unique_ptr<selftest>>.
4222 (simple_selftest): New struct.
4223 (register_test): New function.
4224 (register_test): Add name parameter and use it.
4225 (run_tests): Add filter parameter and use it. Add prints.
4226 Adjust to vector -> map change.
4227 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
4228 registering selftests.
4229 * arm-tdep.c (_initialize_arm_tdep): Likewise.
4230 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
4231 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
4232 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
4233 * findvar.c (_initialize_findvar): Likewise.
4234 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
4235 * maint.c (maintenance_selftest): Update call to run_tests.
4236 (maintenance_info_selftests): New function.
4237 (_initialize_maint_cmds): Register "maintenance info selftests"
4238 command. Update "maintenance selftest" doc.
4239 * regcache.c (_initialize_regcache): Add names when registering
4240 selftests.
4241 * rust-exp.y (_initialize_rust_exp): Likewise.
4242 * selftest-arch.c (gdbarch_selftest): New struct.
4243 (gdbarch_tests): Remove.
4244 (register_test_foreach_arch): Add name parameter. Call
4245 register_test.
4246 (tests_with_arch): Remove, move most content to
4247 gdbarch_selftest::operator().
4248 (_initialize_selftests_foreach_arch): Remove.
4249 * selftest-arch.h (register_test_foreach_arch): Add name
4250 parameter.
4251 (run_tests_with_arch): New declaration.
4252 * utils-selftests.c (_initialize_utils_selftests): Add names
4253 when registering selftests.
4254 * utils.c (_initialize_utils): Likewise.
4255 * unittests/array-view-selftests.c
4256 (_initialize_array_view_selftests): Likewise.
4257 * unittests/environ-selftests.c (_initialize_environ_selftests):
4258 Likewise.
4259 * unittests/function-view-selftests.c
4260 (_initialize_function_view_selftests): Likewise.
4261 * unittests/offset-type-selftests.c
4262 (_initialize_offset_type_selftests): Likewise.
4263 * unittests/optional-selftests.c
4264 (_initialize_optional_selftests): Likewise.
4265 * unittests/scoped_restore-selftests.c
4266 (_initialize_scoped_restore_selftests): Likewise.
4267 * NEWS: Document "maintenance selftest" and "maint info
4268 selftests".
4269
4270 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4271
4272 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
4273 scoped_restore.
4274
4275 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4276
4277 * mi/mi-main.c (mi_load_progress): Make uiout variable
4278 a unique_ptr.
4279
4280 2017-09-15 Pedro Alves <palves@redhat.com>
4281
4282 * compile/compile-c-types.c (convert_enum, convert_int)
4283 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
4284
4285 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4286
4287 * dwarf2read.c (copy_string): Remove.
4288 (parse_macro_definition): Replace copy_string with savestring.
4289
4290 2017-09-15 Yao Qi <yao.qi@linaro.org>
4291
4292 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
4293 gdb_target_obs.
4294 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
4295 Likewise.
4296 (i[34567]86-*-linux*): Likewise.
4297
4298 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4299
4300 * dwarf2expr.h (dwarf_stack_value): Add constructor.
4301 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
4302 <stack>: Change type to std::vector.
4303 <stack_len, stack_allocated>: Remove.
4304 <grow_stack>: Remove.
4305 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4306 (dwarf_expr_context::~dwarf_expr_context): Remove.
4307 (dwarf_expr_context::grow_stack): Remove.
4308 (dwarf_expr_context::push): Adjust.
4309 (dwarf_expr_context::pop): Adjust.
4310 (dwarf_expr_context::fetch): Adjust.
4311 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
4312 (dwarf_expr_context::stack_empty_p): Adjust.
4313 (dwarf_expr_context::execute_stack_op): Adjust.
4314
4315 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4316
4317 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
4318 return type to bool.
4319 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
4320
4321 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4322
4323 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
4324 Change type to bool.
4325 (dwarf_stack_value) <in_stack_memory>: Likewise.
4326 (dwarf_expr_context) <push_address>: Change parameter type to
4327 bool.
4328 <fetch_in_stack_memory>: Change return type to bool.
4329 <push>: Change parameter type to bool.
4330 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
4331 to bool.
4332 (dwarf_expr_context::push_address): Likewise.
4333 (dwarf_expr_context::fetch_in_stack_memory): Change return type
4334 to bool.
4335 (dwarf_expr_context::execute_stack_op): Adjust.
4336 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
4337
4338 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4339
4340 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
4341 (struct dwarf_expr_context) <n_pieces>: Remove.
4342 <pieces>: Change type to std::vector.
4343 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4344 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
4345 pieces.
4346 (dwarf_expr_context::add_piece): Adjust.
4347 * dwarf2loc.c (struct piece_closure): Initialize fields.
4348 <n_pieces>: Remove.
4349 <pieces>: Change type to std::vector.
4350 (allocate_piece_closure): Adjust, change parameter to
4351 std::vector rvalue and std::move it to piece_closure.
4352 (rw_pieced_value): Adjust.
4353 (check_pieced_synthetic_pointer): Adjust.
4354 (indirect_synthetic_pointer): Adjust.
4355 (coerce_pieced_ref): Adjust.
4356 (free_pieced_value_closure): Adjust. Use delete to free
4357 piece_closure.
4358 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
4359 to allocate_piece_closure.
4360 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
4361
4362 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4363
4364 * probe.h (probe_ops_cp): Remove typedef.
4365 (DEF_VEC_P (probe_ops_cp)): Remove.
4366 (all_probe_ops): Change type to std::vector.
4367 * probe.c (info_probes_for_ops): Adjust to vector change.
4368 (probe_linespec_to_ops): Likewise.
4369 (all_probe_ops): Change type to std::vector.
4370 (_initialize_probe): Adjust to vector change.
4371 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
4372 * elfread.c (elf_get_probes): Likewise.
4373 * stap-probe.c (_initialize_stap_probe): Likewise.
4374
4375 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4376
4377 * probe.h (struct bound_probe): Define constructors.
4378 * probe.c (bound_probe_s): Remove typedef.
4379 (DEF_VEC_O (bound_probe_s)): Remove VEC.
4380 (collect_probes): Change return type to std::vector, remove
4381 cleanup.
4382 (compare_probes): Return bool, change parameter type. Change
4383 semantic to "less than".
4384 (gen_ui_out_table_header_info): Change parameter to std::vector
4385 and update.
4386 (exists_probe_with_pops): Likewise.
4387 (info_probes_for_ops): Update to std::vector change.
4388 (enable_probes_command): Likewise.
4389 (disable_probes_command): Likewise.
4390
4391 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4392
4393 * probe.h (struct probe_ops) <get_probes>: Change parameter from
4394 vec to std::vector.
4395 * probe.c (parse_probes_in_pspace): Update.
4396 (find_probes_in_objfile): Update.
4397 (find_probe_by_pc): Update.
4398 (collect_probes): Update.
4399 (probe_any_get_probes): Update.
4400 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
4401 return type to reference to std::vector.
4402 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
4403 std::vector and update.
4404 (dtrace_process_dof): Likewise.
4405 (dtrace_get_probes): Likewise.
4406 * elfread.c (elf_get_probes): Change return type to std::vector,
4407 store an std::vector in bfd_data.
4408 (probe_key_free): Update to std::vector.
4409 * stap-probe.c (handle_stap_probe): Change parameter to
4410 std::vector and update.
4411 (stap_get_probes): Likewise.
4412 * symfile-debug.c (debug_sym_get_probes): Change return type to
4413 std::vector and update.
4414
4415 2017-09-11 Tom Tromey <tom@tromey.com>
4416
4417 * breakpoint.c (program_breakpoint_here_p): Update.
4418 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
4419 from make_show_memory_breakpoints_cleanup. Return a
4420 scoped_restore_tmpl<int>.
4421 (restore_show_memory_breakpoints): Remove.
4422 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
4423 * mem-break.c (memory_validate_breakpoint): Update.
4424 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
4425 (ia64_memory_remove_breakpoint): Update.
4426 (ia64_breakpoint_from_pc): Update.
4427 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
4428 from make_show_memory_breakpoints_cleanup.
4429
4430 2017-09-11 Tom Tromey <tom@tromey.com>
4431
4432 * d-namespace.c (d_lookup_symbol): Use std::string.
4433 (find_symbol_in_baseclass): Likewise.
4434
4435 2017-09-11 Tom Tromey <tom@tromey.com>
4436
4437 * ctf.c (ctf_start): Use std::string.
4438
4439 2017-09-11 Tom Tromey <tom@tromey.com>
4440
4441 * ada-lang.c (is_known_support_routine): Update.
4442 (ada_unhandled_exception_name_addr_from_raise): Update.
4443 * guile/scm-frame.c (gdbscm_frame_name): Update.
4444 * python/py-frame.c (frapy_name): Update.
4445 (frapy_function): Update.
4446 * stack.h (find_frame_funname): Update.
4447 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
4448 (print_frame): Update.
4449
4450 2017-09-11 Tom Tromey <tom@tromey.com>
4451
4452 * findcmd.c (put_bits): Take a gdb::byte_vector.
4453 (parse_find_args): Return gdb::byte_vector. "args" now const.
4454 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
4455 cleanups.
4456 (find_command): Update.
4457
4458 2017-09-11 Tom Tromey <tom@tromey.com>
4459
4460 * cli/cli-script.c (class scoped_restore_hook_in): New.
4461 (clear_hook_in_cleanup): Remove.
4462 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
4463 scoped_restore_hook_in.
4464
4465 2017-09-11 Tom Tromey <tom@tromey.com>
4466
4467 * cli/cli-script.c (restore_interp): Remove.
4468 (read_command_lines): Use scoped_restore_interp.
4469 * interps.c (scoped_restore_interp::set_temp): Rename from
4470 interp_set_temp.
4471 * interps.h (class scoped_restore_interp): New.
4472 (interp_set_temp): Remove.
4473
4474 2017-09-11 Tom Tromey <tom@tromey.com>
4475
4476 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
4477 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
4478 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
4479 scoped_restore.
4480 (mi_cmd_break_insert_1): Update.
4481 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
4482 scoped_restore.
4483
4484 2017-09-11 Tom Tromey <tom@tromey.com>
4485
4486 * demangle.c (demangle_command): Update.
4487 * breakpoint.c (disable_command): Update.
4488 (enable_command): Update.
4489 (find_location_by_number): Make "number" const. Use
4490 get_number_trailer.
4491 * cli/cli-utils.c (extract_arg): Return std::string.
4492 * probe.c (parse_probe_linespec): Update. Change types.
4493 (collect_probes): Take string arguments.
4494 (parse_probe_linespec): Likewise.
4495 (info_probes_for_ops): Update.
4496 (enable_probes_command): Update.
4497 (disable_probes_command): Update.
4498 * break-catch-sig.c (catch_signal_split_args): Update.
4499 * mi/mi-parse.c (mi_parse): Update.
4500
4501 2017-09-11 Tom Tromey <tom@tromey.com>
4502
4503 * language.h (language_enum): Make argument const.
4504 * language.c (language_enum): Make argument const.
4505
4506 2017-09-11 Tom Tromey <tom@tromey.com>
4507
4508 * common/common-utils.h (skip_to_space): Remove macro, redeclare
4509 as function.
4510 (skip_to_space): Rename from skip_to_space_const.
4511 * common/common-utils.c (skip_to_space): New function.
4512 (skip_to_space): Rename from skip_to_space_const.
4513 * cli/cli-utils.h (get_number): Rename from get_number_const.
4514 (extract_arg): Rename from extract_arg_const.
4515 * cli/cli-utils.c (get_number): Rename from get_number_const.
4516 (extract_arg): Rename from extract_arg_const.
4517 (number_or_range_parser::get_number): Use ::get_number.
4518 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
4519 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
4520 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
4521 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
4522 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
4523 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
4524 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
4525 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
4526
4527 2017-09-11 Tom Tromey <tom@tromey.com>
4528
4529 * python/python.c (do_start_initialization): Use
4530 py-event-types.def to initialize types.
4531 Define all object type structures.
4532 * python/python-internal.h: Don't declare event initialization
4533 functions.
4534 * python/py-threadevent.c (thread_event_object_type): Don't
4535 define.
4536 * python/py-stopevent.c (stop_event_object_type): Don't define.
4537 * python/py-signalevent.c (signal_event_object_type): Don't
4538 declare or define.
4539 * python/py-newobjfileevent.c (new_objfile_event_object_type)
4540 (clear_objfiles_event_object_type): Don't declare or define.
4541 * python/py-infevents.c (inferior_call_pre_event_object_type)
4542 (inferior_call_post_event_object_type)
4543 (register_changed_event_object_type)
4544 (memory_changed_event_object_type): Don't declare or define.
4545 * python/py-inferior.c (new_thread_event_object_type)
4546 (new_inferior_event_object_type)
4547 (inferior_deleted_event_object_type): Don't declare or define.
4548 * python/py-exitedevent.c (exited_event_object_type): Don't
4549 declare or define.
4550 * python/py-evts.c (gdbpy_initialize_py_events): Use
4551 py-all-events.def.
4552 * python/py-events.h (thread_event_object_type): Don't declare.
4553 (events_object): Use py-all-events.def.
4554 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
4555 py-event-types.def.
4556 * python/py-event-types.def: New file.
4557 * python/py-continueevent.c (create_continue_event_object): Don't
4558 declare or define.
4559 * python/py-bpevent.c (breakpoint_event_object_type): Don't
4560 declare or define.
4561 * python/py-all-events.def: New file.
4562
4563 2017-09-11 Tom Tromey <tom@tromey.com>
4564
4565 * python/py-threadevent.c (create_thread_event_object): Return
4566 gdbpy_ref.
4567 * python/py-stopevent.h (create_stop_event_object)
4568 (create_breakpoint_event_object, create_signal_event_object):
4569 Update.
4570 * python/py-stopevent.c (create_stop_event_object): Return
4571 gdbpy_ref.
4572 (emit_stop_event): Update.
4573 * python/py-signalevent.c (create_signal_event_object): Return
4574 gdbpy_ref.
4575 * python/py-infevents.c (create_inferior_call_event_object):
4576 Update.
4577 * python/py-event.h (create_event_object)
4578 (create_thread_event_object): Update.
4579 * python/py-event.c (create_event_object): Return gdbpy_ref.
4580 * python/py-continueevent.c: Return gdbpy_ref.
4581 * python/py-bpevent.c (create_breakpoint_event_object): Return
4582 gdbpy_ref.
4583
4584 2017-09-11 Tom Tromey <tom@tromey.com>
4585
4586 PR python/15622:
4587 * NEWS: Add entry.
4588 * python/python.c (do_start_initialization): Initialize new event
4589 types.
4590 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
4591 (gdbpy_initialize_inferior_deleted_event)
4592 (gdbpy_initialize_new_thread_event): Declare.
4593 * python/py-threadevent.c (create_thread_event_object): Add option
4594 "thread" parameter.
4595 * python/py-inferior.c (new_thread_event_object_type)
4596 (new_inferior_event_object_type)
4597 (inferior_deleted_event_object_type): Declare.
4598 (python_new_inferior, python_inferior_deleted): New functions.
4599 (add_thread_object): Emit new_thread event.
4600 (gdbpy_initialize_inferior): Attach new functions to corresponding
4601 observers.
4602 (new_thread, new_inferior, inferior_deleted): Define new event
4603 types.
4604 * python/py-evts.c (gdbpy_initialize_py_events): Add new
4605 registries.
4606 * python/py-events.h (events_object) <new_inferior,
4607 inferior_deleted, new_thread>: New fields.
4608 * python/py-event.h (create_thread_event_breakpoint): Add optional
4609 "thread" parameter.
4610
4611 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
4612
4613 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
4614 check current_ui instead.
4615 (internal_vproblem): Likewise.
4616
4617 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
4618
4619 * thread.c (print_thread_info_1): Remove unnecessary calls to
4620 uiout->is_mi_like_p.
4621
4622 2017-09-09 Tom Tromey <tom@tromey.com>
4623
4624 * namespace.h (add_using_directive): Update.
4625 * namespace.c (add_using_directive): Change type of excludes to
4626 std::vector.
4627 * dwarf2read.c (read_import_statement): Use std::vector.
4628 (read_namespace): Update.
4629 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4630
4631 2017-09-09 Tom Tromey <tom@tromey.com>
4632
4633 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
4634
4635 2017-09-09 Tom Tromey <tom@tromey.com>
4636
4637 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
4638
4639 2017-09-09 Tom Tromey <tom@tromey.com>
4640
4641 * stack.c (func_command): Use gdb::def_vector.
4642
4643 2017-09-09 Tom Tromey <tom@tromey.com>
4644
4645 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
4646 ui_out_emit_list, ui_out_emit_tuple.
4647 (mi_cmd_var_update): Likewise.
4648
4649 2017-09-09 Tom Tromey <tom@tromey.com>
4650
4651 * mi/mi-interp.c (mi_user_selected_context_changed): Use
4652 ui_out_redirect_pop.
4653 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
4654 ui_out_redirect_pop.
4655 * utils.c (do_ui_out_redirect_pop)
4656 (make_cleanup_ui_out_redirect_pop): Remove.
4657 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
4658 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
4659 * ui-out.h (ui_out_redirect_pop): New class.
4660
4661 2017-09-09 Tom Tromey <tom@tromey.com>
4662
4663 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
4664 (list_available_thread_groups, mi_cmd_list_thread_groups)
4665 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
4666 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
4667 Likewise.
4668
4669 2017-09-09 Tom Tromey <tom@tromey.com>
4670
4671 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4672 ui_out_emit_tuple.
4673
4674 2017-09-09 Tom Tromey <tom@tromey.com>
4675
4676 * target.c (flash_erase_command): Use ui_out_emit_tuple.
4677 * stack.c (print_frame): Use ui_out_emit_tuple.
4678 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
4679 (info_spu_mailbox_command, info_spu_dma_command)
4680 (info_spu_proxydma_command): Likewise.
4681 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
4682 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
4683 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
4684 ui_out_emit_tuple.
4685 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
4686
4687 2017-09-09 Tom Tromey <tom@tromey.com>
4688
4689 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
4690 (class ui_out_emit_table): Update comment.
4691 * ui-out.c (do_cleanup_table_end)
4692 (make_cleanup_ui_out_table_begin_end): Remove.
4693 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
4694 (info_spu_dma_cmdlist): Likewise.
4695 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
4696 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
4697 ui_out_emit_table.
4698
4699 2017-09-09 Tom Tromey <tom@tromey.com>
4700
4701 * thread.c (print_thread_info_1): Use ui_out_emit_table,
4702 ui_out_emit_list, gdb::optional.
4703
4704 2017-09-09 John Baldwin <jhb@FreeBSD.org>
4705
4706 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
4707 prototype.
4708 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
4709 prototype.
4710 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
4711 prototype.
4712 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
4713 * ada-exp.y: Remove _initialize_ada_exp prototype.
4714 * ada-lang.c: Remove _initialize_ada_language prototype.
4715 * ada-tasks.c: Remove _initialize_tasks prototype.
4716 * addrmap.c: Remove _initialize_addrmap prototype.
4717 * agent.c: Remove _initialize_agent prototype.
4718 * aix-thread.c: Remove _initialize_aix_thread prototype.
4719 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
4720 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
4721 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
4722 prototype.
4723 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
4724 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
4725 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
4726 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
4727 prototype.
4728 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
4729 prototype.
4730 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
4731 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
4732 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
4733 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
4734 prototype.
4735 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
4736 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
4737 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
4738 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
4739 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4740 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
4741 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
4742 prototype.
4743 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
4744 prototype.
4745 * annotate.c: Remove _initialize_annotate prototype.
4746 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
4747 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
4748 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
4749 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
4750 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
4751 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
4752 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
4753 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
4754 prototype.
4755 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
4756 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
4757 * auto-load.c: Remove _initialize_auto_load prototype.
4758 * auxv.c: Remove _initialize_auxv prototype.
4759 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
4760 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
4761 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
4762 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
4763 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
4764 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
4765 prototype.
4766 * break-catch-throw.c: Remove _initialize_break_catch_throw
4767 prototype.
4768 * breakpoint.c: Remove _initialize_breakpoint prototype.
4769 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
4770 * btrace.c: Remove _initialize_btrace prototype.
4771 * charset.c: Remove _initialize_charset prototype.
4772 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
4773 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
4774 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
4775 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
4776 * cli/cli-script.c: Remove _initialize_cli_script prototype.
4777 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
4778 * coffread.c: Remove _initialize_coffread prototype.
4779 * compile/compile.c: Remove _initialize_compile prototype.
4780 * complaints.c: Remove _initialize_complaints prototype.
4781 * completer.c: Remove _initialize_completer prototype.
4782 * copying.awk: Remove _initialize_copying prototype.
4783 * copying.c: Regenerate.
4784 * core-regset.c: Remove _initialize_core_regset prototype.
4785 * corefile.c: Remove _initialize_core prototype.
4786 * corelow.c: Remove _initialize_corelow prototype.
4787 * cp-abi.c: Remove _initialize_cp_abi prototype.
4788 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
4789 * cp-support.c: Remove _initialize_cp_support prototype.
4790 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
4791 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
4792 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
4793 * ctf.c: Remove _initialize_ctf prototype.
4794 * d-lang.c: Remove _initialize_d_language prototype.
4795 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
4796 prototype.
4797 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
4798 * dbxread.c: Remove _initialize_dbxread prototype.
4799 * dcache.c: Remove _initialize_dcache prototype.
4800 * demangle.c: Remove _initialize_demangler prototype.
4801 * disasm-selftests.c: Remove _initialize_disasm_selftests
4802 prototype.
4803 * disasm.c: Remove _initialize_disasm prototype.
4804 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
4805 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
4806 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
4807 prototype.
4808 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
4809 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
4810 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
4811 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
4812 * elfread.c: Remove _initialize_elfread prototype.
4813 * exec.c: Remove _initialize_exec prototype.
4814 * extension.c: Remove _initialize_extension prototype.
4815 * f-lang.c: Remove _initialize_f_language prototype.
4816 * f-valprint.c: Remove _initialize_f_valprint prototype.
4817 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
4818 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
4819 * filesystem.c: Remove _initialize_filesystem prototype.
4820 * findcmd.c: Remove _initialize_mem_search prototype.
4821 * fork-child.c: Remove _initialize_fork_child prototype.
4822 * frame-base.c: Remove _initialize_frame_base prototype.
4823 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
4824 * frame.c: Remove _initialize_frame prototype.
4825 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
4826 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
4827 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
4828 * gcore.c: Remove _initialize_gcore prototype.
4829 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
4830 * gdbarch.c: Regenerate.
4831 * gdbarch.sh: Remove _initialize_gdbarch prototype.
4832 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
4833 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
4834 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
4835 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
4836 * go-lang.c: Remove _initialize_go_language prototype.
4837 * go32-nat.c: Remove _initialize_go32_nat prototype.
4838 * guile/guile.c: Remove _initialize_guile prototype.
4839 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
4840 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
4841 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
4842 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
4843 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
4844 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
4845 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
4846 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
4847 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
4848 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
4849 prototype.
4850 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
4851 prototype.
4852 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
4853 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
4854 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
4855 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
4856 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
4857 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
4858 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
4859 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
4860 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
4861 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
4862 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
4863 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
4864 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
4865 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4866 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
4867 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
4868 prototype.
4869 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
4870 prototype.
4871 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
4872 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
4873 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
4874 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
4875 * infcall.c: Remove _initialize_infcall prototype.
4876 * infcmd.c: Remove _initialize_infcmd prototype.
4877 * inferior.c: Remove _initialize_inferiors prototype.
4878 * inflow.c: Remove _initialize_inflow prototype.
4879 * infrun.c: Remove _initialize_infrun prototype.
4880 * interps.c: Remove _initialize_interpreter prototype.
4881 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
4882 * jit.c: Remove _initialize_jit prototype.
4883 * language.c: Remove _initialize_language prototype.
4884 * linux-fork.c: Remove _initialize_linux_fork prototype.
4885 * linux-nat.c: Remove _initialize_linux_nat prototype.
4886 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
4887 * linux-thread-db.c: Remove _initialize_thread_db prototype.
4888 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
4889 * m2-lang.c: Remove _initialize_m2_language prototype.
4890 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
4891 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
4892 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
4893 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
4894 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
4895 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4896 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4897 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
4898 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
4899 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
4900 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4901 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4902 * machoread.c: Remove _initialize_machoread prototype.
4903 * macrocmd.c: Remove _initialize_macrocmd prototype.
4904 * macroscope.c: Remove _initialize_macroscope prototype.
4905 * maint.c: Remove _initialize_maint_cmds prototype.
4906 * mdebugread.c: Remove _initialize_mdebugread prototype.
4907 * memattr.c: Remove _initialize_mem prototype.
4908 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
4909 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
4910 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
4911 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
4912 * mi/mi-main.c: Remove _initialize_mi_main prototype.
4913 * microblaze-linux-tdep.c: Remove
4914 _initialize_microblaze_linux_tdep prototype.
4915 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
4916 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
4917 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
4918 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
4919 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
4920 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
4921 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
4922 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
4923 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
4924 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
4925 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
4926 prototype.
4927 * mipsread.c: Remove _initialize_mipsread prototype.
4928 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
4929 prototype.
4930 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
4931 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
4932 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
4933 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
4934 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
4935 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
4936 prototype.
4937 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
4938 * nto-procfs.c: Remove _initialize_procfs prototype.
4939 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
4940 * objc-lang.c: Remove _initialize_objc_language prototype.
4941 * objfiles.c: Remove _initialize_objfiles prototype.
4942 * observer.c: Remove observer_test_first_notification_function,
4943 observer_test_second_notification_function,
4944 observer_test_third_notification_function, and
4945 _initialize_observer prototypes.
4946 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4947 * osabi.c: Remove _initialize_gdb_osabi prototype.
4948 * osdata.c: Remove _initialize_osdata prototype.
4949 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4950 * parse.c: Remove _initialize_parse prototype.
4951 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4952 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4953 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4954 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4955 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4956 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4957 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4958 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4959 * printcmd.c: Remove _initialize_printcmd prototype.
4960 * probe.c: Remove _initialize_probe prototype.
4961 * proc-api.c: Remove _initialize_proc_api prototype.
4962 * proc-events.c: Remove _initialize_proc_events prototype.
4963 * proc-service.c: Remove _initialize_proc_service prototype.
4964 * procfs.c: Remove _initialize_procfs prototype.
4965 * psymtab.c: Remove _initialize_psymtab prototype.
4966 * python/python.c: Remove _initialize_python prototype.
4967 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4968 * record-btrace.c: Remove _initialize_record_btrace prototype.
4969 * record-full.c: Remove _initialize_record_full prototype.
4970 * record.c: Remove _initialize_record prototype.
4971 * regcache.c: Remove _initialize_regcache prototype.
4972 * reggroups.c: Remove _initialize_reggroup prototype.
4973 * remote-notif.c: Remove _initialize_notif prototype.
4974 * remote-sim.c: Remove _initialize_remote_sim prototype.
4975 * remote.c: Remove _initialize_remote prototype.
4976 * reverse.c: Remove _initialize_reverse prototype.
4977 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4978 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4979 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4980 prototype.
4981 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4982 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4983 * rust-exp.y: Remove _initialize_rust_exp prototype.
4984 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4985 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4986 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4987 * score-tdep.c: Remove _initialize_score_tdep prototype.
4988 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4989 prototype.
4990 * ser-go32.c: Remove _initialize_ser_dos prototype.
4991 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4992 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4993 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4994 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4995 * serial.c: Remove _initialize_serial prototype.
4996 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4997 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4998 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4999 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
5000 * skip.c: Remove _initialize_step_skip prototype.
5001 * sol-thread.c: Remove _initialize_sol_thread prototype.
5002 * solib-aix.c: Remove _initialize_solib_aix prototype.
5003 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
5004 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
5005 * solib-frv.c: Remove _initialize_frv_solib prototype.
5006 * solib-spu.c: Remove _initialize_spu_solib prototype.
5007 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
5008 * solib-target.c: Remove _initialize_solib_target prototype.
5009 * solib.c: Remove _initialize_solib prototype.
5010 * source.c: Remove _initialize_source prototype.
5011 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
5012 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
5013 prototype.
5014 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
5015 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
5016 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
5017 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
5018 prototype.
5019 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
5020 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
5021 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
5022 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
5023 prototype.
5024 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
5025 prototype.
5026 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
5027 prototype.
5028 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
5029 prototype.
5030 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
5031 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
5032 prototype.
5033 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
5034 prototype.
5035 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
5036 prototype.
5037 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
5038 prototype.
5039 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
5040 prototype.
5041 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
5042 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
5043 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
5044 * stabsread.c: Remove _initialize_stabsread prototype.
5045 * stack.c: Remove _initialize_stack prototype.
5046 * stap-probe.c: Remove _initialize_stap_probe prototype.
5047 * std-regs.c: Remove _initialize_frame_reg prototype.
5048 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
5049 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
5050 * symfile.c: Remove _initialize_symfile prototype.
5051 * symmisc.c: Remove _initialize_symmisc prototype.
5052 * symtab.c: Remove _initialize_symtab prototype.
5053 * target-dcache.c: Remove _initialize_target_dcache prototype.
5054 * target-descriptions.c: Remove _initialize_target_descriptions
5055 prototype.
5056 * thread.c: Remove _initialize_thread prototype.
5057 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
5058 prototype.
5059 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
5060 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
5061 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
5062 prototype.
5063 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
5064 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
5065 * tracefile.c: Remove _initialize_tracefile prototype.
5066 * tracepoint.c: Remove _initialize_tracepoint prototype.
5067 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
5068 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
5069 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
5070 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
5071 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
5072 * tui/tui-win.c: Remove _initialize_tui_win prototype.
5073 * tui/tui.c: Remove _initialize_tui prototype.
5074 * typeprint.c: Remove _initialize_typeprint prototype.
5075 * user-regs.c: Remove _initialize_user_regs prototype.
5076 * utils.c: Remove _initialize_utils prototype.
5077 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
5078 * valarith.c: Remove _initialize_valarith prototype.
5079 * valops.c: Remove _initialize_valops prototype.
5080 * valprint.c: Remove _initialize_valprint prototype.
5081 * value.c: Remove _initialize_values prototype.
5082 * varobj.c: Remove _initialize_varobj prototype.
5083 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
5084 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
5085 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
5086 * windows-nat.c: Remove _initialize_windows_nat,
5087 _initialize_check_for_gdb_ini, and _initialize_loadable
5088 prototypes.
5089 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
5090 * xcoffread.c: Remove _initialize_xcoffread prototype.
5091 * xml-support.c: Remove _initialize_xml_support prototype.
5092 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
5093 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
5094 prototype.
5095 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
5096 prototype.
5097 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
5098
5099 2017-09-08 Keith Seitz <keiths@redhat.com>
5100
5101 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
5102 field.
5103
5104 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
5105
5106 * f-valprint.c (f_val_print): Remove check for one byte
5107 sized integers. Remove printing of character type.
5108
5109 2017-09-08 Frank Penczek <frank.penczek@intel.com>
5110 Christoph Weinmann <christoph.t.weinmann@intel.com>
5111 Bernhard Heckel <bernhard.heckel@intel.com>
5112
5113 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
5114 to maintain proper indentation when printing pointers/refs.
5115
5116 2017-09-07 Joel Brobecker <brobecker@adacore.com>
5117
5118 GDB 8.0.1 released.
5119
5120 2017-09-07 Joel Brobecker <brobecker@adacore.com>
5121
5122 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
5123
5124 2017-09-05 Tom Tromey <tom@tromey.com>
5125
5126 * parse.c (funcall_chain): Now a std::vector.
5127 (start_arglist, end_arglist): Simplify.
5128 (free_funcalls): Remove.
5129 (parse_exp_in_context_1): Remove cleanup.
5130
5131 2017-09-05 Tom Tromey <tom@tromey.com>
5132
5133 * go-exp.y (go_parse): Don't create a cleanup.
5134
5135 2017-09-05 Tom Tromey <tom@tromey.com>
5136
5137 * d-exp.y (PrimaryExpression): Use std::string.
5138 (d_parse): Don't create a cleanup.
5139
5140 2017-09-05 Tom Tromey <tom@tromey.com>
5141
5142 * utils.c (do_clear_parser_state): Remove.
5143 (make_cleanup_clear_parser_state): Remove.
5144 * p-exp.y (pascal_parse): Use scoped_restore.
5145 * m2-exp.y (m2_parse): Use scoped_restore.
5146 * f-exp.y (f_parse): Use scoped_restore.
5147 * d-exp.y (d_parse): Use scoped_restore.
5148 * c-exp.y (c_parse): Use scoped_restore.
5149 * ada-exp.y (ada_parse): Use scoped_restore.
5150 * utils.h (make_cleanup_clear_parser_state): Remove.
5151
5152 2017-09-06 Keith Seitz <keiths@redhat.com>
5153
5154 * dwarf2read.c (dw2_linkage_name_attr): New function.
5155 (dw2_linkage_name): New function.
5156 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
5157 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
5158 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
5159
5160 2017-09-06 Kamil Rytarowski <n54@gmx.com>
5161
5162 * config/djgpp/djconfig.sh: Correct shell portability issue.
5163
5164 2017-09-06 Kamil Rytarowski <n54@gmx.com>
5165
5166 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
5167
5168 2017-09-06 John Baldwin <jhb@FreeBSD.org>
5169
5170 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
5171 * NEWS: Mention new FreeBSD/mips native configuration.
5172 * configure.host: Add aarch64*-*-freebsd*.
5173 * configure.nat: Likewise.
5174 * aarch64-fbsd-nat.c: New file.
5175
5176 2017-09-06 John Baldwin <jhb@FreeBSD.org>
5177
5178 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
5179 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
5180 * NEWS: Mention new FreeBSD/aarch64 target.
5181 * configure.tgt: Add aarch64*-*-freebsd*.
5182 * aarch64-fbsd-tdep.c: New file.
5183 * aarch64-fbsd-tdep.h: New file.
5184
5185 2017-09-06 Kamil Rytarowski <n54@gmx.com>
5186
5187 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
5188
5189 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5190
5191 * parse.c (find_minsym_type_and_address): Don't relocate addresses
5192 of TLS symbols.
5193
5194 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5195
5196 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
5197 call.
5198
5199 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5200
5201 * infrun.c (follow_exec): Call add_thread after
5202 target_find_description.
5203
5204 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5205
5206 * infrun.c (handle_inferior_event_1): When exec'ing, read
5207 stop_pc after follow_exec.
5208
5209 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5210
5211 * remote.c (process_g_packet): Update error message.
5212
5213 2017-09-05 Yao Qi <yao.qi@linaro.org>
5214
5215 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
5216 targets.
5217
5218 2017-09-05 Pedro Alves <palves@redhat.com>
5219
5220 * eval.c (eval_call, evaluate_funcall): New functions, factored
5221 out from ...
5222 (evaluate_subexp_standard): ... this.
5223
5224 2017-09-05 Yao Qi <yao.qi@linaro.org>
5225
5226 * amd64-tdep.c (amd64_target_description): Create target
5227 descriptions.
5228 (_initialize_amd64_tdep): Don't call functions
5229 initialize_tdesc_amd64_*. Add self tests.
5230 * arch/amd64.c (amd64_create_target_description): Add parameter
5231 is_linux. Call set_tdesc_osabi if is_linux is true.
5232 * arch/amd64.h (amd64_create_target_description): Update the
5233 declaration.
5234 * arch/i386.c (i386_create_target_description): Add parameter
5235 is_linux. Call set_tdesc_osabi if is_linux is true.
5236 * arch/i386.h (i386_create_target_description): Update
5237 declaration.
5238 * configure.tgt: Add i386.o to gdb_target_obs.
5239 * features/Makefile (XMLTOC): Remove i386/*.xml.
5240 * features/i386/amd64-avx-avx512.c: Remove.
5241 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
5242 * features/i386/amd64-avx-mpx.c: Remove.
5243 * features/i386/amd64-avx.c: Remove.
5244 * features/i386/amd64-mpx.c: Remove.
5245 * features/i386/amd64.c: Remove.
5246 * features/i386/i386-avx-avx512.c: Remove.
5247 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
5248 * features/i386/i386-avx-mpx.c: Remove.
5249 * features/i386/i386-avx.c: Remove.
5250 * features/i386/i386-mmx.c: Remove.
5251 * features/i386/i386-mpx.c: Remove.
5252 * features/i386/i386.c: Remove.
5253 * i386-tdep.c: Don't include features/i386/i386*.c., include
5254 target-descriptions.h and arch/i386.h.
5255 (i386_target_description): Create target descriptions.
5256 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
5257 functions. Do self tests.
5258
5259 2017-09-05 Yao Qi <yao.qi@linaro.org>
5260
5261 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
5262 * features/i386/amd64-avx-avx512-linux.c: Removed.
5263 * features/i386/amd64-avx-linux.c: Removed.
5264 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
5265 * features/i386/amd64-avx-mpx-linux.c: Removed.
5266 * features/i386/amd64-linux.c: Removed.
5267 * features/i386/amd64-mpx-linux.c: Removed.
5268 * features/i386/x32-avx-avx512-linux.c: Removed.
5269 * features/i386/x32-avx-linux.c: Removed.
5270 * features/i386/x32-linux.c: Removed.
5271
5272 2017-09-05 Yao Qi <yao.qi@linaro.org>
5273
5274 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
5275 features/i386/*.c.
5276 (amd64_linux_read_description): Call
5277 amd64_create_target_description.
5278 * arch/amd64.c: New file.
5279 * arch/amd64.h: New file.
5280 * configure.tgt (x86_64-*-linux*): Append amd64.o.
5281 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
5282
5283 2017-09-05 Yao Qi <yao.qi@linaro.org>
5284
5285 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
5286 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
5287 (amd64_linux_read_description): Create target descriptions.
5288 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
5289 functions. Add unit tests.
5290 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
5291 x32-core.xml.
5292 * features/i386/64bit-avx.c: Generated.
5293 * features/i386/64bit-avx512.c: Generated.
5294 * features/i386/64bit-core.c: Generated.
5295 * features/i386/64bit-linux.c: Generated.
5296 * features/i386/64bit-mpx.c: Generated.
5297 * features/i386/64bit-pkeys.c: Generated.
5298 * features/i386/64bit-segments.c: Generated.
5299 * features/i386/64bit-sse.c: Generated.
5300 * features/i386/x32-core.c: Generated.
5301 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
5302 c files for amd64-linux and x32-linux.
5303
5304 2017-09-05 Yao Qi <yao.qi@linaro.org>
5305
5306 * amd64-linux-tdep.c (amd64_linux_read_description): New
5307 function.
5308 (amd64_linux_core_read_description): Call
5309 amd64_linux_read_description.
5310 (amd64_linux_init_abi): Likewise.
5311 (amd64_x32_linux_init_abi): Likewise.
5312 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
5313 * x86-linux-nat.c (x86_linux_read_description): Call
5314 amd64_linux_read_description.
5315
5316 2017-09-05 Yao Qi <yao.qi@linaro.org>
5317
5318 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
5319 comments.
5320
5321 2017-09-05 Yao Qi <yao.qi@linaro.org>
5322
5323 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
5324 * features/i386/i386-avx-avx512-linux.c: Remove.
5325 * features/i386/i386-avx-linux.c: Remove.
5326 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
5327 * features/i386/i386-avx-mpx-linux.c: Remove.
5328 * features/i386/i386-linux.c: Remove.
5329 * features/i386/i386-mmx-linux.c: Remove.
5330 * features/i386/i386-mpx-linux.c: Remove.
5331
5332 2017-09-05 Yao Qi <yao.qi@linaro.org>
5333
5334 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
5335 (SFILES): Add arch/i386.c.
5336 (HFILES_NO_SRCDIR): Add arch/i386.h.
5337 * arch/i386.c: New file.
5338 * arch/i386.h: New file.
5339 * arch/tdesc.h (allocate_target_description): Declare.
5340 (set_tdesc_architecture): Declare.
5341 (set_tdesc_osabi): Declare.
5342 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
5343 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
5344 include arch/i386.h.
5345 (i386_linux_read_description): Remove code and call
5346 i386_create_target_description.
5347 (set_tdesc_architecture): New function.
5348 (set_tdesc_osabi): New function.
5349 * target-descriptions.h (allocate_target_description): Remove.
5350
5351 2017-09-05 Yao Qi <yao.qi@linaro.org>
5352
5353 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
5354 * target-descriptions.c (tdesc_create_feature): Likewise, and
5355 adjust code.
5356 * features/i386/32bit-avx.c: Re-generated.
5357 * features/i386/32bit-avx512.c: Re-generated.
5358 * features/i386/32bit-core.c: Re-generated.
5359 * features/i386/32bit-linux.c: Re-generated.
5360 * features/i386/32bit-mpx.c: Re-generated.
5361 * features/i386/32bit-pkeys.c: Re-generated.
5362 * features/i386/32bit-sse.c: Re-generated.
5363
5364 2017-09-05 Yao Qi <yao.qi@linaro.org>
5365
5366 * regformats/regdef.h (struct reg): Override operator == and !=.
5367
5368 2017-09-05 Yao Qi <yao.qi@linaro.org>
5369
5370 * arch/tdesc.h: New file.
5371 * regformats/regdat.sh: Generate code using tdesc_create_reg.
5372 * target-descriptions.c: Update comments.
5373 * target-descriptions.h: Include "arch/tdesc.h". Remove the
5374 declarations.
5375 * features/i386/32bit-avx.c: Re-generated.
5376 * features/i386/32bit-avx512.c: Re-generated.
5377 * features/i386/32bit-core.c: Re-generated.
5378 * features/i386/32bit-linux.c: Re-generated.
5379 * features/i386/32bit-mpx.c: Re-generated.
5380 * features/i386/32bit-pkeys.c: Re-generated.
5381 * features/i386/32bit-sse.c: Re-generated.
5382
5383 2017-09-05 Yao Qi <yao.qi@linaro.org>
5384
5385 * regformats/regdat.sh: Update generated code.
5386
5387 2017-09-05 Yao Qi <yao.qi@linaro.org>
5388
5389 * regformats/regdat.sh: Adjust code order.
5390
5391 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5392
5393 * expprint.c (dump_subexp_body_standard): Use constant format
5394 string in fprintf_filtered call.
5395
5396 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5397
5398 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
5399 NetBSD/i386.
5400 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
5401
5402 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5403
5404 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
5405
5406 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5407
5408 * bsd-kvm.o: Define _KMEMUSER.
5409 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
5410 * configure: Regenerate.
5411
5412 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5413
5414 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
5415 * i386-fbsd-nat.c: Likewise.
5416
5417 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5418
5419 * unittests/array-view-selftests.c: Add include of <array>.
5420
5421 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5422
5423 * spu-tdep.c (flush_ea_cache): Add missing argument to
5424 call_function_by_hand.
5425
5426 2017-09-04 Pedro Alves <palves@redhat.com>
5427
5428 * NEWS (Safer support for debugging with no debug info): New.
5429
5430 2017-09-04 Pedro Alves <palves@redhat.com>
5431
5432 * c-exp.y (function_method, function_method_void): Add current
5433 instance flags to TYPE_INSTANCE.
5434 * dwarf2read.c (check_modifier): New.
5435 (compute_delayed_physnames): Assert that only C++ adds delayed
5436 physnames. Mark fn_fields as const/volatile depending on
5437 physname.
5438 * eval.c (make_params): New type_instance_flags parameter. Use
5439 it as the new type's instance flags.
5440 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
5441 flags element and pass it to make_params.
5442 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
5443 instance flags element.
5444 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
5445 * gdbtypes.h: Include "enum-flags.h".
5446 (type_instance_flags): New enum-flags type.
5447 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
5448 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
5449 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
5450 (follow_type_instance_flags): New function.
5451 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
5452 * parser-defs.h (follow_type_instance_flags): Declare.
5453 * valops.c (value_struct_elt_for_reference): const/volatile must
5454 match too.
5455
5456 2017-09-04 Pedro Alves <palves@redhat.com>
5457
5458 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
5459 function/method scopes; lookup the nested name as a function local
5460 static variable.
5461
5462 2017-09-04 Pedro Alves <palves@redhat.com>
5463
5464 (%type <voidval>): Add function_method.
5465 * c-exp.y (exp): New production for calls with no arguments.
5466 (function_method, function_method_void_or_typelist): New
5467 productions.
5468 (exp): New production for "method()::static_var".
5469 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
5470 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5471 Handle OP_FUNC_STATIC_VAR.
5472 * parse.c (operator_length_standard):
5473 Handle OP_FUNC_STATIC_VAR.
5474
5475 2017-09-04 Pedro Alves <palves@redhat.com>
5476
5477 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
5478 handling.
5479 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5480 Ditto.
5481 * parse.c (operator_length_standard, operator_check_standard):
5482 Ditto.
5483 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
5484
5485 2017-09-04 Pedro Alves <palves@redhat.com>
5486
5487 * ax-gdb.c: Include "typeprint.h".
5488 (gen_expr_for_cast): New function.
5489 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
5490 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
5491 type is unknown.
5492 * dwarf2read.c (new_symbol_full): Fallback to int instead of
5493 nodebug_data_symbol.
5494 * eval.c: Include "typeprint.h".
5495 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
5496 Error out if symbol has unknown type.
5497 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
5498 evaluate_subexp_for_cast.
5499 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
5500 OP_VAR_MSYM_VALUE.
5501 (evaluate_subexp_for_cast): New function.
5502 * gdbtypes.c (init_nodebug_var_type): New function.
5503 (objfile_type): Use it to initialize types of variables with no
5504 debug info.
5505 * typeprint.c (error_unknown_type): New.
5506 * typeprint.h (error_unknown_type): New declaration.
5507 * compile/compile-c-types.c (convert_type_basic): Handle
5508 TYPE_CODE_ERROR; warn and fallback to int for variables with
5509 unknown type.
5510
5511 2017-09-04 Pedro Alves <palves@redhat.com>
5512
5513 * eval.c (evaluate_var_value): New function, factored out from ...
5514 (evaluate_subexp_standard): ... here.
5515
5516 2017-09-04 Pedro Alves <palves@redhat.com>
5517
5518 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
5519 Remove useless assignments to 'op'.
5520
5521 2017-09-04 Pedro Alves <palves@redhat.com>
5522
5523 * eval.c (eval_skip_value): New function.
5524 (evaluate_subexp_standard): Use it.
5525
5526 2017-09-04 Pedro Alves <palves@redhat.com>
5527
5528 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
5529 function name from symbol/minsym and pass it to
5530 error_call_unknown_return_type.
5531
5532 2017-09-04 Pedro Alves <palves@redhat.com>
5533
5534 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
5535 * ax-gdb.c (gen_msym_var_ref): New function.
5536 (gen_expr): Handle OP_VAR_MSYM_VALUE.
5537 * eval.c (evaluate_var_msym_value): New function.
5538 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
5539 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
5540 to call_function_by_hand.
5541 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5542 Handle OP_VAR_MSYM_VALUE.
5543 (union exp_element) <msymbol>: New field.
5544 * minsyms.h (struct type): Forward declare.
5545 (find_minsym_type_and_address): Declare.
5546 * parse.c (write_exp_elt_msym): New function.
5547 (write_exp_msymbol): Delete, refactored as ...
5548 (find_minsym_type_and_address): ... this new function.
5549 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
5550 (operator_length_standard, operator_check_standard): Handle
5551 OP_VAR_MSYM_VALUE.
5552 * std-operator.def (OP_VAR_MSYM_VALUE): New.
5553
5554 2017-09-04 Pedro Alves <palves@redhat.com>
5555
5556 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
5557 TYPE_GNU_IFUNC specially here. Throw error if return type is
5558 unknown.
5559 * ada-typeprint.c (print_func_type): Handle functions with unknown
5560 return type.
5561 * c-typeprint.c (c_type_print_base): Handle functions and methods
5562 with unknown return type.
5563 * compile/compile-c-symbols.c (convert_symbol_bmsym)
5564 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
5565 * compile/compile-c-types.c: Include "objfiles.h".
5566 (convert_func): For functions with unknown return type, warn and
5567 default to int.
5568 * compile/compile-object-run.c (compile_object_run): Adjust call
5569 to call_function_by_hand_dummy.
5570 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
5571 call_function_by_hand.
5572 * eval.c (evaluate_subexp_standard): Adjust calls to
5573 call_function_by_hand. Handle functions and methods with unknown
5574 return type. Pass expect_type to call_function_by_hand.
5575 * f-typeprint.c (f_type_print_base): Handle functions with unknown
5576 return type.
5577 * gcore.c (call_target_sbrk): Adjust call to
5578 call_function_by_hand.
5579 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
5580 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
5581 an integer address type instead of nodebug.
5582 * guile/scm-value.c (gdbscm_value_call): Adjust call to
5583 call_function_by_hand.
5584 * infcall.c (error_call_unknown_return_type): New function.
5585 (call_function_by_hand): New "default_return_type" parameter.
5586 Pass it down.
5587 (call_function_by_hand_dummy): New "default_return_type"
5588 parameter. Use it instead of defaulting to int. If there's no
5589 default and the return type is unknown, throw an error. If
5590 there's a default return type, and the called function has no
5591 debug info, then assume the function is prototyped.
5592 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
5593 New "default_return_type" parameter.
5594 (error_call_unknown_return_type): New declaration.
5595 * linux-fork.c (call_lseek): Cast return type of lseek.
5596 (inferior_call_waitpid, checkpoint_command): Adjust calls to
5597 call_function_by_hand.
5598 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
5599 calls to call_function_by_hand.
5600 * m2-typeprint.c (m2_procedure): Handle functions with unknown
5601 return type.
5602 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5603 (value_nsstring, print_object_command): Adjust calls to
5604 call_function_by_hand.
5605 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
5606 functions with unknown return type.
5607 (pascal_type_print_func_varspec_suffix): New function.
5608 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
5609 TYPE_CODE_METHOD>: Use it.
5610 * python/py-value.c (valpy_call): Adjust call to
5611 call_function_by_hand.
5612 * rust-lang.c (rust_evaluate_funcall): Adjust call to
5613 call_function_by_hand.
5614 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
5615 call_function_by_hand.
5616 * valops.c (value_allocate_space_in_inferior): Adjust call to
5617 call_function_by_hand.
5618 * typeprint.c (type_print_unknown_return_type): New function.
5619 * typeprint.h (type_print_unknown_return_type): New declaration.
5620
5621 2017-09-04 Pedro Alves <palves@redhat.com>
5622
5623 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
5624 types with more than one parameter as prototyped.
5625
5626 2017-09-04 Pedro Alves <palves@redhat.com>
5627
5628 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
5629 (disassemble_command): Use gdb_disassembly_flags instead of bare
5630 int.
5631 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
5632 (dump_insns, do_mixed_source_and_assembly_deprecated)
5633 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
5634 Use gdb_disassembly_flags instead of bare int.
5635 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
5636 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
5637 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
5638 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
5639 (enum gdb_disassembly_flag): ... values of this new enumeration.
5640 (gdb_disassembly_flags): Define.
5641 (gdb_disassembly)
5642 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
5643 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
5644 gdb_disassembly_flags instead of bare int.
5645 * record-btrace.c (btrace_insn_history)
5646 (record_btrace_insn_history, record_btrace_insn_history_range)
5647 (record_btrace_insn_history_from): Use gdb_disassembly_flags
5648 instead of bare int.
5649 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
5650 Use gdb_disassembly_flags instead of bare int.
5651 * target-debug.h (target_debug_print_gdb_disassembly_flags):
5652 Define.
5653 * target-delegates.c: Regenerate.
5654 * target.c (target_insn_history, target_insn_history_from)
5655 (target_insn_history_range): Use gdb_disassembly_flags instead of
5656 bare int.
5657 * target.h: Include "disasm.h".
5658 (struct target_ops) <to_insn_history, to_insn_history_from,
5659 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
5660 int.
5661 (target_insn_history, target_insn_history_from)
5662 (target_insn_history_range): Use gdb_disassembly_flags instead of
5663 bare int.
5664
5665 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5666
5667 * cli/cli-script.c (build_command_line): For if/while commands,
5668 check whether args is empty.
5669
5670 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5671
5672 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
5673 (enum command_control_type): Likewise.
5674 (struct command_line): Likewise.
5675 (free_command_lines): Likewise.
5676 (struct command_lines_deleter): Likewise.
5677 (command_line_up): Likewise.
5678 (read_command_lines): Likewise.
5679 (read_command_lines_1): Likewise.
5680 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
5681 (enum command_control_type): Likewise.
5682 (struct command_line): Likewise.
5683 (free_command_lines): Likewise.
5684 (struct command_lines_deleter): Likewise.
5685 (command_line_up): Likewise.
5686 (read_command_lines): Likewise.
5687 (read_command_lines_1): Likewise.
5688 * breakpoint.h: Include cli/cli-script.h.
5689 * extension-priv.h: Likewise.
5690 * gdbcmd.h: Likewise.
5691
5692 2017-09-04 Pedro Alves <palves@redhat.com>
5693
5694 * ada-lang.c (is_known_support_routine): Move sal declaration to
5695 where it is initialized.
5696 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
5697 (parse_breakpoint_sals, decode_static_tracepoint_spec)
5698 (clear_command, update_static_tracepoint): Remove init_sal
5699 references. Move declarations closer to initializations.
5700 * cli/cli-cmds.c (list_command): Move sal declarations closer to
5701 initializations.
5702 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
5703 references. Move sal declarations closer to initializations.
5704 * frame.c (find_frame_sal): Return a symtab_and_line via function
5705 return instead of output parameter. Remove init_sal references.
5706 * frame.h (find_frame_sal): Return a symtab_and_line via function
5707 return instead of output parameter.
5708 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
5709 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
5710 instead of memset.
5711 (gdbscm_find_pc_line): Remove init_sal reference.
5712 * infcall.c (call_function_by_hand_dummy): Remove init_sal
5713 references. Move declarations closer to initializations.
5714 * infcmd.c (set_step_frame): Update. Move declarations closer to
5715 initializations.
5716 (finish_backward): Remove init_sal references. Move declarations
5717 closer to initializations.
5718 * infrun.c (process_event_stop_test, handle_step_into_function)
5719 (insert_hp_step_resume_breakpoint_at_frame)
5720 (insert_step_resume_breakpoint_at_caller): Likewise.
5721 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
5722 (symbol_to_sal): Likewise.
5723 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
5724 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
5725 to its initialization.
5726 * reverse.c (save_bookmark_command): Use new/delete. Remove
5727 init_sal references. Move declarations closer to initializations.
5728 * source.c (get_current_source_symtab_and_line): Remove brace
5729 initialization.
5730 (set_current_source_symtab_and_line): Now takes the sal by const
5731 reference. Remove brace initialization.
5732 (line_info): Remove init_sal reference.
5733 * source.h (set_current_source_symtab_and_line): Now takes a
5734 symtab_and_line via const reference.
5735 * stack.c (set_current_sal_from_frame): Adjust.
5736 (print_frame_info): Adjust.
5737 (get_last_displayed_sal): Return the sal via function return
5738 instead of via output parameter. Simplify.
5739 (frame_info): Adjust.
5740 * stack.h (get_last_displayed_sal): Return the sal via function
5741 return instead of via output parameter.
5742 * symtab.c (init_sal): Delete.
5743 (find_pc_sect_line): Remove init_sal references. Move
5744 declarations closer to initializations.
5745 (find_function_start_sal): Remove init_sal references. Move
5746 declarations closer to initializations.
5747 * symtab.h (struct symtab_and_line): In-class initialize all
5748 fields.
5749 * tracepoint.c (set_traceframe_context)
5750 (print_one_static_tracepoint_marker): Remove init_sal references.
5751 Move declarations closer to initializations.
5752 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
5753 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
5754 declarations closer to initializations.
5755 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
5756 init_sal references. Adjust.
5757
5758 2017-09-04 Pedro Alves <palves@redhat.com>
5759
5760 * ax-gdb.c (agent_command_1): Use range-for.
5761 * break-catch-throw.c (re_set_exception_catchpoint): Update.
5762 * breakpoint.c: Include "common/array-view.h".
5763 (init_breakpoint_sal, create_breakpoint_sal): Change sals
5764 parameter from struct symtabs_and_lines to
5765 array_view<symtab_and_line>. Adjust. Use range-for. Update.
5766 (breakpoint_sals_to_pc): Change sals parameter from struct
5767 symtabs_and_lines to std::vector reference.
5768 (check_fast_tracepoint_sals): Change sals parameter from struct
5769 symtabs_and_lines to std::array_view. Use range-for.
5770 (decode_static_tracepoint_spec): Return a std::vector instead of
5771 symtabs_and_lines. Update.
5772 (create_breakpoint): Update.
5773 (break_range_command, until_break_command, clear_command): Update.
5774 (base_breakpoint_decode_location, bkpt_decode_location)
5775 (bkpt_probe_create_sals_from_location)
5776 (bkpt_probe_decode_location, tracepoint_decode_location)
5777 (tracepoint_probe_decode_location)
5778 (strace_marker_create_sals_from_location): Return a std::vector
5779 instead of symtabs_and_lines.
5780 (strace_marker_create_breakpoints_sal): Update.
5781 (strace_marker_decode_location): Return a std::vector instead of
5782 symtabs_and_lines. Update.
5783 (update_breakpoint_locations): Change struct symtabs_and_lines
5784 parameters to gdb::array_view. Adjust.
5785 (location_to_sals): Return a std::vector instead of
5786 symtabs_and_lines. Update.
5787 (breakpoint_re_set_default): Use std::vector instead of struct
5788 symtabs_and_lines.
5789 (decode_location_default): Return a std::vector instead of
5790 symtabs_and_lines. Update.
5791 * breakpoint.h: Include "common/array-view.h".
5792 (struct breakpoint_ops) <decode_location>: Now returns a
5793 std::vector instead of returning a symtabs_and_lines via output
5794 parameter.
5795 (update_breakpoint_locations): Change sals parameters to use
5796 gdb::array_view.
5797 * cli/cli-cmds.c (edit_command, list_command): Update to use
5798 std::vector and gdb::array_view.
5799 (ambiguous_line_spec): Adjust to use gdb::array_view and
5800 range-for.
5801 (compare_symtabs): Rename to ...
5802 (cmp_symtabs): ... this. Change parameters to symtab_and_line
5803 const reference and adjust.
5804 (filter_sals): Rewrite using std::vector and standard algorithms.
5805 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
5806 (jump_command): Update to use std::vector.
5807 * linespec.c (struct linespec_state) <canonical_names>: Update
5808 comment.
5809 (add_sal_to_sals_basic): Delete.
5810 (add_sal_to_sals, filter_results, convert_results_to_lsals)
5811 (decode_line_2, create_sals_line_offset)
5812 (convert_address_location_to_sals, convert_linespec_to_sals)
5813 (convert_explicit_location_to_sals, parse_linespec)
5814 (event_location_to_sals, decode_line_full, decode_line_1)
5815 (decode_line_with_current_source)
5816 (decode_line_with_last_displayed, decode_objc)
5817 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
5818 (linespec_result::~linespec_result): Adjust to use std::vector
5819 instead of symtabs_and_lines.
5820 * linespec.h (linespec_sals::sals): Now a std::vector.
5821 (struct linespec_result): Use std::vector, bool, and in-class
5822 initialization.
5823 (decode_line_1, decode_line_with_current_source)
5824 (decode_line_with_last_displayed): Return std::vector.
5825 * macrocmd.c (info_macros_command): Use std::vector.
5826 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
5827 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
5828 std::vector.
5829 * probe.h (parse_probes): Return a std::vector.
5830 * python/python.c (gdbpy_decode_line): Use std::vector and
5831 gdb::array_view.
5832 * source.c (select_source_symtab, line_info): Use std::vector.
5833 * stack.c (func_command): Use std::vector.
5834 * symtab.h (struct symtabs_and_lines): Delete.
5835 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
5836
5837 2017-09-04 Pedro Alves <palves@redhat.com>
5838
5839 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5840 unittests/array-view-selftests.c.
5841 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
5842 * common/array-view.h: New file.
5843 * unittests/array-view-selftests.c: New file.
5844
5845 2017-09-04 Pedro Alves <palves@redhat.com>
5846
5847 * cli/cli-cmds.c (edit_command): Pass message to
5848 ambiguous_line_spec.
5849 (list_command): Pass message to ambiguous_line_spec. Say
5850 "first"/"last" instead of "start" and "end" to be consistent with
5851 the manual.
5852 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
5853 them to print formatted message.
5854
5855 2017-09-04 Pedro Alves <palves@redhat.com>
5856
5857 * btrace.c (ftrace_add_pt): Pass btrace_insn to
5858 ftrace_update_insns by reference instead of pointer.
5859
5860 2017-09-04 Yao Qi <yao.qi@linaro.org>
5861
5862 * i386-go32-tdep.c: Include x86-xstate.h.
5863 (i386_go32_init_abi): Call i386_target_description.
5864 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
5865 if xcr0 is X86_XSTATE_X87_MASK.
5866 * i386-tdep.h (tdesc_i386): Remove the declaration.
5867 (tdesc_i386_mmx): Likewise.
5868
5869 2017-09-04 Yao Qi <yao.qi@linaro.org>
5870
5871 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
5872 X86_XSTATE_SSE_MASK instead of 0.
5873
5874 2017-09-04 Yao Qi <yao.qi@linaro.org>
5875
5876 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
5877 i386_target_description.
5878 * i386-fbsd-nat.c (i386fbsd_read_description): Call
5879 i386_target_description.
5880 * i386-tdep.c (i386_gdbarch_init): Likewise.
5881
5882 2017-09-04 Yao Qi <yao.qi@linaro.org>
5883
5884 * amd64-darwin-tdep.c: Include "x86-xstate.h".
5885 (x86_darwin_init_abi_64): Call amd64_target_description.
5886 * amd64-dicos-tdep.c: Likewise.
5887 * amd64-fbsd-nat.c: Likewise.
5888 * amd64-fbsd-tdep.c: Likewise.
5889 * amd64-nbsd-tdep.c: Likewise.
5890 * amd64-obsd-tdep.c: Likewise.
5891 * amd64-sol2-tdep.c: Likewise.
5892 * amd64-windows-tdep.c: Likewise.
5893 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
5894
5895 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5896
5897 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
5898 (btrace_function) <insn>: Change type to use std::vector.
5899 * btrace.c (ftrace_debug, ftrace_call_num_insn,
5900 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
5901 ftrace_update_insns, ftrace_compute_global_level_offset,
5902 btrace_stitch_bts, btrace_clear, btrace_insn_get,
5903 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
5904 change to std::vector.
5905 (ftrace_update_insns): Adjust to change to std::vector, change
5906 type of INSN parameter.
5907 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
5908 * record-btrace.c (btrace_call_history_insn_range,
5909 btrace_compute_src_line_range,
5910 record_btrace_frame_prev_register): Adjust to change to
5911 std::vector.
5912 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
5913 to change to std::vector.
5914
5915 2017-09-03 Tom Tromey <tom@tromey.com>
5916
5917 * corefile.c (reopen_exec_file): Use std::string.
5918
5919 2017-09-03 Tom Tromey <tom@tromey.com>
5920
5921 * compile/compile.c (compile_register_name_mangled): Return
5922 std::string.
5923 * compile/compile-loc2c.c (pushf_register_address): Update.
5924 (pushf_register): Update.
5925 * compile/compile-c-types.c (convert_array): Update.
5926 * compile/compile-c-symbols.c (generate_vla_size): Update.
5927 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
5928 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
5929 (convert_one_symbol): Update.
5930 (generate_c_for_for_one_variable): Update.
5931 * compile/compile-c-support.c (c_get_range_decl_name): Return a
5932 std::string.
5933 (generate_register_struct): Update.
5934 * compile/compile-internal.h (c_get_range_decl_name): Return a
5935 std::string.
5936 (compile_register_name_mangled): Return std::string.
5937
5938 2017-09-03 Tom Tromey <tom@tromey.com>
5939
5940 * utils.c (perror_string): Return a std::string.
5941 (throw_perror_with_name, perror_warning_with_name): Update.
5942
5943 2017-09-03 Tom Tromey <tom@tromey.com>
5944
5945 * demangle.c (demangle_command): Use std::string,
5946 unique_xmalloc_ptr.
5947
5948 2017-09-03 Tom Tromey <tom@tromey.com>
5949
5950 * cli/cli-setshow.c (do_set_command): Use std::string.
5951
5952 2017-09-03 Tom Tromey <tom@tromey.com>
5953
5954 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5955
5956 2017-09-03 Tom Tromey <tom@tromey.com>
5957
5958 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5959
5960 2017-09-03 Tom Tromey <tom@tromey.com>
5961
5962 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5963 gdb::unique_xmalloc_ptr.
5964
5965 2017-09-03 Tom Tromey <tom@tromey.com>
5966
5967 * thread.c (print_thread_info_1): Use string_printf.
5968 (thread_apply_command, thread_apply_all_command): Use
5969 std::string.
5970
5971 2017-09-03 Tom Tromey <tom@tromey.com>
5972
5973 * valprint.c (val_print_string): Update.
5974 * gdbcore.h (memory_error_message): Return std::string.
5975 * corefile.c (memory_error_message): Return std::string.
5976 (memory_error): Update.
5977 * breakpoint.c (insert_bp_location): Update.
5978
5979 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5980
5981 * target/waitstatus.h (target_waitstatus_to_string): Change
5982 return type to std::string.
5983 * target/waitstatus.c (target_waitstatus_to_string): Return
5984 std::string.
5985 * target.h (target_waitstatus_to_string): Remove declaration.
5986 * infrun.c (resume, clear_proceed_status_thread,
5987 print_target_wait_results, do_target_wait, save_waitstatus,
5988 stop_all_threads): Adjust.
5989 * record-btrace.c (record_btrace_wait): Adjust.
5990 * target-debug.h
5991 (target_debug_print_struct_target_waitstatus_p): Adjust.
5992
5993 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5994
5995 PR gdb/22046
5996 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5997 detection.
5998
5999 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6000
6001 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
6002 for setting/unsetting environment variables on the remote target.
6003 (New remote packets): Add entries for QEnvironmentHexEncoded,
6004 QEnvironmentUnset and QEnvironmentReset.
6005 * common/environ.c (gdb_environ::operator=): Extend method to
6006 handle m_user_set_env_list and m_user_unset_env_list.
6007 (gdb_environ::clear): Likewise.
6008 (match_var_in_string): Change type of first parameter from 'char
6009 *' to 'const char *'.
6010 (gdb_environ::set): Extend method to handle
6011 m_user_set_env_list and m_user_unset_env_list.
6012 (gdb_environ::unset): Likewise.
6013 (gdb_environ::clear_user_set_env): New method.
6014 (gdb_environ::user_set_envp): Likewise.
6015 (gdb_environ::user_unset_envp): Likewise.
6016 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
6017 m_user_unset_env_list on move constructor/assignment.
6018 (unset): Add new default parameter 'update_unset_list = true'.
6019 (clear_user_set_env): New method.
6020 (user_set_envp): Likewise.
6021 (user_unset_envp): Likewise.
6022 (m_user_set_env_list): New std::set.
6023 (m_user_unset_env_list): Likewise.
6024 * common/rsp-low.c (hex2str): New function.
6025 (bin2hex): New overload for bin2hex function.
6026 * common/rsp-low.c (hex2str): New prototype.
6027 (str2hex): New overload prototype.
6028 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
6029 QEnvironmentUnset and QEnvironmentReset.
6030 (remote_protocol_features): Add QEnvironmentHexEncoded,
6031 QEnvironmentUnset and QEnvironmentReset packets.
6032 (send_environment_packet): New function.
6033 (extended_remote_environment_support): Likewise.
6034 (extended_remote_create_inferior): Call
6035 extended_remote_environment_support.
6036 (_initialize_remote): Add QEnvironmentHexEncoded,
6037 QEnvironmentUnset and QEnvironmentReset packet configs.
6038 * unittests/environ-selftests.c (gdb_selftest_env_var):
6039 New variable.
6040 (test_vector_initialization): New function.
6041 (test_init_from_host_environ): Likewise.
6042 (test_reinit_from_host_environ): Likewise.
6043 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
6044 Likewise.
6045 (test_unset_set_empty_vector): Likewise.
6046 (test_vector_clear): Likewise.
6047 (test_std_move): Likewise.
6048 (test_move_constructor):
6049 (test_self_move): Likewise.
6050 (test_set_unset_reset): Likewise.
6051 (run_tests): Rewrite in terms of the functions above.
6052
6053 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
6054
6055 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
6056 (adi_available): Use a temp variable of type CORE_ADDR as argument
6057 3 when calling target_auxv_search.
6058 (adi_normalize_address): Use masks and xor operators to calculate
6059 normalized address.
6060 (adi_read_versions, adi_write_versions, adi_print_versions)
6061 (do_examine, do_assign): Use paddress.
6062
6063 2017-08-29 John Baldwin <jhb@FreeBSD.org>
6064
6065 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
6066 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
6067 out of loop and add supply of FIR.
6068 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
6069 add collect of FIR.
6070
6071 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
6072
6073 PR gdb/21827
6074 * cli/cli-script.c (define_command): Don't convert command name
6075 to lower case.
6076
6077 2017-08-25 Joel Brobecker <brobecker@adacore.com>
6078
6079 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
6080 Update all callers accordingly. Remove all code blocks handling
6081 the case where DISPP is not NULL.
6082
6083 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6084
6085 PR symtab/22003
6086 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
6087 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6088 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
6089
6090 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6091
6092 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
6093 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
6094 (read_comp_units_from_section): New parameter abbrev_section, use
6095 read_and_check_comp_unit_head, allocate signatured_type if needed.
6096 (create_all_comp_units): Update read_comp_units_from_section caller.
6097
6098 2017-08-23 Pedro Alves <palves@redhat.com>
6099
6100 PR remote/21852
6101 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
6102 to null_ptid and switch to thread without reading the registers
6103 after adding the inferior.
6104
6105 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6106
6107 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
6108 compile-gcc.
6109 * compile/compile.c (compile_gcc, show_compile_gcc): New.
6110 (compile_to_object): Implement compile_gcc.
6111 (_initialize_compile): Install "set compile-gcc". Initialize
6112 compile_gcc.
6113
6114 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6115
6116 * compile/compile.c (compile_to_object): Conditionally call
6117 set_verbose. Conditionally call compile or compile_v0.
6118
6119 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
6120
6121 * sparc64-tdep.h: (adi_normalize_address): New export.
6122 * sparc-nat.h: (open_adi_tag_fd): New export.
6123 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
6124 * sparc64-linux-tdep.c:
6125 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
6126 (sparc64_linux_handle_segmentation_fault): New function.
6127 (sparc64_linux_init_abi): Register
6128 sparc64_linux_handle_segmentation_fault
6129 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
6130 (sparc64_addr_bits_remove): New function.
6131 (sparc64_init_abi): Register sparc64_addr_bits_remove.
6132 (MAX_PROC_NAME_SIZE): New macro.
6133 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
6134 (sparc64adilist): New variable.
6135 (adi_proc_list): New variable.
6136 (find_adi_info): New function.
6137 (add_adi_info): New function.
6138 (get_adi_info_proc): New function.
6139 (get_adi_info): New function.
6140 (info_adi_command): New function.
6141 (read_maps_entry): New function.
6142 (adi_available): New function.
6143 (adi_normalize_address): New function.
6144 (adi_align_address): New function.
6145 (adi_convert_byte_count): New function.
6146 (adi_tag_fd): New function.
6147 (adi_is_addr_mapped): New function.
6148 (adi_read_versions): New function.
6149 (adi_write_versions): New function.
6150 (adi_print_versions): New function.
6151 (do_examine): New function.
6152 (do_assign): New function.
6153 (adi_examine_command): New function.
6154 (adi_assign_command): New function.
6155 (_initialize_sparc64_adi_tdep): New function.
6156
6157 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
6158
6159 * breakpoint.c (breakpoints_info): Rename to ...
6160 (info_breakpoints_command): ... this.
6161 (watchpoints_info): Rename to ...
6162 (info_watchpoints_command): ... this.
6163 (tracepoints_info): Rename to ...
6164 (info_tracepoints_command): ... this.
6165 (_initialize_breakpoint): Adjust.
6166 * dcache.c (dcache_info): Rename to ...
6167 (info_display_command): ... this.
6168 (_initialize_dcache): Adjust.
6169 * frame.h (args_info): Rename to ...
6170 (info_args_command): ... this.
6171 (locals_info): Rename to ...
6172 (info_locals_command): ... this.
6173 * infcmd.c (nofp_registers_info): Rename to ...
6174 (info_registers_command): ... this.
6175 (float_info): Rename to ...
6176 (info_float_command): ... this.
6177 (program_info): Rename to ...
6178 (info_program_command): ... this.
6179 (all_registers_info): Rename to ...
6180 (info_all_registers_command): ... this.
6181 (vector_info): Rename to ...
6182 (info_vector_command): ... this.
6183 (float_info): Rename to ...
6184 (info_float_command): ... this.
6185 (_initialize_infcmd): Adjust.
6186 * inferior.h (term_info): Rename to ...
6187 (info_terminal_command): ... this.
6188 * inflow.c (term_info): Rename to ...
6189 (info_terminal_command): ... this.
6190 (_initialize_inflow): Adjust.
6191 * infrun.c (signals_info): Rename to ...
6192 (info_signals_command): ... this.
6193 (_initialize_infrun): Adjust.
6194 * objc-lang.c (classes_info): Rename to ...
6195 (info_classes_command): ... this.
6196 (selectors_info): Rename to ...
6197 (info_selectors_command): ... this.
6198 (_initialize_objc_language): Adjust.
6199 * printcmd.c (sym_info): Rename to ...
6200 (info_symbol_command): ... this.
6201 (address_info): Rename to ...
6202 (info_address_command): ... this.
6203 (display_info): Rename to ...
6204 (info_display_command): ... this.
6205 (_initialize_printcmd): Adjust.
6206 * reverse.c (bookmarks_info): Rename to ...
6207 (info_breakpoints_command): ... this.
6208 (_initialize_reverse): Adjust.
6209 * ser-go32.c (dos_info): Rename to ...
6210 (info_serial_command): ... this.
6211 (_initialize_ser_dos): Adjust.
6212 * skip.c (skip_info): Rename to ...
6213 (info_skip_command): ... this.
6214 (_initialize_step_skip): Adjust.
6215 * source.c (line_info): Rename to ...
6216 (info_line_command): ... this.
6217 (source_info): Rename to ...
6218 (info_source_command)
6219 * stack.c (frame_info): Rename to ...
6220 (info_frame_command): ... this.
6221 (locals_info): Rename to ...
6222 (info_locals_command): ... this.
6223 (args_info): Rename to ...
6224 (info_args_command): ... this.
6225 (_initialize_stack): Adjust.
6226 * symtab.c (sources_info): Rename to ...
6227 (info_sources_command): ... this.
6228 (variables_info): Rename to ...
6229 (info_variables_command): ... this.
6230 (functions_info): Rename to ...
6231 (info_functions_command): ... this.
6232 (types_info): Rename to ...
6233 (info_types_command): ... this.
6234 (_initialize_symtab): Adjust.
6235 * target.c (target_info): Rename to ...
6236 (info_target_command): ... this.
6237 (initialize_targets): Adjust.
6238 * tracepoint.c (tvariables_info): Rename to ...
6239 (info_tvariables_command): ... this.
6240 (scope_info): Rename to ...
6241 (info_scope_command): ... this.
6242 (trace_dump_actions): Adjust.
6243 (_initialize_tracepoint): Adjust.
6244
6245 2017-08-22 Tom Tromey <tom@tromey.com>
6246
6247 * breakpoint.h (install_breakpoint): Update.
6248 * breakpoint.c (add_solib_catchpoint): Update.
6249 (install_breakpoint): Change argument to a std::unique_ptr.
6250 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
6251 (create_breakpoint_sal, create_breakpoint): Update.
6252 (watch_command_1, catch_exec_command_1)
6253 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
6254 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
6255 Return the breakpoint.
6256 (set_raw_breakpoint_without_location, set_raw_breakpoint)
6257 (new_single_step_breakpoint): Update.
6258 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
6259 std::unique_ptr.
6260 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
6261 std::unique_ptr.
6262 * break-catch-sig.c (create_signal_catchpoint): Use
6263 std::unique_ptr.
6264 * ada-lang.c (create_ada_exception_catchpoint): Use
6265 std::unique_ptr.
6266
6267 2017-08-22 Tom Tromey <tom@tromey.com>
6268
6269 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
6270
6271 2017-08-22 Tom Tromey <tom@tromey.com>
6272
6273 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
6274 (lookup_partial_symbol): Update.
6275
6276 2017-08-22 Tom Tromey <tom@tromey.com>
6277
6278 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
6279 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
6280 (find_and_open_source, symtab_to_fullname): Update.
6281 * psymtab.c (psymtab_to_fullname): Update.
6282
6283 2017-08-22 Tom Tromey <tom@tromey.com>
6284
6285 * exec.c (exec_file_attach): Update.
6286 * linux-thread-db.c (try_thread_db_load): Update.
6287 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
6288 * utils.c (gdb_realpath): Change return type.
6289 (gdb_realpath_keepfile): Update.
6290 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
6291 (_initialize_utils): Register the new self test.
6292 * source.c (openp): Update.
6293 (find_and_open_source): Update.
6294 * nto-tdep.c (nto_find_and_open_solib): Update.
6295 * main.c (set_gdb_data_directory): Update.
6296 (captured_main_1): Update.
6297 * dwarf2read.c (dwarf2_get_dwz_file): Update
6298 (dw2_map_symbol_filenames): Update.
6299 * auto-load.c (auto_load_safe_path_vec_update): Update.
6300 (filename_is_in_auto_load_safe_path_vec): Change type of
6301 "filename_realp".
6302 (auto_load_objfile_script): Update.
6303 (file_is_auto_load_safe): Update. Use std::string.
6304 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
6305
6306 2017-08-22 Tom Tromey <tom@tromey.com>
6307
6308 * utils.c (gdb_realpath_keepfile): Return a
6309 gdb::unique_xmalloc_ptr.
6310 * exec.c (exec_file_attach): Update.
6311 * utils.h (gdb_realpath_keepfile): Return a
6312 gdb::unique_xmalloc_ptr.
6313
6314 2017-08-22 Tom Tromey <tom@tromey.com>
6315
6316 * compile/compile.c (compile_file_command): Use
6317 gdb::unique_xmalloc_ptr, std::string.
6318 * utils.c (gdb_abspath): Change return type.
6319 * source.c (openp): Update.
6320 * objfiles.c (allocate_objfile): Update.
6321 * main.c (set_gdb_data_directory): Update.
6322 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
6323
6324 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
6325
6326 * cli-cmds.c (list_commands): List actual code around more than
6327 one location.
6328
6329 2017-08-21 John Baldwin <jhb@FreeBSD.org>
6330
6331 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
6332
6333 2017-08-21 Pedro Alves <palves@redhat.com>
6334
6335 PR gdb/19487
6336 * c-exp.y (variable production): Handle function aliases.
6337 * minsyms.c (msymbol_is_text): New function.
6338 * minsyms.h (msymbol_is_text): Declare.
6339 * symtab.c (find_function_alias_target): New function.
6340 * symtab.h (find_function_alias_target): Declare.
6341
6342 2017-08-21 Pedro Alves <palves@redhat.com>
6343
6344 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
6345 typedefs.
6346 * typeprint.c (whatis_exp): If handling "whatis", and expression
6347 is OP_TYPE, strip one typedef level. Otherwise don't strip
6348 typedefs here.
6349 * valops.c (value_cast): Save "to" type before resolving
6350 stubs/typedefs. Use that type as resulting value's type.
6351
6352 2017-08-18 Tom Tromey <tom@tromey.com>
6353 Pedro Alves <palves@redhat.com>
6354
6355 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
6356 * sol-thread.c (sol_thread_resume, sol_thread_wait)
6357 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
6358 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
6359 * proc-service.c (ps_xfer_memory): Use scoped_restore.
6360 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
6361 (linux_get_siginfo_data): Add "thread" argument. Use
6362 scoped_restore.
6363 * linux-nat.c (linux_child_follow_fork)
6364 (check_stopped_by_watchpoint): Use scoped_restore.
6365 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
6366 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
6367 (restore_inferior_ptid, save_inferior_ptid): Remove.
6368 * btrace.c (btrace_fetch): Use scoped_restore.
6369 * bsd-uthread.c (bsd_uthread_fetch_registers)
6370 (bsd_uthread_store_registers): Use scoped_restore.
6371 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
6372 scoped_restore.
6373 * aix-thread.c (aix_thread_resume, aix_thread_wait)
6374 (aix_thread_xfer_partial): Use scoped_restore.
6375 * inferior.h (save_inferior_ptid): Remove.
6376
6377 2017-08-18 Yao Qi <yao.qi@linaro.org>
6378
6379 PR tdep/21818
6380 * arm-tdep.c (gdb_print_insn_arm): Mark
6381 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
6382
6383 2017-08-18 Yao Qi <yao.qi@linaro.org>
6384
6385 * NEWS: Mention GDBserver's new option "--selftest".
6386 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
6387 * selftest.c: Move it to common/selftest.c.
6388 * selftest.h: Move it to common/selftest.h.
6389 * selftest-arch.c (reset): New function.
6390 (tests_with_arch): Call reset.
6391
6392 2017-08-18 Yao Qi <yao.qi@linaro.org>
6393
6394 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
6395 instead of exception_fprintf and printf_filtered.
6396
6397 2017-08-18 Yao Qi <yao.qi@linaro.org>
6398
6399 * selftest.c (register_self_test): Rename it to
6400 selftests::register_test.
6401 (run_self_tests): selftest::run_tests.
6402 * selftest.h: Update declarations.
6403 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
6404 selftests::register_test_foreach_arch.
6405 * selftest-arch.h: Update declaration.
6406 * aarch64-tdep.c: Update.
6407 * arm-tdep.c: Likewise.
6408 * disasm-selftests.c: Likewise.
6409 * dwarf2loc.c: Likewise.
6410 * dwarf2-frame.c: Likewise.
6411 * findvar.c: Likewise.
6412 * gdbarch-selftests.c: Likewise.
6413 * maint.c (maintenance_selftest): Likewise.
6414 * regcache.c: Likewise.
6415 * rust-exp.y: Likewise.
6416 * selftest-arch.c: Likewise.
6417 * unittests/environ-selftests.c: Likewise.
6418 * unittests/function-view-selftests.c: Likewise.
6419 * unittests/offset-type-selftests.c: Likewise.
6420 * unittests/optional-selftests.c: Likewise.
6421 * unittests/scoped_restore-selftests.c: Likewise.
6422 * utils-selftests.c: Likewise.
6423
6424 2017-08-17 Pedro Alves <palves@redhat.com>
6425
6426 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
6427 local.
6428
6429 2017-08-17 Pedro Alves <palves@redhat.com>
6430
6431 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
6432 field.
6433 (reset_die_in_process): Delete, replaced by ...
6434 (process_die_scope): ... this new class. Make it responsible for
6435 freeing cu->line_header too.
6436 (process_die): Use process_die_scope.
6437 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
6438 cu->line_header_die_owner. Don't release the line header if it's
6439 owned by the CU.
6440 (setup_type_unit_groups): Make the CU/DIE own the line header.
6441 Don't release the line header here.
6442
6443 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
6444
6445 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
6446
6447 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
6448
6449 * NEWS: Mention new shortcuts for nexti and stepi in TUI
6450 Single-Key mode
6451
6452 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
6453
6454 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
6455 mode command list.
6456
6457 2017-08-15 Stafford Horne <shorne@gmail.com>
6458
6459 * MAINTAINERS (Write After Approval): Add Stafford Horne.
6460
6461 2017-08-15 Stafford Horne <shorne@gmail.com>
6462
6463 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
6464
6465 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
6466
6467 PR gdb/21954
6468 * infcmd.c (unset_environment_command): Use the 'clear' method on
6469 the environment instead of resetting it.
6470
6471 2017-08-15 John Baldwin <jhb@FreeBSD.org>
6472
6473 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
6474 platforms.
6475
6476 2017-08-14 Tom Tromey <tom@tromey.com>
6477
6478 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
6479 (print_binary_chars): Likewise.
6480 (BITS_IN_BYTES): Remove.
6481
6482 2017-08-14 Tom Tromey <tom@tromey.com>
6483
6484 PR gdb/21675
6485 * valprint.c (LOW_ZERO): Change value to 034.
6486 (print_octal_chars): Add static_asserts for octal constants.
6487 * printcmd.c (print_scalar_formatted): Add 'd' case.
6488
6489 2017-08-11 Tom Tromey <tom@tromey.com>
6490
6491 * symfile.c (add_symbol_file_command): Use std::vector.
6492
6493 2017-08-14 Tom Tromey <tom@tromey.com>
6494
6495 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
6496 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
6497 std::move.
6498 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
6499
6500 2017-08-11 Pedro Alves <palves@redhat.com>
6501
6502 * infrun.c (process_event_stop_test): Adjust
6503 function_name_is_marked_for_skip call.
6504 * skip.c: Include <list>.
6505 (skiplist_entry): Make it a class with private fields, and
6506 getters/setters.
6507 (skiplist_entry_chain): Delete.
6508 (skiplist_entries): New.
6509 (skiplist_entry_count): Delete.
6510 (highest_skiplist_entry_num): New.
6511 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
6512 (add_skiplist_entry): Delete.
6513 (skiplist_entry::skiplist_entry): New.
6514 (skiplist_entry::add_entry): New.
6515 (skip_file_command, skip_function): Adjust.
6516 (compile_skip_regexp): Delete.
6517 (skip_command): Don't compile regexp here. Adjust to use
6518 skiplist_entry::add_entry.
6519 (skip_info): Adjust to use range-for and getters.
6520 (skip_enable_command, skip_disable_command): Adjust to use
6521 range-for and setters.
6522 (skip_delete_command): Adjust to use std::list.
6523 (add_skiplist_entry): Delete.
6524 (skip_file_p): Delete, refactored as ...
6525 (skiplist_entry::do_skip_file_p): ... this new method.
6526 (skip_gfile_p): Delete, refactored as ...
6527 (skiplist_entry::do_gskip_file_p): ... this new method.
6528 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
6529 (skiplist_entry::skip_function_p): ... this new method.
6530 (function_name_is_marked_for_skip): Now returns bool, and takes
6531 the function sal by const reference. Adjust to use range-for and
6532 skiplist_entry methods.
6533 (_initialize_step_skip): Remove references to
6534 skiplist_entry_chain, skiplist_entry_count.
6535 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
6536 takes the function sal by const reference.
6537
6538 2017-08-11 Yao Qi <yao.qi@linaro.org>
6539
6540 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
6541 (dwarf2_frame_cache): Remove reset_cache_cleanup.
6542 (dwarf2_frame_cache):
6543 * frame-unwind.c (frame_unwind_try_unwinder): Catch
6544 RETURN_MASK_ALL and set *this_case to NULL.
6545 * frame-unwind.h: Update comments.
6546
6547 2017-08-11 Yao Qi <yao.qi@linaro.org>
6548
6549 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
6550 (dwarf2_frame_state_copy_regs): Remove.
6551 (dwarf2_frame_state_free_regs): Remove.
6552 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
6553 (dwarf2_restore_rule): Call method .alloc_regs instead of
6554 dwarf2_frame_state_alloc_regs.
6555 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
6556 constructor. Call std::move.
6557 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
6558 (dwarf2_frame_cache): Likewise.
6559
6560 [GDB_SELF_TEST]: Include selftest.h and
6561 selftest-arch.h.
6562 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
6563 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
6564 execute_cfa_program_test.
6565
6566 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
6567 copy ctor, assignment operator, move assignment.
6568 <alloc_regs>: New method.
6569 <swap>: New method.
6570 (struct dwarf2_frame_state): Delete dtor.
6571 (dwarf2_frame_state_alloc_regs): Remove declaration.
6572 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
6573 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
6574
6575 2017-08-11 Yao Qi <yao.qi@linaro.org>
6576
6577 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
6578 (dwarf2_frame_state::dwarf2_frame_state): New.
6579 (dwarf2_frame_state::~dwarf2_frame_state): New.
6580 (dwarf2_fetch_cfa_info): Update.
6581 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
6582 rather than a pointer. Update code.
6583 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
6584 dtor.
6585 <data_align, code_align, retaddr_column>: Change them to const.
6586 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
6587 to bool.
6588
6589 2017-08-11 Yao Qi <yao.qi@linaro.org>
6590
6591 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
6592 <loc.exp>: New field.
6593 * dwarf2-frame.c (execute_cfa_program): Update.
6594 (dwarf2_frame_prev_register): Update.
6595
6596 2017-08-10 Pedro Alves <palves@redhat.com>
6597
6598 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
6599
6600 2017-08-09 John Baldwin <jhb@FreeBSD.org>
6601
6602 * fbsd-nat.c (struct fbsd_fork_info): Remove.
6603 (fbsd_pending_children): Use std::list.
6604 (fbsd_remember_child): Likewise.
6605 (fbsd_is_child_pending): Likewise.
6606 (fbsd_pending_vfork_done): Use std::forward_list.
6607 (fbsd_add_vfork_done): Likewise.
6608 (fbsd_is_vfork_done_pending): Likewise.
6609 (fbsd_next_vfork_done): Likewise.
6610
6611 2017-08-09 John Baldwin <jhb@FreeBSD.org>
6612
6613 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
6614 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
6615 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
6616 for `mapfilename'.
6617 (fbsd_xfer_partial): Use gdb::byte_vector.
6618 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
6619
6620 2017-08-09 John Baldwin <jhb@FreeBSD.org>
6621
6622 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
6623 "filestuff.h".
6624 (fbsd_find_memory_regions): Fix `mapfile' initialization.
6625
6626 2017-08-09 Tom Tromey <tom@tromey.com>
6627
6628 * skip.c (skiplist_entry): New constructor.
6629 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
6630 (skiplist_entry::file_is_glob): Now bool.
6631 (skiplist_entry::file, skiplist_entry::function): Now
6632 std::string.
6633 (make_skip_entry): Return a unique_ptr. Use new.
6634 (free_skiplist_entry, free_skiplist_entry_cleanup)
6635 (make_free_skiplist_entry_cleanup): Remove.
6636 (skip_command, skip_disable_command, add_skiplist_entry)
6637 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
6638 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
6639 (function_name_is_marked_for_skip): Update.
6640 (skip_delete_command): Update. Use delete.
6641
6642 2017-08-09 Jiong Wang <jiong.wang@arm.com>
6643
6644 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
6645 (aarch64_linux_core_read_description): New function.
6646 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
6647
6648 2017-08-09 Pedro Alves <palves@redhat.com>
6649
6650 * cp-name-parser.y (cp_comp_to_string): Return a
6651 gdb::unique_xmalloc_ptr<char>.
6652 * cp-support.c (replace_typedefs_qualified_name)
6653 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
6654 (cp_canonicalize_string_full): Use op= instead of explicit
6655 convertion.
6656 (cp_class_name_from_physname, method_name_from_physname)
6657 (cp_func_name, cp_remove_params): Adjust to use
6658 gdb::unique_xmalloc_ptr<char>.
6659 * cp-support.h (cp_comp_to_string): Return a
6660 gdb::unique_xmalloc_ptr<char>.
6661 * python/py-type.c (typy_lookup_type): Adjust to use
6662 gdb::unique_xmalloc_ptr<char>.
6663
6664 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
6665
6666 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
6667
6668 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
6669 Yao Qi <yao.qi@linaro.org>
6670
6671 * cp-support.c (cp_canonicalize_string_full): Use
6672 gdb::unique_xmalloc_ptr<char>.
6673 (cp_canonicalize_string): Likewise.
6674
6675 2017-08-09 Yao Qi <yao.qi@linaro.org>
6676
6677 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
6678 * regformats/i386/amd64-avx-avx512.dat: Remove.
6679 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
6680 * regformats/i386/amd64-avx-mpx.dat:Remove.
6681 * regformats/i386/amd64-avx.dat: Remove.
6682 * regformats/i386/amd64-mpx.dat: Remove.
6683 * regformats/i386/i386-avx-avx512.dat: Remove.
6684 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
6685 * regformats/i386/i386-avx-mpx.dat: Remove.
6686 * regformats/i386/i386-mmx.dat: Remove.
6687 * regformats/i386/i386-mpx.dat: Remove.
6688
6689 2017-08-09 Yao Qi <yao.qi@linaro.org>
6690
6691 * amd64-tdep.h (tdesc_x32): Remove the declaration.
6692 * amd64-tdep.c: Don't include features/i386/x32*.c.
6693 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
6694 functions.
6695 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
6696 and i386/x32-avx-avx512.
6697 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
6698 and i386/x32.xml.
6699 * features/i386/x32-avx-avx512.c: Removed.
6700 * features/i386/x32-avx-avx512.xml: Removed.
6701 * features/i386/x32-avx.c: Removed.
6702 * features/i386/x32-avx.xml: Removed.
6703 * features/i386/x32.c: Removed.
6704 * features/i386/x32.xml: Removed.
6705 * regformats/i386/x32-avx-avx512.dat: Removed.
6706 * regformats/i386/x32-avx.dat: Removed.
6707 * regformats/i386/x32.dat: Removed.
6708
6709 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6710
6711 PR breakpoints/21886
6712 * mem-break.c (default_memory_insert_breakpoint): Use
6713 `->placed_address' rather than `->reqstd_address' for the
6714 breakpoint location.
6715
6716 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6717
6718 * arch-utils.c (default_print_insn): Remove arch/mach/endian
6719 assertions.
6720
6721 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6722
6723 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
6724 a union of `tdep_info', `tdesc_data' and `id'.
6725 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
6726 rather than `info.tdep_info'.
6727 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
6728 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6729 * i386-tdep.c (i386_gdbarch_init): Likewise.
6730 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
6731 * mips-tdep.c (mips_gdbarch_init): Likewise.
6732 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6733 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6734 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
6735 `info.tdep_info'.
6736 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
6737 `info.tdep_info'.
6738 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6739 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
6740 `info.tdep_info'.
6741 * spu-tdep.c (spu_gdbarch_init): Likewise.
6742 * gdbarch.h: Regenerate.
6743
6744 2017-08-07 Leszek Swirski <leszeks@google.com>
6745
6746 PR symtab/20899
6747 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
6748
6749 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
6750
6751 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
6752 (gdbsim_open): Rename gdb_argv args object to argv.
6753
6754 2017-08-05 Tom Tromey <tom@tromey.com>
6755
6756 * compile/compile-object-load.c (compile_object_load): Use
6757 gdb::unique_xmalloc_ptr.
6758 * cli/cli-dump.c (scan_filename): Rename from
6759 scan_filename_with_cleanup. Change return type.
6760 (scan_expression): Rename from scan_expression_with_cleanup.
6761 Change return type.
6762 (dump_memory_to_file, dump_value_to_file, restore_command):
6763 Use gdb::unique_xmalloc_ptr. Update.
6764 * cli/cli-cmds.c (find_and_open_script): Use
6765 gdb::unique_xmalloc_ptr.
6766 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
6767 * symmisc.c (maintenance_print_symbols)
6768 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
6769 * symfile.c (symfile_bfd_open, generic_load)
6770 (add_symbol_file_command, remove_symbol_file_command): Use
6771 gdb::unique_xmalloc_ptr.
6772 * source.c (openp): Use gdb::unique_xmalloc_ptr.
6773 * psymtab.c (maintenance_print_psymbols): Use
6774 gdb::unique_xmalloc_ptr.
6775 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
6776 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
6777 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
6778 (reload_shared_libraries_1): Likewise.
6779
6780 2017-08-05 Tom Tromey <tom@tromey.com>
6781
6782 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
6783 (rust_op_vector, rust_set_vector): New typedefs.
6784 (current_parser): New global.
6785 (work_obstack): Change to pointer type. Update all users.
6786 (rust_ast, pstate): Remove globals.
6787 (struct rust_parser): New.
6788 (%union) <params, field_inits>: Change type.
6789 (start, tuple_expr, unit_expr, struct_expr_list, literal)
6790 (field_expr, expr_list, maybe_expr_list, type_list): Update.
6791 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
6792 (convert_params_to_types, convert_params_to_expression): Change
6793 type of "params".
6794 (ast_string): Change type of "fields".
6795 (rust_parse): Make a rust_parser. Remove cleanups.
6796 (rust_lex_tests): Make and install an auto_obstack.
6797
6798 2017-08-04 Yao Qi <yao.qi@linaro.org>
6799
6800 * configure.srv (ipa_x32_linux_regobj): New.
6801 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
6802 instead of X86_TDESC_AVX512.
6803 (initialize_low_tracepoint): Call
6804 init_registers_x32_avx_avx512_linux.
6805
6806 2017-08-04 Yao Qi <yao.qi@linaro.org>
6807
6808 * utils.h (gdb_argv): Add namespace std for nullptr_t.
6809
6810 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
6811
6812 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
6813
6814 2017-08-03 Tom Tromey <tom@tromey.com>
6815
6816 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
6817 Remove.
6818 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
6819
6820 2017-08-03 Tom Tromey <tom@tromey.com>
6821
6822 * python/py-param.c (compute_enum_values): Use gdb_argv.
6823
6824 2017-08-03 Tom Tromey <tom@tromey.com>
6825
6826 * utils.h (struct gdb_argv_deleter): New.
6827 (gdb_argv): New class.
6828 * utils.c (gdb_argv::reset): New method.
6829 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
6830 * tracefile.c (tsave_command): Use gdb_argv.
6831 * top.c (new_ui_command): Use gdb_argv.
6832 * symmisc.c (maintenance_print_symbols)
6833 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
6834 * symfile.c (symbol_file_command, generic_load)
6835 (remove_symbol_file_command): Use gdb_argv.
6836 * stack.c (backtrace_command): Use gdb_argv.
6837 * source.c (add_path, show_substitute_path_command)
6838 (unset_substitute_path_command, set_substitute_path_command):
6839 Use gdb_argv.
6840 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
6841 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
6842 * remote.c (extended_remote_run, remote_put_command)
6843 (remote_get_command, remote_delete_command): Use gdb_argv.
6844 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
6845 (gdbsim_open): Use gdb_argv.
6846 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
6847 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
6848 * procfs.c (procfs_info_proc): Use gdb_argv.
6849 * interps.c (interpreter_exec_cmd): Use gdb_argv.
6850 * infrun.c (handle_command): Use gdb_argv.
6851 * inferior.c (add_inferior_command, clone_inferior_command):
6852 Use gdb_argv.
6853 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
6854 * exec.c (exec_file_command): Use gdb_argv.
6855 * cli/cli-cmds.c (alias_command): Use gdb_argv.
6856 * compile/compile.c (build_argc_argv): Use gdb_argv.
6857
6858 2017-08-03 Tom Tromey <tom@tromey.com>
6859
6860 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
6861
6862 2017-08-03 Tom Tromey <tom@tromey.com>
6863
6864 * python/python.c (compute_python_string): Return std::string.
6865 (gdbpy_eval_from_control_command): Update.
6866 (do_start_initialization): Use std::string.
6867 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
6868 xstrprintf.
6869 * python/py-breakpoint.c (local_setattro): Use string_printf, not
6870 xstrprintf.
6871
6872 2017-08-03 Tom Tromey <tom@tromey.com>
6873
6874 * top.h (do_restore_instream_cleanup): Remove.
6875 * top.c (do_restore_instream_cleanup): Remove.
6876 (read_command_file): Use scoped_restore.
6877 * cli/cli-script.c (execute_user_command): Use scoped_restore.
6878
6879 2017-08-03 Tom Tromey <tom@tromey.com>
6880
6881 * cli/cli-script.c (execute_user_command)
6882 (execute_control_command): Use scoped_restore.
6883
6884 2017-08-03 Tom Tromey <tom@tromey.com>
6885
6886 * cli/cli-script.c (do_restore_user_call_depth): Remove.
6887 (execute_user_command): Remove user_call_depth; use
6888 user_args_stack's size instead.
6889
6890 2017-08-03 Tom Tromey <tom@tromey.com>
6891
6892 * top.h (in_user_command): Remove.
6893 * top.c (in_user_command): Remove.
6894 * cli/cli-script.c (do_restore_user_call_depth)
6895 (execute_user_command): Update.
6896
6897 2017-08-03 Tom Tromey <tom@tromey.com>
6898
6899 * valops.c (search_struct_method): Use gdb::byte_vector.
6900 * valarith.c (value_concat): Use std::vector.
6901 * target.c (memory_xfer_partial): Use gdb::byte_vector.
6902 (simple_search_memory): Likewise.
6903 * printcmd.c (find_string_backward): Use gdb::byte_vector.
6904 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
6905 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
6906 * elfread.c (elf_rel_plt_read): Use std::string.
6907 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
6908 * cli/cli-dump.c (restore_section_callback): Use
6909 gdb::byte_vector.
6910
6911 2017-08-03 Tom Tromey <tom@tromey.com>
6912
6913 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
6914
6915 2017-08-03 Tom Tromey <tom@tromey.com>
6916
6917 * tui/tui-regs.c (tui_restore_gdbout): Remove.
6918 (tui_register_format): Use scoped_restore.
6919
6920 2017-08-03 Tom Tromey <tom@tromey.com>
6921
6922 * reverse.c (exec_direction_default): Remove.
6923 (exec_reverse_once): Use scoped_restore.
6924 * remote.c (restore_remote_timeout): Remove.
6925 (remote_flash_erase, remote_flash_write, remote_flash_done)
6926 (readchar, remote_serial_write): Use scoped_restore.
6927 * cli/cli-script.c (struct source_cleanup_lines_args)
6928 (source_cleanup_lines): Remove.
6929 (script_from_file): Use scoped_restore.
6930 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
6931 (source_command): Use scoped_restore.
6932
6933 2017-08-03 Tom Tromey <tom@tromey.com>
6934
6935 * utils.h (make_cleanup_free_so): Remove.
6936 * utils.c (do_free_so, make_cleanup_free_so): Remove.
6937 * solist.h (struct so_deleter): New.
6938 (so_list_up): New typedef.
6939 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
6940
6941 2017-08-03 Tom Tromey <tom@tromey.com>
6942
6943 * utils.h (make_cleanup_restore_current_language): Remove.
6944 * utils.c (do_restore_current_language)
6945 (make_cleanup_restore_current_language): Remove.
6946 * parse.c (parse_exp_in_context_1)
6947 (parse_expression_with_language): Use
6948 scoped_restore_current_language.
6949 * mi/mi-main.c (mi_cmd_execute): Use
6950 scoped_restore_current_language.
6951 * language.h (scoped_restore_current_language): New class.
6952
6953 2017-08-03 Tom Tromey <tom@tromey.com>
6954
6955 * compile/compile.c (cleanup_unlink_file): Remove.
6956 (compile_to_object): Use gdb::unlinker.
6957 (eval_compile_command): Likewise.
6958
6959 2017-08-03 Tom Tromey <tom@tromey.com>
6960
6961 * utils.h (make_cleanup_fclose): Remove.
6962 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6963
6964 2017-08-03 Tom Tromey <tom@tromey.com>
6965
6966 * top.c (open_terminal_stream): Return gdb_file_up.
6967 (new_ui_command): Update.
6968
6969 2017-08-03 Tom Tromey <tom@tromey.com>
6970
6971 * source.c (print_source_lines_base, forward_search_command)
6972 (reverse_search_command): Use gdb_file_up.
6973
6974 2017-08-03 Tom Tromey <tom@tromey.com>
6975
6976 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6977
6978 2017-08-03 Tom Tromey <tom@tromey.com>
6979
6980 * cli/cli-cmds.c (find_and_open_script): Change return type.
6981 Remove "streamp" and "full_path" parameters.
6982 (source_script_with_search): Update.
6983 * auto-load.c (source_script_file): Update.
6984 * cli/cli-cmds.h (find_and_open_script): Change type.
6985 (open_script): New struct.
6986
6987 2017-08-03 Tom Tromey <tom@tromey.com>
6988
6989 * xml-support.c (xml_fetch_content_from_file): Update.
6990 * ui-file.c (stdio_file::open): Update.
6991 * tracefile-tfile.c (tfile_start): Update.
6992 * remote.c (remote_file_put, remote_file_get): Update.
6993 * nat/linux-procfs.c (linux_proc_get_int)
6994 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6995 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6996 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6997 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6998 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6999 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
7000 * linux-nat.c (linux_proc_pending_signals): Update.
7001 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
7002 (file_closer): Remove.
7003 * compile/compile.c (compile_to_object): Update.
7004 * common/filestuff.h (struct gdb_file_deleter): New.
7005 (gdb_file_up): New typedef.
7006 (gdb_fopen_cloexec): Change return type.
7007 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
7008 * cli/cli-dump.c (fopen_with_cleanup): Remove.
7009 (dump_binary_file, restore_binary_file): Update.
7010 * auto-load.c (auto_load_objfile_script_1): Update.
7011
7012 2017-08-03 Tom Tromey <tom@tromey.com>
7013
7014 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
7015 (info_static_tracepoint_markers_command): Likewise.
7016 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
7017 * skip.c (skip_info): Use ui_out_emit_table.
7018 * progspace.c (print_program_space): Use ui_out_emit_table.
7019 * osdata.c (info_osdata): Use ui_out_emit_table.
7020 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
7021 ui_out_emit_table.
7022 * linux-thread-db.c (info_auto_load_libthread_db): Use
7023 ui_out_emit_table.
7024 * inferior.c (print_inferior): Use ui_out_emit_table.
7025 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
7026 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
7027 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
7028 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
7029 * ui-out.h (class ui_out_emit_table): New.
7030
7031 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
7032
7033 * mips-tdep.c (mips_fpu_type_str): New function.
7034 (mips_dump_tdep): Call it.
7035
7036 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
7037
7038 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
7039 `->mips_fpu_type'.
7040
7041 2017-07-31 Xavier Roirand <roirand@adacore.com>
7042
7043 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7044
7045 2017-07-27 Xavier Roirand <roirand@adacore.com>
7046
7047 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
7048
7049 2017-07-26 Yao Qi <yao.qi@linaro.org>
7050
7051 * cli/cli-cmds.c (maintenancechecklist): New variable.
7052 * gdbcmd.h (maintenancechecklist): Declare it.
7053 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
7054 Call i386_linux_read_description with different masks.
7055 * maint.c (maintenance_check_command): New function.
7056 (_initialize_maint_cmds): Call add_prefix_cmd.
7057 * target-descriptions.c (tdesc_reg): override operator != and ==.
7058 (tdesc_type): Likewise.
7059 (tdesc_feature): Likewise.
7060 (target_desc): Likewise.
7061 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
7062 (maintenance_check_xml_descriptions): New function.
7063 (_initialize_target_descriptions) Add command "xml-descriptions".
7064 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
7065
7066 2017-07-26 Yao Qi <yao.qi@linaro.org>
7067
7068 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
7069 Include features/i386/32bit-*.c.
7070 (i386_linux_read_description): Generate target description if it
7071 doesn't exist.
7072 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
7073 functions.
7074 * features/i386/32bit-linux.c: Re-generated.
7075 * features/i386/32bit-sse.c: Likewise.
7076 * target-descriptions.c (print_c_feature::visit): Print code to
7077 set register number if needed.
7078 (print_c_feature) <m_next_regnum>: New field.
7079
7080 2017-07-26 Yao Qi <yao.qi@linaro.org>
7081
7082 * features/Makefile (CFILES): Rename with TDESC_CFILES.
7083 (FEATURE_XMLFILES): New.
7084 (FEATURE_CFILES): New.
7085 New rules.
7086 (clean-cfiles): Remove generated c files.
7087 * features/i386/32bit-avx.c: Generated.
7088 * features/i386/32bit-avx512.c: Generated.
7089 * features/i386/32bit-core.c: Generated.
7090 * features/i386/32bit-linux.c: Generated.
7091 * features/i386/32bit-mpx.c: Generated.
7092 * features/i386/32bit-pkeys.c: Generated.
7093 * features/i386/32bit-sse.c: Generated.
7094 * target-descriptions.c: Include algorithm.
7095 (tdesc_element_visitor): Add method visit_end.
7096 (print_c_tdesc): Implement visit_end.
7097 (print_c_tdesc:: m_filename_after_features): Move it to
7098 protected.
7099 (print_c_feature): New class.
7100 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
7101 name starts with "i386/32bit-".
7102
7103 2017-07-26 Yao Qi <yao.qi@linaro.org>
7104
7105 * target-descriptions.c (tdesc_element_visitor): New class.
7106 (tdesc_element): New class.
7107 (tdesc_reg): Inherit from tdesc_element.
7108 (tdesc_reg::accept): New function.
7109 (tdesc_type): Inherit from tdesc_element.
7110 (tdesc_type::accept): New function.
7111 (tdesc_feature): Inherit from tdesc_element.
7112 (tdesc_feature::accept): New function.
7113 (target_desc): Inherit from tdesc_element.
7114 (target_desc::target_desc): New.
7115 (target_desc::~target_desc): New.
7116 (target_desc::accept): New.
7117 (allocate_target_description): Use new.
7118 (free_target_description): Use delete.
7119 (print_c_tdesc): New class.
7120 (maint_print_c_tdesc_cmd): Adjust.
7121
7122 * features/aarch64.c: Re-generated.
7123 * features/arc-arcompact.c: Re-generated.
7124 * features/arc-v2.c: Re-generated.
7125 * features/arm/arm-with-iwmmxt.c: Re-generated.
7126 * features/arm/arm-with-m.c: Re-generated.
7127 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
7128 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
7129 * features/arm/arm-with-neon.c: Re-generated.
7130 * features/arm/arm-with-vfpv2.c: Re-generated.
7131 * features/arm/arm-with-vfpv3.c: Re-generated.
7132 * features/i386/amd64-avx-avx512.c: Re-generated.
7133 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7134 * features/i386/amd64-avx.c: Re-generated.
7135 * features/i386/amd64-avx-linux.c: Re-generated.
7136 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
7137 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7138 * features/i386/amd64-avx-mpx.c: Re-generated.
7139 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
7140 * features/i386/amd64.c: Re-generated.
7141 * features/i386/amd64-linux.c: Re-generated.
7142 * features/i386/amd64-mpx.c: Re-generated.
7143 * features/i386/amd64-mpx-linux.c: Re-generated.
7144 * features/i386/i386-avx-avx512.c: Re-generated.
7145 * features/i386/i386-avx-avx512-linux.c: Re-generated.
7146 * features/i386/i386-avx.c: Re-generated.
7147 * features/i386/i386-avx-linux.c: Re-generated.
7148 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
7149 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
7150 * features/i386/i386-avx-mpx.c: Re-generated.
7151 * features/i386/i386-avx-mpx-linux.c: Re-generated.
7152 * features/i386/i386.c: Re-generated.
7153 * features/i386/i386-linux.c: Re-generated.
7154 * features/i386/i386-mmx.c: Re-generated.
7155 * features/i386/i386-mmx-linux.c: Re-generated.
7156 * features/i386/i386-mpx.c: Re-generated.
7157 * features/i386/i386-mpx-linux.c: Re-generated.
7158 * features/i386/x32-avx-avx512.c: Re-generated.
7159 * features/i386/x32-avx-avx512-linux.c: Re-generated.
7160 * features/i386/x32-avx.c: Re-generated.
7161 * features/i386/x32-avx-linux.c: Re-generated.
7162 * features/i386/x32.c: Re-generated.
7163 * features/i386/x32-linux.c: Re-generated.
7164 * features/microblaze.c: Re-generated.
7165 * features/microblaze-with-stack-protect.c: Re-generated.
7166 * features/mips64-dsp-linux.c: Re-generated.
7167 * features/mips64-linux.c: Re-generated.
7168 * features/mips-dsp-linux.c: Re-generated.
7169 * features/mips-linux.c: Re-generated.
7170 * features/nds32.c: Re-generated.
7171 * features/nios2.c: Re-generated.
7172 * features/nios2-linux.c: Re-generated.
7173 * features/rs6000/powerpc-32.c: Re-generated.
7174 * features/rs6000/powerpc-32l.c: Re-generated.
7175 * features/rs6000/powerpc-403.c: Re-generated.
7176 * features/rs6000/powerpc-403gc.c : Re-generated.
7177 * features/rs6000/powerpc-405.c: Re-generated.
7178 * features/rs6000/powerpc-505.c: Re-generated.
7179 * features/rs6000/powerpc-601.c: Re-generated.
7180 * features/rs6000/powerpc-602.c: Re-generated.
7181 * features/rs6000/powerpc-603.c: Re-generated.
7182 * features/rs6000/powerpc-604.c: Re-generated.
7183 * features/rs6000/powerpc-64.c: Re-generated.
7184 * features/rs6000/powerpc-64l.c: Re-generated.
7185 * features/rs6000/powerpc-7400.c: Re-generated.
7186 * features/rs6000/powerpc-750.c: Re-generated.
7187 * features/rs6000/powerpc-860.c: Re-generated.
7188 * features/rs6000/powerpc-altivec32.c: Re-generated.
7189 * features/rs6000/powerpc-altivec32l.c: Re-generated.
7190 * features/rs6000/powerpc-altivec64.c: Re-generated.
7191 * features/rs6000/powerpc-altivec64l.c: Re-generated.
7192 * features/rs6000/powerpc-cell32l.c: Re-generated.
7193 * features/rs6000/powerpc-cell64l.c: Re-generated.
7194 * features/rs6000/powerpc-e500.c: Re-generated.
7195 * features/rs6000/powerpc-e500l.c: Re-generated.
7196 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
7197 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
7198 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
7199 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
7200 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
7201 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
7202 * features/rs6000/powerpc-vsx32.c: Re-generated.
7203 * features/rs6000/powerpc-vsx32l.c: Re-generated.
7204 * features/rs6000/powerpc-vsx64.c: Re-generated.
7205 * features/rs6000/powerpc-vsx64l.c: Re-generated.
7206 * features/rs6000/rs6000.c: Re-generated.
7207 * features/s390-linux32.c: Re-generated.
7208 * features/s390-linux32v1.c: Re-generated.
7209 * features/s390-linux32v2.c: Re-generated.
7210 * features/s390-linux64.c: Re-generated.
7211 * features/s390-linux64v1.c: Re-generated.
7212 * features/s390-linux64v2.c: Re-generated.
7213 * features/s390-te-linux64.c: Re-generated.
7214 * features/s390-tevx-linux64.c: Re-generated.
7215 * features/s390-vx-linux64.c: Re-generated.
7216 * features/s390x-linux64.c: Re-generated.
7217 * features/s390x-linux64v1.c: Re-generated.
7218 * features/s390x-linux64v2.c: Re-generated.
7219 * features/s390x-te-linux64.c: Re-generated.
7220 * features/s390x-tevx-linux64.c: Re-generated.
7221 * features/s390x-vx-linux64.c: Re-generated.
7222 * features/sparc/sparc32-solaris.c: Re-generated.
7223 * features/sparc/sparc64-solaris.c: Re-generated.
7224 * features/tic6x-c62x.c: Re-generated.
7225 * features/tic6x-c62x-linux.c: Re-generated.
7226 * features/tic6x-c64x.c: Re-generated.
7227 * features/tic6x-c64x-linux.c: Re-generated.
7228 * features/tic6x-c64xp.c: Re-generated.
7229 * features/tic6x-c64xp-linux.c: Re-generated.
7230
7231 2017-07-26 Yao Qi <yao.qi@linaro.org>
7232
7233 * i386-linux-tdep.c (i386_linux_read_description): New function.
7234 (i386_linux_core_read_description): Call
7235 i386_linux_read_description.
7236 * i386-linux-tdep.h (i386_linux_read_description): Declare.
7237 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
7238 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
7239 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
7240 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
7241 * x86-linux-nat.c (x86_linux_read_description): Call
7242 i386_linux_read_description.
7243
7244 2017-07-26 Yao Qi <yao.qi@linaro.org>
7245
7246 * NEWS: Mention it.
7247 * features/Makefile (%.c: %.xml): Pass the xml file name to
7248 command "maint print c-tdesc".
7249 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
7250 name from 'arg'.
7251
7252 2017-07-26 Yao Qi <yao.qi@linaro.org>
7253
7254 * target-descriptions.c (target_desc): Add ctor and dtor. Do
7255 in-class initialization.
7256 (tdesc_create_feature): Call new instead of XCNEW.
7257 (free_target_description): Ue delete.
7258
7259 2017-07-25 John Baldwin <jhb@FreeBSD.org>
7260
7261 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
7262
7263 2017-07-25 Yao Qi <yao.qi@linaro.org>
7264
7265 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
7266 constant.
7267 (amd64_x32_init_abi): Likewise.
7268 * amd64-tdep.h (amd64_init_abi): Update declaration.
7269 (amd64_x32_init_abi): Likewise.
7270
7271 2017-07-25 Yao Qi <yao.qi@linaro.org>
7272
7273 PR tdep/21717
7274 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
7275 condition for FPSCR.
7276 (arm_linux_store_inferior_registers): Likewise.
7277
7278 2017-07-22 Tom Tromey <tom@tromey.com>
7279
7280 * break-catch-syscall.c (struct catch_syscall_inferior_data)
7281 <syscalls_counts>: Now a std::vector.
7282 (get_catch_syscall_inferior_data): Use "new".
7283 (catch_syscall_inferior_data_cleanup): Use "delete".
7284 (insert_catch_syscall, remove_catch_syscall)
7285 (clear_syscall_counts): Update.
7286
7287 2017-07-22 Tom Tromey <tom@tromey.com>
7288
7289 * break-catch-syscall.c (syscall_catchpoint)
7290 <syscalls_to_be_caught>: Now a std::vector<int>
7291 (~syscall_catchpoint): Remove.
7292 (insert_catch_syscall, remove_catch_syscall)
7293 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
7294 (print_mention_catch_syscall, print_recreate_catch_syscall):
7295 Update.
7296 (create_syscall_event_catchpoint): Change type of "filter"
7297 parameter.
7298 (catch_syscall_split_args): Return a std::vector.
7299 (catch_syscall_command_1, catching_syscall_number_1): Update.
7300
7301 2017-07-22 Tom Tromey <tom@tromey.com>
7302
7303 * break-catch-throw.c (struct exception_catchpoint)
7304 <exception_rx>: Now a std::string.
7305 (~exception_catchpoint): Remove.
7306 (print_one_detail_exception_catchpoint): Update.
7307 (handle_gnu_v3_exceptions): Change type of except_rx.
7308 (extract_exception_regexp): Return a std::string.
7309 (catch_exception_command_1): Update.
7310
7311 2017-07-22 Tom Tromey <tom@tromey.com>
7312
7313 * break-catch-sig.c (gdb_signal_type): Remove typedef.
7314 (struct signal_catchpoint) <signals_to_be_caught>: Now a
7315 std::vector.
7316 <catch_all>: Now a bool.
7317 (~signal_catchpoint): Remove.
7318 (signal_catchpoint_insert_location)
7319 (signal_catchpoint_remove_location)
7320 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
7321 (signal_catchpoint_print_mention)
7322 (signal_catchpoint_print_recreate)
7323 (signal_catchpoint_explains_signal): Update.
7324 (create_signal_catchpoint): Change type of "filter" and
7325 "catch_all".
7326 (catch_signal_split_args): Return a std::vector. Change type of
7327 "catch_all".
7328 (catch_signal_command): Update.
7329
7330 2017-07-20 Pedro Alves <palves@redhat.com>
7331
7332 * ada-lang.c (ada_language_defn): Make extern.
7333 (_initialize_ada_language): Remove add_language call.
7334 * c-lang.c (c_language_defn, cplus_language_defn)
7335 (asm_language_defn, minimal_language_defn): Make extern.
7336 (_initialize_c_language): Delete.
7337 * completer.c (compare_cstrings): Delete, moved to utils.h.
7338 * d-lang.c (d_language_defn): Make extern.
7339 (_initialize_d_language): Remove add_language calls.
7340 * defs.h (enum language): Add comment.
7341 * f-lang.c (f_language_defn): Make extern.
7342 (_initialize_f_language): Remove add_language call.
7343 * go-lang.c (go_language_defn): Make extern.
7344 (_initialize_go_language): Remove add_language call.
7345 * language.c: Include <algorithm>.
7346 (languages): Redefine as const array.
7347 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
7348 (set_language_command): Handle "local". Use for-range loop.
7349 (set_language): Remove loop.
7350 (language_enum): Rewrite.
7351 (language_def, language_str): Remove loops.
7352 (add_language): Delete.
7353 (add_set_language_command): New, based on add_languages.
7354 (skip_language_trampoline): Adjust.
7355 (local_language_defn): Delete.
7356 (language_gdbarch_post_init): Adjust.
7357 (_initialize_language): Remove add_language calls. Call
7358 add_set_language_command.
7359 * language.h (add_language): Delete.
7360 (auto_language_defn)
7361 (unknown_language_defn, minimal_language_defn, ada_language_defn)
7362 (asm_language_defn, c_language_defn, cplus_language_defn)
7363 (d_language_defn, f_language_defn, go_language_defn)
7364 (m2_language_defn, objc_language_defn, opencl_language_defn)
7365 (pascal_language_defn, rust_language_defn): Declare.
7366 * m2-lang.c (m2_language_defn): Make extern.
7367 (_initialize_m2_language): Remove add_language call.
7368 * objc-lang.c (objc_language_defn): Make extern.
7369 (_initialize_objc_language): Remove add_language call.
7370 * opencl-lang.c (opencl_language_defn): Make extern.
7371 (_initialize_opencl_language): Remove add_language call.
7372 * p-lang.c (pascal_language_defn): Make extern.
7373 (_initialize_pascal_language): Delete.
7374 * rust-lang.c (rust_language_defn): Make extern.
7375 (_initialize_rust_language): Delete.
7376 * utils.h (compare_cstrings): New static inline function.
7377
7378 2017-07-20 Pedro Alves <palves@redhat.com>
7379
7380 * ada-lang.c (ada_to_fixed_type_1): Adjust.
7381 (get_var_value): Constify parameters.
7382 (get_int_var_value): Change prototype.
7383 (to_fixed_range_type): Adjust.
7384 * ada-lang.h (get_int_var_value): Change prototype.
7385
7386 2017-07-20 Pedro Alves <palves@redhat.com>
7387
7388 * dwarf2read.c (dw2_lookup_symbol): Use
7389 SYMBOL_MATCHES_SEARCH_NAME.
7390 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
7391
7392 2017-07-20 Pedro Alves <palves@redhat.com>
7393
7394 * block.c (block_iter_name_step, block_iter_name_first)
7395 (block_iter_name_next): Delete.
7396 (block_lookup_symbol_primary): Adjust to use
7397 dict_iter_match_first/dict_iter_match_next.
7398 * block.h (block_iter_name_first, block_iter_name_next): Delete
7399 declarations.
7400 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
7401 dict_iter_match_first/dict_iter_match_next.
7402
7403 2017-07-20 Pedro Alves <palves@redhat.com>
7404
7405 * cp-support.c (cp_find_first_component_aux): Add missing case for
7406 end of string.
7407
7408 2017-07-18 David Blaikie <dblaikie@gmail.com>
7409
7410 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
7411 of dwo_cu's dwo_file.
7412
7413 2017-07-18 Yao Qi <yao.qi@linaro.org>
7414
7415 * remote.c (store_registers_using_G): Remove one line comment.
7416
7417 2017-07-18 Yao Qi <yao.qi@linaro.org>
7418
7419 * regcache.c (regcache_cpy): Simplify it.
7420 (regcache::cpy_no_passthrough): Remove it.
7421 * regcache.h (cpy_no_passthrough): Remove it.
7422 (regcache_dup, regcache_cpy): Update comments.
7423
7424 2017-07-18 Pedro Alves <palves@redhat.com>
7425
7426 * remote-sim.c (sim_command_completer): Adjust to work with a
7427 completion_tracker instead of a VEC.
7428
7429 2017-07-17 Pedro Alves <palves@redhat.com>
7430
7431 * completer.c (complete_source_filenames): New function.
7432 (complete_address_and_linespec_locations): New function.
7433 (location_completer): Use complete_address_and_linespec_locations.
7434 (completion_tracker::build_completion_result): Honor the tracker's
7435 request to suppress append.
7436 * completer.h (completion_tracker::suppress_append_ws)
7437 (completion_tracker::set_suppress_append_ws): New methods.
7438 (completion_tracker::m_suppress_append_ws): New field.
7439 (complete_source_filenames): New declaration.
7440 * linespec.c (linespec_complete_what): New.
7441 (struct ls_parser) <complete_what, completion_word,
7442 completion_quote_char, completion_quote_end, completion_tracker>:
7443 New fields.
7444 (string_find_incomplete_keyword_at_end): New.
7445 (linespec_lexer_lex_string): Record quote char. If in completion
7446 mode, don't throw.
7447 (linespec_lexer_consume_token): Advance the completion word point.
7448 (linespec_lexer_peek_token): Save/restore completion info.
7449 (save_stream_and_consume_token): New.
7450 (set_completion_after_number): New.
7451 (linespec_parse_basic): Set what to complete next depending on
7452 token. Handle function and label completions specially.
7453 (parse_linespec): Disable objc shortcut in completion mode. Set
7454 what to complete next depending on token type. Skip keyword if in
7455 completion mode.
7456 (complete_linespec_component, linespec_complete): New.
7457 * linespec.h (linespec_complete): Declare.
7458
7459 2017-07-17 Pedro Alves <palves@redhat.com>
7460
7461 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
7462 Handle 'operator<' / 'operator<<'.
7463
7464 2017-07-17 Pedro Alves <palves@redhat.com>
7465
7466 * completer.c (collect_explicit_location_matches): Handle
7467 MATCH_LABEL.
7468 (convert_explicit_location_to_linespec): New, factored out from
7469 ...
7470 (convert_explicit_location_to_sals): ... this.
7471 (complete_label): New.
7472 (linespec_complete_label, find_label_symbols_in_block): New.
7473 (find_label_symbols): Add completion_mode parameter and adjust to
7474 call find_label_symbols_in_block.
7475 * linespec.h (linespec_complete_label): Declare.
7476
7477 2017-07-17 Pedro Alves <palves@redhat.com>
7478
7479 * ada-lang.c (ada_collect_symbol_completion_matches): Add
7480 complete_symbol_mode parameter.
7481 * cli/cli-cmds.c (complete_command): Get the completion result out
7482 of the handle_brkchars tracker if used a custom word point.
7483 * completer.c: Include "linespec.h".
7484 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
7485 (advance_to_expression_complete_word_point): New.
7486 (completion_tracker::completes_to_completion_word): New.
7487 (complete_files_symbols): Pass down
7488 complete_symbol_mode::EXPRESSION.
7489 (explicit_options, probe_options): New.
7490 (collect_explicit_location_matches): Complete on the
7491 explictit_loc->foo instead of word. Use
7492 linespec_complete_function. Handle MATCH_LINE. Handle offering
7493 keyword and options completions.
7494 (backup_text_ptr): Delete.
7495 (skip_keyword): New.
7496 (complete_explicit_location): Remove 'word' parameter. Add
7497 language, quoted_arg_start and quoted_arg_end parameters.
7498 Rewrite, parsing left to right.
7499 (location_completer): Rewrite.
7500 (location_completer_handle_brkchars): New function.
7501 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
7502 (enum complete_line_internal_reason): Adjust comments.
7503 (completion_tracker::discard_completions): New.
7504 (completer_handle_brkchars_func_for_completer): Handle
7505 location_completer.
7506 (gdb_custom_word_point_brkchars)
7507 (gdb_org_rl_basic_quote_characters): New.
7508 (gdb_completion_word_break_characters_throw)
7509 (completion_find_completion_word): Handle trackers that use a
7510 custom word point.
7511 (completion_tracker::advance_custom_word_point_by): New.
7512 (completion_tracker::build_completion_result): Don't rely on
7513 readline appending the quote char.
7514 (gdb_rl_attempted_completion_function_throw): Handle trackers that
7515 use a custom word point.
7516 (gdb_rl_attempted_completion_function): Restore
7517 rl_basic_quote_characters.
7518 * completer.h (class completion_tracker): Extend intro comment.
7519 (completion_tracker::set_quote_char)
7520 (completion_tracker::quote_char)
7521 (completion_tracker::set_use_custom_word_point)
7522 (completion_tracker::use_custom_word_point)
7523 (completion_tracker::custom_word_point)
7524 (completion_tracker::set_custom_word_point)
7525 (completion_tracker::advance_custom_word_point_by)
7526 (completion_tracker::completes_to_completion_word)
7527 (completion_tracker::discard_completions): New methods.
7528 (completion_tracker::m_quote_char)
7529 (completion_tracker::m_use_custom_word_point)
7530 (completion_tracker::m_custom_word_point): New fields.
7531 (advance_to_expression_complete_word_point): Declare.
7532 * f-lang.c (f_collect_symbol_completion_matches): Add
7533 complete_symbol_mode parameter.
7534 * language.h (struct language_defn)
7535 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
7536 parameter.
7537 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
7538 (linespec_complete_function): New function.
7539 (linespec_lexer_lex_keyword): Adjust.
7540 * linespec.h (linespec_keywords, linespec_complete_function): New
7541 declarations.
7542 * location.c (find_end_quote): New function.
7543 (explicit_location_lex_one): Add explicit_completion_info
7544 parameter. Save quoting info. Don't throw if being called for
7545 completion. Don't handle Ada operators here.
7546 (is_cp_operator, skip_op_false_positives, first_of)
7547 (explicit_location_lex_one_function): New function.
7548 (string_to_explicit_location): Replace 'dont_throw' parameter with
7549 an explicit_completion_info pointer parameter. Handle it. Don't
7550 use explicit_location_lex_one to lex function names. Use
7551 explicit_location_lex_one_function instead.
7552 * location.h (struct explicit_completion_info): New.
7553 (string_to_explicit_location): Replace 'dont_throw' parameter with
7554 an explicit_completion_info pointer parameter.
7555 * symtab.c (default_collect_symbol_completion_matches_break_on):
7556 Add complete_symbol_mode parameter. Handle LINESPEC mode.
7557 (default_collect_symbol_completion_matches)
7558 (collect_symbol_completion_matches): Add complete_symbol_mode
7559 parameter.
7560 (collect_symbol_completion_matches_type): Pass down
7561 complete_symbol_mode::EXPRESSION.
7562 (collect_file_symbol_completion_matches): Add complete_symbol_mode
7563 parameter. Handle LINESPEC mode.
7564 * symtab.h (complete_symbol_mode): New.
7565 (default_collect_symbol_completion_matches_break_on)
7566 (default_collect_symbol_completion_matches)
7567 (collect_symbol_completion_matches)
7568 (collect_file_symbol_completion_matches): Add complete_symbol_mode
7569 parameter.
7570
7571 2017-07-17 Pedro Alves <palves@redhat.com>
7572
7573 * utils.c (enum class strncmp_iw_mode): New.
7574 (strcmp_iw): Rename to ...
7575 (strncmp_iw_with_mode): ... this. Add string2_len and mode
7576 parameters. Handle them.
7577 (strncmp_iw): New.
7578 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
7579 * utils.h (strncmp_iw): Declare.
7580 (strcmp_iw): Move describing comments here.
7581
7582 2017-07-17 Pedro Alves <palves@redhat.com>
7583
7584 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
7585 CP_OPERATOR_STR.
7586 * c-typeprint.c (is_type_conversion_operator): Use
7587 CP_OPERATOR_STR.
7588 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
7589 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
7590 CP_OPERATOR_LEN.
7591 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
7592 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
7593 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
7594 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
7595 CP_OPERATOR_STR.
7596 * location.c: Include "cp-support.h".
7597 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
7598 CP_OPERATOR_STR.
7599 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
7600 CP_OPERATOR_LEN.
7601
7602 2017-07-17 Pedro Alves <palves@redhat.com>
7603
7604 * cli/cli-cmds.c (complete_command): Use a completion tracker
7605 along with completion_find_completion_word for handle_brkchars
7606 phase.
7607 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
7608 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
7609 (struct gdb_rl_completion_word_info): New.
7610 (gdb_rl_find_completion_word): New.
7611 (completion_find_completion_word): New.
7612 * completer.h (completion_find_completion_word): Declare.
7613
7614 2017-07-17 Pedro Alves <palves@redhat.com>
7615
7616 * ada-lang.c (symbol_completion_match): Adjust comments.
7617 (symbol_completion_add): Replace vector parameter with
7618 completion_tracker parameter. Use it.
7619 (ada_make_symbol_completion_list): Rename to...
7620 (ada_collect_symbol_completion_matches): ... this. Add
7621 completion_tracker parameter and use it.
7622 (ada_language_defn): Adjust.
7623 * break-catch-syscall.c (catch_syscall_completer): Adjust
7624 prototype and work with completion_tracker instead of VEC.
7625 * breakpoint.c (condition_completer): Adjust prototype and work
7626 with completion_tracker instead of VEC.
7627 * c-lang.c (c_language_defn, cplus_language_defn)
7628 (asm_language_defn, minimal_language_defn): Adjust to renames.
7629 * cli/cli-cmds.c (complete_command): Rework using
7630 completion_tracker. Catch exceptions when completing.
7631 * cli/cli-decode.c (integer_unlimited_completer)
7632 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
7633 with completion_tracker instead of VEC.
7634 * command.h (struct completion_tracker): Forward declare.
7635 (completer_ftype, completer_handle_brkchars_ftype): Change
7636 types.
7637 (complete_on_cmdlist, complete_on_enum): Adjust.
7638 * completer.c: Include <algorithm>.
7639 (struct gdb_completer_state): New.
7640 (current_completion): New global.
7641 (readline_line_completion_function): Delete.
7642 (noop_completer, filename_completer)
7643 (filename_completer_handle_brkchars, complete_files_symbols)
7644 (linespec_location_completer): Adjust to work with a
7645 completion_tracker instead of a VEC.
7646 (string_or_empty): New.
7647 (collect_explicit_location_matches): Adjust to work with a
7648 completion_tracker instead of a VEC.
7649 (explicit_location_completer): Rename to ...
7650 (complete_explicit_location): ... this and adjust to work with a
7651 completion_tracker instead of a VEC.
7652 (location_completer): Adjust to work with a completion_tracker
7653 instead of a VEC.
7654 (add_struct_fields): Adjust to work with a completion_list instead
7655 of VEC.
7656 (expression_completer): Rename to ...
7657 (complete_expression): ... this and adjust to work with a
7658 completion_tracker instead of a VEC. Use complete_files_symbols.
7659 (expression_completer): Reimplement on top of complete_expression.
7660 (symbol_completer): Adjust to work with a completion_tracker
7661 instead of a VEC.
7662 (enum complete_line_internal_reason): Add describing comments.
7663 (complete_line_internal_normal_command): Adjust to work with a
7664 completion_tracker instead of a VEC.
7665 (complete_line_internal): Rename to ...
7666 (complete_line_internal_1): ... this and adjust to work with a
7667 completion_tracker instead of a VEC. Assert TEXT is NULL in the
7668 handle_brkchars phase.
7669 (new_completion_tracker): Delete.
7670 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
7671 complete_line_internal_1.
7672 (free_completion_tracker): Delete.
7673 (INITIAL_COMPLETION_HTAB_SIZE): New.
7674 (completion_tracker::completion_tracker)
7675 (completion_tracker::~completion_tracker): New.
7676 (maybe_add_completion): Delete.
7677 (completion_tracker::maybe_add_completion)
7678 (completion_tracker::add_completion)
7679 (completion_tracker::add_completions): New.
7680 (throw_max_completions_reached_error): Delete.
7681 (complete_line): Adjust to work with a completion_tracker instead
7682 of a VEC. Don't create a completion_tracker_t or check for max
7683 completions here.
7684 (command_completer, command_completer_handle_brkchars)
7685 (signal_completer, reg_or_group_completer_1)
7686 (reg_or_group_completer, default_completer_handle_brkchars):
7687 Adjust to work with a completion_tracker.
7688 (gdb_completion_word_break_characters_throw): New.
7689 (gdb_completion_word_break_characters): Reimplement.
7690 (line_completion_function): Delete.
7691 (completion_tracker::recompute_lowest_common_denominator)
7692 (expand_preserving_ws)
7693 (completion_tracker::build_completion_result)
7694 (completion_result::completion_result)
7695 (completion_result::completion_result)
7696 (completion_result::~completion_result)
7697 (completion_result::completion_result)
7698 (completion_result::release_match_list, compare_cstrings)
7699 (completion_result::sort_match_list)
7700 (completion_result::reset_match_list)
7701 (gdb_rl_attempted_completion_function_throw)
7702 (gdb_rl_attempted_completion_function): New.
7703 * completer.h (completion_list, struct completion_result)
7704 (class completion_tracker): New.
7705 (complete_line): Add completion_tracker parameter.
7706 (readline_line_completion_function): Delete.
7707 (gdb_rl_attempted_completion_function): New.
7708 (noop_completer, filename_completer, expression_completer)
7709 (location_completer, symbol_completer, command_completer)
7710 (signal_completer, reg_or_group_completer): Update prototypes.
7711 (completion_tracker_t, new_completion_tracker)
7712 (make_cleanup_free_completion_tracker): Delete.
7713 (enum maybe_add_completion_enum): Delete.
7714 (maybe_add_completion): Delete.
7715 (throw_max_completions_reached_error): Delete.
7716 * corefile.c (complete_set_gnutarget): Adjust to work with a
7717 completion_tracker instead of a VEC.
7718 * cp-abi.c (cp_abi_completer): Adjust to work with a
7719 completion_tracker instead of a VEC.
7720 * d-lang.c (d_language_defn): Adjust.
7721 * disasm.c (disassembler_options_completer): Adjust to work with a
7722 completion_tracker instead of a VEC.
7723 * f-lang.c (f_make_symbol_completion_list): Rename to ...
7724 (f_collect_symbol_completion_matches): ... this. Adjust to work
7725 with a completion_tracker instead of a VEC.
7726 (f_language_defn): Adjust.
7727 * go-lang.c (go_language_defn): Adjust.
7728 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
7729 Adjust to work with a completion_tracker instead of a VEC.
7730 * infrun.c (handle_completer): Likewise.
7731 * interps.c (interpreter_completer): Likewise.
7732 * interps.h (interpreter_completer): Likewise.
7733 * language.c (unknown_language_defn, auto_language_defn)
7734 (local_language_defn): Adjust.
7735 * language.h (language_defn::la_make_symbol_completion_list):
7736 Rename to ...
7737 (language_defn::la_collect_symbol_completion_matches): ... this
7738 and adjust to work with a completion_tracker instead of a VEC.
7739 * m2-lang.c (m2_language_defn): Adjust.
7740 * objc-lang.c (objc_language_defn): Adjust.
7741 * opencl-lang.c (opencl_language_defn): Adjust.
7742 * p-lang.c (pascal_language_defn): Adjust.
7743 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
7744 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
7745 with a completion_tracker.
7746 * rust-lang.c (rust_language_defn): Adjust.
7747 * symtab.c (free_completion_list, do_free_completion_list)
7748 (return_val, completion_tracker): Delete.
7749 (completion_list_add_name, completion_list_add_symbol)
7750 (completion_list_add_msymbol, completion_list_objc_symbol)
7751 (completion_list_add_fields, add_symtab_completions): Add
7752 completion_tracker parameter and use it.
7753 (default_make_symbol_completion_list_break_on_1): Rename to...
7754 (default_collect_symbol_completion_matches_break_on): ... this.
7755 Add completion_tracker parameter and use it instead of allocating
7756 a completion tracker here.
7757 (default_make_symbol_completion_list_break_on): Delete old
7758 implementation.
7759 (default_make_symbol_completion_list): Delete.
7760 (default_collect_symbol_completion_matches): New.
7761 (make_symbol_completion_list): Delete.
7762 (collect_symbol_completion_matches): New.
7763 (make_symbol_completion_type): Rename to ...
7764 (collect_symbol_completion_matches_type): ... this. Add
7765 completion_tracker parameter and use it instead of VEC.
7766 (make_file_symbol_completion_list_1): Rename to...
7767 (collect_file_symbol_completion_matches): ... this. Add
7768 completion_tracker parameter and use it instead of VEC.
7769 (make_file_symbol_completion_list): Delete.
7770 (add_filename_to_list): Use completion_list instead of a VEC.
7771 (add_partial_filename_data::list): Now a completion_list.
7772 (make_source_files_completion_list): Work with a completion_list
7773 instead of a VEC.
7774 * symtab.h: Include "completer.h".
7775 (default_make_symbol_completion_list_break_on)
7776 (default_make_symbol_completion_list, make_symbol_completion_list)
7777 (make_symbol_completion_type, make_file_symbol_completion_list)
7778 (make_source_files_completion_list): Delete.
7779 (default_collect_symbol_completion_matches_break_on)
7780 (default_collect_symbol_completion_matches)
7781 (collect_symbol_completion_matches)
7782 (collect_symbol_completion_matches_type)
7783 (collect_file_symbol_completion_matches)
7784 (make_source_files_completion_list): New.
7785 * top.c (init_main): Don't install a rl_completion_entry_function
7786 hook. Install a rl_attempted_completion_function hook instead.
7787 * tui/tui-layout.c (layout_completer): Adjust to work with a
7788 completion_tracker.
7789 * tui/tui-regs.c (tui_reggroup_completer):
7790 * tui/tui-win.c (window_name_completer, focus_completer)
7791 (winheight_completer): Adjust to work with a completion_tracker.
7792 * value.c: Include "completer.h".
7793 (complete_internalvar): Adjust to work with a completion_tracker.
7794 * value.h (complete_internalvar): Likewise.
7795
7796 2017-07-17 Pedro Alves <palves@redhat.com>
7797
7798 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
7799 renames.
7800 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
7801 comments to completer_ftype's declaration.
7802 <completer_handle_brkchars>: Change type to
7803 completer_handle_brkchars_ftype.
7804 * command.h (completer_ftype): Add describing comment and give
7805 names to parameters.
7806 (completer_ftype_void): Rename to ...
7807 (completer_handle_brkchars_ftype) ... this. Add describing comment.
7808 (set_cmd_completer_handle_brkchars): Adjust.
7809 * completer.c (filename_completer_handle_brkchars): New function.
7810 (complete_line_internal_normal_command): New function, factored
7811 out from ...
7812 (complete_line_internal): ... here.
7813 (command_completer_handle_brkchars)
7814 (default_completer_handle_brkchars)
7815 (completer_handle_brkchars_func_for_completer): New functions.
7816 * completer.h (set_gdb_completion_word_break_characters): Delete
7817 declaration.
7818 (completer_handle_brkchars_func_for_completer): New declaration.
7819 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
7820 completer_handle_brkchars_func_for_completer.
7821
7822 2017-07-17 Pedro Alves <palves@redhat.com>
7823
7824 * completer.c (symbol_completer): New function, based on
7825 make_symbol_completion_list_fn.
7826 * completer.h (symbol_completer): New declaration.
7827 * guile/scm-cmd.c (cmdscm_completers): Adjust.
7828 * python/py-cmd.c (completers): Adjust.
7829 * symtab.c (make_symbol_completion_list_fn): Delete.
7830 * symtab.h (make_symbol_completion_list_fn): Delete.
7831 * cli/cli-decode.c (add_cmd): Adjust.
7832
7833 2017-07-17 Pedro Alves <palves@redhat.com>
7834
7835 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
7836 * dwarf2read.c: Include "filename-seen-cache.h".
7837 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
7838 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
7839 * filename-seen-cache.c: New file.
7840 * filename-seen-cache.h: New file.
7841 * symtab.c: Include "filename-seen-cache.h".
7842 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
7843 (create_filename_seen_cache, clear_filename_seen_cache)
7844 (delete_filename_seen_cache, filename_seen): Delete, parts moved
7845 to filename-seen-cache.h/filename-seen-cache.c.
7846 (output_source_filename, sources_info)
7847 (maybe_add_partial_symtab_filename)
7848 (make_source_files_completion_list): Adjust to use
7849 filename_seen_cache.
7850
7851 2017-07-17 Pedro Alves <palves@redhat.com>
7852
7853 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
7854 fields.
7855 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
7856 dwarf2_debug_sections*)): New.
7857 (dwarf2_per_objfile::dwarf2_per_objfile(const
7858 dwarf2_per_objfile&)): Declare as deleted.
7859 (dwarf2_per_objfile::operator=): Declare as deleted.
7860 (dwarf2_per_objfile::dwarf2_per_objfile)
7861 (dwarf2_per_objfile::~dwarf2_per_objfile)
7862 (dwarf2_per_objfile::free_cached_comp_units): New.
7863 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
7864 ctor. Call dwarf2_per_objfile's ctor manually.
7865 (dwarf2_locate_sections): Deleted/refactored as ...
7866 (dwarf2_per_objfile::locate_sections): ... this new method.
7867 (free_cached_comp_units): Defer to
7868 dwarf2_per_objfile::free_cached_comp_units.
7869 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
7870
7871 2017-07-14 Tom Tromey <tom@tromey.com>
7872
7873 PR rust/21764:
7874 * rust-exp.y (convert_ast_to_expression): Add "want_type"
7875 parameter.
7876 <UNOP_SIZEOF>: Split into separate case.
7877 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
7878
7879 2017-07-14 Tom Tromey <tom@tromey.com>
7880
7881 PR rust/21763:
7882 * symtab.c (symbol_matches_domain): Add language_rust to special
7883 case.
7884 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
7885 treat LOC_TYPEDEF symbols as variables.
7886
7887 2017-07-14 Pedro Alves <palves@redhat.com>
7888
7889 * symtab.c (make_file_symbol_completion_list_1): Iterate over
7890 symtabs matching all symtabs with SRCFILE as file name instead of
7891 only considering the first hit, with lookup_symtab.
7892
7893 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7894
7895 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
7896 operator_name parameters.
7897 (gen_expr): Update function call.
7898
7899 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7900
7901 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
7902 parameter.
7903 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
7904 Likewise.
7905 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
7906 parameter, use agent_expr::gdbarch instead, update function
7907 calls.
7908 (locexpr_tracepoint_var_ref): Likewise.
7909 (loclist_tracepoint_var_ref): Likewise.
7910 * ax-gdb.c (gen_trace_static_fields): Likewise.
7911 (gen_traced_pop): Likewise.
7912 (gen_frame_args_address): Likewise.
7913 (gen_frame_locals_address): Likewise.
7914 (gen_var_ref): Likewise.
7915 (gen_struct_ref_recursive): Likewise.
7916 (gen_static_field): Likewise.
7917 (gen_maybe_namespace_elt): Likewise.
7918 (gen_expr): Likewise.
7919 (gen_trace_for_var): Likewise.
7920 (gen_trace_for_expr): Likewise.
7921 (gen_trace_for_return_address): Likewise.
7922
7923 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7924
7925 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
7926 parameter.
7927 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
7928
7929 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7930
7931 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
7932 from ax, update calls.
7933 (gen_usual_arithmetic): Likewise.
7934 (gen_integral_promotions): Likewise.
7935 (gen_bitfield_ref): Likewise.
7936 (gen_primitive_field): Likewise.
7937 (gen_struct_ref_recursive): Likewise.
7938 (gen_struct_ref): Likewise.
7939 (gen_maybe_namespace_elt): Likewise.
7940 (gen_struct_elt_for_reference): Likewise.
7941 (gen_namespace_elt): Likewise.
7942 (gen_aggregate_elt_ref): Likewise.
7943 (gen_expr): Get gdbarch from ax, update calls.
7944 (gen_expr_binop_rest): Likewise.
7945
7946 2017-07-13 Pedro Alves <palves@redhat.com>
7947
7948 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7949 as default tdesc.
7950 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7951 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7952 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7953 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7954 tdep.
7955 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7956 Get final tdesc from the tdep.
7957 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7958 default tdesc.
7959 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7960 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7961 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7962 Use it as default tdesc.
7963 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7964 down to amd_init_abi. No longer handle fallback tdesc here.
7965 * amd64-tdep.h (tdesc_x32): Declare.
7966 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7967 parameter.
7968 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7969 as default tdesc.
7970
7971 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7972
7973 * s390-linux-tdep.c (s390_process_record): Add support for
7974 instructions new in arch12.
7975
7976 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7977
7978 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7979 PT_GETFSBASE and PT_GETGSBASE.
7980 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7981 PT_SETGSBASE.
7982
7983 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7984
7985 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7986 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7987 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7988 those rules.
7989 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7990 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7991 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7992 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7993 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7994 * features/i386/amd64.xml: Add 64bit-segments.xml.
7995 * features/i386/amd64-avx-avx512.c: Regenerated.
7996 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7997 * features/i386/amd64-avx-mpx.c: Regenerated.
7998 * features/i386/amd64-avx.c: Regenerated.
7999 * features/i386/amd64-mpx.c: Regenerated.
8000 * features/i386/amd64.c: Regenerated.
8001 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
8002 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
8003 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
8004 * regformats/i386/amd64-avx.dat: Regenerated.
8005 * regformats/i386/amd64-mpx.dat: Regenerated.
8006 * regformats/i386/amd64.dat: Regenerated.
8007
8008 2017-07-10 Yao Qi <yao.qi@linaro.org>
8009
8010 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
8011 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
8012
8013 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
8014
8015 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
8016 unsetenv.
8017 * gnulib/aclocal.m4: Regenerate.
8018 * gnulib/config.in: Regenerate.
8019 * gnulib/configure: Regenerate.
8020 * gnulib/import/Makefile.am: Regenerate.
8021 * gnulib/import/Makefile.in: Regenerate.
8022 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
8023 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
8024 * gnulib/import/m4/environ.m4: New file.
8025 * gnulib/import/m4/setenv.m4: New file.
8026 * gnulib/import/setenv.c: New file.
8027 * gnulib/import/unsetenv.c: New file.
8028
8029 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
8030
8031 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
8032 address when op is DW_OP_addr.
8033
8034 2017-07-09 Tom Tromey <tom@tromey.com>
8035
8036 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
8037 check and apply to outer type.
8038
8039 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8040
8041 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
8042 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
8043 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
8044 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
8045
8046 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8047
8048 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
8049
8050 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8051
8052 * corelow.c (get_core_siginfo): Remove.
8053 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
8054 instead of get_core_siginfo.
8055 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
8056 * gdbarch.h: Re-generate.
8057 * gdbarch.c: Re-generate.
8058 * linux-tdep.c (linux_core_xfer_siginfo): New.
8059 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
8060
8061 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8062
8063 * corelow.c (thread_section_name): Move to ...
8064 * gdbcore.h (thread_section_name): ... here.
8065
8066 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8067
8068 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
8069 (struct siginfo32): New.
8070 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
8071 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
8072 via ptrace(PT_LWPINFO).
8073
8074 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8075
8076 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
8077 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
8078 (fbsd_get_siginfo_type): New.
8079 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
8080 (_initialize_fbsd_tdep): New.
8081
8082 2017-07-06 David Blaikie <dblaikie@gmail.com>
8083
8084 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
8085 a singular dwo_unit*) to support multiple CUs in the same way that
8086 multiple TUs are supported.
8087 (create_cus_hash_table): Replace create_dwo_cu with a function for
8088 parsing multiple CUs from a DWO file.
8089 (open_and_init_dwo_file): Use create_cus_hash_table rather than
8090 create_dwo_cu.
8091 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
8092 htab_find, rather than comparing the signature to a singleton CU in
8093 the dwo_file.
8094
8095 2017-07-06 Pedro Alves <palves@redhat.com>
8096
8097 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
8098
8099 2017-07-04 Pedro Alves <palves@redhat.com>
8100
8101 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
8102 * gdbtypes.h (TYPE_STATIC): Delete.
8103 (struct fn_field) <is_public, is_abstract, is_static, is_final,
8104 is_synchronized, is_native>: Delete.
8105 <dummy>: Bump.
8106 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
8107 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
8108 (TYPE_FN_FIELD_ABSTRACT): Delete.
8109
8110 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
8111
8112 * buffer.h (buffer_finish): Fix spelling mistakes.
8113
8114 2017-07-01 Eli Zaretskii <eliz@gnu.org>
8115
8116 * .dir-locals.el: Automatically switch to C-style comments in
8117 versions of Emacs that support the feature.
8118
8119 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
8120 Pedro Alves <palves@redhat.com>
8121
8122 PR cli/21688
8123 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
8124 (process_next_line): New variable 'inline_cmd'.
8125 Adjust 'if' clauses for "python", "compile" and "guile" to use
8126 'command_name_equals' and check for '!inline_cmd'.
8127
8128 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
8129
8130 PR cli/21688
8131 * cli/cli-script.c (command_name_equals_not_inline): New function.
8132 (process_next_line): Adjust 'if' clauses for "python", "compile"
8133 and "guile" to use command_name_equals_not_inline.
8134
8135 2017-06-29 Pedro Alves <palves@redhat.com>
8136
8137 * completer.c (expression_completer): Call
8138 linespec_location_completer instead of location_completer.
8139
8140 2017-06-29 Pedro Alves <palves@redhat.com>
8141
8142 * completer.c (expression_completer): Remove code that recomputes
8143 'text' from 'word'.
8144
8145 2017-06-29 Yao Qi <yao.qi@linaro.org>
8146
8147 * regformats/regdat.sh: Generate code with
8148 "ifndef IN_PROCESS_AGENT".
8149
8150 2017-06-28 Pedro Alves <palves@redhat.com>
8151
8152 * command.h: Include "common/scoped_restore.h".
8153
8154 2017-06-28 Yao Qi <yao.qi@linaro.org>
8155
8156 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
8157 instead of obstack_grow.
8158
8159 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
8160
8161 PR gdb/21337
8162 * symfile.c (reread_symbols): Call objfiles_changed just before
8163 read_symbols.
8164
8165 2017-06-27 Pedro Alves <palves@redhat.com>
8166
8167 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
8168 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
8169 (completion_list_add_symbol, completion_list_add_msymbol):
8170 ... these new functions.
8171 (add_symtab_completions)
8172 (default_make_symbol_completion_list_break_on_1): Adjust.
8173
8174 2017-06-27 Pedro Alves <palves@redhat.com>
8175
8176 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
8177 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
8178 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
8179 dtor.
8180 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
8181 'storage_obstack' field an auto_obstack. In-class initialize all
8182 non-bitfield fields. Make minsyms_read bool.
8183 * symfile.c (read_symbols): Adjust.
8184
8185 2017-06-27 Alan Hayward <alan.hayward@arm.com>
8186
8187 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
8188 (gdbsim_store_register): Likewise.
8189
8190 2017-06-27 Pedro Alves <palves@redhat.com>
8191
8192 * c-exp.y (name_obstack): Now an auto_obstack.
8193 (yylex): Use auto_obstack::clear.
8194 (c_parse): Use auto_obstack::clear instead of reinitializing and
8195 freeing the obstack.
8196 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
8197 * d-exp.y (name_obstack): Now an auto_obstack.
8198 (yylex): Use auto_obstack::clear.
8199 (d_parse): Use auto_obstack::clear instead of reinitializing and
8200 freeing the obstack.
8201 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
8202 auto_obstack.
8203 * dwarf2read.c (create_addrmap_from_index)
8204 (dwarf2_build_psymtabs_hard)
8205 (update_enumeration_type_from_children): Likewise.
8206 * gdb_obstack.h (auto_obstack): New type.
8207 * go-exp.y (name_obstack): Now an auto_obstack.
8208 (build_packaged_name): Use auto_obstack::clear.
8209 (go_parse): Use auto_obstack::clear instead of reinitializing and
8210 freeing the obstack.
8211 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
8212 auto_obstack.
8213 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
8214 * rust-exp.y (work_obstack): Now an auto_obstack.
8215 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
8216 reinitializing and freeing the obstack.
8217 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
8218 (host_char_to_target): Use auto_obstack.
8219 * utils.h (make_cleanup_obstack_free): Delete declaration.
8220 * valprint.c (generic_emit_char, generic_printstr): Use
8221 auto_obstack.
8222
8223 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
8224
8225 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
8226 thread.
8227 (darwin_init_thread_list): Don't update dummy thread.
8228 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
8229
8230 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8231
8232 * record-full.c (netorder16): Remove.
8233
8234 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8235
8236 * common/diagnostics.h: Define macros for GCC.
8237 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
8238 * common/vec.h: Include diagnostics.h.
8239 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
8240 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
8241 warning.
8242
8243 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8244
8245 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
8246 New macro.
8247 * ada-lex.l: Ignore deprecated register warnings.
8248
8249 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8250
8251 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
8252 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
8253
8254 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8255
8256 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
8257 its own line.
8258
8259 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8260
8261 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
8262
8263 2017-06-23 Alan Hayward <alan.hayward@arm.com>
8264
8265 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
8266 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
8267 (xtensa_register_read_masked): Likewise.
8268
8269 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
8270
8271 * common/environ.c (gdb_environ::unset): Update comment.
8272
8273 2017-06-22 Alan Hayward <alan.hayward@arm.com>
8274
8275 * python/py-unwind.c (pyuw_sniffer): Allocate space for
8276 registers.
8277
8278 2017-06-22 Alan Hayward <alan.hayward@arm.com>
8279
8280 * record-full.c (record_full_exec_insn): Use byte_vector.
8281
8282 2017-06-22 Yao Qi <yao.qi@linaro.org>
8283
8284 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
8285 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
8286
8287 2017-06-22 Alan Hayward <alan.hayward@arm.com>
8288
8289 * remote.c (cached_reg): Move from here...
8290 * regcache.h (cached_reg): ...to here.
8291 * python/py-unwind.c (struct reg_info): Remove.
8292 (cached_frame_info): Use cached_reg_t.
8293 (pyuw_prev_register): Likewise.
8294 (pyuw_sniffer): Use cached_reg_t and allocate registers.
8295 (pyuw_dealloc_cache): Free all registers.
8296
8297 2017-06-22 Pedro Alves <palves@redhat.com>
8298 Simon Marchi <simon.marchi@ericsson.com>
8299
8300 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
8301 warning.
8302 * common/diagnostics.h: New file.
8303
8304 2017-06-22 Pedro Alves <palves@redhat.com>
8305
8306 * common/agent.h: Add include guards.
8307
8308 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
8309
8310 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
8311 talk about addressable units instead of bytes.
8312
8313 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
8314
8315 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
8316 of '::const_iterator'.
8317
8318 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
8319
8320 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8321 'unittests/environ-selftests.c'.
8322 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
8323 * charset.c (find_charset_names): Declare object 'iconv_env'.
8324 Update code to use 'iconv_env' object. Remove call to
8325 'free_environ'.
8326 * common/environ.c: Include <utility>.
8327 (make_environ): Delete function.
8328 (free_environ): Delete function.
8329 (gdb_environ::clear): New function.
8330 (gdb_environ::operator=): New function.
8331 (gdb_environ::get): Likewise.
8332 (environ_vector): Delete function.
8333 (set_in_environ): Delete function.
8334 (gdb_environ::set): New function.
8335 (unset_in_environ): Delete function.
8336 (gdb_environ::unset): New function.
8337 (gdb_environ::envp): Likewise.
8338 * common/environ.h: Include <vector>.
8339 (struct gdb_environ): Delete; transform into...
8340 (class gdb_environ): ... this class.
8341 (free_environ): Delete prototype.
8342 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
8343 environ_vector): Likewise.
8344 * infcmd.c (run_command_1): Update code to call
8345 'envp' from 'gdb_environ' class.
8346 (environment_info): Update code to call methods from 'gdb_environ'
8347 class.
8348 (unset_environment_command): Likewise.
8349 (path_info): Likewise.
8350 (path_command): Likewise.
8351 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
8352 (inferior::inferior): Initialize 'environment' using the host's
8353 information.
8354 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
8355 Include "environ.h".
8356 (class inferior) <environment>: Change type from 'struct
8357 gdb_environ' to 'gdb_environ'.
8358 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
8359 methods from 'gdb_environ' class.
8360 * solib.c (solib_find_1): Likewise
8361 * unittests/environ-selftests.c: New file.
8362
8363 2017-06-20 Yao Qi <yao.qi@linaro.org>
8364
8365 * features/i386/i386-linux.xml: Exchange the order of including
8366 32bit-linux.xml and 32bit-sse.xml.
8367 * features/i386/i386-linux.c: Regenerated.
8368
8369 2017-06-20 Yao Qi <yao.qi@linaro.org>
8370
8371 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
8372 Delete copy ctor and assignment operator.
8373 (tdesc_type): Likewise.
8374 (tdesc_feature): Likewise.
8375 (tdesc_free_reg): Remove.
8376 (tdesc_create_reg): Use new.
8377 (tdesc_free_type): Remove.
8378 (tdesc_create_vector): Use new.
8379 (tdesc_create_union): Likewise.
8380 (tdesc_create_flags): Likewise.
8381 (tdesc_create_enum): Likewise.
8382 (tdesc_free_feature): Delete.
8383 (free_target_description): Use delete.
8384
8385 2017-06-19 John Baldwin <jhb@FreeBSD.org>
8386
8387 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
8388 registers.
8389
8390 2017-06-19 Pedro Alves <palves@redhat.com>
8391
8392 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
8393 after gdb::unlinker.
8394
8395 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
8396
8397 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
8398 gdb_environ to access an environment variable.
8399
8400 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8401
8402 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
8403 gdb_byte*.
8404
8405 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8406
8407 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
8408
8409 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8410
8411 * configure: Re-generate.
8412 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
8413
8414 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8415
8416 * configure: Re-generate.
8417 * warning.m4: Pass -Werror to compiler when checking for
8418 supported warning flags.
8419
8420 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8421
8422 * Makefile.in (COMPILE.pre): Add "-x c++".
8423
8424 2017-06-16 Alan Hayward <alan.hayward@arm.com>
8425 Pedro Alves <palves@redhat.com>
8426 Yao Qi <yao.qi@linaro.org>
8427
8428 * defs.h (RequireLongest): New.
8429 (extract_integer): Declare function template.
8430 (extract_signed_integer): Remove the declaration, but define it
8431 static inline.
8432 (extract_unsigned_integer): Likewise.
8433 (store_integer): Declare function template.
8434 (store_signed_integer): Remove the declaration, but define it
8435 static inline.
8436 (store_unsigned_integer): Likewise.
8437 * findvar.c (extract_integer): New function template.
8438 (extract_signed_integer): Remove.
8439 (extract_unsigned_integer): Remove.
8440 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
8441 instantiations.
8442 (store_integer): New function template.
8443 (store_signed_integer): Remove.
8444 (store_unsigned_integer): Remove.
8445 (store_integer): Explicit instantiations.
8446 * regcache.c (regcache_raw_read_signed): Update.
8447 (regcache::raw_read): New function.
8448 (regcache::raw_read_signed): Remove.
8449 (regcache::raw_read_unsigned): Remove.
8450 (regcache_raw_read_unsigned): Update.
8451 (regcache_raw_write_unsigned): Update.
8452 (regcache::raw_write_signed): Remove.
8453 (regcache::raw_write): New function.
8454 (regcache_cooked_read_signed): Update.
8455 (regcache::raw_write_unsigned): Remove.
8456 (regcache::cooked_read_signed): Remove.
8457 (regcache_cooked_read_unsigned): Update.
8458 (regcache::cooked_read_unsigned): Remove.
8459 (regcache_cooked_write_signed): Update.
8460 (regcache_cooked_write_unsigned): Update.
8461 * regcache.h (regcache) <raw_read_signed>: Remove.
8462 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
8463 <raw_read, raw_write>: New.
8464 <cooked_read_signed, cooked_write_signed>: Remove.
8465 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
8466 <cooked_read, cooked_write>: New.
8467 * sh64-tdep.c (sh64_pseudo_register_read): Update.
8468 (sh64_pseudo_register_write): Update.
8469
8470 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
8471
8472 * arc-tdep.c (arc_disassembler_options): New variable.
8473 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
8474 of default_print_insn.
8475 (arc_delayed_print_insn): Set info->section when needed,
8476 use default_print_insn to retrieve a disassembler.
8477
8478 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
8479
8480 PR gdb/21574
8481 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
8482 to mention $SHELL and startup-with-shell.
8483
8484 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
8485
8486 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
8487
8488 2017-06-14 Yao Qi <yao.qi@linaro.org>
8489
8490 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
8491 default_print_insn instead of print_insn_aarch64.
8492 * arm-tdep.c (gdb_print_insn_arm): Call
8493 default_print_insn instead of print_insn_big_arm
8494 and print_insn_little_arm.
8495 * i386-tdep.c (i386_print_insn): Call default_print_insn
8496 instead of print_insn_i386.
8497 * ia64-tdep.c (ia64_print_insn): Call
8498 default_print_insn instead of print_insn_ia64.
8499 * mips-tdep.c (gdb_print_insn_mips): Call
8500 default_print_insn instead of print_insn_big_mips
8501 and print_insn_little_mips.
8502 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
8503 instead of print_insn_spu.
8504
8505 2017-06-14 Pedro Alves <palves@redhat.com>
8506
8507 * ada-lang.c: Include "common/byte-vector.h".
8508 (ada_value_primitive_packed_val): Use gdb::byte_vector.
8509 * charset.c (wchar_iterator::iterate): Resize the vector instead
8510 of reserving it.
8511 * common/byte-vector.h: Include "common/def-vector.h".
8512 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
8513 * cli/cli-dump.c: Include "common/byte-vector.h".
8514 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
8515 * common/byte-vector.h: New file.
8516 * common/def-vector.h: New file.
8517 * common/default-init-alloc.h: New file.
8518 * dwarf2loc.c: Include "common/byte-vector.h".
8519 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
8520 instead of reserving it.
8521 * dwarf2read.c: Include "common/byte-vector.h".
8522 (data_buf::m_vec): Now a gdb::byte_vector.
8523 * gdb_regex.c: Include "common/def-vector.h".
8524 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
8525 * mi/mi-main.c: Include "common/byte-vector.h".
8526 (mi_cmd_data_read_memory): Use gdb::byte_vector.
8527 * printcmd.c: Include "common/byte-vector.h".
8528 (print_scalar_formatted): Use gdb::byte_vector.
8529 * valprint.c: Include "common/byte-vector.h".
8530 (maybe_negate_by_bytes, print_decimal_chars): Use
8531 gdb::byte_vector.
8532
8533 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8534
8535 * darwin-nat.c: Include "nat/fork-inferior.h".
8536
8537 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8538
8539 * configure.nat: Factor out Darwin bits that are not
8540 architecture-specific. Add fork-inferior.o.
8541
8542 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8543
8544 * configure.nat: Factor out AIX bits that are not
8545 architecture-specific. Add fork-inferior.o.
8546
8547 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8548
8549 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
8550 (read_pieced_value, write_pieced_value): ...here. Reduce to
8551 wrappers that just call rw_pieced_value.
8552
8553 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8554
8555 * dwarf2loc.c (write_pieced_value): When writing the data for a
8556 memory piece, use write_memory_with_notification instead of
8557 write_memory.
8558
8559 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8560
8561 * valops.c (read_value_memory): Change embedded_offset to
8562 represent a bit offset instead of a byte offset.
8563 * value.h (read_value_memory): Adjust comment.
8564
8565 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8566
8567 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
8568 dest_offset_bits and source_offset_bits.
8569 (write_pieced_value): Likewise.
8570
8571 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8572
8573 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
8574 given by DW_OP_bit_piece.
8575 (write_pieced_value): Likewise.
8576
8577 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8578
8579 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
8580 some other preparations to the places where sufficient information
8581 is available.
8582 (write_pieced_value): Likewise.
8583
8584 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8585
8586 * dwarf2loc.c (bits_to_bytes): New function.
8587 (read_pieced_value): Fix offset calculations for register pieces
8588 on big-endian targets.
8589 (write_pieced_value): Likewise.
8590
8591 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8592
8593 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
8594 (write_pieced_value): Likewise.
8595
8596 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8597
8598 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
8599 transfer the source value's least significant bits, instead of its
8600 lowest-addressed ones. Rename type_len to max_offset.
8601 (read_pieced_value): Mirror above changes to write_pieced_value as
8602 applicable.
8603
8604 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8605
8606 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
8607 truncate full bytes from dest_offset_bits before using it as an
8608 offset into the buffer.
8609
8610 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8611
8612 * dwarf2loc.c (write_pieced_value): Include transfer size in
8613 byte-wise check.
8614
8615 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8616
8617 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
8618 calculation of this_size.
8619
8620 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8621
8622 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
8623 when targeting a bit-field.
8624 (write_pieced_value): Likewise.
8625
8626 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8627
8628 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
8629 (allocate_piece_closure): Drop addr_size parameter.
8630 (dwarf2_evaluate_loc_desc_full): Adjust call to
8631 allocate_piece_closure.
8632
8633 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8634
8635 PR gdb/21226
8636 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
8637 the LSB end, independent of endianness.
8638
8639 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8640
8641 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
8642 size capping.
8643
8644 2017-06-13 Yao Qi <yao.qi@linaro.org>
8645
8646 * mips-linux-nat.c: Move include features/mips*-linux.c to
8647 mips-linux-tdep.c.
8648 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
8649 to mips-linux-tdep.c.
8650 * mips-linux-tdep.c: Include features/mips*-linux.c
8651 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
8652 functions.
8653 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
8654 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
8655 (tdesc_mips64_dsp_linux): Declare.
8656
8657 2017-06-12 Tom Tromey <tom@tromey.com>
8658
8659 * valprint.h (val_print_type_code_int): Remove.
8660 * valprint.c (generic_val_print_int): Always call
8661 val_print_scalar_formatted.
8662 (val_print_type_code_int): Remove.
8663 * printcmd.c (print_scalar_formatted): Handle options->format==0.
8664 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
8665 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
8666 * ada-valprint.c (ada_val_print_num): Use
8667 val_print_scalar_formatted.
8668
8669 2017-06-12 Tom Tromey <tom@tromey.com>
8670
8671 * printcmd.c (print_scalar_formatted): Unify the two switches.
8672 Don't convert scalars to LONGEST.
8673
8674 2017-06-12 Tom Tromey <tom@tromey.com>
8675
8676 PR exp/16225:
8677 * valprint.h (print_decimal_chars): Update.
8678 * valprint.c (maybe_negate_by_bytes): New function.
8679 (print_decimal_chars): Add "is_signed" argument.
8680 * printcmd.c (print_scalar_formatted): Update.
8681
8682 2017-06-12 Tom Tromey <tom@tromey.com>
8683
8684 PR exp/16225:
8685 * valprint.h (print_binary_chars, print_hex_chars): Update.
8686 * valprint.c (val_print_type_code_int): Update.
8687 (print_binary_chars): Add "zero_pad" argument.
8688 (emit_octal_digit): New function.
8689 (print_octal_chars): Don't zero-pad.
8690 (print_decimal_chars): Likewise.
8691 (print_hex_chars): Add "zero_pad" argument.
8692 * sh64-tdep.c (sh64_do_fp_register): Update.
8693 * regcache.c (regcache::dump): Update.
8694 * printcmd.c (print_scalar_formatted): Update.
8695 * infcmd.c (default_print_one_register_info): Update.
8696
8697 2017-06-12 Pedro Alves <palves@redhat.com>
8698 Alan Hayward <alan.hayward@arm.com>
8699
8700 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
8701 (mips_eabi_push_dummy_call): Rename local 'regsize' to
8702 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
8703 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
8704 Assert that abi_regsize bytes fit in 'ref_valbuf'.
8705
8706 2017-06-12 Pedro Alves <palves@redhat.com>
8707
8708 * dwarf2read.c (mapped_symtab::data): Now a vector of
8709 symtab_index_entry instead of vector of
8710 std::unique_ptr<symtab_index_entry>. All users adjusted to check
8711 whether an element's name is NULL instead of checking whether the
8712 element itself is NULL.
8713 (find_slot): Change return type. Adjust.
8714 (hash_expand, , add_index_entry, uniquify_cu_indices)
8715 (write_hash_table): Adjust.
8716
8717 2017-06-12 Pedro Alves <palves@redhat.com>
8718
8719 * dwarf2read.c (recursively_count_psymbols): New function.
8720 (write_psymtabs_to_index): Call it to compute number of psyms and
8721 pass estimate size of psyms_seen to unordered_set's ctor.
8722
8723 2017-06-12 Pedro Alves <palves@redhat.com>
8724
8725 * dwarf2read.c (write_hash_table): Check if key already exists
8726 before emplacing.
8727
8728 2017-06-12 Pedro Alves <palves@redhat.com>
8729
8730 * dwarf2read.c (data_buf::append_space): Rename to...
8731 (data_buf::grow): ... this, and make private. Adjust all callers.
8732 (data_buf::append_uint): New method.
8733 (add_address_entry, write_one_signatured_type)
8734 (write_psymtabs_to_index): Use it.
8735
8736 2017-06-12 Pedro Alves <palves@redhat.com>
8737
8738 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
8739 (file_write (FILE *, const std::vector<Elem>&)): Delete.
8740 (data_buf::file_write): Call ::fwrite directly.
8741
8742 2017-06-12 Pedro Alves <palves@redhat.com>
8743
8744 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
8745 std::vector::erase.
8746
8747 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8748
8749 Code cleanup: C++ify .gdb_index producer.
8750 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
8751 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
8752 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
8753 (create_strtab, add_string): Remove.
8754 (file_write, data_buf): New.
8755 (struct symtab_index_entry): Use std::vector for cu_indices.
8756 (struct mapped_symtab): Use std::vector for data.
8757 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
8758 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
8759 Remove.
8760 (find_slot): Change return type. Update it to the new data structures.
8761 (hash_expand, add_index_entry): Update it to the new data structures.
8762 (offset_type_compare): Remove.
8763 (uniquify_cu_indices): Update it to the new data structures.
8764 (c_str_view, c_str_view_hasher, vector_hasher): New.
8765 (add_indices_to_cpool): Remove.
8766 (write_hash_table): Update it to the new data structures.
8767 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
8768 (eq_psymtab_cu_index): Remove.
8769 (psym_index_map): New typedef.
8770 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
8771 reference and std::unordered_map for cu_index_htab.
8772 (add_address_entry, add_address_entry_worker, write_address_map)
8773 (write_psymbols): Update it to the new data structures.
8774 (write_obstack): Remove.
8775 (struct signatured_type_index_data): Change types_list to a data_buf
8776 reference and psyms_seen to a std::unordered_set reference.
8777 (write_one_signatured_type, recursively_write_psymbols)
8778 (write_psymtabs_to_index): Update it to the new data structures.
8779
8780 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
8781
8782 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
8783 separate-debug-file commands.
8784 * symfile.h (separate_debug_file_debug): New global.
8785 * symfile.c (separate_debug_file_debug): New global.
8786 (separate_debug_file_exists, find_separate_debug_file): Add
8787 debug output.
8788 (_initialize_symfile): Add "set debug separate-debug-file"
8789 command.
8790 * build-id.c (build_id_to_debug_bfd,
8791 find_separate_debug_file_by_buildid): Add debug output.
8792
8793 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8794
8795 * gdbarch.sh (displaced_step_free_closure): Remove.
8796 * gdbarch.h, gdbarch.c: Re-generate.
8797 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
8798 displaced_step_free_closure.
8799 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8800 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8801 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8802 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8803 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8804 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8805 * arch-utils.h (simple_displaced_step_free_closure): Remove.
8806 * arch-utils.c (simple_displaced_step_free_closure): Remove.
8807 * infrun.c (displaced_step_clear): Call xfree instead of
8808 gdbarch_displaced_step_free_closure.
8809
8810 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
8811
8812 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
8813 NULL".
8814
8815 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8816
8817 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
8818 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
8819 (mn10300_push_dummy_call): Likewise.
8820
8821 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8822
8823 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
8824
8825 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8826
8827 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
8828
8829 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8830
8831 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
8832 able to start inferiors using a shell.
8833 (New remote packets): Announce new packet "QStartupWithShell".
8834 * remote.c: Add PACKET_QStartupWithShell.
8835 (extended_remote_create_inferior): Handle new
8836 PACKET_QStartupWithShell.
8837 (remote_protocol_features) <QStartupWithShell>: New entry for
8838 PACKET_QStartupWithShell.
8839 (_initialize_remote): Call "add_packet_config_cmd" for
8840 QStartupShell.
8841
8842 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8843 Pedro Alves <palves@redhat.com>
8844
8845 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
8846 and "nat/fork-inferior.h".
8847 * common/common-inferior.h: New file, with contents from
8848 "gdb/inferior.h".
8849 * commom/common-utils.c: Include "common-utils.h".
8850 (stringify_argv): New function.
8851 * common/common-utils.h (stringify_argv): New prototype.
8852 * configure.nat: Add "fork-inferior.o" as a dependency for
8853 "*linux*", "fbsd*" and "nbsd*" hosts.
8854 * corefile.c (get_exec_file): Update comment.
8855 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
8856 instead of "startup_inferior".
8857 (darwin_create_inferior): Call "add_thread_silent" after
8858 "fork_inferior".
8859 * fork-child.c: Cleanup unnecessary includes.
8860 (SHELL_FILE): Move to "common/common-fork-child.c".
8861 (environ): Likewise.
8862 (exec_wrapper): Initialize.
8863 (get_exec_wrapper): New function.
8864 (breakup_args): Move to "common/common-fork-child.c"; rename to
8865 "breakup_args_for_exec".
8866 (escape_bang_in_quoted_argument): Move to
8867 "common/common-fork-child.c".
8868 (saved_ui): New variable.
8869 (prefork_hook): New function.
8870 (postfork_hook): Likewise.
8871 (postfork_child_hook): Likewise.
8872 (gdb_startup_inferior): Likewise.
8873 (fork_inferior): Move to "common/common-fork-child.c". Update
8874 function to support gdbserver.
8875 (startup_inferior): Likewise.
8876 * gdbcore.h (get_exec_file): Remove declaration.
8877 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
8878 instead of "startup_inferior". Call "add_thread_silent" after
8879 "fork_inferior".
8880 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
8881 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
8882 instead of "startup_inferior". Call "add_thread_silent" after
8883 "fork_inferior".
8884 * inferior.h: Include "common-inferior.h".
8885 (trace_start_error): Move to "common/common-utils.h".
8886 (trace_start_error_with_name): Likewise.
8887 (fork_inferior): Move prototype to "nat/fork-inferior.h".
8888 (startup_inferior): Likewise.
8889 (gdb_startup_inferior): New prototype.
8890 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
8891 * nat/fork-inferior.h: New file.
8892 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
8893 instead of "startup_inferior". Call "add_thread_silent" after
8894 "fork_inferior".
8895 * target.h (target_terminal_init): Move prototype to
8896 "target/target.h".
8897 (target_terminal_inferior): Likewise.
8898 (target_terminal_ours): Likewise.
8899 * target/target.h (target_terminal_init): New prototype, moved
8900 from "target.h".
8901 (target_terminal_inferior): Likewise.
8902 (target_terminal_ours): Likewise.
8903 * utils.c (gdb_flush_out_err): New function.
8904
8905 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8906
8907 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
8908 * common/common-gdbthread.h: New file, with parts from
8909 "gdb/gdbthread.h".
8910 * gdbthread.h: Include "common-gdbthread.h".
8911 (switch_to_thread): Moved to "common/common-gdbthread.h".
8912
8913 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8914
8915 * Makefile.in (SFILES): Add "common/job-control.c".
8916 (HFILES_NO_SRCDIR): Add "common/job-control.h".
8917 (COMMON_OBS): Add "job-control.o".
8918 * common/job-control.c: New file, with contents from
8919 "gdb/inflow.c".
8920 * common/job-control.h: New file, with contents from "terminal.h".
8921 * fork-child.c: Include "job-control.h".
8922 * inflow.c: Include "job-control.h".
8923 (gdb_setpgid): Move to "common/common-inflow.c".
8924 (_initialize_inflow): Move setting of "job_control" to
8925 "handle_job_control".
8926 * terminal.h (job_control): Moved to "common/common-terminal.h".
8927 (gdb_setpgid): Likewise.
8928 * top.c: Include "job_control.h".
8929 * utils.c: Likewise.
8930 (job_control): Moved to "job-control.c".
8931
8932 2017-06-07 Pedro Alves <palves@redhat.com>
8933
8934 * Makefile.in (SFILES): Add gdb_regex.c.
8935 (COMMON_OBS): Add gdb_regex.o.
8936 * ada-lang.c (ada_add_standard_exceptions)
8937 (ada_add_exceptions_from_frame, name_matches_regex)
8938 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
8939 parameter type to compiled_regex. Adjust.
8940 (ada_exceptions_list): Use compiled_regex.
8941 * break-catch-throw.c (exception_catchpoint::pattern): Now a
8942 std::unique_ptr<compiled_regex>.
8943 (exception_catchpoint::~exception_catchpoint): Remove regfree
8944 call.
8945 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8946 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8947 * breakpoint.c (solib_catchpoint::compiled): Now a
8948 std::unique_ptr<compiled_regex>.
8949 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8950 (check_status_catch_solib): Adjust to use compiled_regex.
8951 (add_solib_catchpoint): Adjust to use compiled_regex.
8952 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8953 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8954 compiled_regex reference. Adjust to use it.
8955 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8956 declaration. Include "gdb_regex.h".
8957 (apropos_cmd): Change regex parameter to compiled_regex reference.
8958 * gdb_regex.c: New file.
8959 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8960 declarations.
8961 (class compiled_regex): New.
8962 * linux-tdep.c: Include "common/gdb_optional.h".
8963 (struct mapping_regexes): New, factored out from
8964 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8965 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8966 gdb::optional and remove cleanups. Adjust to compiled_regex.
8967 * probe.c: Include "common/gdb_optional.h".
8968 (collect_probes): Use compiled_regex and gdb::optional and remove
8969 cleanups.
8970 * skip.c: Include "common/gdb_optional.h".
8971 (skiplist_entry::compiled_function_regexp): Now a
8972 gdb::optional<compiled_regex>.
8973 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8974 (free_skiplist_entry): Remove regfree call.
8975 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8976 compiled_regex and gdb::optional.
8977 * symtab.c: Include "common/gdb_optional.h".
8978 (search_symbols): Use compiled_regex and gdb::optional.
8979 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8980 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8981 to gdb_regex.c.
8982
8983 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8984
8985 * regcache.c (regcache::save): Avoid buffer use.
8986 (regcache::dump): Likewise.
8987
8988 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8989
8990 * sh-tdep.c (sh_pseudo_register_read): Remove
8991 MAX_REGISTER_SIZE.
8992 (sh_pseudo_register_write): Likewise.
8993 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8994 (sh64_pseudo_register_write): Likewise
8995
8996 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8997
8998 * aarch64-tdep.c (aarch64_store_return_value): Use
8999 V_REGISTER_SIZE.
9000 (aarch64_pseudo_read_value): Likewise.
9001 (aarch64_pseudo_write): Likewise.
9002
9003 2017-06-06 Yao Qi <yao.qi@linaro.org>
9004
9005 * regformats/regdef.h (set_register_cache): Remove the
9006 declaration.
9007
9008 2017-06-06 Alan Hayward <alan.hayward@arm.com>
9009
9010 * frame.c (frame_unwind_register_signed): Use
9011 frame_unwind_register_value.
9012
9013 2017-06-06 Pedro Alves <palves@redhat.com>
9014
9015 PR breakpoints/21553
9016 * breakpoint.c (create_breakpoints_sal_default)
9017 (init_breakpoint_sal, create_breakpoint_sal): Use
9018 gdb::unique_xmalloc_ptr for string parameters.
9019 (create_breakpoint): Constify 'extra_string' and 'cond_string'
9020 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
9021 (base_breakpoint_create_breakpoints_sal)
9022 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
9023 (strace_marker_create_breakpoints_sal)
9024 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
9025 string parameters.
9026 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
9027 gdb::unique_xmalloc_ptr for string parameters.
9028 (create_breakpoint): Constify 'extra_string' and 'cond_string'
9029 parameters.
9030
9031 2017-06-06 Alan Hayward <alan.hayward@arm.com>
9032
9033 * alpha-tdep.c (alpha_register_to_value): Use
9034 get_frame_register_value.
9035 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
9036
9037 2017-06-06 Alan Hayward <alan.hayward@arm.com>
9038
9039 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
9040 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
9041 (ia64_value_to_register): Likewise.
9042 (ia64_extract_return_value): Likewise.
9043 (ia64_store_return_value): Likewise.
9044 (ia64_push_dummy_call): Likewise.
9045
9046 2017-06-04 Joel Brobecker <brobecker@adacore.com>
9047
9048 GDB 8.0 released.
9049
9050 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
9051
9052 * x86-linux-nat.c (struct arch_lwp_info): Remove.
9053
9054 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
9055
9056 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
9057 parameter.
9058 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
9059
9060 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
9061
9062 * event-loop.c (poll_timers): Unallocate timer using delete
9063 instead of xfree.
9064
9065 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9066
9067 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
9068 (struct breakpoint) <~breakpoint>: New.
9069 (struct watchpoint): Inherit from breakpoint.
9070 <~watchpoint>: New.
9071 <base>: Remove.
9072 (struct tracepoint): Inherit from breakpoint.
9073 <base>: Remove.
9074 * breakpoint.c (longjmp_breakpoint_ops): Remove.
9075 (struct longjmp_breakpoint): Inherit from breakpoint.
9076 <~longjmp_breakpoint>: New.
9077 <base>: Remove.
9078 (new_breakpoint_from_type): Remove casts.
9079 (watchpoint_in_thread_scope): Remove reference to base field.
9080 (watchpoint_del_at_next_stop): Likewise.
9081 (update_watchpoint): Likewise.
9082 (watchpoint_check): Likewise.
9083 (bpstat_check_watchpoint): Likewise.
9084 (set_longjmp_breakpoint): Likewise.
9085 (struct fork_catchpoint): Inherit from breakpoint.
9086 <base>: Remove.
9087 (struct solib_catchpoint): Inherit from breakpoint.
9088 <~solib_catchpoint>: New.
9089 <base>: Remove.
9090 (dtor_catch_solib): Change to ...
9091 (solib_catchpoint::~solib_catchpoint): ... this.
9092 (breakpoint_hit_catch_solib): Remove reference to base field.
9093 (add_solib_catchpoint): Likewise.
9094 (create_fork_vfork_event_catchpoint): Likewise.
9095 (struct exec_catchpoint): Inherit from breakpoint.
9096 <~exec_catchpoint>: New.
9097 <base>: Remove.
9098 (dtor_catch_exec): Change to ...
9099 (exec_catchpoint::~exec_catchpoint): ... this.
9100 (dtor_watchpoint): Change to ...
9101 (watchpoint::~watchpoint): ... this.
9102 (watch_command_1): Remove reference to base field.
9103 (catch_exec_command_1): Likewise.
9104 (base_breakpoint_dtor): Change to ...
9105 (breakpoint::~breakpoint): ... this.
9106 (base_breakpoint_ops): Remove dtor field value.
9107 (longjmp_bkpt_dtor): Change to ...
9108 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
9109 (strace_marker_create_breakpoints_sal): Remove reference to base
9110 field.
9111 (delete_breakpoint): Don't manually call breakpoint destructor.
9112 (create_tracepoint_from_upload): Remove reference to base field.
9113 (trace_pass_set_count): Likewise.
9114 (initialize_breakpoint_ops): Don't initialize
9115 momentary_breakpoint_ops, don't set dtors.
9116 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
9117 <~ada_catchpoint>: New.
9118 <base>: Remove.
9119 (create_excep_cond_exprs): Remove reference to base field.
9120 (dtor_exception): Change to ...
9121 (ada_catchpoint::~ada_catchpoint): ... this.
9122 (dtor_catch_exception): Remove.
9123 (dtor_catch_exception_unhandled): Remove.
9124 (dtor_catch_assert): Remove.
9125 (create_ada_exception_catchpoint): Remove reference to base
9126 field.
9127 (initialize_ada_catchpoint_ops): Don't set dtors.
9128 * break-catch-sig.c (struct signal_catchpoint): Inherit from
9129 breakpoint.
9130 <~signal_catchpoint>: New.
9131 <base>: Remove.
9132 (signal_catchpoint_dtor): Change to ...
9133 (signal_catchpoint::~signal_catchpoint): ... this.
9134 (create_signal_catchpoint): Remove reference to base field.
9135 (initialize_signal_catchpoint_ops): Don't set dtor.
9136 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
9137 from breakpoint.
9138 <~syscall_catchpoint>: New.
9139 <base>: Remove.
9140 (dtor_catch_syscall): Change to ...
9141 (syscall_catchpoint::~syscall_catchpoint): ... this.
9142 (create_syscall_event_catchpoint): Remove reference to base
9143 field.
9144 (initialize_syscall_catchpoint_ops): Don't set dtor.
9145 * break-catch-throw.c (struct exception_catchpoint): Inherit
9146 from breakpoint.
9147 <~exception_catchpoint>: New.
9148 <base>: Remove.
9149 (dtor_exception_catchpoint): Change to ...
9150 (exception_catchpoint::~exception_catchpoint): ... this.
9151 (handle_gnu_v3_exceptions): Remove reference to base field.
9152 (initialize_throw_catchpoint_ops): Don't set dtor.
9153 * ctf.c (ctf_get_traceframe_address): Remove reference to base
9154 field.
9155 * remote.c (remote_get_tracepoint_status): Likewise.
9156 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
9157 * tracefile.c (tracefile_fetch_registers): Likewise.
9158 * tracepoint.c (actions_command): Likewise.
9159 (validate_actionline): Likewise.
9160 (tfind_1): Likewise.
9161 (get_traceframe_location): Likewise.
9162 (find_matching_tracepoint_location): Likewise.
9163 (parse_tracepoint_status): Likewise.
9164 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
9165
9166 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9167
9168 * breakpoint.c (struct longjmp_breakpoint): New struct.
9169 (is_tracepoint_type): Change return type to bool.
9170 (is_longjmp_type): New function.
9171 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
9172 (set_raw_breakpoint_without_location): Use
9173 new_breakpoint_from_type.
9174 (set_raw_breakpoint): Likewise.
9175
9176 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9177
9178 * breakpoint.c (new_breakpoint_from_type): New function.
9179 (create_breakpoint_sal): Use new_breakpoint_from_type and
9180 unique_ptr.
9181 (create_breakpoint): Likewise.
9182
9183 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
9184
9185 * memattr.c (mem_info_command): Rename to ...
9186 (info_mem_command): ... this.
9187 (mem_enable_command): Rename to ...
9188 (enable_mem_command): ... this.
9189 (mem_disable_command): Rename to ...
9190 (disable_mem_command): ... this.
9191 (mem_delete_command): Rename to ...
9192 (delete_mem_command): ... this.
9193 (_initialize_mem): Adjust function names.
9194
9195 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
9196
9197 * btrace.c (handle_pt_insn_events): New.
9198 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
9199 STATUS. Split into this and ...
9200 (handle_pt_insn_event_flags): ... this.
9201
9202 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
9203
9204 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
9205 and struct pt_insn.resynced.
9206 * configure: Regenerated.
9207 * config.in: Regenerated.
9208
9209 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9210
9211 * btrace.c (ftrace_find_call_by_number): New function.
9212 (ftrace_new_function): Store objects, not pointers.
9213 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
9214 ftrace_new_gap, ftrace_update_function,
9215 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
9216 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
9217 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
9218 btrace_ends_with_single_insn, btrace_call_get): Account for
9219 btrace_thread_info::functions now storing objects.
9220 * btrace.h (struct btrace_thread_info): Add constructor.
9221 (struct btrace_thread_info) <functions>: Make std::vector.
9222 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
9223 Initialize with default values.
9224 * record-btrace.c (record_btrace_frame_sniffer): Account for
9225 btrace_thread_info::functions now storing objects.
9226
9227 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9228
9229 * btrace.c: Remove typedef bfun_s.
9230 (ftrace_new_gap): Directly add gaps to the list of gaps.
9231 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
9232 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
9233 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
9234 instead of gdb VEC.
9235
9236 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9237
9238 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
9239 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
9240 with btrace_thread_info::next_segment and
9241 btrace_thread_info::prev_segment.
9242 * btrace.h: Remove struct btrace_func_link.
9243 (struct btrace_function): Replace pair of function segment pointers
9244 with pair of indices.
9245 * python/py-record-btrace.c (btpy_call_prev_sibling,
9246 btpy_call_next_sibling): Replace references to
9247 btrace_thread_info::segment with btrace_thread_info::next_segment and
9248 btrace_thread_info::prev_segment.
9249 * record-btrace.c (record_btrace_frame_this_id): Use
9250 btrace_find_call_by_number.
9251
9252 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9253
9254 * btrace.c (ftrace_new_function, ftrace_fixup_level,
9255 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
9256 btrace_insn_next, btrace_insn_prev): Remove references to
9257 btrace_thread_info::flow.
9258 * btrace.h (struct btrace_function): Remove FLOW.
9259
9260 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9261
9262 * btrace.c (ftrace_find_call_by_number): New function.
9263 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
9264 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
9265 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
9266 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
9267 index.
9268 * btrace.h (struct btrace_function): Turn UP into an index.
9269 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
9270 as an index.
9271 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
9272 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
9273 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
9274
9275 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9276
9277 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9278 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9279 ftrace_update_function, ftrace_compute_global_level_offset,
9280 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
9281 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
9282 btrace_insn_end, btrace_is_empty): Remove references to
9283 btrace_thread_info::begin and btrace_thread_info::end.
9284 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
9285 (struct btrace_thread_info) <functions>: Adjust comment.
9286 * record-btrace.c (record_btrace_start_replaying): Remove reference to
9287 btrace_thread_info::begin.
9288
9289 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9290
9291 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9292 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9293 ftrace_update_function): Remove arguments that implicitly were always
9294 BTINFO->END.
9295 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
9296 Don't pass BTINFO->END.
9297
9298 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9299
9300 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
9301 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
9302 btrace_find_insn_by_number): Replace function segment pointer with
9303 index.
9304 (btrace_insn_cmp): Simplify.
9305 * btrace.h: (struct btrace_insn_iterator) Rename index to
9306 insn_index. Replace function segment pointer with index into function
9307 segment vector.
9308 * record-btrace.c (record_btrace_call_history): Replace function
9309 segment pointer use with index.
9310 (record_btrace_frame_sniffer): Retrieve function call segment through
9311 vector.
9312 (record_btrace_set_replay): Remove defunc't safety check.
9313
9314 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9315
9316 * btrace.c (btrace_ends_with_single_insn): New function.
9317 (btrace_call_get, btrace_call_number, btrace_call_begin,
9318 btrace_call_end, btrace_call_next, btrace_call_prev,
9319 btrace_find_call_by_number): Use index into call segment vector
9320 instead of pointer.
9321 (btrace_call_cmp): Simplify.
9322 * btrace.h (struct btrace_call_iterator): Replace function call segment
9323 pointer with index into vector.
9324 * record-btrace.c (record_btrace_call_history): Use index instead of
9325 pointer.
9326
9327 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9328
9329 * btrace.c (btrace_insn_begin, btrace_insn_end,
9330 btrace_find_insn_by_number): Add btinfo to iterator.
9331 * btrace.h (struct btrace_insn_iterator): Add btinfo.
9332
9333 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9334
9335 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
9336 and save pointers directly.
9337 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
9338 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
9339 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
9340 changed signature of functions.
9341 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
9342 (btrace_fetch): Remove code that adds btrace_function pointers to
9343 vector of btrace_functions.
9344 (btrace_clear): Simplify freeing vector of btrace_functions.
9345
9346 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9347
9348 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
9349 Replace VEC_* with std::vector functions.
9350 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
9351 (struct btrace_thread_info)<functions>: Change type to std::vector.
9352
9353 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
9354
9355 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
9356 "Removed targets and native configurations" up. Merge duplicate
9357 "New commands" sub-sections. Add "New options" sub-sections.
9358
9359 2017-05-26 Alan Hayward <alan.hayward@arm.com>
9360
9361 * defs.h (copy_integer_to_size): New declaration.
9362 * findvar.c (copy_integer_to_size): New function.
9363 (do_cint_test): New selftest function.
9364 (copy_integer_to_size_test): Likewise.
9365 (_initialize_findvar): Likewise.
9366 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
9367 (mips_fbsd_collect_reg): Use raw_collect_integer.
9368 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
9369 (mips64_fill_gregset): Use raw_collect_integer
9370 (mips64_fill_fpregset): Use raw_supply_integer.
9371 * regcache.c (regcache::raw_supply_integer): New function.
9372 (regcache::raw_collect_integer): Likewise.
9373 * regcache.h: (regcache::raw_supply_integer): New declaration.
9374 (regcache::raw_collect_integer): Likewise.
9375
9376 2017-05-24 Yao Qi <yao.qi@linaro.org>
9377
9378 * Makefile.in (SFILES): Add gdbarch-selftests.c.
9379 (COMMON_OBS): Add gdbarch-selftests.o.
9380 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
9381 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
9382 * gdbarch-selftests.c: New file.
9383 * regcache.h (regcache) <~regcache>: Mark it virtual if
9384 GDB_SELF_TEST.
9385 <raw_write>: Likewise.
9386
9387 2017-05-24 Yao Qi <yao.qi@linaro.org>
9388
9389 * regcache.c (current_regcache): Change it to
9390 regcache::current_regcache.
9391 (regcache_observer_target_changed): Update.
9392 (regcache_thread_ptid_changed): Make it a regcache static
9393 method.
9394 (regcache_thread_ptid_changed): Update.
9395 (class regcache_access): New.
9396 (current_regcache_test): Update.
9397 (_initialize_regcache): Update.
9398 * regcache.h: Include forward_list.
9399 (regcache): Declare regcache_thread_ptid_changed and declare
9400 registers_changed_ptid as friend.
9401
9402 2017-05-24 Yao Qi <yao.qi@linaro.org>
9403
9404 * i387-tdep.c (i387_register_to_value): Use register_size
9405 instead of TYPE_LENGTH.
9406 * m68k-tdep.c (m68k_register_to_value): Likewise.
9407
9408 2017-05-24 Yao Qi <yao.qi@linaro.org>
9409
9410 * i387-tdep.c (i387_convert_register_p): Return false if type
9411 code isn't TYPE_CODE_FLT.
9412
9413 2017-05-24 Yao Qi <yao.qi@linaro.org>
9414
9415 * alpha-tdep.c (alpha_convert_register_p): Return true if type
9416 length is 4.
9417 (alpha_register_to_value): Remove type length check.
9418 (alpha_value_to_register): Likewise.
9419
9420 2017-05-24 Yao Qi <yao.qi@linaro.org>
9421
9422 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
9423 TYPE_CODE_FLT.
9424
9425 2017-05-24 Yao Qi <yao.qi@linaro.org>
9426
9427 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
9428 TYPE_CODE_FLT or not.
9429
9430 2017-05-24 Yao Qi <yao.qi@linaro.org>
9431
9432 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
9433 * avr-tdep.c (avr_gdbarch_init): Likewise.
9434 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9435 * cris-tdep.c (cris_gdbarch_init): Likewise.
9436 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
9437 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9438 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9439 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9440 * mep-tdep.c (mep_gdbarch_init): Likewise.
9441 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9442 * mips-tdep.c (mips_gdbarch_init): Likewise.
9443 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9444 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9445 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
9446 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9447 * v850-tdep.c (v850_gdbarch_init): Likewise.
9448
9449 2017-05-24 Yao Qi <yao.qi@linaro.org>
9450
9451 * selftest-arch.c (tests_with_arch): Call registers_changed
9452 and reinit_frame_cache.
9453 * selftest.c (run_self_tests): Likewise.
9454
9455 2017-05-24 Yao Qi <yao.qi@linaro.org>
9456
9457 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
9458 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
9459
9460 2017-05-24 Yao Qi <yao.qi@linaro.org>
9461
9462 * rl78-tdep.c (rl78_gdbarch_init): Don't call
9463 set_gdbarch_print_insn.
9464
9465 2017-05-24 Yao Qi <yao.qi@linaro.org>
9466
9467 * h8300-tdep.c (h8300_gdbarch_init): Don't call
9468 set_gdbarch_print_insn.
9469
9470 2017-05-24 Yao Qi <yao.qi@linaro.org>
9471
9472 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9473 set_gdbarch_print_insn.
9474 * arc-tdep.c (arc_gdbarch_init): Likewise.
9475 * arch-utils.c: include dis-asm.h.
9476 (default_print_insn): New function.
9477 * arch-utils.h (default_print_insn): Declare.
9478 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
9479 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9480 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
9481 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
9482 * frv-tdep.c (frv_gdbarch_init): Likewise.
9483 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
9484 * gdbarch.sh (print_insn): Use default_print_insn.
9485 * gdbarch.c: Regenerated.
9486 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9487 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
9488 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9489 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
9490 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9491 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
9492 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
9493 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9494 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
9495 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9496 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9497 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9498 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
9499 * mt-tdep.c (mt_gdbarch_init): Likewise.
9500 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9501 * nios2-tdep.c (nios2_print_insn): Remove.
9502 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
9503 * rx-tdep.c (rx_gdbarch_init): Likewise.
9504 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9505 * score-tdep.c (score_print_insn): Remove.
9506 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
9507 * sh-tdep.c (sh_gdbarch_init): Likewise.
9508 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9509 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9510 * tic6x-tdep.c (tic6x_print_insn): Remove.
9511 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
9512 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
9513 * v850-tdep.c (v850_gdbarch_init): Likewise.
9514 * vax-tdep.c (vax_gdbarch_init): Likewise.
9515 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9516 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
9517
9518 2017-05-23 John Baldwin <jhb@FreeBSD.org>
9519
9520 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
9521 (MIPS_FP0_REGNUM): Remove.
9522 (MIPS_FSR_REGNUM): Remove.
9523 (mips_fbsd_supply_fpregs): Use mips_regnum.
9524 (mips_fbsd_supply_gregs): Likewise.
9525 (mips_fbsd_collect_fpregs): Likewise.
9526 (mips_fbsd_collect_gregs): Likewise.
9527
9528 2017-05-23 John Baldwin <jhb@FreeBSD.org>
9529
9530 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
9531 (getpfpregs_supplies): New function.
9532 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
9533 getfpregs_supplies.
9534 (mips_fbsd_store_inferior_registers): Likewise.
9535
9536 2017-05-22 Pedro Alves <palves@redhat.com>
9537
9538 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
9539 maintainer.
9540
9541 2017-05-22 Alan Hayward <alan.hayward@arm.com>
9542
9543 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
9544 (store_register): Likewise.
9545 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
9546 (get_decimal_float_return_value): Likewise.
9547 (do_ppc_sysv_return_value): Likewise.
9548 (ppc64_sysv_abi_push_integer): Likewise.
9549 (ppc64_sysv_abi_push_freg): Likewise.
9550 (ppc64_sysv_abi_return_value_base): Likewise.
9551 (ppc64_sysv_abi_return_value): Likewise.
9552 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
9553 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
9554 * rs6000-nat.c: Likewise.
9555 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
9556 (rs6000_value_to_register): Likewise.
9557 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
9558
9559 2017-05-21 Tom Tromey <tom@tromey.com>
9560
9561 PR rust/21466:
9562 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
9563 arrays as "[T]", not "[T; ]".
9564
9565 2017-05-19 Tom Tromey <tom@tromey.com>
9566
9567 PR rust/21484:
9568 * rust-lang.c (exp_descriptor_rust): New function.
9569 (rust_language_defn): Use it.
9570 * p-lang.c (pascal_language_defn): Update.
9571 * opencl-lang.c (opencl_language_defn): Update.
9572 * objc-lang.c (objc_language_defn): Update.
9573 * m2-lang.c (m2_language_defn): Update.
9574 * language.h (struct language_defn)
9575 <la_watch_location_expression>: New member.
9576 * language.c (unknown_language_defn, auto_language_defn)
9577 (local_language_defn): Update.
9578 * go-lang.c (go_language_defn): Update.
9579 * f-lang.c (f_language_defn): Update.
9580 * d-lang.c (d_language_defn): Update.
9581 * c-lang.h (c_watch_location_expression): Declare.
9582 * c-lang.c (c_watch_location_expression): New function.
9583 (c_language_defn, cplus_language_defn, asm_language_defn)
9584 (minimal_language_defn): Use it.
9585 * breakpoint.c (watch_command_1): Call
9586 la_watch_location_expression.
9587 * ada-lang.c (ada_language_defn): Update.
9588
9589 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9590
9591 PR tui/21482
9592 * gdb_curses.h (NOMACROS): Define.
9593 (NCURSES_NOMACROS): Define.
9594
9595 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9596
9597 PR tui/21482
9598 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
9599 arg to char *.
9600 * tui/tui-wingeneral.c (box_win): Likewise.
9601 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
9602 (tui_show_source_line): Likewise.
9603 (tui_show_exec_info_content): Likewise.
9604
9605 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
9606
9607 * sparc-tdep.c (sparc_structure_return_p)
9608 (sparc_arg_on_registers_p): New functions.
9609 (sparc32_store_arguments): Use them.
9610 * sparc64-tdep.c (sparc64_16_byte_align_p)
9611 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
9612 Handle TYPE_CODE_ARRAY.
9613
9614 2017-05-17 Yao Qi <yao.qi@linaro.org>
9615
9616 * cli/cli-decode.c (add_alias_cmd): New function.
9617 * command.h (add_alias_cmd): Declare.
9618 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
9619 instead call add_alias_cmd.
9620
9621 2017-05-17 Pedro Alves <palves@redhat.com>
9622
9623 * Makefile.in (nat_extra_makefile_frag): Rename to ...
9624 (nat_makefile_frag): ... this. All references updated.
9625 * configure.ac: Likewise.
9626 * configure.nat: Likewise. Enhance comments.
9627 * configure: Regenerate.
9628
9629 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9630
9631 * procfs.c (procfs_create_inferior): Change prototype to match
9632 definition.
9633
9634 2017-05-13 Eli Zaretskii <eliz@gnu.org>
9635
9636 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
9637 C++ compiler warning.
9638
9639 2017-05-12 Tom Tromey <tom@tromey.com>
9640
9641 PR rust/21483:
9642 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
9643 recurse, just call value_struct_elt directly.
9644
9645 2017-05-12 Tom Tromey <tom@tromey.com>
9646
9647 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
9648 OP_RUST_ARRAY>: Fix.
9649
9650 2017-05-12 Tom Tromey <tom@tromey.com>
9651
9652 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
9653
9654 2017-05-09 Yao Qi <yao.qi@linaro.org>
9655
9656 * regcache.c: Include <forward_list>.
9657 (struct regcache_list): Remove.
9658 (current_regcache): Update.
9659 (get_thread_arch_aspace_regcache): Update for std::forward_list.
9660 (regcache_thread_ptid_changed): Likewise.
9661 (registers_changed_ptid): Likewise.
9662 (current_regcache_size): Likewise.
9663
9664 2017-05-09 Yao Qi <yao.qi@linaro.org>
9665
9666 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
9667 (current_regcache_size): New function.
9668 (current_regcache_test): New function.
9669 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
9670
9671 2017-05-08 Alan Hayward <alan.hayward@arm.com>
9672
9673 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
9674 (print_gp_register_row): Use get_frame_register_value.
9675
9676 2017-05-08 Alan Hayward <alan.hayward@arm.com>
9677
9678 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
9679 (mips_supply_fpregset): Likewise.
9680 (mips64_supply_gregset): Likewise.
9681
9682 2017-05-08 Alan Hayward <alan.hayward@arm.com>
9683
9684 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
9685 regcache->raw_supply_zeroed.
9686
9687 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9688
9689 * configure.nat: Rearrange 'case' statements to match
9690 host before cpu.
9691
9692 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9693
9694 * Makefile.in: Remove "@host_makefile_frag@". Add variables
9695 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
9696 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
9697 "@nat_extra_makefile_frag@".
9698 (Makefile): Remove dependency on "@frags@".
9699 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
9700 (data-directory/Makefile): Likewise.
9701 * config/aarch64/linux.mh: Deleted; moved contents to
9702 "gdb/configure.nat".
9703 * config/alpha/alpha-linux.mh: Likewise.
9704 * config/alpha/nbsd.mh: Likewise.
9705 * config/arm/linux.mh: Likewise.
9706 * config/arm/nbsdelf.mh: Likewise.
9707 * config/i386/cygwin.mh: Likewise.
9708 * config/i386/cygwin64.mh: Likewise.
9709 * config/i386/darwin.mh: Likewise.
9710 * config/i386/fbsd.mh: Likewise.
9711 * config/i386/fbsd64.mh: Likewise.
9712 * config/i386/go32.mh: Likewise.
9713 * config/i386/i386gnu.mh: Likewise.
9714 * config/i386/i386sol2.mh: Likewise.
9715 * config/i386/linux.mh: Likewise.
9716 * config/i386/linux64.mh: Likewise.
9717 * config/i386/mingw.mh: Likewise.
9718 * config/i386/mingw64.mh: Likewise.
9719 * config/i386/nbsd64.mh: Likewise.
9720 * config/i386/nbsdelf.mh: Likewise.
9721 * config/i386/nto.mh: Likewise.
9722 * config/i386/obsd.mh: Likewise.
9723 * config/i386/obsd64.mh: Likewise.
9724 * config/i386/sol2-64.mh: Likewise.
9725 * config/ia64/linux.mh: Likewise.
9726 * config/m32r/linux.mh: Likewise.
9727 * config/m68k/linux.mh: Likewise.
9728 * config/m68k/nbsdelf.mh: Likewise.
9729 * config/m68k/obsd.mh: Likewise.
9730 * config/m88k/obsd.mh: Likewise.
9731 * config/mips/fbsd.mh: Likewise.
9732 * config/mips/linux.mh: Likewise.
9733 * config/mips/nbsd.mh: Likewise.
9734 * config/mips/obsd64.mh: Likewise.
9735 * config/pa/linux.mh: Likewise.
9736 * config/pa/nbsd.mh: Likewise.
9737 * config/pa/obsd.mh: Likewise.
9738 * config/powerpc/aix.mh: Likewise.
9739 * config/powerpc/fbsd.mh: Likewise.
9740 * config/powerpc/linux.mh: Likewise.
9741 * config/powerpc/nbsd.mh: Likewise.
9742 * config/powerpc/obsd.mh: Likewise.
9743 * config/powerpc/ppc64-linux.mh: Likewise.
9744 * config/powerpc/spu-linux.mh: Likewise.
9745 * config/s390/linux.mh: Likewise.
9746 * config/sh/nbsd.mh: Likewise.
9747 * config/sparc/fbsd.mh: Likewise.
9748 * config/sparc/linux.mh: Likewise.
9749 * config/sparc/linux64.mh: Likewise.
9750 * config/sparc/nbsd64.mh: Likewise.
9751 * config/sparc/nbsdelf.mh: Likewise.
9752 * config/sparc/obsd64.mh: Likewise.
9753 * config/sparc/sol2.mh: Likewise.
9754 * config/tilegx/linux.mh: Likewise.
9755 * config/vax/nbsdelf.mh: Likewise.
9756 * config/vax/obsd.mh: Likewise.
9757 * config/xtensa/linux.mh: Likewise.
9758 * config/i386/i386gnu.mn: New file, with excerpts from
9759 "config/i386/i386gnu.mh".
9760 * configure: Regenerate.
9761 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
9762 *.mh files under "gdb/config".
9763 * configure.nat: New file, with contents from the
9764 "gdb/config/*/*.mh" files.
9765
9766 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
9767
9768 * btrace.c (btrace_clear): Free insn vector.
9769
9770 2017-05-05 Pedro Alves <palves@redhat.com>
9771
9772 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
9773 * configure: Regenerate.
9774
9775 2017-05-04 Pedro Alves <palves@redhat.com>
9776
9777 * Makefile.in (SFILES): Add progspace-and-thread.c.
9778 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
9779 (COMMON_OBS): Add progspace-and-thread.o.
9780 * breakpoint.c: Include "progspace-and-thread.h".
9781 (update_inserted_breakpoint_locations)
9782 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
9783 Use scoped_restore_current_pspace_and_thread.
9784 (create_std_terminate_master_breakpoint): Use
9785 scoped_restore_current_program_space.
9786 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
9787 (print_breakpoint_location): Use
9788 scoped_restore_current_program_space.
9789 (bp_loc_is_permanent): Use
9790 scoped_restore_current_pspace_and_thread.
9791 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
9792 (download_tracepoint_locations): Use
9793 scoped_restore_current_pspace_and_thread.
9794 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
9795 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
9796 (enum step_over_calls_kind): Moved from inferior.h.
9797 (class scoped_restore_current_thread): New class.
9798 * gdbthread.h (make_cleanup_restore_current_thread): Delete
9799 declaration.
9800 (scoped_restore_current_thread): New class.
9801 * infcmd.c: Include "common/gdb_optional.h".
9802 (continue_1, proceed_after_attach): Use
9803 scoped_restore_current_thread.
9804 (notice_new_inferior): Use scoped_restore_current_thread.
9805 * inferior.c: Include "progspace-and-thread.h".
9806 (restore_inferior, save_current_inferior): Delete.
9807 (add_inferior_command, clone_inferior_command): Use
9808 scoped_restore_current_pspace_and_thread.
9809 * inferior.h (scoped_restore_current_inferior): New class.
9810 * infrun.c: Include "progspace-and-thread.h" and
9811 "common/gdb_optional.h".
9812 (follow_fork_inferior): Use
9813 scoped_restore_current_pspace_and_thread.
9814 (scoped_restore_exited_inferior): New class.
9815 (handle_vfork_child_exec_or_exit): Use
9816 scoped_restore_exited_inferior,
9817 scoped_restore_current_pspace_and_thread,
9818 scoped_restore_current_thread and scoped_restore.
9819 (fetch_inferior_event): Use scoped_restore_current_thread.
9820 * linespec.c (decode_line_full, decode_line_1): Use
9821 scoped_restore_current_program_space.
9822 * mi/mi-main.c: Include "progspace-and-thread.h".
9823 (exec_continue): Use scoped_restore_current_thread.
9824 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
9825 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
9826 * proc-service.c (ps_pglobal_lookup): Use
9827 scoped_restore_current_program_space.
9828 * progspace-and-thread.c: New file.
9829 * progspace-and-thread.h: New file.
9830 * progspace.c (release_program_space, clone_program_space): Use
9831 scoped_restore_current_program_space.
9832 (restore_program_space, save_current_program_space)
9833 (save_current_space_and_thread): Delete.
9834 (switch_to_program_space_and_thread): Moved to
9835 progspace-and-thread.c.
9836 * progspace.h (save_current_program_space)
9837 (save_current_space_and_thread): Delete declarations.
9838 (scoped_restore_current_program_space): New class.
9839 * remote.c (remote_btrace_maybe_reopen): Use
9840 scoped_restore_current_thread.
9841 * symtab.c: Include "progspace-and-thread.h".
9842 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
9843 * thread.c (print_thread_info_1): Use
9844 scoped_restore_current_thread.
9845 (struct current_thread_cleanup): Delete.
9846 (do_restore_current_thread_cleanup)
9847 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
9848 (scoped_restore_current_thread::~scoped_restore_current_thread):
9849 ... this new dtor.
9850 (make_cleanup_restore_current_thread): Rename/convert to ...
9851 (scoped_restore_current_thread::scoped_restore_current_thread):
9852 ... this new ctor.
9853 (thread_apply_all_command): Use scoped_restore_current_thread.
9854 (thread_apply_command): Use scoped_restore_current_thread.
9855 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
9856 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
9857
9858 2017-05-04 Pedro Alves <palves@redhat.com>
9859
9860 * thread.c (make_cleanup_restore_current_thread): Move
9861 find_thread_ptid call before the is_stopped call. Assert that the
9862 thread is found. Replace is_stopped call by checking the thread's
9863 state directly. Remove unnecessary NULL-thread check.
9864
9865 2017-05-04 Pedro Alves <palves@redhat.com>
9866
9867 * corelow.c (thread_section_name): New class.
9868 (get_core_register_section, get_core_siginfo): Use it.
9869
9870 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9871
9872 * corelow.c (sniff_core_bfd): Remove extra semicolon.
9873 (get_core_register_section): Remove xfree of NULL pointer.
9874
9875 2017-05-03 Alan Hayward <alan.hayward@arm.com>
9876
9877 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
9878 * regcache.c (regcache::raw_supply_zeroed): New function.
9879 * regcache.h (regcache::raw_supply_zeroed): New declaration.
9880
9881 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
9882
9883 * gdbarch.sh: Remove commented out definition of
9884 TARGET_CHAR_BIT.
9885 * gdbarch.h: Re-generate.
9886
9887 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
9888
9889 * configure: Regenerate.
9890
9891 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
9892
9893 * solib-target.c (solib_target_relocate_section_addresses):
9894 Remove num_section_bases, num_bases, segment_bases variables.
9895
9896 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9897
9898 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
9899
9900 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9901
9902 * solib-target.c: Include <vector>
9903 (struct lm_info_target) <~lm_info_target>: Remove.
9904 <segment_bases, section_bases>: Change type to
9905 std::vector<CORE_ADDR>.
9906 (library_list_start_segment, library_list_start_section,
9907 library_list_end_library,
9908 solib_target_relocate_section_addresses): Adjust.
9909
9910 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9911
9912 * gdbarch.sh (software_single_step): Change return type to
9913 std::vector<CORE_ADDR>.
9914 * gdbarch.c, gdbarch.h: Re-generate.
9915 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9916 Adjust.
9917 (arm_deal_with_atomic_sequence_raw): Adjust.
9918 (thumb_get_next_pcs_raw): Adjust.
9919 (arm_get_next_pcs_raw): Adjust.
9920 (arm_get_next_pcs): Adjust.
9921 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
9922 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
9923 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
9924 (alpha_software_single_step): Adjust.
9925 * alpha-tdep.h (alpha_software_single_step): Adjust.
9926 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
9927 * arm-tdep.c (arm_software_single_step): Adjust.
9928 (arm_breakpoint_kind_from_current_state): Adjust.
9929 * arm-tdep.h (arm_software_single_step): Adjust.
9930 * breakpoint.c (insert_single_step_breakpoint): Adjust.
9931 * cris-tdep.c (cris_software_single_step): Adjust.
9932 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
9933 (micromips_deal_with_atomic_sequence): Adjust.
9934 (deal_with_atomic_sequence): Adjust.
9935 (mips_software_single_step): Adjust.
9936 * mips-tdep.h (mips_software_single_step): Adjust.
9937 * moxie-tdep.c (moxie_software_single_step): Adjust.
9938 * nios2-tdep.c (nios2_software_single_step): Adjust.
9939 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
9940 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
9941 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
9942 * s390-linux-tdep.c (s390_software_single_step): Adjust.
9943 * sparc-tdep.c (sparc_software_single_step): Adjust.
9944 * spu-tdep.c (spu_software_single_step): Adjust.
9945 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9946
9947 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9948
9949 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9950 * gdbarch.h: Re-generate.
9951
9952 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9953
9954 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9955 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9956 * python/py-instruction.c, python/py-instruction.h: New file.
9957 * python/py-record.c: Add py-instruction.h include.
9958 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9959 gdb.RecordInstruction.
9960 * python/python-internal.h: Add gdbpy_initialize_instruction
9961 declaration.
9962 * python/python.c (do_start_initialization): Add
9963 gdbpy_initialize_instruction.
9964
9965 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9966
9967 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9968 Remove.
9969 (btrace_func_from_recpy_func): New function.
9970 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9971 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9972 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9973 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9974 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9975 Also, use new helper functions.
9976 (btpy_list_item): Use new helper functions.
9977 (recpy_bt_function_call_history): Use new type name.
9978 (btpy_call_getset): Remove.
9979 (gdbpy_initialize_btrace): Remove code to initialize
9980 gdb.BtraceFunctionCall.
9981 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9982 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9983 recpy_bt_func_prev, recpy_bt_func_next): New export.
9984 * python/py-record.c (recpy_func_type): New static object.
9985 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9986 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9987 recpy_func_next): New function.
9988 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9989 (recpy_func_getset): New static object.
9990 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9991 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9992
9993 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9994
9995 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9996 (btpy_object, btpy_insn_type, btpy_new): Remove.
9997 (btpy_list_object): Use gdb.RecordInstruction type instead of
9998 gdb.BtraceInstruction type.
9999 (btrace_insn_from_recpy_insn): New function.
10000 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
10001 btpy_new.
10002 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
10003 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
10004 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
10005 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
10006 instead of btpy_object.
10007 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
10008 btpy_insn_data, btpy_insn_decode): Rename to ...
10009 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
10010 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
10011 recpy_bt_insn_decode): This. Also, use new helper functions.
10012 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
10013 recpy_insn_type.
10014 (btpy_insn_getset): Remove.
10015 (gdbpy_initialize_btrace): Remove code to initialize
10016 gdb.BtraceInstruction. Use recpy_element_object.
10017 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
10018 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
10019 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
10020 * python/py-record.c (recpy_insn_type): New static object.
10021 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
10022 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
10023 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
10024 New function.
10025 (recpy_insn_getset): New static object.
10026 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
10027 * python/py-record.h (recpy_element_object): New typedef.
10028 (recpy_insn_type, recpy_insn_new): New export.
10029
10030 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10031
10032 * py-record-btrace.c (btpy_insn_new): Removed.
10033 (btpy_insn_or_gap_new): New function.
10034 (btpy_insn_error): Removed.
10035 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
10036 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
10037 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
10038 btpy_insn_or_gap_new instead of btpy_insn_new.
10039 (btpy_insn_getset): Remove btpy_insn_error.
10040 * py-record.c (recpy_gap_type): New static object.
10041 (recpy_gap_object): New typedef.
10042 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
10043 recpy_gap_reason_string): New function.
10044 (recpy_gap_getset): New static object.
10045 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
10046 * py-record.h (recpy_gap_new): New export.
10047
10048 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10049
10050 * python/py-record.c (recpy_ptid): Remove.
10051 (recpy_record_getset): Remove recpy_ptid.
10052
10053 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10054
10055 * btrace.c (btrace_fetch): Set inferior_ptid.
10056 * python/py-record-btrace.c: Add "py-record.h" include.
10057 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
10058 recpy_bt_end, recpy_bt_instruction_history,
10059 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
10060 in gdb.Record object instead of current ptid.
10061 * python/py-record.c: Include new "py-record.h" file.
10062 (recpy_record_object): Moved to py-record.h.
10063 * python/py-record.h: New file.
10064
10065 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
10066
10067 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
10068 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
10069 indentation.
10070
10071 2017-05-01 Joel Brobecker <brobecker@adacore.com>
10072
10073 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
10074 the past maintainers section.
10075
10076 2017-04-28 Yao Qi <yao.qi@linaro.org>
10077
10078 * infcmd.c (get_return_value): Use regcache ctor, and remove
10079 cleanup.
10080
10081 2017-04-28 Yao Qi <yao.qi@linaro.org>
10082 Pedro Alves <palves@redhat.com>
10083
10084 * regcache.c (regcache::regcache): New tag dispatch ctor.
10085 (do_cooked_read): Moved above.
10086 (regcache_dup): Use the tag dispatch ctor..
10087 * regcache.h (regcache): Declare ctor, delete copy ctor and
10088 assignment operator, remove friend regcache_dup.
10089
10090 2017-04-28 Yao Qi <yao.qi@linaro.org>
10091
10092 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
10093 call method save instead of regcache_cpy.
10094 * regcache.h (struct regcache): Make regcache_dup a friend.
10095
10096 2017-04-28 Yao Qi <yao.qi@linaro.org>
10097
10098 * regcache.c (struct regcache): Move to regcache.h
10099 (regcache::arch): New method.
10100 (regcache_get_ptid): Update.
10101 (get_regcache_arch): Call arch method.
10102 (get_regcache_aspace): Call method aspace.
10103 (register_buffer): Change it to method.
10104 (regcache_save): Change it to regcache::save.
10105 (regcache_restore): Likewise.
10106 (regcache_cpy_no_passthrough): Remove the declaration.
10107 (regcache_cpy): Call methods restore and cpy_no_passthrough.
10108 (regcache_cpy_no_passthrough): Change it to method
10109 cpy_no_passthrough.
10110 (regcache_register_status): Change it to method
10111 get_register_status.
10112 (regcache_invalidate): Change it to method invalidate.
10113 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
10114 (regcache_raw_update): Change it to method raw_update.
10115 (regcache_raw_read): Likewise.
10116 (regcache_raw_read_signed): Likewise.
10117 (regcache_raw_read_unsigned): Likewise.
10118 (regcache_raw_write_signed): Likewise.
10119 (regcache_raw_write_unsigned): Likewise.
10120 (regcache_cooked_read): Likewise.
10121 (regcache_cooked_read_value): Likewise.
10122 (regcache_cooked_read_signed): Likewise.
10123 (regcache_cooked_read_unsigned): Likewise.
10124 (regcache_cooked_write_signed): Likewise.
10125 (regcache_cooked_write_unsigned): Likewise.
10126 (regcache_raw_set_cached_value): Likewise.
10127 (regcache_raw_write): Likewise.
10128 (regcache_cooked_write): Likewise.
10129 (regcache_xfer_part): Likewise.
10130 (regcache_raw_read_part): Likewise.
10131 (regcache_raw_write_part): Likewise.
10132 (regcache_cooked_read_part): Likewise.
10133 (regcache_cooked_write_part): Likewise.
10134 (regcache_raw_supply): Likewise.
10135 (regcache_raw_collect): Likewise.
10136 (regcache_transfer_regset): Likewise.
10137 (regcache_supply_regset): Likewise.
10138 (regcache_collect_regset): Likewise.
10139 (regcache_debug_print_register): Likewise.
10140 (enum regcache_dump_what): Move it to regcache.h.
10141 (regcache_dump): Change it to method dump.
10142 * regcache.h (enum regcache_dump_what): New.
10143 (class regcache): New.
10144 * target.c (target_fetch_registers): Call method
10145 debug_print_register.
10146 (target_store_registers): Likewise.
10147
10148 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10149
10150 * windows-nat.c (struct lm_info_windows): Initialize field.
10151 (windows_make_so): Allocate lm_info_windows with new.
10152 (windows_free_so): Free lm_info_windows with delete.
10153
10154 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10155
10156 * solib-darwin.c (struct lm_info_darwin): Initialize field.
10157 (darwin_current_sos): Allocate lm_info_darwin with new, remove
10158 cleanup.
10159 (darwin_free_so): Free lm_info_darwin with delete.
10160
10161 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10162
10163 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
10164 <l_addr_p>: Change type to bool.
10165 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
10166 (svr4_free_so): Free lm_info_svr4 with delete.
10167 (svr4_copy_library_list): Replace memcpy with call to copy
10168 constructor.
10169 (library_list_start_library, svr4_default_sos): Allocate
10170 lm_info_svr4 with new.
10171
10172 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10173
10174 * solib-target.c (struct lm_info_target): Add destructor,
10175 initialize fields.
10176 <name>: Change type to std::string.
10177 (library_list_start_library): Allocate lm_info_target with new.
10178 (solib_target_free_library_list): Free lm_info_target with
10179 delete.
10180 (solib_target_current_sos): Adapt to std::string.
10181 (solib_target_free_so): Free lm_info_target with delete.
10182
10183 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10184
10185 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
10186 fields.
10187 (frv_current_sos): Allocate lm_info_frv with new.
10188 (frv_relocate_main_executable): Free lm_info_frv with delete,
10189 allocate with new.
10190 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
10191
10192 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10193
10194 * solib-frv.c (struct lm_info_frv): Fix indentation.
10195
10196 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10197
10198 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
10199 map field.
10200 (dsbt_current_sos): Allocate lm_info_dsbt with new.
10201 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
10202 and allocate with new.
10203 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
10204
10205 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10206
10207 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
10208 <filename, member_name>: Change type to std::string.
10209 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
10210 (library_list_start_library): Allocate lm_info_aix with new.
10211 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
10212 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
10213 with copy constructor.
10214
10215 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10216
10217 * solist.h (struct lm_info): Remove.
10218 (struct lm_info_base): New class.
10219 (struct so_list) <lm_info>: Change type to lm_info_base *.
10220 * nto-tdep.c (struct lm_info): Remove.
10221 (lm_addr): Adjust.
10222 * solib-aix.c (struct lm_info): Rename to ...
10223 (struct lm_info_aix): ... this. Extend lm_info_base.
10224 (lm_info_p): Rename to ...
10225 (lm_info_aix_p): ... this, and adjust.
10226 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
10227 solib_aix_parse_libraries, library_list_start_library,
10228 solib_aix_free_library_list, solib_aix_parse_libraries,
10229 solib_aix_get_library_list,
10230 solib_aix_relocate_section_addresses, solib_aix_free_so,
10231 solib_aix_get_section_offsets,
10232 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
10233 Adjust.
10234 (struct solib_aix_inferior_data) <library_list>: Adjust.
10235 * solib-darwin.c (struct lm_info): Rename to ...
10236 (struct lm_info_darwin): ... this. Extend lm_info_base.
10237 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
10238 * solib-dsbt.c (struct lm_info): Rename to ...
10239 (struct lm_info_dsbt): ... this. Extend lm_info_base.
10240 (struct dsbt_info) <main_executable_lm_info): Adjust.
10241 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
10242 dsbt_relocate_section_addresses): Adjust.
10243 * solib-frv.c (struct lm_info): Rename to ...
10244 (struct lm_info_frv): ... this. Extend lm_info_base.
10245 (main_executable_lm_info): Adjust.
10246 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
10247 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
10248 find_canonical_descriptor_in_load_object,
10249 frv_fdpic_find_canonical_descriptor): Adjust.
10250 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
10251 to lm_info_svr4.
10252 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
10253 svr4_clear_so, svr4_copy_library_list,
10254 library_list_start_library, svr4_default_sos, svr4_read_so_list,
10255 svr4_current_sos, svr4_fetch_objfile_link_map,
10256 solist_update_incremental): Adjust.
10257 * solib-svr4.h (struct lm_info_svr4): Move here from
10258 solib-svr4.c.
10259 * solib-target.c (struct lm_info): Rename to ...
10260 (struct lm_info_target): ... this. Extend lm_info_base.
10261 (lm_info_p): Rename to ...
10262 (lm_info_target_p): ... this.
10263 (solib_target_parse_libraries, library_list_start_segment,
10264 library_list_start_section, library_list_start_library,
10265 library_list_end_library, solib_target_free_library_list,
10266 solib_target_current_sos, solib_target_free_so,
10267 solib_target_relocate_section_addresses): Adjust.
10268 * windows-nat.c (struct lm_info): Rename to ...
10269 (struct lm_info_windows): ... this. Extend lm_info_base.
10270 (windows_make_so, handle_load_dll, handle_unload_dll,
10271 windows_xfer_shared_libraries): Adjust.
10272
10273 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10274
10275 * solib-darwin.c (struct darwin_so_list): Remove.
10276 (darwin_current_sos): Allocate an so_list object instead of a
10277 darwin_so_list, separately allocate an lm_info object.
10278 (darwin_free_so): Free lm_info.
10279
10280 2017-04-28 John Baldwin <jhb@FreeBSD.org>
10281
10282 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
10283 with fprintf_filtered.
10284
10285 2017-04-28 Yao Qi <yao.qi@linaro.org>
10286
10287 * regcache.c (regcache::regcache): New function.
10288 (regcache::~regcache): New function.
10289 (regcache_xmalloc_1): Remove.
10290 (regcache_xmalloc): Call new regcache.
10291 (regcache_xfree): Call delete regcache.
10292 (get_thread_arch_aspace_regcache): Call new regcache.
10293
10294 2017-04-28 Yao Qi <yao.qi@linaro.org>
10295
10296 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
10297 lwp instead of ptid_get_lwp.
10298
10299 2017-04-28 Yao Qi <yao.qi@linaro.org>
10300
10301 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
10302 lwp_info instead of getting from inferior_ptid.
10303
10304 2017-04-27 Keith Seitz <keiths@redhat.com>
10305
10306 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
10307 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
10308 (CV_CONVERSION_BADNESS): Define.
10309 (rank_one_type): Remove overly restrictive rvalue reference
10310 rank checks.
10311 Add cv-qualifier checks and subranks for type equality.
10312 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
10313 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
10314 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
10315
10316 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
10317
10318 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
10319 count when creating the object.
10320
10321 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
10322 Ulrich Weigand <uweigand@de.ibm.com>
10323
10324 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
10325 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
10326 is used in AIX.
10327 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
10328 (process_xcoff_symbol): Likewise.
10329 (scan_xcoff_symtab): Likewise.
10330
10331 2017-04-26 Alan Hayward <alan.hayward@arm.com>
10332
10333 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
10334 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
10335 (ia64_access_reg): Use get_frame_register_unsigned.
10336 (ia64_access_rse_reg): Likewise.
10337 (ia64_libunwind_frame_prev_register): Likewise.
10338
10339 2017-04-26 Jiong Wang <jiong.wang@arm.com>
10340
10341 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
10342 * gdbarch.c: Regenerated.
10343 * gdbarch.h: Regenerated.
10344 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
10345 visibility external.
10346 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
10347 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
10348 (enum cfa_how_kind): Move to ...
10349 (struct dwarf2_frame_state_reg_info): Likewise.
10350 (struct dwarf2_frame_state): Likewise.
10351 * dwarf2-frame.h: ... here.
10352 (dwarf2_frame_state_alloc_regs): New declaration.
10353 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
10354 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
10355
10356 2017-04-26 Alan Hayward <alan.hayward@arm.com>
10357
10358 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
10359 regcache_raw_read_unsigned.
10360 (xtensa_pseudo_register_write): Likewise.
10361
10362 2017-04-26 Alan Hayward <alan.hayward@arm.com>
10363
10364 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
10365 (nds32_pseudo_register_write): Likewise.
10366
10367 2017-04-25 Yao Qi <yao.qi@linaro.org>
10368
10369 * regcache.c (struct regcache) <readonly_p>: Change its type
10370 to bool.
10371 (regcache_xmalloc_1): Update parameter type and callers update.
10372
10373 2017-04-25 Yao Qi <yao.qi@linaro.org>
10374
10375 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10376 set_gdbarch_wchar_bit.
10377 * arm-tdep.c (arm_gdbarch_init): Likewise.
10378
10379 2017-04-25 Pedro Alves <palves@redhat.com>
10380
10381 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
10382 (BothAreRelocatable, memcopy, memmove): Don't define.
10383 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
10384 macros.
10385
10386 2017-04-25 Pedro Alves <palves@redhat.com>
10387
10388 * common/common-defs.h: Include "common/poison.h".
10389 * common/function-view.h: (Not, Or, Requires): Move to traits.h
10390 and adjust.
10391 * common/poison.h: New file.
10392 * common/traits.h: Include <type_traits>.
10393 (Not, Or, Requires): New, moved from common/function-view.h.
10394
10395 2017-04-25 Pedro Alves <palves@redhat.com>
10396
10397 * breakpoint.h (struct breakpoint): In-class initialize all
10398 fields. Make boolean fields "bool".
10399 * breakpoint.c (init_raw_breakpoint_without_location): Remove
10400 memset call and initializations no longer necessary.
10401
10402 2017-04-25 Pedro Alves <palves@redhat.com>
10403
10404 * btrace.c (pt_btrace_insn_flags): Change parameter type to
10405 reference.
10406 (pt_btrace_insn): New function.
10407 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
10408
10409 2017-04-25 Pedro Alves <palves@redhat.com>
10410
10411 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
10412 "base" field and inherit from "bp_location" instead. Add
10413 non-default ctor.
10414 (allocate_location_exception): Use new non-default ctor.
10415 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
10416 (init_bp_location): Convert to ...
10417 (bp_location::bp_location): ... this new ctor, and remove memset
10418 call.
10419 (base_breakpoint_allocate_location): Use the new non-default ctor.
10420 * breakpoint.h (bp_location): Now a class. Declare default and
10421 non-default ctors. In-class initialize all members.
10422 (init_bp_location): Remove declaration.
10423
10424 2017-04-25 Pedro Alves <palves@redhat.com>
10425
10426 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
10427 assignment operator.
10428
10429 2017-04-24 Yao Qi <yao.qi@linaro.org>
10430
10431 * doublest.c (convert_doublest_to_floatformat): Call
10432 floatformat_totalsize_bytes.
10433
10434 2017-04-22 Tom Tromey <tom@tromey.com>
10435
10436 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
10437 ui_out_emit_list.
10438 * stack.c (print_frame): Use ui_out_emit_list.
10439 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
10440 ui_out_emit_list.
10441 * mi/mi-main.c (print_one_inferior)
10442 (mi_cmd_data_list_register_names)
10443 (mi_cmd_data_list_register_values, mi_cmd_list_features)
10444 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
10445 ui_out_emit_list.
10446 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
10447 (mi_output_solib_attribs): Use ui_out_emit_list,
10448 ui_out_emit_tuple.
10449 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
10450 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
10451 (mi_cmd_stack_list_args, list_args_or_locals): Use
10452 ui_out_emit_list.
10453 * disasm.c (do_assembly_only): Use ui_out_emit_list.
10454 * breakpoint.c (print_solib_event, output_thread_groups): Use
10455 ui_out_emit_list.
10456
10457 2017-04-22 Tom Tromey <tom@tromey.com>
10458
10459 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
10460 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
10461 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
10462
10463 2017-04-22 Tom Tromey <tom@tromey.com>
10464
10465 * tracepoint.c (tvariables_info_1)
10466 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
10467
10468 2017-04-22 Tom Tromey <tom@tromey.com>
10469
10470 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
10471 annotate_arg_emitter.
10472 * breakpoint.c (print_mention_watchpoint)
10473 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
10474 * annotate.h (struct annotate_arg_emitter): New.
10475
10476 2017-04-22 Tom Tromey <tom@tromey.com>
10477
10478 * record-btrace.c (record_btrace_insn_history)
10479 (record_btrace_insn_history_range, record_btrace_call_history)
10480 (record_btrace_call_history_range): Use ui_out_emit_tuple.
10481 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
10482 ui_out_emit_tuple.
10483 * stack.c (print_frame_info): Use ui_out_emit_tuple.
10484 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
10485 * skip.c (skip_info): Use ui_out_emit_tuple.
10486 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
10487 * progspace.c (print_program_space): Use ui_out_emit_tuple.
10488 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
10489 * osdata.c (info_osdata): Use ui_out_emit_tuple.
10490 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
10491 ui_out_emit_tuple.
10492 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
10493 (output_register, mi_cmd_data_read_memory)
10494 (mi_cmd_data_read_memory_bytes, mi_load_progress)
10495 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
10496 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
10497 Use ui_out_emit_tuple.
10498 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
10499 ui_out_emit_tuple.
10500 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
10501 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
10502 * linux-thread-db.c (info_auto_load_libthread_db): Use
10503 ui_out_emit_tuple.
10504 * inferior.c (print_inferior): Use ui_out_emit_tuple.
10505 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
10506 * disasm.c (do_mixed_source_and_assembly_deprecated)
10507 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
10508 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
10509 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
10510 * breakpoint.c (print_one_breakpoint_location)
10511 (print_one_breakpoint): Use ui_out_emit_tuple.
10512 * auto-load.c (print_script, info_auto_load_cmd): Use
10513 ui_out_emit_tuple.
10514 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
10515
10516 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
10517
10518 * thread.c (print_thread_info_1): Remove dead code.
10519
10520 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10521
10522 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
10523 GDB_SELF_TEST.
10524 * arm-tdep.c (selftests::arm_record_test): Likewise.
10525
10526 2017-04-21 Yao Qi <yao.qi@linaro.org>
10527
10528 * regcache.c (regcache_restore): Remove argument 2. Replace
10529 argument 3 with regcache. Get register status from
10530 src->register_status and get register contents from
10531 register_buffer (src, regnum).
10532 (regcache_cpy): Update.
10533
10534 2017-04-19 Pedro Alves <palves@redhat.com>
10535
10536 * gdbthread.h (thread): Add missing closing parenthesis in
10537 comment.
10538
10539 2017-04-19 Pedro Alves <palves@redhat.com>
10540
10541 * common/refcounted-object.h: New file.
10542 * gdbthread.h: Include "common/refcounted-object.h".
10543 (thread_info): Inherit from refcounted_object and add comments.
10544 (thread_info::incref, thread_info::decref)
10545 (thread_info::m_refcount): Delete.
10546 (thread_info::deletable): Use the refcounted_object::refcount()
10547 method.
10548 * inferior.c (current_inferior_): Add comment.
10549 (set_current_inferior): Increment/decrement refcounts.
10550 (prune_inferiors, remove_inferior_command): Skip inferiors marked
10551 not-deletable instead of comparing with the current inferior.
10552 (initialize_inferiors): Increment the initial inferior's refcount.
10553 * inferior.h (struct inferior): Forward declare.
10554 Include "common/refcounted-object.h".
10555 (current_inferior, set_current_inferior): Move declaration to
10556 before struct inferior's definition, and fix comment.
10557 (inferior): Inherit from refcounted_object. Add comments.
10558 * thread.c (switch_to_thread_no_regs): Reference the thread's
10559 inferior pointer directly instead of doing a ptid lookup.
10560 (switch_to_no_thread): New function.
10561 (switch_to_thread(thread_info *)): New function, factored out
10562 from ...
10563 (switch_to_thread(ptid_t)): ... this.
10564 (restore_current_thread): Delete.
10565 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
10566 fields, and add 'inf' field.
10567 (do_restore_current_thread_cleanup): Check whether old->inf is
10568 alive instead of looking up an inferior by ptid. Use
10569 switch_to_thread and switch_to_no_thread.
10570 (restore_current_thread_cleanup_dtor): Use old->inf directly
10571 instead of lookup up an inferior by id. Decref the inferior.
10572 Don't restore 'removable'.
10573 (make_cleanup_restore_current_thread): Same the inferior pointer
10574 in old, instead of the inferior number. Incref the inferior.
10575 Don't save/clear 'removable'.
10576
10577 2017-04-19 Pedro Alves <palves@redhat.com>
10578
10579 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10580 unittests/scoped_restore-selftests.c.
10581 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
10582 * common/scoped_restore.h (scoped_restore_base): Make "class".
10583 (scoped_restore_base::release): New public method.
10584 (scoped_restore_base::scoped_restore_base): New protected ctor.
10585 (scoped_restore_base::m_saved_var): New protected field.
10586 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
10587 scoped_restore_base base class instead of m_saved_var directly.
10588 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
10589 (scoped_restore_tmpl::scoped_restore_tmpl(const
10590 scoped_restore_tmpl<T>&)): Likewise.
10591 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
10592 method.
10593 (scoped_restore_tmpl::saved_var): New method.
10594 (scoped_restore_tmpl::m_saved_var): Delete.
10595 * inferior.h (inferior::detaching): Now a bool.
10596 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
10597 cleanup.
10598 * unittests/scoped_restore-selftests.c: New file.
10599
10600 2017-04-19 Pedro Alves <palves@redhat.com>
10601
10602 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
10603 Re-sort in alphabetic order.
10604
10605 2017-04-18 Pedro Alves <palves@redhat.com>
10606
10607 * xml-support.c (obstack_xml_printf): Delete.
10608 * xml-support.h (obstack_xml_printf): Delete.
10609
10610 2017-04-18 Pedro Alves <palves@redhat.com>
10611
10612 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
10613 vdebug, verror, body_text, start_element, end_element, name,
10614 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
10615 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
10616 is_xinclude>: Make private and add m_ prefix.
10617 (gdb_xml_parser::body_text): New method, based on ...
10618 (gdb_xml_body_text): ... this. Adjust.
10619 (gdb_xml_parser::vdebug): New method, based on ...
10620 (gdb_xml_debug): ... this. Adjust.
10621 (gdb_xml_parser::verror): New method, based on ...
10622 (gdb_xml_error): ... this. Adjust.
10623 (gdb_xml_parser::start_element): New method, based on ...
10624 (gdb_xml_start_element): ... this. Adjust.
10625 (gdb_xml_start_element_wrapper): Defer to
10626 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
10627 (gdb_xml_parser::end_element): New method, based on ...
10628 (gdb_xml_end_element_wrapper): ... this. Adjust.
10629 (gdb_xml_parser::~gdb_xml_parser): Adjust.
10630 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
10631 (gdb_xml_parser::use_dtd): New method, based on ...
10632 (gdb_xml_use_dtd): ... this. Adjust.
10633 (gdb_xml_parser::parse): New method, based on ...
10634 (gdb_xml_parse): ... this. Adjust.
10635 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
10636 (xinclude_start_include): Adjust to call the parser's name method.
10637 (xml_xinclude_default, xml_xinclude_start_doctype)
10638 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
10639 method.
10640 (xml_process_xincludes): Adjust to call parser methods.
10641 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
10642 declarations.
10643
10644 2017-04-18 Pedro Alves <palves@redhat.com>
10645
10646 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
10647 gdb::optional<std::string>.
10648 * xml-support.c: Include <string>.
10649 (scope_level::scope_level(scope_level &&))
10650 (scope_level::~scope_level): Delete.
10651 (scope_level::body): Now a std::string.
10652 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
10653 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
10654 parameter.
10655 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
10656 (xinclude_parsing_data::output): Now a std::string reference.
10657 (xinclude_start_include): Adjust.
10658 (xml_xinclude_default): Adjust.
10659 (xml_process_xincludes): Add 'output' parameter, and return bool.
10660 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
10661 and return bool.
10662 * xml-tdesc.c: Include <unordered_map> and <string>.
10663 (tdesc_xml_cache): Delete.
10664 (tdesc_xml_cache_s): Delete.
10665 (xml_cache): Now an std::unordered_map.
10666 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
10667 (target_fetch_description_xml): Change return type to
10668 gdb::optional<std::string>, and adjust.
10669 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
10670 (target_fetch_description_xml): Change return type to
10671 gdb::optional<std::string>.
10672
10673 2017-04-18 Pedro Alves <palves@redhat.com>
10674
10675 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10676 unittests/optional-selftests.c.
10677 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
10678 * unittests/optional-selftests.c: New file.
10679 * unittests/optional/assignment/1.cc: New file.
10680 * unittests/optional/assignment/2.cc: New file.
10681 * unittests/optional/assignment/3.cc: New file.
10682 * unittests/optional/assignment/4.cc: New file.
10683 * unittests/optional/assignment/5.cc: New file.
10684 * unittests/optional/assignment/6.cc: New file.
10685 * unittests/optional/assignment/7.cc: New file.
10686 * unittests/optional/cons/copy.cc: New file.
10687 * unittests/optional/cons/default.cc: New file.
10688 * unittests/optional/cons/move.cc: New file.
10689 * unittests/optional/cons/value.cc: New file.
10690 * unittests/optional/in_place.cc: New file.
10691 * unittests/optional/observers/1.cc: New file.
10692 * unittests/optional/observers/2.cc: New file.
10693
10694 2017-04-18 Pedro Alves <palves@redhat.com>
10695
10696 * common/gdb_optional.h: Include common/traits.h.
10697 (in_place_t): New type.
10698 (in_place): New constexpr variable.
10699 (optional::optional): Remove member initialization of
10700 m_instantiated.
10701 (optional::optional(in_place_t...)): New constructor.
10702 (optional::~optional): Use reset.
10703 (optional::optional(const optional&)): New.
10704 (optional::optional(const optional&&)): New.
10705 (optional::optional(T &)): New.
10706 (optional::optional(T &&)): New.
10707 (operator::operator=(const optional &)): New.
10708 (operator::operator=(optional &&)): New.
10709 (operator::operator= (const T &))
10710 (operator::operator= (T &&))
10711 (operator::emplace (Args &&... args)): Return a T&. Use reset.
10712 (operator::reset): New.
10713 (operator::m_instantiated):: Add in-class initializer.
10714 * common/traits.h: Include <type_traits>.
10715 (struct And): New types.
10716
10717 2017-04-18 Pedro Alves <palves@redhat.com>
10718
10719 * xml-support.c: Include <vector>.
10720 (scope_level::scope_level(const gdb_xml_element *))
10721 (scope_level::scope_level(scope_level&&)): New.
10722 (scope_level::~scope_level): New.
10723 (scope_level_s): Delete.
10724 (gdb_xml_parser::scopes): Now a std::vector.
10725 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
10726 Use std::vector.
10727 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
10728 scope cleanup code.
10729 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
10730 of the scopes member. Use std::vector::emplace_back.
10731
10732 2017-04-18 Pedro Alves <palves@redhat.com>
10733
10734 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
10735 a bool.
10736 (gdb_xml_end_element): Change type of first parameter.
10737 (gdb_xml_cleanup): Rename to ...
10738 (gdb_xml_parser::~gdb_xml_parser): ... this.
10739 (gdb_xml_create_parser_and_cleanup): Delete with ...
10740 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
10741 to this new ctor.
10742 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
10743 using gdb_xml_create_parser_and_cleanup.
10744 (xinclude_parsing_data): Add ctor/dtor.
10745 (xml_xinclude_cleanup): Delete.
10746 (xml_process_xincludes): Create a local xinclude_parsing_data
10747 instead of heap-allocating one. Create a local gdb_xml_parser
10748 instead of heap-allocating one with
10749 gdb_xml_create_parser_and_cleanup.
10750
10751 2017-04-18 John Baldwin <jhb@FreeBSD.org>
10752
10753 PR threads/20743
10754 * fbsd-nat.c (resume_one_thread_cb): Remove.
10755 (resume_all_threads_cb): Remove.
10756 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
10757 iterate_over_threads.
10758
10759 2017-04-17 Joel Brobecker <brobecker@adacore.com>
10760
10761 * NEWS: Create a new section for the next release branch.
10762 Rename the section of the current branch, now that it has
10763 been cut.
10764
10765 2017-04-17 Joel Brobecker <brobecker@adacore.com>
10766
10767 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
10768 * version.in: Bump version to 8.0.50.DATE-git.
10769
10770 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
10771
10772 PR gdb/21385
10773 * windows-nat.c (windows_create_inferior): Declare 'allargs'
10774 independently of the host, and fix build breakage on Cygwin.
10775
10776 2017-04-13 Pedro Alves <palves@redhat.com>
10777
10778 * inferior.c (free_inferior): Convert to ...
10779 (inferior::~inferior): ... this dtor.
10780 (inferior::inferior): New ctor, factored out from ...
10781 (add_inferior_silent): ... here. Allocate the inferior with a new
10782 expression.
10783 (delete_inferior): Call delete instead of free_inferior.
10784 * inferior.h (gdb_environ, continuation): Forward declare.
10785 (inferior): Now a class. Add in-class initialization to all
10786 members. Make boolean fields bool, except 'detaching'.
10787 (inferior::inferior): New explicit ctor.
10788 (inferior::~inferior): New.
10789
10790 2017-04-13 Pedro Alves <palves@redhat.com>
10791
10792 * inferior.c (init_inferior_list): Delete.
10793 * inferior.h (init_inferior_list): Delete.
10794
10795 2017-04-13 Pedro Alves <palves@redhat.com>
10796
10797 PR threads/13217
10798 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
10799 (top level): Call it twice, with different thread sets.
10800
10801 2017-04-13 Pedro Alves <palves@redhat.com>
10802
10803 * thread.c: Include <algorithm>.
10804 (thread_array_cleanup): Delete.
10805 (scoped_inc_dec_ref): New class.
10806 (live_threads_count): New function.
10807 (set_thread_refcount): Delete.
10808 (tp_array_compar_ascending): Now a bool.
10809 (tp_array_compar): Convert to a std::sort comparison function.
10810 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
10811 and live_threads_count.
10812
10813 2017-04-13 Pedro Alves <palves@redhat.com>
10814
10815 * infrun.c (follow_fork_inferior): Also switch the current
10816 inferior.
10817
10818 2017-04-13 Pedro Alves <palves@redhat.com>
10819
10820 * breakpoint.c (watch_command_1): Save watchpoint-frame info
10821 before calling create_internal_breakpoint.
10822
10823 2017-04-13 Pedro Alves <palves@redhat.com>
10824
10825 * fork-child.c (execv_argv): New class.
10826 (breakup_args): Refactored as ...
10827 (execv_argv::init_for_no_shell): .. this method of execv_argv.
10828 Copy arguments to storage and replace separators with NULL
10829 terminators in place.
10830 (escape_bang_in_quoted_argument): Adjust to return bool.
10831 (execv_argv::execv_argv): New ctor.
10832 (execv_argv::init_for_shell): New method, factored out from
10833 fork_inferior. Don't strdup strings into the vector.
10834 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
10835 Remove free_vector_argv call.
10836
10837 2017-04-13 Yao Qi <yao.qi@linaro.org>
10838
10839 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
10840 tdep->rx_psw_type.
10841
10842 2017-04-13 Yao Qi <yao.qi@linaro.org>
10843
10844 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
10845 * rx-tdep.c (rx_gdbarch_init): Likewise.
10846
10847 2017-04-13 Pedro Alves <palves@redhat.com>
10848
10849 * breakpoint.h (struct breakpoint): Reindent.
10850
10851 2017-04-13 Pedro Alves <palves@redhat.com>
10852
10853 * breakpoint.c (bp_location): Rename to ...
10854 (bp_locations): ... this. All references updated.
10855 (bp_location_count): Rename to ...
10856 (bp_locations_count): ... this. All references updated.
10857 (bp_location_placed_address_before_address_max): Rename to ...
10858 (bp_locations_placed_address_before_address_max): ... this. All
10859 references updated.
10860 (bp_location_shadow_len_after_address_max): Rename to ...
10861 (bp_locations_shadow_len_after_address_max): ... this. All
10862 references updated.
10863 (bp_location_compare_addrs): Rename to ...
10864 (bp_locations_compare_addrs): ... this. All references updated.
10865 (bp_location_compare):Rename to ...
10866 (bp_locations_compare): ... this. All references updated.
10867 (bp_location_target_extensions_update): Rename to ...
10868 (bp_locations_target_extensions_update): ... this. All references
10869 updated.
10870
10871 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10872
10873 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
10874 * common/common.m4: Check headers 'termios.h', 'termio.h' and
10875 'sgtty.h'.
10876 * common/gdb_termios.h: New file, with parts of "terminal.h".
10877 * inflow.c: Include "gdb_termios.h".
10878 * ser-unix.c: Include "gdb_termios.h".
10879 * terminal.h: Move terminal-related defines to
10880 "common/gdb_termios.h".
10881
10882 2017-04-12 Tom Tromey <tom@tromey.com>
10883
10884 * probe.c (parse_probes): Update.
10885 * location.h (delete_event_location): Don't declare.
10886 (event_location_deleter::operator()): Update.
10887 * location.c (event_location_deleter::operator()): Rename from
10888 delete_event_location.
10889 * linespec.h (linespec_result) <location>: Change type to
10890 event_location_up.
10891 * linespec.c (canonicalize_linespec, event_location_to_sals)
10892 (decode_objc): Update.
10893 (linespec_result): Don't call delete_event_location.
10894 * breakpoint.c (create_breakpoints_sal)
10895 (bkpt_probe_create_sals_from_location)
10896 (strace_marker_create_sals_from_location): Update.
10897
10898 2017-04-12 Tom Tromey <tom@tromey.com>
10899
10900 * linespec.h (struct linespec_result): Add constructor and
10901 destructor.
10902 (init_linespec_result, destroy_linespec_result)
10903 (make_cleanup_destroy_linespec_result): Don't declare.
10904 * linespec.c (init_linespec_result): Remove.
10905 (linespec_result::~linespec_result): Rename from
10906 destroy_linespec_result. Update.
10907 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
10908 Remove.
10909 * breakpoint.c (create_breakpoint, break_range_command)
10910 (decode_location_default): Update.
10911 * ax-gdb.c (agent_command_1): Update.
10912
10913 2017-04-12 Tom Tromey <tom@tromey.com>
10914
10915 * remote.c (remote_download_tracepoint): Update.
10916 * python/py-breakpoint.c (bppy_get_location): Update.
10917 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
10918 (gdbscm_breakpoint_location): Update.
10919 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
10920 * breakpoint.h (struct breakpoint) <location, location_range_end>:
10921 Change type to event_location_up.
10922 * breakpoint.c (create_overlay_event_breakpoint)
10923 (create_longjmp_master_breakpoint)
10924 (create_std_terminate_master_breakpoint)
10925 (create_exception_master_breakpoint)
10926 (breakpoint_event_location_empty_p, print_breakpoint_location)
10927 (print_one_breakpoint_location, create_thread_event_breakpoint)
10928 (init_breakpoint_sal, create_breakpoint)
10929 (print_recreate_ranged_breakpoint, break_range_command)
10930 (init_ada_exception_breakpoint, say_where): Update.
10931 (base_breakpoint_dtor): Don't call delete_event_location.
10932 (bkpt_print_recreate, tracepoint_print_recreate)
10933 (dprintf_print_recreate, update_static_tracepoint)
10934 (breakpoint_re_set_default): Update.
10935
10936 2017-04-12 Tom Tromey <tom@tromey.com>
10937
10938 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10939 type of "to_do". Update.
10940 (compute_stack_depth): Use std::vector.
10941
10942 2017-04-12 Tom Tromey <tom@tromey.com>
10943
10944 * printcmd.c (find_instruction_backward): Use std::vector.
10945
10946 2017-04-12 Tom Tromey <tom@tromey.com>
10947
10948 * symfile.c (objfilep): Remove typedef.
10949 (reread_symbols): Use a std::vector.
10950
10951 2017-04-12 Tom Tromey <tom@tromey.com>
10952
10953 * mi/mi-main.c (exec_direction_forward): Remove.
10954 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10955 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10956 scoped_restore.
10957 * guile/guile.c (guile_repl_command, guile_command)
10958 (gdbscm_execute_gdb_command): Use scoped_restore.
10959 * go-exp.y (go_parse): Use scoped_restore.
10960 * d-exp.y (d_parse): Use scoped_restore.
10961 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10962 * c-exp.y (c_parse): Use scoped_restore.
10963
10964 2017-04-12 Tom Tromey <tom@tromey.com>
10965
10966 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10967 (mi_parse): Update return type.
10968 (mi_parse_free): Remove.
10969 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10970 (mi_parse::~mi_parse): Rename from mi_parse_free.
10971 (mi_parse_cleanup): Remove.
10972 (mi_parse): Return a unique_ptr. Use new.
10973 * mi/mi-main.c (mi_execute_command): Update.
10974
10975 2017-04-12 Tom Tromey <tom@tromey.com>
10976
10977 * location.c (explicit_location_lex_one): Return a
10978 unique_xmalloc_ptr.
10979 (string_to_explicit_location): Update. Remove cleanups.
10980
10981 2017-04-12 Tom Tromey <tom@tromey.com>
10982
10983 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10984 (compare_value_and_voffset): Change type. Update.
10985 (compute_vtable_size): Change type of "offset_vec".
10986 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10987 (gnuv3_get_typeid): Remove extraneous declaration.
10988
10989 2017-04-12 Tom Tromey <tom@tromey.com>
10990
10991 * charset.h (wchar_iterator): Fix comment.
10992
10993 2017-04-12 Tom Tromey <tom@tromey.com>
10994
10995 * charset.c (iconv_wrapper): New class.
10996 (cleanup_iconv): Remove.
10997 (convert_between_encodings): Use it.
10998
10999 2017-04-12 Tom Tromey <tom@tromey.com>
11000
11001 * symfile.h (increment_reading_symtab): Update type.
11002 * symfile.c (decrement_reading_symtab): Remove.
11003 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
11004 * psymtab.c (psymtab_to_symtab): Update.
11005 * dwarf2read.c (dw2_instantiate_symtab): Update.
11006
11007 2017-04-12 Tom Tromey <tom@tromey.com>
11008
11009 * jit.c (struct jit_reader): Declare separately. Add constructor
11010 and destructor. Change type of "handle".
11011 (loaded_jit_reader): Define separately.
11012 (jit_reader_load): Update. New "new".
11013 (jit_reader_unload_command): Use "delete".
11014 * gdb-dlfcn.h (struct dlclose_deleter): New.
11015 (gdb_dlhandle_up): New typedef.
11016 (gdb_dlopen, gdb_dlsym): Update types.
11017 (gdb_dlclose): Remove.
11018 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
11019 (gdb_dlsym): Change type of "handle".
11020 (make_cleanup_dlclose): Remove.
11021 (dlclose_deleter::operator()): Rename from gdb_dlclose.
11022 * compile/compile-c-support.c (load_libcc): Update.
11023
11024 2017-04-12 Tom Tromey <tom@tromey.com>
11025
11026 * symtab.h (find_pcs_for_symtab_line): Change return type.
11027 * symtab.c (find_pcs_for_symtab_line): Change return type.
11028 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
11029 type of "vec". Update.
11030 (ltpy_get_pcs_for_line): Update.
11031 * linespec.c (decode_digits_ordinary): Update.
11032
11033 2017-04-12 Tom Tromey <tom@tromey.com>
11034
11035 * tracepoint.c (actions_command): Update.
11036 * python/python.c (python_command, python_interactive_command):
11037 Update.
11038 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
11039 * guile/guile.c (guile_command): Update.
11040 * defs.h (read_command_lines, read_command_lines_1): Return
11041 command_line_up.
11042 (command_lines_deleter): New struct.
11043 (command_line_up): New typedef.
11044 * compile/compile.c (compile_code_command)
11045 (compile_print_command): Update.
11046 * cli/cli-script.h (get_command_line, copy_command_lines): Return
11047 command_line_up.
11048 (make_cleanup_free_command_lines): Remove.
11049 * cli/cli-script.c (get_command_line, read_command_lines_1)
11050 (copy_command_lines): Return command_line_up.
11051 (while_command, if_command, read_command_lines, define_command)
11052 (document_command): Update.
11053 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
11054 Remove.
11055 * breakpoint.h (breakpoint_set_commands): Change type of
11056 "commands".
11057 * breakpoint.c (breakpoint_set_commands): Change type of
11058 "commands". Update.
11059 (do_map_commands_command, update_dprintf_command_list)
11060 (create_tracepoint_from_upload): Update.
11061
11062 2017-04-12 Tom Tromey <tom@tromey.com>
11063
11064 * tracepoint.c (scope_info): Update.
11065 * spu-tdep.c (spu_catch_start): Update.
11066 * python/python.c (gdbpy_decode_line): Update.
11067 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
11068 * python/py-breakpoint.c (bppy_init): Update.
11069 * probe.c (parse_probes): Update.
11070 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
11071 * location.h (event_location_deleter): New struct.
11072 (event_location_up): New typedef.
11073 (new_linespec_location, new_address_location, new_probe_location)
11074 (new_explicit_location, copy_event_location)
11075 (string_to_event_location, string_to_event_location_basic)
11076 (string_to_explicit_location): Update return type.
11077 (make_cleanup_delete_event_location): Remove.
11078 * location.c (new_linespec_location, new_address_location)
11079 (new_probe_location, new_explicit_location, copy_event_location):
11080 Return event_location_up.
11081 (delete_event_location_cleanup)
11082 (make_cleanup_delete_event_location): Remove.
11083 (string_to_explicit_location, string_to_event_location_basic)
11084 (string_to_event_location): Return event_location_up.
11085 * linespec.c (canonicalize_linespec, event_location_to_sals)
11086 (decode_line_with_current_source)
11087 (decode_line_with_last_displayed, decode_objc): Update.
11088 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11089 * completer.c (location_completer): Update.
11090 * cli/cli-cmds.c (edit_command, list_command): Update.
11091 * breakpoint.c (create_overlay_event_breakpoint)
11092 (create_longjmp_master_breakpoint)
11093 (create_std_terminate_master_breakpoint)
11094 (create_exception_master_breakpoint)
11095 (create_thread_event_breakpoint): Update.
11096 (init_breakpoint_sal): Update. Remove some dead code.
11097 (create_breakpoint_sal): Change type of "location". Update.
11098 (create_breakpoints_sal, create_breakpoint, break_command_1)
11099 (dprintf_command, break_range_command, until_break_command)
11100 (init_ada_exception_breakpoint)
11101 (strace_marker_create_sals_from_location)
11102 (update_static_tracepoint, trace_command, ftrace_command)
11103 (strace_command, create_tracepoint_from_upload): Update.
11104 * break-catch-throw.c (re_set_exception_catchpoint): Update.
11105 * ax-gdb.c (agent_command_1): Update.
11106
11107 2017-04-12 Pedro Alves <palves@redhat.com>
11108
11109 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
11110 * configure.tgt: Handle i[34567]86-*-go32* and
11111 i[34567]86-*-msdosdjgpp*.
11112 * i386-tdep.c (i386_svr4_reg_to_regnum):
11113 Make extern.
11114 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
11115 i386-go32-tdep.c.
11116 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
11117 * i386-go32-tdep.c: New file.
11118 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
11119 declarations.
11120
11121 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
11122
11123 * aix-thread.c (pd_status2str): Change return type to const char *.
11124
11125 2017-04-12 Pedro Alves <palves@redhat.com>
11126
11127 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
11128 calls to set_gdbarch_gnu_triplet_regexp.
11129
11130 2017-04-12 Pedro Alves <palves@redhat.com>
11131
11132 PR gdb/21323
11133 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
11134 New enum value.
11135 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
11136 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
11137 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
11138 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
11139 * gdbarch.h, gdbarch.c: Regenerate.
11140 * aarch64-tdep.c (aarch64_gdbarch_init): Override
11141 gdbarch_wchar_bit and gdbarch_wchar_signed.
11142 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
11143 * arm-tdep.c (arm_gdbarch_init): Likewise.
11144 * avr-tdep.c (avr_gdbarch_init): Likewise.
11145 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11146 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
11147 * i386-tdep.c (i386_go32_init_abi): Likewise.
11148 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11149 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11150 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
11151 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11152 * sh-tdep.c (sh_gdbarch_init): Likewise.
11153 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11154 * sparc64-tdep.c (sparc64_init_abi): Likewise.
11155 * windows-tdep.c (windows_init_abi): Likewise.
11156 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11157
11158 2017-04-12 Pedro Alves <palves@redhat.com>
11159
11160 PR c++/21323
11161 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
11162 cplus_primitive_type_char32_t>: New enum values.
11163 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
11164 and cplus_primitive_type_char32_t.
11165 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
11166 32, use the archtecture's built-in type for char16_t and char32_t,
11167 respectively. Otherwise, fallback to init_integer_type as before,
11168 but make the type unsigned, and issue a complaint.
11169 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
11170
11171 2017-04-12 Alan Hayward <alan.hayward@arm.com>
11172
11173 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
11174 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
11175
11176 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11177
11178 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
11179 'const char *'.
11180
11181 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11182
11183 * common/common-utils.c (free_vector_argv): New function.
11184 * common/common-utils.h: Include <vector>.
11185 (free_vector_argv): New prototype.
11186 * darwin-nat.c (darwin_create_inferior): Rewrite function
11187 prototype in order to constify "exec_file" and accept a
11188 "std::string" for "allargs".
11189 * fork-child.c: Include <vector>.
11190 (breakup_args): Rewrite function, using C++.
11191 (fork_inferior): Rewrite function header, constify "exec_file_arg"
11192 and accept "std::string" for "allargs". Update the code to
11193 calculate "argv" based on "allargs". Update calls to "exec_fun"
11194 and "execvp".
11195 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
11196 order to constify "exec_file" and accept a "std::string" for
11197 "allargs".
11198 * go32-nat.c (go32_create_inferior): Likewise.
11199 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
11200 * infcmd.c (run_command_1): Constify "exec_file". Use
11201 "std::string" for inferior arguments.
11202 * inferior.h (fork_inferior): Update prototype.
11203 * linux-nat.c (linux_nat_create_inferior): Rewrite function
11204 prototype in order to constify "exec_file" and accept a
11205 "std::string" for "allargs".
11206 * nto-procfs.c (procfs_create_inferior): Likewise.
11207 * procfs.c (procfs_create_inferior): Likewise.
11208 * remote-sim.c (gdbsim_create_inferior): Likewise.
11209 * remote.c (extended_remote_run): Update code to accept
11210 "std::string" as argument.
11211 (extended_remote_create_inferior): Rewrite function prototype in
11212 order to constify "exec_file" and accept a "std::string" for
11213 "allargs".
11214 * rs6000-nat.c (super_create_inferior): Likewise.
11215 (rs6000_create_inferior): Likewise.
11216 * target.h (struct target_ops) <to_create_inferior>: Likewise.
11217 * windows-nat.c (windows_create_inferior): Likewise.
11218
11219 2017-04-11 Pedro Alves <palves@redhat.com>
11220
11221 * thread.c: Fix whitespace throughout.
11222
11223 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
11224
11225 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
11226
11227 2017-04-11 Alan Hayward <alan.hayward@arm.com>
11228
11229 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
11230
11231 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
11232
11233 PR gdb/21364
11234 * osdata.c (info_osdata): Check if 'type' is an empty string
11235 instead of NULL.
11236
11237 2017-04-10 Pedro Alves <palves@redhat.com>
11238
11239 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
11240 (ptid_to_global_thread_id, in_thread_list)
11241 (do_captured_list_thread_ids, set_resumed, set_running)
11242 (set_executing, set_stop_requested, finish_thread_state)
11243 (validate_registers_access, can_access_registers_ptid)
11244 (print_thread_info_1, switch_to_thread)
11245 (do_restore_current_thread_cleanup)
11246 (make_cleanup_restore_current_thread, thread_command)
11247 (thread_name_command): Use operator== instead of ptid_equal.
11248
11249 2017-04-10 Pedro Alves <palves@redhat.com>
11250
11251 * thread.c (struct current_thread_cleanup) <next>: Delete field.
11252 (current_thread_cleanup_chain): Delete.
11253 (restore_current_thread_cleanup_dtor)
11254 (make_cleanup_restore_current_thread): Remove references to
11255 current_thread_cleanup_chain.
11256
11257 2017-04-10 Alan Hayward <alan.hayward@arm.com>
11258
11259 * msp430-tdep.c (msp430_pseudo_register_read): Never return
11260 REG_UNKNOWN.
11261
11262 2017-04-10 Yao Qi <yao.qi@linaro.org>
11263
11264 PR gdb/19942
11265 * gdbthread.h (thread_info::deletable): New method.
11266 (thread_info::incref): New method.
11267 (thread_info::decref): New method.
11268 (thread_info::refcount): Move it to private.
11269 * infrun.c (save_stop_context): Call inc_refcount.
11270 (release_stop_context_cleanup): Likewise.
11271 * thread.c (set_thread_exited): New function.
11272 (init_thread_list): Delete "tp" only it is deletable, otherwise
11273 call set_thread_exited.
11274 (delete_thread_1): Call set_thread_exited.
11275 (current_thread_cleanup) <inferior_pid>: Remove.
11276 <thread>: New field.
11277 (restore_current_thread_ptid_changed): Removed.
11278 (do_restore_current_thread_cleanup): Adjust.
11279 (restore_current_thread_cleanup_dtor): Don't call
11280 find_thread_ptid.
11281 (set_thread_refcount): Use dec_refcount.
11282 (make_cleanup_restore_current_thread): Adjust.
11283 (thread_apply_all_command): Call inc_refcount.
11284 (_initialize_thread): Don't call
11285 observer_attach_thread_ptid_changed.
11286
11287 2017-04-10 Yao Qi <yao.qi@linaro.org>
11288
11289 * thread.c (delete_thread_1): Hoist code on marking thread as
11290 exited.
11291
11292 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11293
11294 * windows-nat.c (windows_detach): Initialize ptid with
11295 minus_one_ptid.
11296
11297 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
11298
11299 * unittests/ptid-selftests.c: Fix erroneous assert messages.
11300
11301 2017-04-07 Alan Hayward <alan.hayward@arm.com>
11302
11303 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
11304 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
11305 (bfin_pseudo_register_write): Likewise
11306
11307 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
11308
11309 * common/ptid.h (struct ptid): Change to...
11310 (class ptid_t): ... this.
11311 <ptid_t>: New constructors.
11312 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
11313 matches>: New methods.
11314 <make_null, make_minus_one>: New static methods.
11315 <pid>: Rename to...
11316 <m_pid>: ...this.
11317 <lwp>: Rename to...
11318 <m_lwp>: ...this.
11319 <tid>: Rename to...
11320 <m_tid>: ...this.
11321 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
11322 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
11323 as references, move comment to class ptid_t.
11324 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
11325 ptid_t static methods.
11326 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
11327 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
11328 Take ptid arguments as references, implement using ptid_t methods.
11329 * unittests/ptid-selftests.c: New file.
11330 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11331 unittests/ptid-selftests.c.
11332 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
11333
11334 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
11335
11336 * python/python.c (python_run_simple_file): Cast mode literal to
11337 non-const char pointer as expected by PyFile_FromString.
11338
11339 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
11340
11341 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
11342 minus_one_ptid and null_ptid.
11343
11344 2017-04-05 Pedro Alves <palves@redhat.com>
11345
11346 * warning.m4 (build_warnings): Remove -Wno-write-strings.
11347 * configure: Regenerate.
11348
11349 2017-04-05 Pedro Alves <palves@redhat.com>
11350
11351 * ada-exp.y (yyerror): Constify.
11352 * ada-lang.c (bound_name, get_selections)
11353 (ada_variant_discrim_type)
11354 (ada_variant_discrim_name, ada_value_struct_elt)
11355 (ada_lookup_struct_elt_type, is_unchecked_variant)
11356 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
11357 (catch_ada_exception_command_split)
11358 (catch_ada_assert_command_split, catch_assert_command)
11359 (ada_op_name): Constify.
11360 * ada-lang.h (ada_yyerror, get_selections)
11361 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
11362 * arc-tdep.c (arc_print_frame_cache): Constify.
11363 * arm-tdep.c (arm_skip_stub): Constify.
11364 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
11365 (gen_aggregate_elt_ref): Constify.
11366 * bcache.c (print_bcache_statistics): Constify.
11367 * bcache.h (print_bcache_statistics): Constify.
11368 * break-catch-throw.c (catch_exception_command_1):
11369 * breakpoint.c (struct ep_type_description::description):
11370 Constify.
11371 (add_solib_catchpoint): Constify.
11372 (catch_fork_command_1): Add cast.
11373 (add_catch_command): Constify.
11374 * breakpoint.h (add_catch_command, add_solib_catchpoint):
11375 Constify.
11376 * bsd-uthread.c (bsd_uthread_state): Constify.
11377 * buildsym.c (patch_subfile_names): Constify.
11378 * buildsym.h (next_symbol_text_func, patch_subfile_names):
11379 Constify.
11380 * c-exp.y (yyerror): Constify.
11381 (token::oper): Constify.
11382 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
11383 * c-varobj.c (cplus_describe_child): Constify.
11384 * charset.c (find_charset_names): Add cast.
11385 (find_charset_names): Constify array and add const_cast.
11386 * cli/cli-cmds.c (complete_command, cd_command): Constify.
11387 (edit_command): Constify.
11388 * cli/cli-decode.c (lookup_cmd): Constify.
11389 * cli/cli-dump.c (dump_memory_command, dump_value_command):
11390 Constify.
11391 (struct dump_context): Constify.
11392 (add_dump_command, restore_command): Constify.
11393 * cli/cli-script.c (get_command_line): Constify.
11394 * cli/cli-script.h (get_command_line): Constify.
11395 * cli/cli-utils.c (check_for_argument): Constify.
11396 * cli/cli-utils.h (check_for_argument): Constify.
11397 * coff-pe-read.c (struct read_pe_section_data): Constify.
11398 * command.h (lookup_cmd): Constify.
11399 * common/print-utils.c (decimal2str): Constify.
11400 * completer.c (gdb_print_filename): Constify.
11401 * corefile.c (set_gnutarget): Constify.
11402 * cp-name-parser.y (yyerror): Constify.
11403 * cp-valprint.c (cp_print_class_member): Constify.
11404 * cris-tdep.c (cris_register_name, crisv32_register_name):
11405 Constify.
11406 * d-exp.y (yyerror): Constify.
11407 (struct token::oper): Constify.
11408 * d-lang.h (d_yyerror): Constify.
11409 * dbxread.c (struct header_file_location::name): Constify.
11410 (add_old_header_file, add_new_header_file, last_function_name)
11411 (dbx_next_symbol_text, add_bincl_to_list)
11412 (find_corresponding_bincl_psymtab, set_namestring)
11413 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
11414 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
11415 * defs.h (command_line_input, print_address_symbolic)
11416 (deprecated_readline_begin_hook): Constify.
11417 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
11418 Constify.
11419 * event-top.c (handle_line_of_input): Constify and add cast.
11420 * exceptions.c (catch_errors): Constify.
11421 * exceptions.h (catch_errors): Constify.
11422 * expprint.c (print_subexp_standard, op_string, op_name)
11423 (op_name_standard, dump_raw_expression, dump_raw_expression):
11424 * expression.h (op_name, op_string, dump_raw_expression):
11425 Constify.
11426 * f-exp.y (yyerror): Constify.
11427 (struct token::oper): Constify.
11428 (struct f77_boolean_val::name): Constify.
11429 * f-lang.c (f_word_break_characters): Constify.
11430 * f-lang.h (f_yyerror): Constify.
11431 * fork-child.c (fork_inferior): Add cast.
11432 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
11433 (new_variant): Constify.
11434 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
11435 * gdbarch.c: Regenerate.
11436 * gdbcore.h (set_gnutarget): Constify.
11437 * go-exp.y (yyerror): Constify.
11438 (token::oper): Constify.
11439 * go-lang.h (go_yyerror): Constify.
11440 * go32-nat.c (go32_sysinfo): Constify.
11441 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
11442 * guile/scm-cmd.c (cmdscm_function): Constify.
11443 * guile/scm-param.c (pascm_param_value): Constify.
11444 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
11445 (h8300sx_register_name): Constify.
11446 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
11447 Constify.
11448 * ia64-tdep.c (ia64_register_names): Constify.
11449 * infcmd.c (construct_inferior_arguments): Constify.
11450 (path_command, attach_post_wait): Constify.
11451 * language.c (show_range_command, show_case_command)
11452 (unk_lang_error): Constify.
11453 * language.h (language_defn::la_error)
11454 (language_defn::la_name_of_this): Constify.
11455 * linespec.c (decode_line_2): Constify.
11456 * linux-thread-db.c (thread_db_err_str): Constify.
11457 * lm32-tdep.c (lm32_register_name): Constify.
11458 * m2-exp.y (yyerror): Constify.
11459 * m2-lang.h (m2_yyerror): Constify.
11460 * m32r-tdep.c (m32r_register_names): Constify and make static.
11461 * m68hc11-tdep.c (m68hc11_register_names): Constify.
11462 * m88k-tdep.c (m88k_register_name): Constify.
11463 * macroexp.c (appendmem): Constify.
11464 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
11465 (upgrade_type, parse_external, parse_partial_symbols)
11466 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
11467 (new_symbol): Constify.
11468 * memattr.c (mem_info_command): Constify.
11469 * mep-tdep.c (register_name_from_keyword): Constify.
11470 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
11471 Constify.
11472 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
11473 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
11474 * mi/mi-main.c (captured_mi_execute_command): Constify and add
11475 cast.
11476 (mi_execute_async_cli_command): Constify.
11477 * mips-tdep.c (mips_register_name): Constify.
11478 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
11479 (am33_register_name, am33_2_register_name)
11480 * moxie-tdep.c (moxie_register_names): Constify.
11481 * nat/linux-osdata.c (osdata_type): Constify fields.
11482 * nto-tdep.c (nto_parse_redirection): Constify.
11483 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
11484 (lookup_child_selector): Constify.
11485 (objc_methcall::name): Constify.
11486 * objc-lang.h (lookup_objc_class, lookup_child_selector)
11487 (lookup_struct_typedef): Constify.
11488 * objfiles.c (pc_in_section): Constify.
11489 * objfiles.h (pc_in_section): Constify.
11490 * p-exp.y (struct token::oper): Constify.
11491 (yyerror): Constify.
11492 * p-lang.h (pascal_yyerror): Constify.
11493 * parser-defs.h (op_name_standard): Constify.
11494 (op_print::string): Constify.
11495 (exp_descriptor::op_name): Constify.
11496 * printcmd.c (print_address_symbolic): Constify.
11497 * psymtab.c (print_partial_symbols): Constify.
11498 * python/py-breakpoint.c (stop_func): Constify.
11499 (bppy_get_expression): Constify.
11500 * python/py-cmd.c (cmdpy_completer::name): Constify.
11501 (cmdpy_function): Constify.
11502 * python/py-event.c (evpy_add_attribute)
11503 (gdbpy_initialize_event_generic): Constify.
11504 * python/py-event.h (evpy_add_attribute)
11505 (gdbpy_initialize_event_generic): Constify.
11506 * python/py-evts.c (add_new_registry): Constify.
11507 * python/py-finishbreakpoint.c (outofscope_func): Constify.
11508 * python/py-framefilter.c (get_py_iter_from_func): Constify.
11509 * python/py-inferior.c (get_buffer): Add cast.
11510 * python/py-param.c (parm_constant::name): Constify.
11511 * python/py-unwind.c (fprint_frame_id): Constify.
11512 * python/python.c (gdbpy_parameter_value): Constify.
11513 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
11514 * remote.c (memory_packet_config::name): Constify.
11515 (show_packet_config_cmd, remote_write_bytes)
11516 (remote_buffer_add_string):
11517 * reverse.c (exec_reverse_once): Constify.
11518 * rs6000-tdep.c (variant::name, variant::description): Constify.
11519 * rust-exp.y (rustyyerror): Constify.
11520 * rust-lang.c (rust_op_name): Constify.
11521 * rust-lang.h (rustyyerror): Constify.
11522 * serial.h (serial_ops::name): Constify.
11523 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
11524 (sh_sh3e_register_name, sh_sh2e_register_name)
11525 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
11526 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
11527 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
11528 (sh_sh4al_dsp_register_name): Constify.
11529 * sh64-tdep.c (sh64_register_name): Constify.
11530 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
11531 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
11532 * stabsread.c (patch_block_stabs, read_type_number)
11533 (ref_map::stabs, ref_add, process_reference)
11534 (symbol_reference_defined, define_symbol, define_symbol)
11535 (error_type, read_type, read_member_functions, read_cpp_abbrev)
11536 (read_one_struct_field, read_struct_fields, read_baseclasses)
11537 (read_tilde_fields, read_struct_type, read_array_type)
11538 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
11539 (read_huge_number, read_range_type, read_args, common_block_start)
11540 (find_name_end): Constify.
11541 * stabsread.h (common_block_start, define_symbol)
11542 (process_one_symbol, symbol_reference_defined, ref_add):
11543 * symfile.c (get_section_index, add_symbol_file_command):
11544 * symfile.h (get_section_index): Constify.
11545 * target-descriptions.c (tdesc_type::name): Constify.
11546 (tdesc_free_type): Add cast.
11547 * target.c (find_default_run_target):
11548 (add_deprecated_target_alias, find_default_run_target)
11549 (target_announce_detach): Constify.
11550 (do_option): Constify.
11551 * target.h (add_deprecated_target_alias): Constify.
11552 * thread.c (print_thread_info_1): Constify.
11553 * top.c (deprecated_readline_begin_hook, command_line_input):
11554 Constify.
11555 (init_main): Add casts.
11556 * top.h (handle_line_of_input): Constify.
11557 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
11558 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
11559 (tfind_command): Rename to ...
11560 (tfind_command_1): ... this and constify.
11561 (tfind_command): New function.
11562 (tfind_end_command, tfind_start_command): Adjust.
11563 (encode_source_string): Constify.
11564 * tracepoint.h (encode_source_string): Constify.
11565 * tui/tui-data.c (tui_partial_win_by_name): Constify.
11566 * tui/tui-data.h (tui_partial_win_by_name): Constify.
11567 * tui/tui-source.c (tui_set_source_content_nil): Constify.
11568 * tui/tui-source.h (tui_set_source_content_nil): Constify.
11569 * tui/tui-win.c (parse_scrolling_args): Constify.
11570 * tui/tui-windata.c (tui_erase_data_content): Constify.
11571 * tui/tui-windata.h (tui_erase_data_content): Constify.
11572 * tui/tui-winsource.c (tui_erase_source_content): Constify.
11573 * tui/tui.c (tui_enable): Add cast.
11574 * utils.c (defaulted_query): Constify.
11575 (init_page_info): Add cast.
11576 (puts_debug, subset_compare): Constify.
11577 * utils.h (subset_compare): Constify.
11578 * varobj.c (varobj_format_string): Constify.
11579 * varobj.h (varobj_format_string): Constify.
11580 * vax-tdep.c (vax_register_name): Constify.
11581 * windows-nat.c (windows_detach): Constify.
11582 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
11583 * xml-support.c (gdb_xml_end_element): Constify.
11584 * xml-tdesc.c (tdesc_start_reg): Constify.
11585 * xstormy16-tdep.c (xstormy16_register_name): Constify.
11586 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
11587 * xtensa-tdep.h (xtensa_register_t::name): Constify.
11588
11589 2017-04-05 Pedro Alves <palves@redhat.com>
11590
11591 * proc-api.c (struct trans): Constify.
11592 (procfs_note): Constify.
11593 * proc-events.c (struct trans, syscall_table):
11594 * proc-flags.c (struct trans): Constify.
11595 * proc-utils.h (procfs_note): Constify.
11596 * proc-why.c (struct trans): Constify.
11597 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
11598 (procfs_detach): Constify.
11599 * sol-thread.c (struct string_map): Constify.
11600 (td_err_string, td_state_string): Constify.
11601
11602 2017-04-05 Pedro Alves <palves@redhat.com>
11603
11604 * proc-api.c (procfs_filename): Don't initialize
11605 procfs_filename.
11606 (prepare_to_trace): Assume procfs_filename is non-NULL.
11607 (_initialize_proc_api): Give procfs_filename a default value here.
11608
11609 2017-04-05 Pedro Alves <palves@redhat.com>
11610
11611 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
11612 'cond_string' parameter.
11613 (extract_exception_regexp): Constify 'string' parameter.
11614 (catch_exception_command_1): Constify.
11615 * breakpoint.c (init_catchpoint)
11616 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
11617 parameter.
11618 (ep_parse_optional_if_clause, catch_fork_command_1)
11619 (catch_exec_command_1): Constify.
11620 * breakpoint.h (init_catchpoint): Constify 'cond_string'
11621 parameter.
11622 (ep_parse_optional_if_clause): Constify.
11623 * cli/cli-utils.c (remove_trailing_whitespace)
11624 (check_for_argument): Constify.
11625 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
11626 non-const overload.
11627 (check_for_argument): Likewise.
11628
11629 2017-04-05 Pedro Alves <palves@redhat.com>
11630
11631 * event-top.c (command_line_handler): Add cast to execute_command
11632 call.
11633 * record-btrace.c (cmd_record_btrace_bts_start)
11634 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
11635 (cmd_record_btrace_start): Add cast to execute_command call.
11636 * record-full.c (record_full_goto_insn):
11637 * record.c (record_start, record_stop): Add cast to
11638 execute_command_to_string calls.
11639 (cmd_record_start): Add cast to execute_command calls.
11640
11641 2017-04-05 Pedro Alves <palves@redhat.com>
11642
11643 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
11644 static inline function.
11645 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
11646 array and use gdb_PyArg_ParseTupleAndKeywords.
11647 * python/py-cmd.c (cmdpy_init): Likewise.
11648 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
11649 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
11650 (infpy_search_memory): Likewise.
11651 * python/py-objfile.c (objfpy_add_separate_debug_file)
11652 (gdbpy_lookup_objfile): Likewise.
11653 * python/py-symbol.c (gdbpy_lookup_symbol)
11654 (gdbpy_lookup_global_symbol): Likewise.
11655 * python/py-type.c (gdbpy_lookup_type): Likewise.
11656 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
11657 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
11658 Likewise.
11659
11660 2017-04-05 Pedro Alves <palves@redhat.com>
11661
11662 * python/python-internal.h (gdb_PyGetSetDef): New type.
11663 * python/py-block.c (block_object_getset)
11664 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
11665 * python/py-event.c (event_object_getset)
11666 (finish_breakpoint_object_getset): Likewise.
11667 * python/py-inferior.c (inferior_object_getset): Likewise.
11668 * python/py-infthread.c (thread_object_getset): Likewise.
11669 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
11670 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
11671 * python/py-objfile.c (objfile_getset): Likewise.
11672 * python/py-progspace.c (pspace_getset): Likewise.
11673 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
11674 Likewise.
11675 * python/py-record.c (recpy_record_getset): Likewise.
11676 * python/py-symbol.c (symbol_object_getset): Likewise.
11677 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
11678 Likewise.
11679 * python/py-type.c (type_object_getset, field_object_getset):
11680 Likewise.
11681 * python/py-value.c (value_object_getset): Likewise.
11682
11683 2017-04-05 Pedro Alves <palves@redhat.com>
11684
11685 * python/python-internal.h (gdb_PyObject_CallMethod)
11686 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
11687 New functions.
11688 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
11689 (PySys_GetObject, PySys_SetPath): New macros.
11690
11691 2017-04-05 Pedro Alves <palves@redhat.com>
11692
11693 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
11694 info_osdata_command.
11695 * osdata.c (info_osdata_command): Rename to ...
11696 (info_osdata): ... this. Constify 'type' parameter, and remove
11697 the 'from_tty' parameter. Accept NULL TYPE.
11698 (info_osdata_command): New function.
11699 * osdata.h (info_osdata_command): Remove declaration.
11700 (info_osdata): New declaration.
11701
11702 2017-04-05 Pedro Alves <palves@redhat.com>
11703
11704 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
11705 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
11706 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
11707 parameter.
11708 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
11709 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
11710 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
11711 parameter.
11712 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
11713 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
11714 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11715 (mi_cmd_file_list_exec_source_files)
11716 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
11717 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
11718 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
11719 parameter.
11720 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
11721 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
11722 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11723 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
11724 (mi_cmd_stack_info_frame): Constify 'command' parameter.
11725 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
11726 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
11727 'command' parameter.
11728 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
11729 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
11730 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
11731 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
11732 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
11733 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
11734 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
11735 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
11736 (mi_cmd_var_set_update_range): Constify 'command' parameter.
11737 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
11738 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
11739 parameter.
11740 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
11741 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
11742 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
11743 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
11744 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
11745 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
11746 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
11747 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
11748 (mi_cmd_data_list_changed_registers)
11749 (mi_cmd_data_write_register_values)
11750 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
11751 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
11752 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
11753 (mi_cmd_list_features, mi_cmd_list_target_features)
11754 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
11755 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
11756 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
11757 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
11758 (mi_cmd_trace_frame_collected): Constify 'command'
11759 parameter.
11760 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
11761 'command' parameter.
11762
11763 2017-04-05 Pedro Alves <palves@redhat.com>
11764
11765 * ada-lang.c (ada_completer_word_break_characters): Now a const
11766 array.
11767 (ada_get_gdb_completer_word_break_characters): Constify.
11768 * completer.c (gdb_completer_command_word_break_characters)
11769 (gdb_completer_file_name_break_characters)
11770 (gdb_completer_quote_characters): Now const arrays.
11771 (get_gdb_completer_quote_characters): Constify.
11772 (set_rl_completer_word_break_characters): New function.
11773 (set_gdb_completion_word_break_characters)
11774 (complete_line_internal): Use it.
11775 * completer.h (get_gdb_completer_quote_characters): Constify.
11776 (set_rl_completer_word_break_characters): Declare.
11777 * f-lang.c (f_word_break_characters): Constify.
11778 * language.c (default_word_break_characters): Constify.
11779 * language.h (language_defn::la_word_break_characters): Constify.
11780 (default_word_break_characters): Constify.
11781 * top.c (init_main): Use set_rl_completer_word_break_characters.
11782
11783 2017-04-05 Pedro Alves <palves@redhat.com>
11784
11785 * aix-thread.c (aix_thread_pid_to_str)
11786 (aix_thread_extra_thread_info): Constify.
11787 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
11788 * bsd-uthread.c (bsd_uthread_extra_thread_info)
11789 (bsd_uthread_pid_to_str): Constify.
11790 * corelow.c (core_pid_to_str): Constify.
11791 * darwin-nat.c (darwin_pid_to_str): Constify.
11792 * fbsd-nat.c (fbsd_pid_to_str): Constify.
11793 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
11794 Constify.
11795 * gnu-nat.c (gnu_pid_to_str): Constify.
11796 * go32-nat.c (go32_pid_to_str): Constify.
11797 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
11798 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
11799 * inferior.c (inferior_pid_to_str): Constify.
11800 * linux-nat.c (linux_nat_pid_to_str): Constify.
11801 * linux-tdep.c (linux_core_pid_to_str): Constify.
11802 * linux-thread-db.c (thread_db_pid_to_str)
11803 (thread_db_extra_thread_info): Constify.
11804 * nto-tdep.c (nto_extra_thread_info): Constify.
11805 * nto-tdep.h (nto_extra_thread_info): Constify.
11806 * obsd-nat.c (obsd_pid_to_str): Constify.
11807 * procfs.c (procfs_pid_to_str): Constify.
11808 * ravenscar-thread.c (ravenscar_extra_thread_info)
11809 (ravenscar_pid_to_str): Constify.
11810 * remote-sim.c (gdbsim_pid_to_str): Constify.
11811 * remote.c (remote_threads_extra_info, remote_pid_to_str):
11812 Constify.
11813 * sol-thread.c (solaris_pid_to_str): Constify.
11814 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
11815 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
11816 * target.c (default_pid_to_str, target_pid_to_str)
11817 (normal_pid_to_str, default_pid_to_str): Constify.
11818 * target.h (target_ops::to_pid_to_str)
11819 (target_ops::to_extra_thread_info): Constify.
11820 (target_pid_to_str, normal_pid_to_str): Constify.
11821 * windows-nat.c (windows_pid_to_str): Constify.
11822 * gdbarch.sh (core_pid_to_str): Constify.
11823 * target-delegates.c: Regenerate.
11824 * gdbarch.h, gdbarch.c: Regenerate.
11825
11826 2017-04-05 Pedro Alves <palves@redhat.com>
11827
11828 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
11829 the memory of the temporary warning_pre_print override.
11830 * utils.c (warning_pre_print): Constify.
11831 * utils.h (warning_pre_print): Constify.
11832
11833 2017-04-05 Pedro Alves <palves@redhat.com>
11834
11835 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
11836 (shell_command): New function.
11837 (make_command): Use std::string.
11838 (init_cli_cmds): Register shell_command instead of shell_escape.
11839
11840 2017-04-05 Pedro Alves <palves@redhat.com>
11841
11842 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
11843 * tracepoint.c (default_collect): Don't initialize.
11844
11845 2017-04-05 Pedro Alves <palves@redhat.com>
11846
11847 * macroexp.c (macro_buffer::shared): Now a bool.
11848 (init_buffer): Update.
11849 (init_shared_buffer): Constify 'addr' parameter.
11850 (substitute_args, expand, macro_expand, macro_expand_next): Remove
11851 casts.
11852
11853 2017-04-05 Pedro Alves <palves@redhat.com>
11854
11855 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
11856 * disasm.c (set_disassembler_options): Constify local.
11857 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
11858
11859 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
11860
11861 PR gdb/21352
11862 * tracefile.c (tsave_command): Fix argument parsing for '-r'
11863 option.
11864
11865 2017-04-05 Yao Qi <yao.qi@linaro.org>
11866
11867 * frame.c (frame_unwind_register_unsigned): Call
11868 frame_unwind_register_value.
11869
11870 2017-04-05 Yao Qi <yao.qi@linaro.org>
11871
11872 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
11873 Use gdb_test_multiple, and don't match anchor.
11874
11875 2017-04-05 Pedro Alves <palves@redhat.com>
11876
11877 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
11878 (Write After Approval): Remove Simon Marchi.
11879
11880 2017-04-05 Pedro Alves <palves@redhat.com>
11881
11882 * common/gdb_optional.h (optional::optional): Make constexpr and
11883 initialize m_dummy.
11884
11885 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11886
11887 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11888 (amd64fbsd_jmp_buf_reg_offset): Remove.
11889 (amd64fbsd_supply_uthread): Remove function.
11890 (amd64fbsd_collect_uthread): Remove function.
11891 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
11892 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
11893 (x86_64-*-freebsd*): Remove bsd-uthread.o.
11894 (fbsd-nat.c): Update comment.
11895 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11896 (i386fbsd_jmp_buf_reg_offset): Remove.
11897 (i386fbsd_supply_uthread): Remove function.
11898 (i386fbsd_collect_uthread): Remove function.
11899 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
11900
11901 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11902
11903 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
11904 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
11905 * NEWS: Mention that support for FreeBSD/alpha was removed.
11906 * alpha-fbsd-tdep.c: Delete file.
11907 * config/alpha/fbsd.mh: Delete file.
11908 * configure.host: Delete alpha*-*-freebsd* and
11909 alpha*-*-kfreebsd*-gnu.
11910 * configure.tgt: Delete alpha*-*-freebsd* and
11911 alpha*-*-kfreebsd*-gnu.
11912
11913 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11914
11915 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
11916 amd64bsd_store_inferior_registers): Use ptid from regcache.
11917
11918 2017-04-04 Pedro Alves <palves@redhat.com>
11919
11920 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
11921 data fields, make them private and add "m_" prefixes.
11922 (lnp_state_machine::lnp_state_machine): New ctor.
11923 (record_line, check_line_address, handle_set_discriminator)
11924 (handle_set_address, handle_advance_pc, handle_special_opcode)
11925 (handle_advance_line, handle_set_file, handle_negate_stmt)
11926 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
11927 (end_sequence, advance_line): New methods.
11928 (m_gdbarch, m_record_lines_p): New fields.
11929 (lnp_reader_state): Delete.
11930 (dwarf_record_line): Rename to ...
11931 (lnp_state_machine::record_line): ... adjust.
11932 (init_lnp_state_machine): Delete.
11933 (lnp_state_machine::lnp_state_machine): New.
11934 (check_line_address): Rename to ...
11935 (lnp_state_machine::check_line_address): This.
11936 (dwarf_decode_lines_1): Remove reference to "reader_state".
11937 Adjust lnp_state_machine having a non-default ctor. Use bool.
11938 State machine internal state manipulation moved to
11939 lnp_state_machine methods.
11940
11941 2017-04-04 Pedro Alves <palves@redhat.com>
11942
11943 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11944 unittests/offset-type-selftests.c.
11945 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11946 * common/offset-type.h: New file.
11947 * common/preprocessor.h: New file.
11948 * common/traits.h: New file.
11949 * common/valid-expr.h: New file.
11950 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11951 sect_offset and cu_offset strong typedefs throughout.
11952 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11953 typedefs throughout.
11954 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11955 sect_offset and cu_offset strong typedefs throughout.
11956 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11957 typedefs throughout.
11958 * gdbtypes.h: Include "common/offset-type.h".
11959 (cu_offset): Now an offset type (strong typedef) instead of a
11960 struct.
11961 (sect_offset): Likewise.
11962 (union call_site_parameter_u): Rename "param_offset" field to
11963 "param_cu_off".
11964 * unittests/offset-type-selftests.c: New file.
11965
11966 2017-04-04 Pedro Alves <palves@redhat.com>
11967
11968 * common/underlying.h: New file.
11969 * dwarf2read.c: Include "common/gdb_optional.h" and
11970 "common/underlying.h".
11971 (dir_index, file_name_index): New types.
11972 (file_entry): Use them.
11973 (file_entry::include): Use to_underlying.
11974 (line_header::add_file_name): Use dir_index.
11975 (read_formatted_entries): Use gdb::optional. Read form before
11976 writting to file_entry.
11977 (dwarf_decode_line_header): Use dir_index.
11978 (lnp_state_machine::current_file): Use to_underlying.
11979 (lnp_state_machine::file): Change type to file_name_index.
11980 (dwarf_record_line): Use to_underlying.
11981 (init_lnp_state_machine): Use file_name_index.
11982 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11983
11984 2017-04-04 Pedro Alves <palves@redhat.com>
11985
11986 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11987 operator bool, has_value and get methods.
11988
11989 2017-04-04 Pedro Alves <palves@redhat.com>
11990
11991 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11992 fields.
11993 (line_header): Initialize all data fields. Change type of
11994 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11995 Change type of include_dirs to std::vector<const char *>. Remove
11996 num_include_dirs, include_dirs_size. Change type of file_names to
11997 std::vector<file_entry>. Remove num_file_names, file_names_size.
11998 (line_header::line_header): New.
11999 (line_header::add_include_dir, line_header::add_file_name): New
12000 methods.
12001 (line_header::include_dir_at): Remove NULL check.
12002 (line_header::file_name_at): Add const overload.
12003 (line_header_up): New unique_ptr typedef.
12004 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
12005 std::vector. Remove free_line_header call.
12006 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
12007 free_line_header call.
12008 (free_cu_line_header): Delete.
12009 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
12010 (setup_type_unit_groups): Use line_header_up instead of cleanups.
12011 Adjust to use std::vector.
12012 (free_line_header): Delete.
12013 (free_line_header_voidp): Use delete.
12014 (add_include_dir): Replace with ...
12015 (line_header::add_include_dir): ... this method. Use std::vector.
12016 (add_file_name): Replace with ...
12017 (line_header::add_file_name): ... this method. Use std::vector.
12018 (add_include_dir_stub): Delete.
12019 (read_formatted_entries): Remove memset.
12020 (dwarf_decode_line_header): Return a line_header_up instead of a
12021 raw pointer. Remove cleanup handling. Pass lambdas to
12022 read_formatted_entries. Adjust to use line_header methods.
12023 (dwarf_decode_lines_1): Adjust to use line_header methods.
12024 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
12025 use std::vector.
12026
12027 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
12028
12029 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
12030 instead of struct ptid.
12031
12032 2017-05-04 Alan Hayward <alan.hayward@arm.com>
12033
12034 * frame.c (get_frame_register_bytes): Unwind using value.
12035 (put_frame_register_bytes): Likewise.
12036
12037 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
12038
12039 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
12040 aggregate-like.
12041
12042 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
12043
12044 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
12045
12046 2017-03-29 Yao Qi <yao.qi@linaro.org>
12047
12048 * gdbthread.h (struct thread_info): Declare constructor and
12049 destructor. Add some in-class member initializers.
12050 * thread.c (free_thread): Remove.
12051 (init_thread_list): Call delete instead of free_thread.
12052 (new_thread): Call thread_info constructor.
12053 (thread_info::thread_info): New function.
12054 (thread_info::~thread_info): New function.
12055 (delete_thread_1): Call delete instead of free_thread.
12056 (make_cleanup_restore_current_thread): Move tp and frame to
12057 inner block.
12058
12059 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12060
12061 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
12062 (arc_skip_prologue): Likewise.
12063 (arc_make_frame_cache): Likewise.
12064 (arc_pv_get_operand): New function.
12065 (arc_is_in_prologue): Likewise.
12066 (arc_analyze_prologue): Likewise.
12067 (arc_print_frame_cache): Likewise.
12068 (MAX_PROLOGUE_LENGTH): New constant.
12069
12070 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12071
12072 * configure.tgt: Add arc-insn.o.
12073 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
12074 (dump_arc_instruction_command): New function.
12075 (arc_fprintf_disasm): Likewise.
12076 (arc_disassemble_info): Likewise.
12077 (arc_insn_get_operand_value): Likewise.
12078 (arc_insn_get_operand_value_signed): Likewise.
12079 (arc_insn_get_memory_base_reg): Likewise.
12080 (arc_insn_get_memory_offset): Likewise.
12081 (arc_insn_get_branch_target): Likewise.
12082 (arc_insn_dump): Likewise.
12083 (arc_insn_get_linear_next_pc): Likewise.
12084 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
12085 (arc_disassemble_info): Likewise.
12086 (arc_insn_get_branch_target): Likewise.
12087 (arc_insn_get_linear_next_pc): Likewise.
12088 * NEWS: Mention new "maint print arc arc-instruction".
12089
12090 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12091
12092 * arc-tdep (maintenance_print_arc_list): New variable.
12093 (maintenance_print_arc_command): New function.
12094
12095 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12096
12097 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
12098 Add "limm" and "reserved".
12099 (arc_cannot_fetch_register, arc_cannot_store_register): Add
12100 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
12101 * arc-tdep.h (arc_regnum): Likewise.
12102
12103 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12104
12105 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
12106 for THREADPTR register.
12107 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
12108 register.
12109 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
12110 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
12111 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
12112
12113 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12114
12115 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
12116 registers above gdbarch_num_regs (gdbarch) as privileged in
12117 call0 ABI.
12118
12119 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12120
12121 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
12122 for a single specified register or for all registers in
12123 a0_base..a0_base + C0_NREGS range.
12124 (supply_gregset_reg): Call regcache_raw_supply for a single
12125 specified register or for all registers in a0_base..a0_base +
12126 C0_NREGS range.
12127
12128 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12129
12130 * arch/xtensa.h (C0_NREGS): Add definition.
12131 * xtensa-tdep.c (C0_NREGS): Remove definition.
12132
12133 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12134
12135 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
12136 Drop xtensa_default_isa initialization.
12137 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
12138
12139 2017-03-27 Pedro Alves <palves@redhat.com>
12140
12141 * dwarf2read.c (file_entry) <dir_index>: Add comment.
12142 (file_entry::include_dir): New method.
12143 (line_header::include_dir_at, line_header::file_name_at): New
12144 methods.
12145 (setup_type_unit_groups, setup_type_unit_groups)
12146 (psymtab_include_file_name): Simplify using the new methods.
12147 (lnp_state_machine) <the_line_header>: New field.
12148 <file>: Add comment.
12149 (lnp_state_machine::current_file): New method.
12150 (dwarf_record_line): Simplify using the new methods.
12151 (init_lnp_state_machine): Initialize the "the_line_header" field.
12152 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
12153 Simplify using the new methods.
12154
12155 2017-03-27 Pedro Alves <palves@redhat.com>
12156
12157 * cp-name-parser.y (make_empty): Delete.
12158 (demangler_special, nested_name, ptr_operator, array_indicator)
12159 (direct_declarator, declarator_1): Use fill_comp instead of
12160 make_empty.
12161
12162 2017-03-27 Pedro Alves <palves@redhat.com>
12163
12164 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
12165 to ATTRIBUTE_PRINTF.
12166 * solib-target.c (library_list_start_list): Print "string" not
12167 "version".
12168 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
12169 gdb_xml_error call.
12170
12171 2017-03-27 Pedro Alves <palves@redhat.com>
12172
12173 * dwarf2read.c (struct file_and_directory): New.
12174 (dwarf2_get_dwz_file): Adjust to use std::string.
12175 (dw2_get_file_names_reader): Adjust to use file_and_directory.
12176 (find_file_and_directory): Adjust to return a file_and_directory
12177 object.
12178 (read_file_scope): Adjust to use file_and_directory. Remove
12179 make_cleanup/do_cleanups calls.
12180 (open_and_init_dwp_file): Adjust to use std::string. Remove
12181 make_cleanup/do_cleanups calls.
12182 * python/python.c (do_start_initialization): Adjust to ldirname
12183 returning a std::string.
12184 * utils.c (ldirname): Now returns a std::string.
12185 * utils.h (ldirname): Change return type to std::string.
12186 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
12187 returning a std::string.
12188 * xml-tdesc.c (file_read_description_xml): Likewise.
12189
12190 2017-03-24 Alan Hayward <alan.hayward@arm.com>
12191
12192 * regcache.c (regcache_debug_print_register): New function.
12193 * regcache.h (regcache_debug_print_register): New declaration.
12194 * target.c (debug_print_register): Remove.
12195 (target_fetch_registers): Call regcache_debug_print_register.
12196 (target_store_registers): Likewise.
12197
12198 2017-03-24 Pádraig Brady <pbrady@fb.com>
12199
12200 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
12201 reference beyond the 'lh->include_dirs' array before accessing to
12202 it.
12203 (psymtab_include_file_name): Likewise.
12204 (dwarf_decode_lines_1): Likewise.
12205 (dwarf_decode_lines): Likewise.
12206 (file_file_name): Likewise.
12207
12208 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
12209
12210 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
12211 inferior_ptid.
12212 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
12213 ps_lsetfpregs): Likewise.
12214 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
12215 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
12216 ps_lsetfpregs): Likewise.
12217 * target.c (target_fetch_registers, target_store_registers):
12218 Remove asserts.
12219
12220 2017-03-23 Alan Hayward <alan.hayward@arm.com>
12221
12222 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
12223
12224 2017-03-23 Yao Qi <yao.qi@linaro.org>
12225
12226 * aarch64-tdep.c (aarch64_process_record_test): Declare.
12227 (_initialize_aarch64_tdep): Register it.
12228 (aarch64_record_load_store): Handle PRFM instruction.
12229 (aarch64_process_record_test): New function.
12230
12231 2017-03-23 Yao Qi <yao.qi@linaro.org>
12232
12233 * aarch64-tdep.c (aarch64_record_load_store): Fix code
12234 indentation.
12235
12236 2017-03-23 Yao Qi <yao.qi@linaro.org>
12237
12238 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
12239
12240 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12241
12242 python/python.c (do_start_initialization): Fix memory leak.
12243
12244 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12245
12246 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
12247 using get_ptrace_pid.
12248 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
12249 inferior_ptid.
12250 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
12251 inferior_ptid instead of pid.
12252
12253 2017-03-22 Yao Qi <yao.qi@linaro.org>
12254
12255 * aarch64-tdep.c: Wrap locally used classes in anonymous
12256 namespace.
12257 * arm-tdep.c: Likewise.
12258 * linespec.c: Likewise.
12259 * ui-out.c: Likewise.
12260
12261 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
12262
12263 PR gdb/19637
12264 * python/lib/gdb/printer/bound_registers.py: Import sys.
12265
12266 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
12267
12268 * windows-nat.c (do_windows_fetch_inferior_registers): Add
12269 windows_thread_info parameter and use it instead of
12270 current_thread.
12271 (windows_fetch_inferior_registers): Don't set current_thread,
12272 pass the thread to do_windows_fetch_inferior_registers. Use
12273 ptid from regcache instead of inferior_ptid.
12274 (do_windows_store_inferior_registers): Add windows_thread_info
12275 parameter and use it instead of current_thread.
12276 (windows_store_inferior_registers): Don't set current_thread,
12277 pass the thread to do_windows_store_inferior_registers. Use
12278 ptid from regcache instead of inferior_ptid.
12279
12280 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
12281
12282 * ser-mingw.c (ser_windows_raw): Remove reference to
12283 struct serial::current_timeout.
12284
12285 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
12286
12287 PR tdep/20928
12288 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
12289 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
12290 (sparc64_fsr_type): Fix %fsr decoding.
12291
12292 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
12293
12294 * python/py-record-btrace.c (btpy_insn_data): Change return type
12295 for Python 2.
12296
12297 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12298
12299 * spu-linux-nat.c (spu_fetch_inferior_registers,
12300 spu_store_inferior_registers): Use ptid from regcache, set and
12301 restore inferior_ptid.
12302 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
12303 Likewise.
12304
12305 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12306
12307 * i386-linux-nat.c (fetch_register, store_register,
12308 i386_linux_fetch_inferior_registers,
12309 i386_linux_store_inferior_registers): Use ptid from regcache.
12310 * ia64-linux-nat.c (ia64_linux_fetch_register,
12311 ia64_linux_store_register): Likewise.
12312 * inf-ptrace.c (inf_ptrace_fetch_register,
12313 inf_ptrace_store_register): Likewise.
12314 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
12315 m32r_linux_store_inferior_registers): Likewise.
12316 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
12317 m68kbsd_store_inferior_registers): Likewise.
12318 * m68k-linux-nat.c (fetch_register, store_register,
12319 m68k_linux_fetch_inferior_registers,
12320 m68k_linux_store_inferior_registers): Likewise.
12321 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
12322 m88kbsd_store_inferior_registers): Likewise.
12323 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
12324 mips_fbsd_store_inferior_registers): Likewise.
12325 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
12326 mips64_linux_regsets_store_registers): Likewise.
12327 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
12328 mipsnbsd_store_inferior_registers): Likewise.
12329 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
12330 mips64obsd_store_inferior_registers): Likewise.
12331 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
12332 Likewise.
12333 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
12334 ppcfbsd_store_inferior_registers): Likewise.
12335 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
12336 ppc_linux_store_inferior_registers): Likewise.
12337 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
12338 ppcnbsd_store_inferior_registers): Likewise.
12339 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
12340 ppcobsd_store_registers): Likewise.
12341 * procfs.c (procfs_fetch_registers, procfs_store_registers):
12342 Likewise.
12343 * ravenscar-thread.c (ravenscar_fetch_registers,
12344 ravenscar_store_registers, ravenscar_prepare_to_store):
12345 Likewise.
12346 * record-btrace.c (record_btrace_fetch_registers,
12347 record_btrace_store_registers, record_btrace_prepare_to_store):
12348 Likewise.
12349 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
12350 Lookup inferior using ptid from regcache, instead of
12351 current_inferior.
12352 * remote.c (remote_fetch_registers, remote_store_registers): Use
12353 ptid from regcache.
12354 * rs6000-nat.c (fetch_register, store_register): Likewise.
12355 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
12356 s390_linux_store_inferior_registers): Likewise.
12357 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
12358 shnbsd_store_inferior_registers): Likewise.
12359 * sol-thread.c (sol_thread_fetch_registers,
12360 sol_thread_store_registers): Likewise.
12361 * sparc-nat.c (sparc_fetch_inferior_registers,
12362 sparc_store_inferior_registers): Likewise.
12363 * tilegx-linux-nat.c (fetch_inferior_registers,
12364 store_inferior_registers): Likewise.
12365 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
12366 vaxbsd_store_inferior_registers): Likewise.
12367 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
12368 store_xtregs): Likewise.
12369
12370 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12371
12372 PR gdb/14441
12373 * NEWS: Mention support for rvalue references in GDB and python.
12374 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
12375 supports both lvalue and rvalue references.
12376
12377 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12378
12379 PR gdb/14441
12380 * gdbtypes.c (rank_one_type): Implement overloading
12381 resolution rules regarding rvalue references.
12382
12383 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12384
12385 PR gdb/14441
12386 * aarch64-tdep.c (aarch64_type_align)
12387 (aarch64_extract_return_value, aarch64_store_return_value): Change
12388 lvalue reference type checks to general reference type checks.
12389 * amd64-tdep.c (amd64_classify): Likewise.
12390 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
12391 Likewise.
12392 * arm-tdep.c (arm_type_align, arm_extract_return_value)
12393 (arm_store_return_value): Likewise.
12394 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
12395 * c-typeprint.c (c_print_type): Likewise.
12396 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
12397 (cplus_number_of_children, cplus_describe_child): Likewise.
12398 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
12399 * completer.c (expression_completer): Likewise.
12400 * cp-support.c (make_symbol_overload_list_adl_namespace):
12401 Likewise.
12402 * darwin-nat-info.c (info_mach_region_command): Likewise.
12403 * dwarf2loc.c (entry_data_value_coerce_ref)
12404 (value_of_dwarf_reg_entry): Likewise.
12405 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
12406 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
12407 Likewise.
12408 * findvar.c (extract_typed_address, store_typed_address):
12409 Likewise.
12410 * gdbtypes.c (rank_one_type): Likewise.
12411 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
12412 * infcall.c (value_arg_coerce): Likewise.
12413 * language.c (pointer_type): Likewise.
12414 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
12415 Likewise.
12416 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
12417 * mn10300-tdep.c (mn10300_type_align): Likewise.
12418 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
12419 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
12420 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
12421 Likewise.
12422 * printcmd.c (print_formatted, x_command): Likewise.
12423 * python/py-type.c (typy_get_composite, typy_template_argument):
12424 Likewise.
12425 * python/py-value.c (valpy_referenced_value)
12426 (valpy_get_dynamic_type, value_has_field): Likewise.
12427 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
12428 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
12429 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
12430 * spu-tdep.c (spu_scalar_value_p): Likewise.
12431 * symtab.c (lookup_symbol_aux): Likewise.
12432 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
12433 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
12434 Likewise.
12435 * valops.c (value_cast_pointers, value_cast)
12436 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
12437 (value_struct_elt, value_struct_elt_bitpos)
12438 (value_find_oload_method_list, find_overload_match)
12439 (value_rtti_indirect_type): Likewise.
12440 * valprint.c (val_print_scalar_type_p, generic_val_print):
12441 Likewise.
12442 * value.c (value_actual_type, value_as_address, unpack_long)
12443 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
12444 (coerce_ref): Likewise.
12445 * varobj.c (varobj_get_value_type): Likewise.
12446
12447 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12448
12449 PR gdb/14441
12450 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
12451 table of constants.
12452 * python/lib/gdb/command/explore.py: Support exploring values
12453 of rvalue reference types.
12454 * python/lib/gdb/types.py: Implement get_basic_type() for
12455 rvalue reference types.
12456 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
12457 constant.
12458 * python/py-value.c (valpy_getitem): Add an rvalue reference
12459 check.
12460 (valpy_reference_value): Add new parameter "refcode".
12461 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
12462 New wrappers for valpy_reference_value().
12463 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
12464 (gdbpy_invoke_xmethod): Likewise.
12465
12466 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12467
12468 PR gdb/14441
12469 * dwarf2read.c (process_die, read_type_die_1): Handle the
12470 DW_TAG_rvalue_reference_type DIE.
12471 (read_tag_reference_type): Add new parameter "refcode".
12472
12473 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12474
12475 PR gdb/14441
12476 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
12477 (c_type_print_modifier, c_type_print_varspec_suffix)
12478 (c_type_print_base): Support printing rvalue reference types.
12479 * c-valprint.c (c_val_print, c_value_print): Support printing
12480 rvalue reference values.
12481
12482 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12483
12484 PR gdb/14441
12485 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
12486 typename.
12487 * cp-support.c (replace_typedefs): Handle
12488 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
12489 * python/py-type.c (typy_lookup_type): Likewise.
12490
12491 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12492
12493 PR gdb/14441
12494 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
12495 * parse.c (insert_type): Change assert statement.
12496 (follow_types): Handle rvalue reference types.
12497 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
12498 constant.
12499
12500 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12501
12502 PR gdb/14441
12503 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
12504 value_ref() interface.
12505 * c-valprint.c (c_value_print): Likewise.
12506 * infcall.c (value_arg_coerce): Likewise.
12507 * python/py-value.c (valpy_reference_value): Likewise.
12508 * valops.c (value_cast, value_reinterpret_cast)
12509 (value_dynamic_cast, typecmp): Likewise.
12510 (value_ref): Parameterize by kind of return value reference type.
12511 * value.h (value_ref): Add new parameter "refcode".
12512
12513 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12514
12515 PR gdb/14441
12516 * dwarf2read.c (read_tag_reference_type): Use
12517 lookup_lvalue_reference_type() instead of lookup_reference_type().
12518 * eval.c (evaluate_subexp_standard): Likewise.
12519 * f-exp.y: Likewise.
12520 * gdbtypes.c (make_reference_type, lookup_reference_type):
12521 Generalize with rvalue reference types.
12522 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
12523 convenience wrappers for lookup_reference_type().
12524 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
12525 reference kind parameter.
12526 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
12527 wrappers for lookup_reference_type().
12528 * guile/scm-type.c (gdbscm_type_reference): Use
12529 lookup_lvalue_reference_type() instead of lookup_reference_type().
12530 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
12531 * parse.c (follow_types): Likewise.
12532 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
12533 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
12534 Likewise.
12535 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
12536 (gdbpy_invoke_xmethod): Likewise.
12537 * stabsread.c: Provide extra argument to make_reference_type()
12538 call.
12539 * valops.c (value_ref, value_rtti_indirect_type): Use
12540 lookup_lvalue_reference_type() instead of lookup_reference_type().
12541
12542 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12543
12544 PR gdb/14441
12545 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
12546 (TYPE_IS_REFERENCE): New macro.
12547 (struct type): Add rvalue_reference_type field.
12548 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
12549
12550 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
12551
12552 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
12553 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
12554 New function definition.
12555 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
12556 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
12557 New function declaration.
12558 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
12559 * mi/mi-interp.h: New file.
12560 * solib.c (info_sharedlibrary_command): Replace for loop with
12561 ALL_SO_LIBS macro
12562 * solib.h (update_solib_list): New function declaration.
12563 (so_list_head): Move macro.
12564 * solist.h (ALL_SO_LIBS): New macro.
12565
12566 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
12567
12568 * infcmd.c (post_create_inferior): Remove unused argument in
12569 call to solib_add.
12570 * remote.c (remote_start_remote): Likewise.
12571 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
12572 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
12573 (enable_break): Likewise.
12574 * solib.c (update_solib_list): Remove unused target argument
12575 and its documentation.
12576 (solib_add): Remove unused target argument. Remove unused
12577 argument in call to update_solib_list.
12578 (info_sharedlibrary_command): Remove unused argument in call
12579 to update_solib_list.
12580 (sharedlibrary_command): Remove unused argument in call to
12581 solib_add.
12582 (handle_solib_event): Likewise.
12583 (reload_shared_libraries): Likewise.
12584 * solib.h (solib_add): Remove unused target argument.
12585
12586 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
12587
12588 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
12589 (s390_displaced_step_fixup): Cover relative branches with the
12590 default fixup handling. This fixes lack of support for some
12591 relative branch instructions.
12592
12593 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12594
12595 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
12596 ptid from regcache.
12597
12598 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12599
12600 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
12601 i386_darwin_store_inferior_registers): Use ptid from regcache.
12602
12603 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12604
12605 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
12606 i386bsd_store_inferior_registers): Use ptid from regcache.
12607
12608 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12609
12610 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
12611 hppaobsd_store_registers): Use ptid from regcache.
12612
12613 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12614
12615 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
12616 hppanbsd_store_registers): Use ptid from regcache.
12617
12618 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12619
12620 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
12621 from regcache. Use get_ptrace_pid.
12622
12623 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12624
12625 * corelow.c (get_core_register_section): Use ptid from regcache,
12626 update doc.
12627
12628 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12629
12630 * bsd-uthread.c (bsd_uthread_fetch_registers,
12631 bsd_uthread_store_registers): Use ptid from regcache, set and
12632 restore inferior_ptid.
12633
12634 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12635
12636 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
12637 fetch_fp_regs, store_register, store_regs, store_fp_register,
12638 store_fp_regs): Use ptid from regcache.
12639
12640 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12641
12642 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
12643 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
12644 store_vfp_regs): Use ptid from regcache.
12645
12646 2017-03-17 Pedro Alves <palves@redhat.com>
12647
12648 PR remote/21188
12649 * ser-base.c (ser_base_wait_for): Add comment.
12650 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
12651 version.
12652 * ser-unix.c (hardwire_raw): Remove reference to
12653 scb->current_timeout.
12654 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
12655 (hardwire_ops): Install ser_base_readchar instead of
12656 hardwire_readchar.
12657 * serial.h (struct serial) <current_timeout, timeout_remaining>:
12658 Remove fields.
12659
12660 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
12661
12662 PR gdb/19637
12663 * python/lib/gdb/printer/bound_registers.py: Add support for
12664 Python 3.
12665
12666 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
12667
12668 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
12669 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
12670 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
12671 byte_offset to subobj_byte_offset. Fix the handling of
12672 DWARF_VALUE_STACK on big-endian targets when coming via an
12673 implicit pointer.
12674 (dwarf2_evaluate_loc_desc): Adjust call to
12675 dwarf2_evaluate_loc_desc_full.
12676 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
12677 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
12678
12679 2017-03-16 Yao Qi <yao.qi@linaro.org>
12680
12681 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
12682 and REVSH instructions.
12683
12684 2017-03-16 Yao Qi <yao.qi@linaro.org>
12685
12686 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
12687 (arm_record_test): Declare.
12688 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
12689 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
12690 align with the manual.
12691 (thumb_record_misc): Adjust the code order to align with the
12692 manual.
12693 (thumb2_record_decode_insn_handler): Fix instruction matching.
12694 (instruction_reader_thumb): New class.
12695 (arm_record_test): New function.
12696
12697 2017-03-16 Yao Qi <yao.qi@linaro.org>
12698
12699 * arm-tdep.c (abstract_memory_reader): New class.
12700 (instruction_reader): New class.
12701 (extract_arm_insn): Add argument 'reader'. Callers updated.
12702 (decode_insn): Likewise.
12703
12704 2017-03-16 Doug Evans <dje@google.com>
12705
12706 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
12707 member. Change type of TYPE member to SCM. All uses updated.
12708 (lsscm_make_lazy_string_smob): Add assert.
12709 (lsscm_make_lazy_string): Flag bad length values.
12710 (lsscm_elt_type): New function.
12711 (gdbscm_lazy_string_to_value): Rewrite to use
12712 lsscm_safe_lazy_string_to_value.
12713 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
12714 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
12715 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
12716 in incoming type.
12717 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12718 * guile/scm-type.c (tyscm_scm_to_type): New function.
12719
12720 2017-03-15 Doug Evans <dje@google.com>
12721
12722 PR python/17728, python/18439, python/18779
12723 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
12724 member. Change type of TYPE member to PyObject *. All uses updated.
12725 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
12726 (gdbpy_create_lazy_string_object): Flag bad length values.
12727 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
12728 Handle typedefs in incoming type.
12729 (stpy_lazy_string_elt_type): New function.
12730 (gdbpy_extract_lazy_string): Call it.
12731 * python/py-value.c (valpy_lazy_string): Flag bad length values.
12732 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
12733 typedefs in incoming type.
12734
12735 2017-03-16 Doug Evans <dje@google.com>
12736
12737 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12738 * guile/scm-type.c (tyscm_scm_to_type): New function.
12739
12740 2017-03-16 Jiong Wang <jiong.wang@arm.com>
12741
12742 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
12743 "ULONGEST" for "skip".
12744
12745 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12746
12747 PR gdb/21220
12748 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
12749 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
12750 (inf_ptrace_peek_poke): ...here. New function. Now also loop
12751 over ptrace peek/poke until end of buffer or error.
12752
12753 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
12754
12755 * parse.c (length_of_subexp): Make static.
12756 * parser-defs.h (length_of_subexp): Remove.
12757
12758 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12759
12760 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
12761 as well.
12762
12763 2017-03-14 Pedro Alves <palves@redhat.com>
12764
12765 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
12766 (main): Use std::unique_ptr. Remove calls to
12767 cp_demangled_name_parse_free.
12768
12769 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12770
12771 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
12772 alphabsd_store_inferior_registers): Use regcache->ptid instead
12773 of inferior_ptid.
12774
12775 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12776
12777 * aix-thread.c (aix_thread_fetch_registers,
12778 aix_thread_store_registers): Use regcache->ptid instead of
12779 inferior_ptid.
12780
12781 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12782
12783 * aarch64-linux-nat.c (fetch_gregs_from_thread,
12784 store_gregs_to_thread, fetch_fpregs_from_thread,
12785 store_fpregs_to_thread): Use regcache->ptid instead of
12786 inferior_ptid.
12787
12788 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12789
12790 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
12791 amd64_linux_fetch_inferior_registers): Use regcache->ptid
12792 instead of inferior_ptid.
12793
12794 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12795
12796 * target.c (target_fetch_registers, target_store_registers): Add
12797 assert.
12798
12799 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12800
12801 * regcache.h (regcache_get_ptid): New function.
12802 * regcache.c (regcache_get_ptid): New function.
12803
12804 2017-03-13 Mark Wielaard <mark@klomp.org>
12805
12806 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
12807
12808 2017-03-10 Keith Seitz <keiths@redhat.com>
12809
12810 PR c++/8218
12811 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
12812
12813 2017-03-08 Pedro Alves <palves@redhat.com>
12814
12815 PR gdb/18360
12816 * infrun.c (start_step_over, do_target_resume, resume)
12817 (restart_threads): Assert we're not resuming a thread that is
12818 meant to be stopped.
12819 (infrun_thread_stop_requested_callback): Delete.
12820 (infrun_thread_stop_requested): If the thread is internally
12821 stopped, queue a pending stop event and clear the thread's
12822 inline-frame state.
12823 (handle_stop_requested): New function.
12824 (handle_syscall_event, handle_inferior_event_1): Use
12825 handle_stop_requested.
12826 (handle_stop_requested): New function.
12827 (handle_signal_stop): Set the thread's stop_signal here instead of
12828 at caller.
12829 (finish_step_over): Clear step over info unconditionally.
12830 (handle_signal_stop): If the user had interrupted the event
12831 thread, consider the stop a random signal.
12832 (handle_signal_stop) <signal arrived while stepping over
12833 breakpoint>: Don't restart threads here.
12834 (stop_waiting): Don't clear step-over info here.
12835
12836 2017-03-08 Pedro Alves <palves@redhat.com>
12837
12838 PR 21206
12839 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
12840 goes to argument 2, not 1.
12841
12842 2017-03-08 Pedro Alves <palves@redhat.com>
12843
12844 PR cli/21218
12845 * top.c (gdb_readline_wrapper): Avoid passing NULL to
12846 display_gdb_prompt.
12847 (command_line_input): Add comment.
12848
12849 2017-03-08 Pedro Alves <palves@redhat.com>
12850
12851 PR tui/21216
12852 * tui/tui-file.c (tui_file::write): New.
12853 * tui/tui-file.h (tui_file): Override "write".
12854 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
12855 factored out from ...
12856 (tui_puts): ... here.
12857 (tui_putc): Use them.
12858 (tui_write): New function.
12859 * tui/tui-io.h (tui_write): Declare.
12860
12861 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
12862
12863 * Makefile.in (SFILES): Replace "environ.c" with
12864 "common/environ.c".
12865 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
12866 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
12867 to...
12868 * common/environ.c: ... here.
12869 * environ.h: Moved to...
12870 * common/environ.h: ... here.
12871
12872 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12873
12874 * gdbarch.sh (pstring_ptr): New static function.
12875 (gdbarch_disassembler_options): Use it.
12876 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
12877 not valid_disassembler_option->name.
12878 * gdbarch.c: Regenerate.
12879
12880 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12881
12882 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
12883
12884 2017-03-07 Pedro Alves <palves@redhat.com>
12885
12886 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
12887
12888 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
12889
12890 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12891 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
12892 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
12893 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
12894
12895 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
12896
12897 * xtensa-linux-nat.c (fetch_gregs): Remove const.
12898
12899 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
12900
12901 * remote.c (remote_add_target_side_commands): Use range-based
12902 for loop.
12903
12904 2017-03-03 Yao Qi <yao.qi@linaro.org>
12905
12906 PR gdb/21165
12907 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
12908 value is lazy.
12909 * valprint.c (common_val_print): Likewise.
12910
12911 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
12912
12913 * NEWS: Mention new set/show disassembler-options commands.
12914 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
12915 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
12916 (prospective_options): New static variable.
12917 (gdb_disassembler::gdb_disassembler): Initialize
12918 m_di.disassembler_options.
12919 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
12920 (get_disassembler_options): New function.
12921 (set_disassembler_options): Likewise.
12922 (set_disassembler_options_sfunc): Likewise.
12923 (show_disassembler_options_sfunc): Likewise.
12924 (disassembler_options_completer): Likewise.
12925 (_initialize_disasm): Likewise.
12926 * disasm.h (get_disassembler_options): New prototype.
12927 (set_disassembler_options): Likewise.
12928 * gdbarch.sh (gdbarch_disassembler_options): New variable.
12929 (gdbarch_verify_disassembler_options): Likewise.
12930 * gdbarch.c: Regenerate.
12931 * gdbarch.h: Likewise.
12932 * arm-tdep.c (num_disassembly_options): Delete.
12933 (set_disassembly_style): Likewise.
12934 (arm_disassembler_options): New static variable.
12935 (set_disassembly_style_sfunc): Convert short style name into long
12936 option name. Call set_disassembler_options.
12937 (show_disassembly_style_sfunc): New function.
12938 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
12939 set_gdbarch_verify_disassembler_options.
12940 (_initialize_arm_tdep): Delete regnames variable and update callers.
12941 (arm_disassembler_options): Initialize.
12942 (disasm_options): New variable.
12943 (num_disassembly_options): Rename from this...
12944 (num_disassembly_styles): ...to this. Compute by scanning through
12945 disasm_options.
12946 (valid_disassembly_styles): Initialize using disasm_options.
12947 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12948 set_arm_regname_option.
12949 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12950 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12951 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12952 set_gdbarch_verify_disassembler_options.
12953 * s390-tdep.c (s390_disassembler_options): New static variable.
12954 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12955 set_gdbarch_verify_disassembler_options.
12956
12957 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12958
12959 * remote.c (remote_add_target_side_condition): Remove "struct"
12960 keyword from range-based for loop.
12961
12962 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12963
12964 * remote.c (remote_add_target_side_condition): Use range-based
12965 for loop. Update comment.
12966
12967 2017-02-27 Yao Qi <yao.qi@linaro.org>
12968
12969 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12970
12971 2017-02-26 Alan Hayward <alan.hayward@arm.com>
12972
12973 * regcache.c (regcache_raw_update): New function.
12974 (regcache_raw_read): Move code to regcache_raw_update.
12975 * regcache.h (regcache_raw_update): New declaration.
12976 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12977
12978 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12979
12980 * dwarf2read.c (create_debug_type_hash_table): Initialize
12981 header.signature and header.type_offset_in_tu.
12982
12983 2017-02-24 Pedro Alves <palves@redhat.com>
12984
12985 * symtab.c (make_file_symbol_completion_list_1): Use
12986 add_symtab_completions.
12987
12988 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12989
12990 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12991
12992 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12993
12994 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12995 I386_MAX_REGISTER_SIZE.
12996 (i386_pseudo_register_write): Likewise.
12997 (i386_process_record): Likewise.
12998 * i387-tdep.c (i387_supply_xsave): Likewise.
12999 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
13000 (store_register): Likewise.
13001
13002 2017-02-23 Pedro Alves <palves@redhat.com>
13003
13004 * ada-lang.c: Include "common/function-view.h".
13005 (ada_iterate_over_symbols): Adjust to use function_view as
13006 callback type.
13007 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
13008 (ada_make_symbol_completion_list): Use a lambda.
13009 (ada_exc_search_name_matches): Delete.
13010 (name_matches_regex): New.
13011 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
13012 * compile/compile-c-support.c: Include "common/function-view.h".
13013 (print_one_macro): Change prototype to accept a ui_file pointer.
13014 (write_macro_definitions): Use a lambda.
13015 * dwarf2read.c: Include "common/function-view.h".
13016 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
13017 (dw2_expand_symtabs_matching): Adjust to use function_view as
13018 callback type.
13019 * language.h: Include "common/function-view.h".
13020 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
13021 function_view as callback type.
13022 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
13023 * linespec.c: Include "common/function-view.h".
13024 (collect_info::add_symbol): New method.
13025 (struct symbol_and_data_callback, iterate_inline_only, struct
13026 symbol_matcher_data, iterate_name_matcher): Delete.
13027 (iterate_over_all_matching_symtabs): Adjust to use function_view
13028 as callback type and lambdas.
13029 (iterate_over_file_blocks): Adjust to use function_view as
13030 callback type.
13031 (decode_compound_collector): Now a class with private fields.
13032 (decode_compound_collector::release_symbols): New method.
13033 (collect_one_symbol): Rename to...
13034 (decode_compound_collector::operator()): ... this and adjust.
13035 (lookup_prefix_sym): decode_compound_collector construction bits
13036 move to decode_compound_collector ctor. Pass the
13037 decode_compound_collector object directly as callback. Remove
13038 cleanups and use decode_compound_collector::release_symbols
13039 instead.
13040 (symtab_collector): Now a class with private fields.
13041 (symtab_collector::release_symtabs): New method.
13042 (add_symtabs_to_list): Rename to...
13043 (symtab_collector::operator()): ... this and adjust.
13044 (collect_symtabs_from_filename): symtab_collector construction
13045 bits move to symtab_collector ctor. Pass the symtab_collector
13046 object directly as callback. Remove cleanups and use
13047 symtab_collector::release_symtabs instead.
13048 (collect_symbols): Delete.
13049 (add_matching_symbols_to_info): Use lambdas.
13050 * macrocmd.c (print_macro_callback): Delete.
13051 (info_macro_command): Use a lambda.
13052 (info_macros_command): Pass print_macro_definition as callable
13053 directly.
13054 (print_one_macro): Remove 'ignore' parameter.
13055 (macro_list_command): Adjust.
13056 * macrotab.c (macro_for_each_data::fn): Now a function_view.
13057 (macro_for_each_data::user_data): Delete field.
13058 (foreach_macro): Adjust to call the function_view.
13059 (macro_for_each): Adjust to use function_view as callback type.
13060 (foreach_macro_in_scope): Adjust to call the function_view.
13061 (macro_for_each_in_scope): Adjust to use function_view as callback
13062 type.
13063 * macrotab.h: Include "common/function-view.h".
13064 (macro_callback_fn): Declare a prototype instead of a pointer.
13065 Remove "user_data" parameter.
13066 (macro_for_each, macro_for_each_in_scope): Adjust to use
13067 function_view as callback type.
13068 * psymtab.c (partial_map_expand_apply)
13069 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
13070 Adjust to use function_view as callback type and to return bool.
13071 (psym_expand_symtabs_matching): Adjust to use function_view as
13072 callback types.
13073 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
13074 to use function_view as callback type and to return bool.
13075 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
13076 callback types.
13077 * symfile.c (expand_symtabs_matching): Adjust to use function_view
13078 as callback types.
13079 * symfile.h: Include "common/function-view.h".
13080 (expand_symtabs_file_matcher_ftype)
13081 (expand_symtabs_symbol_matcher_ftype)
13082 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
13083 return bool.
13084 (quick_symbol_functions::map_symtabs_matching_filename)
13085 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
13086 function_view as callback type and return bool.
13087 (expand_symtabs_matching): Adjust to use function_view as callback
13088 type.
13089 (maintenance_expand_name_matcher)
13090 (maintenance_expand_file_matcher): Delete.
13091 (maintenance_expand_symtabs): Use lambdas.
13092 * symtab.c (iterate_over_some_symtabs): Adjust to use
13093 function_view as callback types and return bool.
13094 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
13095 of a cleanup.
13096 (lookup_symtab_callback): Delete.
13097 (lookup_symtab): Use a lambda.
13098 (iterate_over_symbols): Adjust to use function_view as callback
13099 type.
13100 (struct search_symbols_data, search_symbols_file_matches)
13101 (search_symbols_name_matches): Delete.
13102 (search_symbols): Use a pair of lambdas.
13103 (struct add_name_data, add_macro_name, symbol_completion_matcher)
13104 (symtab_expansion_callback): Delete.
13105 (default_make_symbol_completion_list_break_on_1): Use lambdas.
13106 * symtab.h: Include "common/function-view.h".
13107 (iterate_over_some_symtabs): Adjust to use function_view as
13108 callback type and return bool.
13109 (iterate_over_symtabs): Adjust to use function_view as callback
13110 type.
13111 (symbol_found_callback_ftype): Remove 'data' parameter and return
13112 bool.
13113 (iterate_over_symbols): Adjust to use function_view as callback
13114 type.
13115
13116 2017-02-23 Pedro Alves <palves@redhat.com>
13117
13118 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
13119 (%.o) <unittests/%.c>: New pattern.
13120 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
13121 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
13122 * common/function-view.h: New file.
13123 * unittests/function-view-selftests.c: New file.
13124 * configure: Regenerate.
13125
13126 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
13127
13128 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
13129 inferior_ptid.
13130 * go32-nat.c (go32_thread_alive): Likewise.
13131
13132 2017-02-23 Yao Qi <yao.qi@linaro.org>
13133
13134 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
13135 delete.
13136
13137 2017-02-23 Yao Qi <yao.qi@linaro.org>
13138
13139 * varobj.c (varobj_clear_saved_item): Use delete instead of
13140 xfree.
13141 (update_dynamic_varobj_children): Likewise.
13142
13143 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13144
13145 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
13146
13147 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
13148
13149 * common/enum-flags.h (enum_flags::enum_flags): Initialize
13150 m_enum_value to 0 in default constructor.
13151
13152 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13153
13154 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
13155 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
13156 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
13157 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
13158 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
13159 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
13160 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
13161 IS_STORE_CONDITIONAL_INSN.
13162
13163 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13164
13165 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
13166
13167 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13168
13169 * NEWS (Changes since GDB 7.12): Add DWARF-5.
13170
13171 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13172
13173 * dwarf2read.c (skip_one_die, read_attribute_value)
13174 (dwarf2_const_value_attr, dump_die_shallow)
13175 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
13176 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
13177
13178 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13179
13180 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
13181 (dwarf_parse_macro_header): Accept DWARF version 5.
13182 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
13183
13184 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13185
13186 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
13187 DW_AT_GNU_*.
13188 * common/common-exceptions.h (enum errors): Likewise.
13189 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
13190 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
13191 (dwarf_expr_context::execute_stack_op): Likewise.
13192 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
13193 Likewise.
13194 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
13195 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13196 (show_entry_values_debug, call_site_to_target_addr)
13197 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
13198 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
13199 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
13200 (value_of_dwarf_block_entry, indirect_pieced_value)
13201 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
13202 (disassemble_dwarf_expression): Likewise.
13203 * dwarf2read.c (process_die, inherit_abstract_dies)
13204 (read_call_site_scope): Likewise.
13205 * gdbtypes.h (struct func_type, struct call_site_parameter)
13206 (struct call_site): Likewise.
13207 * stack.c (read_frame_arg): Likewise.
13208 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
13209
13210 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13211
13212 * defs.h (read_unsigned_leb128): New declaration.
13213 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
13214 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
13215 (dwarf2_find_location_expression): Call also
13216 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
13217 * dwarf2loc.h (dwarf2_version): New declaration.
13218 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
13219 rnglists.
13220 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
13221 .debug_rnglists.
13222 (struct dwop_section_names): Add loclists_dwo.
13223 (dwop_section_names): Add .debug_loclists.dwo.
13224 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
13225 (struct dwarf2_per_cu_data): Add dwarf_version.
13226 (struct dwo_sections): Add loclists.
13227 (struct attr_abbrev): Add implicit_const.
13228 (read_indirect_line_string): New declaration.
13229 (read_unsigned_leb128): Delete declaration.
13230 (rcuh_kind): New definition.
13231 (read_and_check_comp_unit_head): Change parameter
13232 is_debug_types_section to section_kind.
13233 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
13234 (read_comp_unit_head): Change parameter abfd to section, add parameter
13235 section_kind. Handle DWARF-5.
13236 (error_check_comp_unit_head): Accept also DWARF version 5.
13237 (read_and_check_comp_unit_head): Change parameter
13238 is_debug_types_section to section_kind.
13239 (read_and_check_type_unit_head): Delete function.
13240 (read_abbrev_offset): Handle DWARF-5.
13241 (create_debug_type_hash_table): Add parameter section_kind. Process
13242 only DW_UT_type. Use signature and type_offset_in_tu from struct
13243 comp_unit_head.
13244 (create_debug_types_hash_table): Update create_debug_type_hash_table
13245 caller.
13246 (create_all_type_units): Call create_debug_type_hash_table.
13247 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
13248 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
13249 caller.
13250 (skip_one_die): Handle DW_FORM_implicit_const.
13251 (dwarf2_rnglists_process): New function.
13252 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
13253 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
13254 (read_attribute_value): Handle DW_FORM_implicit_const,
13255 DW_FORM_line_strp.
13256 (read_attribute): Handle DW_FORM_implicit_const.
13257 (read_indirect_string_at_offset_from): New function from
13258 read_indirect_string_at_offset.
13259 (read_indirect_string_at_offset): Call
13260 read_indirect_string_at_offset_from.
13261 (read_indirect_line_string_at_offset): New function.
13262 (read_indirect_string): New function comment.
13263 (read_indirect_line_string): New function.
13264 (read_unsigned_leb128): Make it global.
13265 (dwarf2_string_attr): Handle DWARF-5.
13266 (add_include_dir_stub, read_formatted_entries): New functions.
13267 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
13268 Handle DWARF-5.
13269 (per_cu_header_read_in): Update read_comp_unit_head caller.
13270 (dwarf2_version): New function.
13271 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
13272 rnglists.
13273 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
13274 fields.
13275
13276 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13277
13278 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
13279
13280 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13281
13282 * dwarf2read.c (dwarf2_ranges_process): New function from
13283 dwarf2_ranges_read.
13284 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
13285 dwarf2_ranges_process.
13286
13287 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13288
13289 * dwarf2read.c (create_debug_type_hash_table): New function from
13290 create_debug_types_hash_table.
13291 (create_debug_types_hash_table): Call create_debug_type_hash_table.
13292 (create_all_type_units, open_and_init_dwo_file): Update
13293 create_debug_types_hash_table callers.
13294
13295 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13296
13297 PR gdb/16188
13298 * fork-child.c (trace_start_error): Fix thinko. va_end should
13299 refer to 'ap', not 'args'.
13300
13301 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13302 Pedro Alves <palves@redhat.com>
13303
13304 PR gdb/16188
13305 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
13306 calls succeeded.
13307 * fork-child.c (trace_start_error): New function.
13308 (trace_start_error_with_name): Likewise.
13309 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
13310 * inf-ptrace.c (inf_ptrace_me): Likewise.
13311 * inferior.h (trace_start_error): New prototype.
13312 (trace_start_error_with_name): Likewise.
13313
13314 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
13315
13316 PR gdb/21164
13317 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
13318 NULL before using it.
13319 * symmisc.c (maintenance_print_symbols): Likewise.
13320 (maintenance_print_msymbols): Likewise.
13321
13322 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13323
13324 * NEWS: Add record Python bindings entry.
13325
13326 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13327
13328 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
13329 py-record-full.o.
13330 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
13331 * python/py-record-btrace.c, python/py-record-btrace.h,
13332 python/py-record-full.c, python/py-record-full.h: New file.
13333 * python/py-record.c: Add include for py-record-btrace.h and
13334 py-record-full.h.
13335 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
13336 recpy_instruction_history, recpy_function_call_history, recpy_begin,
13337 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
13338 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
13339 New definition.
13340 (gdbpy_initialize_btrace): New export.
13341 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
13342
13343 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13344
13345 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
13346 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
13347 * python/py-record.c: New file.
13348 * python/python-internal.h (gdbpy_start_recording,
13349 gdbpy_current_recording, gdpy_stop_recording,
13350 gdbpy_initialize_record): New export.
13351 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
13352 (python_GdbMethods): Add gdbpy_start_recording,
13353 gdbpy_current_recording and gdbpy_stop_recording.
13354
13355 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13356
13357 * record-btrace.c (record_btrace_record_method): New function.
13358 (init_record_btrace_ops): Initialize to_record_method.
13359 * record-full.c (record_full_record_method): New function.
13360 (init_record_full_ops, init_record_full_core_ops): Add
13361 record_full_record_method.
13362 * record.h (enum record_method): New enum.
13363 * target-debug.h (target_debug_print_enum_record_method: New define.
13364 * target-delegates.c: Regenerate.
13365 * target.c (target_record_method): New function.
13366 * target.h: Include record.h.
13367 (struct target_ops) <to_record_method>: New field.
13368 (target_record_method): New export.
13369
13370 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13371
13372 * record.h (record_start, record_stop): New export.
13373 * record.c (record_start, record_stop): New function.
13374
13375 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13376
13377 * btrace.c (btrace_fetch): Copy function call segments pointer
13378 into a vector.
13379 (btrace_clear): Clear the vector.
13380 (btrace_find_insn_by_number): Use binary search to find the correct
13381 function call segment.
13382 * btrace.h (brace_fun_p): New typedef.
13383 (struct btrace_thread_info) <functions>: New field.
13384
13385 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13386
13387 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
13388 * btrace.c (btrace_decode_error): ... here. New function.
13389 * btrace.h (btrace_decode_error): New export.
13390
13391 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13392
13393 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
13394 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
13395 btrace_find_insn_by_number): Remove special case for gaps.
13396 * btrace.h (btrace_insn_get_error): New export.
13397 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
13398 * record-btrace.c (btrace_insn_history): Print number for gaps.
13399 (record_btrace_info, record_btrace_goto): Handle gaps.
13400
13401 2017-02-14 Tom Tromey <tom@tromey.com>
13402
13403 PR python/13598:
13404 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
13405 event.
13406 * python/py-evts.c (gdbpy_initialize_py_events): Add
13407 before_prompt registry.
13408 * python/py-events.h (events_object) <before_prompt>: New field.
13409
13410 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
13411
13412 * btrace.c (ftrace_new_switch): Preserve up link and flags.
13413
13414 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
13415
13416 * symfile (_initialize_symfile): Add usage text to the load command's
13417 help text.
13418
13419 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
13420
13421 * utils.c (defaulted_query): Don't query on secondary UIs.
13422
13423 2017-02-10 Tom Tromey <tom@tromey.com>
13424
13425 * rust-lang.c (rust_get_disr_info): Remove unused variable.
13426
13427 2017-02-10 Tom Tromey <tom@tromey.com>
13428
13429 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
13430 "cleanup" local.
13431 * python/py-type.c (typy_legacy_template_argument): Remove
13432 unnecessary "cleanup" local.
13433
13434 2017-02-10 Tom Tromey <tom@tromey.com>
13435
13436 * python/python.c (do_start_initialization): New function, from
13437 _initialize_python.
13438 (_initialize_python): Call do_start_initialization.
13439 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
13440 goto.
13441
13442 2017-02-10 Tom Tromey <tom@tromey.com>
13443
13444 * python/py-prettyprint.c (pretty_print_one_value): Use
13445 gdbpy_ref.
13446
13447 2017-02-10 Tom Tromey <tom@tromey.com>
13448
13449 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
13450 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
13451 gdbpy_ref.
13452 * python/py-type.c (field_new): Use gdbpy_ref.
13453 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
13454 gdbpy_ref.
13455 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
13456 (py_free_pspace): Likewise.
13457 (pspace_to_pspace_object): Likewise.
13458 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
13459 (py_free_objfile): Likewise.
13460 (objfile_to_objfile_object): Likewise.
13461 * python/py-inferior.c (delete_thread_object): Use
13462 gdbpy_ref.
13463 (infpy_read_memory): Likewise.
13464 (py_free_inferior): Likewise.
13465 * python/py-evtregistry.c (create_eventregistry_object): Use
13466 gdbpy_ref.
13467 * python/py-event.c (create_event_object): Use gdbpy_ref.
13468
13469 2017-02-10 Tom Tromey <tom@tromey.com>
13470
13471 * python/py-ref.h (gdbpy_ref_policy): Now a template.
13472 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
13473 used.
13474 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
13475 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
13476 python/py-exitedevent.c, python/py-finishbreakpoint.c,
13477 python/py-framefilter.c, python/py-function.c,
13478 python/py-inferior.c, python/py-infevents.c,
13479 python/py-linetable.c, python/py-newobjfileevent.c,
13480 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
13481 python/py-signalevent.c, python/py-stopevent.c,
13482 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
13483 python/py-unwind.c, python/py-utils.c, python/py-value.c,
13484 python/py-varobj.c, python/py-xmethods.c, python/python.c,
13485 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
13486
13487 2017-02-10 Tom Tromey <tom@tromey.com>
13488
13489 * ui-out.h (ui_out_emit_type): New class.
13490 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
13491 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
13492 and ui_out_emit_tuple.
13493 (enumerate_locals): Likewise.
13494 (py_mi_print_variables, py_print_locals, py_print_args): Use
13495 ui_out_emit_list.
13496 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
13497 ui_out_emit_list.
13498 * common/gdb_optional.h: New file.
13499
13500 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
13501
13502 * MAINTAINERS (Write After Approval): Update my e-mail address.
13503
13504 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
13505
13506 PR gdb/21122
13507 * breakpoint.c (_initialize_breakpoint): Update the help description
13508 of the 'commands' command to indicate that it takes a list argument.
13509
13510 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
13511
13512 * interps.c (current_interp_set_logging): Remove "return".
13513
13514 2017-02-09 Gary Benson <gbenson@redhat.com>
13515
13516 * symtab.c (add_symtab_completions): Prevent NULL pointer
13517 dereference.
13518
13519 2017-02-08 Pedro Alves <palves@redhat.com>
13520
13521 * interps.c (interp::interp): Remove reference to quiet_p.
13522 (interp_set): Make static. Remove dead "Switching to" output
13523 code.
13524 (interp_quiet_p, interp_set_quiet): Delete.
13525 (interpreter_exec_cmd): Don't set the interpreter quiet.
13526 * interps.h (interp_quiet_p): Make static.
13527 (class interp) <quiet_p>: Remove field
13528
13529 2017-02-08 Jerome Guitton <guitton@adacore.com>
13530
13531 * cli/cli-decode.c (find_command_name_length): Make it extern.
13532 * cli/cli-decode.h (find_command_name_length): Declare.
13533 * cli/cli-script.c (command_name_equals, line_first_arg):
13534 New functions.
13535 (process_next_line): Use cli-decode to parse command names.
13536 (build_command_line): Make args a constant pointer.
13537
13538 2017-02-08 Jerome Guitton <guitton@adacore.com>
13539
13540 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
13541 Remove case-insensitive search.
13542
13543 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
13544
13545 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
13546 at the end of the line. Avoids an ARI warning.
13547
13548 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
13549
13550 * NEWS: Mention support for record/replay of Intel 64 rdrand and
13551 rdseed instructions.
13552 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
13553
13554 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
13555
13556 PR tdep/20936
13557 Provide and use sparc32 and sparc64 target description XML files.
13558 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
13559 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
13560 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
13561 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
13562 * features/sparc/sparc32-solaris.xml: New file.
13563 * features/sparc/sparc64-solaris.xml: New file.
13564 * features/sparc/sparc32-solaris.c: Generated.
13565 * features/sparc/sparc64-solaris.c: Generated.
13566 * sparc-tdep.h: Account for differences in target descriptions.
13567 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
13568 (sparc32_register_type): Use target provided registers.
13569 (validate_tdesc_registers): New function.
13570 (sparc32_gdbarch_init): Use tdesc_has_registers.
13571 Set pseudoregister functions.
13572 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
13573 (sparc64_register_type): Use target provided registers.
13574 (sparc64_init_abi): Set pseudoregister functions.
13575
13576 2017-02-03 Tom Tromey <tom@tromey.com>
13577
13578 PR rust/21097:
13579 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
13580 with a single member.
13581
13582 2017-02-03 Pedro Alves <palves@redhat.com>
13583
13584 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
13585 (cli_interp_base::~cli_interp_base): New.
13586 (cli_interp): New struct.
13587 (as_cli_interp): Cast the interp itself to cli_interp.
13588 (cli_interpreter_pre_command_loop): Rename to ...
13589 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
13590 parameter.
13591 (cli_interpreter_init): Rename to ...
13592 (cli_interp::init): ... this. Remove 'self' parameter. Use
13593 boolean. Make extern.
13594 (cli_interpreter_resume): Rename to ...
13595 (cli_interp::resume): ... this. Remove 'data' parameter. Make
13596 extern.
13597 (cli_interpreter_suspend): Rename to ...
13598 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
13599 extern.
13600 (cli_interpreter_exec): Rename to ...
13601 (cli_interp::exec): ... this. Remove 'data' parameter. Make
13602 extern.
13603 (cli_interpreter_supports_command_editing): Rename to ...
13604 (cli_interp_base::supports_command_editing): ... this. Remove
13605 'interp' parameter. Make extern.
13606 (cli_ui_out): Rename to ...
13607 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
13608 Make extern.
13609 (cli_set_logging): Rename to ...
13610 (cli_interp_base::set_logging): ... this. Remove 'interp'
13611 parameter. Make extern.
13612 (cli_interp_procs): Delete.
13613 (cli_interp_factory): Adjust to use "new".
13614 * cli/cli-interp.h: Include "interps.h".
13615 (struct cli_interp_base): New struct.
13616 * interps.c (struct interp): Delete. Fields moved to interps.h.
13617 (interp_new): Delete.
13618 (interp::interp, interp::~interp): New.
13619 (interp_set): Use bool, and return void. Assume the interpreter
13620 has suspend, init and resume methods, and that the all return
13621 void.
13622 (set_top_level_interpreter): interp_set returns void.
13623 (interp_ui_out): Adapt.
13624 (current_interp_set_logging): Adapt.
13625 (interp_data): Delete.
13626 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
13627 (interp_exec): Adapt.
13628 (top_level_interpreter_data): Delete.
13629 * interps.h (interp_init_ftype, interp_resume_ftype)
13630 (interp_suspend_ftype, interp_exec_ftype)
13631 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
13632 (class interp): New.
13633 (interp_new): Delete.
13634 (interp_set): Now returns void. Use bool.
13635 (interp_data, top_level_interpreter_data): Delete.
13636 * mi/mi-common.h: Include interps.h.
13637 (class mi_interp): Inherit from interp. Define a ctor. Declare
13638 init, resume, suspect, exec, interp_ui_out, set_logging and
13639 pre_command_loop methods.
13640 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
13641 (mi_interpreter_init): Rename to ...
13642 (mi_interp::init): ... this. Remove the 'interp' parameter, use
13643 bool, return void and make extern. Adjust.
13644 (mi_interpreter_resume): ... Rename to ...
13645 (mi_interp::resume): ... this. Remove the 'data' parameter,
13646 return void and make extern. Adjust.
13647 (mi_interpreter_suspend): ... Rename to ...
13648 (mi_interp::suspend): ... this. Remove the 'data' parameter,
13649 return void and make extern. Adjust.
13650 (mi_interpreter_exec): ... Rename to ...
13651 (mi_interp::exec): ... this. Remove the 'data' parameter and make
13652 extern. Adjust.
13653 (mi_interpreter_pre_command_loop): ... Rename to ...
13654 (mi_interp::pre_command_loop): ... this. Remove the 'self'
13655 parameter and make extern.
13656 (mi_on_normal_stop_1): Adjust.
13657 (mi_ui_out): Rename to ...
13658 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
13659 parameter and make extern. Adjust.
13660 (mi_set_logging): Rename to ...
13661 (mi_interp::set_logging): ... this. Remove the 'interp'
13662 parameter and make extern. Adjust.
13663 (mi_interp_procs): Delete.
13664 (mi_interp_factory): Adjust to use 'new'.
13665 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
13666 (mi_print_exception, mi_execute_command, mi_load_progress):
13667 Adjust.
13668 * tui/tui-interp.c (tui_interp): New class.
13669 (as_tui_interp): Return a tui_interp pointer.
13670 (tui_on_normal_stop, tui_on_signal_received)
13671 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
13672 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
13673 to use interp::interp_ui_out.
13674 (tui_init): Rename to ...
13675 (tui_interp::init): ... this. Remove the 'self' parameter, use
13676 bool, return void and make extern. Adjust.
13677 (tui_resume): Rename to ...
13678 (tui_interp::resume): ... this. Remove the 'data' parameter,
13679 return void and make extern. Adjust.
13680 (tui_suspend): Rename to ...
13681 (tui_interp::suspend): ... this. Remove the 'data' parameter,
13682 return void and make extern. Adjust.
13683 (tui_ui_out): Rename to ...
13684 (tui_interp::interp_ui_out): ... this. Remove the 'self'
13685 parameter, and make extern. Adjust.
13686 (tui_exec): Rename to ...
13687 (tui_interp::exec): ... this. Remove the 'data' parameter and
13688 make extern.
13689 (tui_interp_procs): Delete.
13690 (tui_interp_factory): Use "new".
13691
13692 2017-02-02 Tom Tromey <tom@tromey.com>
13693
13694 * rust-exp.y (ends_raw_string, space_then_number)
13695 (rust_identifier_start_p): Return bool.
13696 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
13697 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
13698 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
13699 (rust_chartype_p): Return bool.
13700 (val_print_struct, rust_print_struct_def, rust_print_type):
13701 Update.
13702 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
13703 Return bool.
13704
13705 2017-02-02 Tom Tromey <tom@tromey.com>
13706
13707 * rust-lang.c: Reindent.
13708
13709 2017-02-02 Tom Tromey <tom@tromey.com>
13710
13711 * rust-lang.h (rust_crate_for_block): Update.
13712 * rust-lang.c (rust_crate_for_block): Return std::string.
13713 (rust_get_disr_info): Use std:;string, not
13714 gdb::unique_xmalloc_ptr.
13715 * rust-exp.y (crate_name): Update.
13716
13717 2017-02-02 Pedro Alves <palves@redhat.com>
13718
13719 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
13720 field out of gdb_disassembler_test and make it static.
13721
13722 2017-02-02 Pedro Alves <palves@redhat.com>
13723
13724 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
13725 mi1_interp and mi_interp fields.
13726
13727 2017-02-02 Pedro Alves <palves@redhat.com>
13728
13729 * cli/cli-interp.c (struct saved_output_files, saved_output):
13730 Moved from cli/cli-logging.c.
13731 (cli_set_logging): New function.
13732 (cli_interp_procs): Install cli_set_logging.
13733 * cli/cli-interp.h (make_logging_output, cli_set_logging):
13734 Declare.
13735 * cli/cli-logging.c (struct saved_output_files, saved_output):
13736 Moved to cli/cli-interp.c.
13737 (pop_output_files): Don't save outputs here.
13738 (make_logging_output): New function.
13739 (handle_redirections): Don't build tee nor save previous outputs
13740 here.
13741 * interps.c (current_interp_set_logging): Change prototype.
13742 Assume there's always a set_logging_proc method installed.
13743 * interps.h (interp_set_logging_ftype): Change prototype.
13744 (current_interp_set_logging): Change prototype and adjust comment.
13745 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
13746 use make_logging_output.
13747 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
13748 2017-02-02 Pedro Alves <palves@redhat.com>
13749
13750 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
13751 from ...
13752 (set_logging_overwrite): ... here.
13753 (logging_no_redirect_file): Delete.
13754 (set_logging_redirect): Don't handle redirection on the fly.
13755 Instead warn that "logging off" / "logging on" is necessary.
13756 (pop_output_files): Delete references to logging_no_redirect_file.
13757 (show_logging_command): Always speak in terms of what will happen
13758 once logging is reenabled.
13759
13760 2017-02-02 Pedro Alves <palves@redhat.com>
13761
13762 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
13763
13764 2017-02-02 Pedro Alves <palves@redhat.com>
13765
13766 * disasm.c (gdb_pretty_print_insn): Rename to ...
13767 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
13768 Remove gdbarch parameter. Adapt to clear the object's buffers
13769 instead of allocating new buffers, and to print using the object's
13770 gdb_disassembler instead of calling gdb_print_insn.
13771 (dump_insns): Use gdb_pretty_print_disassembler.
13772 * disasm.h (gdb_pretty_print_insn): Delete declaration.
13773 (gdb_pretty_print_disassembler): New class.
13774 * record-btrace.c (btrace_insn_history): Use
13775 gdb_pretty_print_disassembler.
13776
13777 2017-02-02 Pedro Alves <palves@redhat.com>
13778
13779 * ada-lang.c (type_as_string): Use string_file.
13780 * ada-valprint.c (ada_print_floating): Use string_file.
13781 * ada-varobj.c (ada_varobj_scalar_image)
13782 (ada_varobj_get_value_image): Use string_file.
13783 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
13784 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
13785 * breakpoint.c (update_inserted_breakpoint_locations)
13786 (insert_breakpoint_locations, reattach_breakpoints)
13787 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
13788 (print_it_watchpoint): Use string_file.
13789 (save_breakpoints): Use stdio_file.
13790 * c-exp.y (oper): Use string_file.
13791 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
13792 tee_file.
13793 (pop_output_files): Use delete.
13794 (handle_redirections): Use stdio_file and tee_file.
13795 * cli/cli-setshow.c (do_show_command): Use string_file.
13796 * compile/compile-c-support.c (c_compute_program): Use
13797 string_file.
13798 * compile/compile-c-symbols.c (generate_vla_size): Take a
13799 'string_file &' instead of a 'ui_file *'.
13800 (generate_c_for_for_one_variable): Take a 'string_file &' instead
13801 of a 'ui_file *'. Use string_file.
13802 (generate_c_for_variable_locations): Take a 'string_file &'
13803 instead of a 'ui_file *'.
13804 * compile/compile-internal.h (generate_c_for_for_one_variable):
13805 Take a 'string_file &' instead of a 'ui_file *'.
13806 * compile/compile-loc2c.c (push, pushf, unary, binary)
13807 (print_label, pushf_register_address, pushf_register)
13808 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
13809 'ui_file *'. Adjust.
13810 * compile/compile.c (compile_to_object): Use string_file.
13811 * compile/compile.h (compile_dwarf_expr_to_c)
13812 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
13813 'ui_file *'.
13814 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
13815 (replace_typedefs_qualified_name): Use string_file and
13816 obstack_copy0.
13817 * disasm.c (gdb_pretty_print_insn): Use string_file.
13818 (gdb_disassembly): Adjust reference the null_stream global.
13819 (do_ui_file_delete): Delete.
13820 (gdb_insn_length): Use null_stream.
13821 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
13822 * dwarf2loc.c (dwarf2_compile_property_to_c)
13823 (locexpr_generate_c_location, loclist_generate_c_location): Take a
13824 'string_file &' instead of a 'ui_file *'.
13825 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
13826 * dwarf2read.c (do_ui_file_peek_last): Delete.
13827 (dwarf2_compute_name): Use string_file.
13828 * event-top.c (gdb_setup_readline): Use stdio_file.
13829 * gdbarch.sh (verify_gdbarch): Use string_file.
13830 * gdbtypes.c (safe_parse_type): Use null_stream.
13831 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
13832 string_file.
13833 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
13834 'string_file *' instead of a 'ui_file *'.
13835 (gdbscm_arch_disassemble): Use string_file.
13836 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
13837 * guile/scm-ports.c (class ioscm_file_port): Now a class that
13838 inherits from ui_file.
13839 (ioscm_file_port_delete, ioscm_file_port_rewind)
13840 (ioscm_file_port_put): Delete.
13841 (ioscm_file_port_write): Rename to ...
13842 (ioscm_file_port::write): ... this. Remove file_port_magic
13843 checks.
13844 (ioscm_file_port_new): Delete.
13845 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
13846 ui_file_up.
13847 * guile/scm-type.c (tyscm_type_name): Use string_file.
13848 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
13849 Use string_file.
13850 * infcmd.c (print_return_value_1): Use string_file.
13851 * infrun.c (print_target_wait_results): Use string_file.
13852 * language.c (add_language): Use string_file.
13853 * location.c (explicit_to_string_internal): Use string_file.
13854 * main.c (captured_main_1): Use null_file.
13855 * maint.c (maintenance_print_architecture): Use stdio_file.
13856 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
13857 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
13858 event_channel>: Change type to mi_console_file pointer.
13859 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
13860 (mi_console_file_delete): Delete.
13861 (struct mi_console_file): Delete.
13862 (mi_console_file_magic): Delete.
13863 (mi_console_file_new): Delete.
13864 (mi_console_file::mi_console_file): New.
13865 (mi_console_file_delete): Delete.
13866 (mi_console_file_fputs): Delete.
13867 (mi_console_file::write): New.
13868 (mi_console_raw_packet): Delete.
13869 (mi_console_file::flush): New.
13870 (mi_console_file_flush): Delete.
13871 (mi_console_set_raw): Rename to ...
13872 (mi_console_file::set_raw): ... this.
13873 * mi/mi-console.h (class mi_console_file): New class.
13874 (mi_console_file_new, mi_console_set_raw): Delete.
13875 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
13876 (mi_set_logging): Use delete and tee_file. Adjust.
13877 * mi/mi-main.c (output_register): Use string_file.
13878 (mi_cmd_data_evaluate_expression): Use string_file.
13879 (mi_cmd_data_read_memory): Use string_file.
13880 (mi_cmd_execute, print_variable_or_computed): Use string_file.
13881 * mi/mi-out.c (mi_ui_out::main_stream): New.
13882 (mi_ui_out::rewind): Use main_stream and
13883 string_file.
13884 (mi_ui_out::put): Use main_stream and string_file.
13885 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13886 Allocate a 'string_file' instead.
13887 (mi_out_new): Don't allocate a mem_fileopen stream here.
13888 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13889 (mi_ui_out::main_stream): Declare method.
13890 * printcmd.c (eval_command): Use string_file.
13891 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
13892 * python/py-arch.c (archpy_disassemble): Use string_file.
13893 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
13894 * python/py-frame.c (frapy_str): Use string_file.
13895 * python/py-framefilter.c (py_print_type, py_print_single_arg):
13896 Use string_file.
13897 * python/py-type.c (typy_str): Use string_file.
13898 * python/py-unwind.c (unwind_infopy_str): Use string_file.
13899 * python/py-value.c (valpy_str): Use string_file.
13900 * record-btrace.c (btrace_insn_history): Use string_file.
13901 * regcache.c (regcache_print): Use stdio_file.
13902 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
13903 * remote.c (escape_buffer): Use string_file.
13904 * rust-lang.c (rust_get_disr_info): Use string_file.
13905 * serial.c (serial_open_ops_1): Use stdio_file.
13906 (do_serial_close): Use delete.
13907 * stack.c (print_frame_arg): Use string_file.
13908 (print_frame_args): Remove local mem_fileopen stream, not used.
13909 (print_frame): Use string_file.
13910 * symmisc.c (maintenance_print_symbols): Use stdio_file.
13911 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
13912 Take a 'string_file *' instead of a 'ui_file *'.
13913 * top.c (new_ui): Use stdio_file and stderr_file.
13914 (free_ui): Use delete.
13915 (execute_command_to_string): Use string_file.
13916 (quit_confirm): Use string_file.
13917 * tracepoint.c (collection_list::append_exp): Use string_file.
13918 * tui/tui-disasm.c (tui_disassemble): Use string_file.
13919 * tui/tui-file.c: Don't include "ui-file.h".
13920 (enum streamtype, struct tui_stream): Delete.
13921 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
13922 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
13923 (tui_file::tui_file): New method.
13924 (tui_file_fputs): Delete.
13925 (tui_file_get_strbuf): Delete.
13926 (tui_file::puts): New method.
13927 (tui_file_adjust_strbuf): Delete.
13928 (tui_file_flush): Delete.
13929 (tui_file::flush): New method.
13930 * tui/tui-file.h: Tweak intro comment.
13931 Include ui-file.h.
13932 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
13933 (tui_file_adjust_strbuf): Delete declarations.
13934 (class tui_file): New class.
13935 * tui/tui-io.c (tui_initialize_io): Use tui_file.
13936 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
13937 (tui_register_format): Use string_stream.
13938 * tui/tui-stack.c (tui_make_status_line): Use string_file.
13939 (tui_get_function_from_frame): Use string_file.
13940 * typeprint.c (type_to_string): Use string_file.
13941 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
13942 (null_stream): New global.
13943 (ui_file_delete): Delete.
13944 (ui_file::ui_file): New.
13945 (null_file_isatty): Delete.
13946 (ui_file::~ui_file): New.
13947 (null_file_rewind): Delete.
13948 (ui_file::printf): New.
13949 (null_file_put): Delete.
13950 (null_file_flush): Delete.
13951 (ui_file::putstr): New.
13952 (null_file_write): Delete.
13953 (ui_file::putstrn): New.
13954 (null_file_read): Delete.
13955 (ui_file::putc): New.
13956 (null_file_fputs): Delete.
13957 (null_file_write_async_safe): Delete.
13958 (ui_file::vprintf): New.
13959 (null_file_delete): Delete.
13960 (null_file::write): New.
13961 (null_file_fseek): Delete.
13962 (null_file::puts): New.
13963 (ui_file_data): Delete.
13964 (null_file::write_async_safe): New.
13965 (gdb_flush, ui_file_isatty): Adjust.
13966 (ui_file_put, ui_file_rewind): Delete.
13967 (ui_file_write): Adjust.
13968 (ui_file_write_for_put): Delete.
13969 (ui_file_write_async_safe, ui_file_read): Adjust.
13970 (ui_file_fseek): Delete.
13971 (fputs_unfiltered): Adjust.
13972 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13973 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13974 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13975 (set_ui_file_data): Delete.
13976 (string_file::~string_file, string_file::write)
13977 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13978 (do_ui_file_as_string, ui_file_as_string): Delete.
13979 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13980 (struct mem_file): Delete.
13981 (mem_file_new): Delete.
13982 (stdio_file::stdio_file): New.
13983 (mem_file_delete): Delete.
13984 (stdio_file::stdio_file): New.
13985 (mem_fileopen): Delete.
13986 (stdio_file::~stdio_file): New.
13987 (mem_file_rewind): Delete.
13988 (stdio_file::set_stream): New.
13989 (mem_file_put): Delete.
13990 (stdio_file::open): New.
13991 (mem_file_write): Delete.
13992 (stdio_file_magic, struct stdio_file): Delete.
13993 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13994 (stdio_file::flush): New.
13995 (stdio_file_read): Rename to ...
13996 (stdio_file::read): ... this. Adjust.
13997 (stdio_file_write): Rename to ...
13998 (stdio_file::write): ... this. Adjust.
13999 (stdio_file_write_async_safe): Rename to ...
14000 (stdio_file::write_async_safe) ... this. Adjust.
14001 (stdio_file_fputs): Rename to ...
14002 (stdio_file::puts) ... this. Adjust.
14003 (stdio_file_isatty): Delete.
14004 (stdio_file_fseek): Delete.
14005 (stdio_file::isatty): New.
14006 (stderr_file_write): Rename to ...
14007 (stderr_file::write) ... this. Adjust.
14008 (stderr_file_fputs): Rename to ...
14009 (stderr_file::puts) ... this. Adjust.
14010 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
14011 (stderr_file::stderr_file): New.
14012 (tee_file_magic): Delete.
14013 (struct tee_file): Delete.
14014 (tee_file::tee_file): New.
14015 (tee_file_new): Delete.
14016 (tee_file::~tee_file): New.
14017 (tee_file_delete): Delete.
14018 (tee_file_flush): Rename to ...
14019 (tee_file::flush): ... this. Adjust.
14020 (tee_file_write): Rename to ...
14021 (tee_file::write): ... this. Adjust.
14022 (tee_file::write_async_safe): New.
14023 (tee_file_fputs): Rename to ...
14024 (tee_file::puts): ... this. Adjust.
14025 (tee_file_isatty): Rename to ...
14026 (tee_file::isatty): ... this. Adjust.
14027 * ui-file.h (struct obstack, struct ui_file): Don't
14028 forward-declare.
14029 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
14030 (ui_file_write_ftype)
14031 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
14032 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
14033 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
14034 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
14035 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
14036 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
14037 (set_ui_file_fseek): Delete.
14038 (ui_file_data, ui_file_delete, ui_file_rewind)
14039 (struct ui_file): New.
14040 (ui_file_up): New.
14041 (class null_file): New.
14042 (null_stream): Declare.
14043 (ui_file_write_for_put, ui_file_put): Delete.
14044 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
14045 Delete.
14046 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
14047 (gdb_fopen, tee_file_new): Delete.
14048 (struct string_file): New.
14049 (struct stdio_file): New.
14050 (stdio_file_up): New.
14051 (struct stderr_file): New.
14052 (class tee_file): New.
14053 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
14054 of a 'ui_file *'. Adjust.
14055 * ui-out.h (class ui_out) <field_stream>: Likewise.
14056 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
14057 (null_stream): Delete.
14058 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
14059 Adjust.
14060 * utils.h (struct ui_file): Delete forward declaration..
14061 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
14062 (error_stream): Take a 'string_file &' instead of a
14063 'ui_file *'.
14064 * varobj.c (varobj_value_get_print_value): Use string_file.
14065 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
14066 * gdbarch.c: Regenerate.
14067
14068 2017-02-02 Pedro Alves <palves@redhat.com>
14069
14070 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
14071 (gdb_pretty_print_insn): ... this. Now a free function. Add back
14072 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
14073 Adjust to call gdb_print_insn instead of
14074 gdb_disassembler::print_insn.
14075 (dump_insns, do_mixed_source_and_assembly_deprecated)
14076 (do_mixed_source_and_assembly, do_assembly_only): Add back a
14077 'gdbarch' parameter. Remove gdb_disassembler parameter.
14078 (gdb_disassembly): Don't allocate a gdb_disassembler here.
14079 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
14080 declaration.
14081 (gdb_pretty_print_insn): Re-add declaration.
14082 * record-btrace.c (btrace_insn_history): Don't allocate a
14083 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
14084
14085 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
14086
14087 * disasm.h (gdb_disassembly): Remove file_string parameter.
14088 * disasm.c (gdb_disassembly): Likewise.
14089 * cli/cli-cmds.c (print_disassembly): Adapt.
14090 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
14091 * stack.c (do_gdb_disassembly): Likewise.
14092
14093 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
14094
14095 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
14096 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
14097 targets. And if the implicit value is longer than needed, extract
14098 the first bytes instead of the "least significant" ones.
14099
14100 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
14101
14102 * btrace.c (btrace_enable): Do not call btrace_add_pc for
14103 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
14104 (btrace_fetch): Assert can_access_registers_ptid.
14105 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
14106 validate_registers_access.
14107
14108 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
14109
14110 * gdbthread.h (can_access_registers_ptid): New.
14111 * thread.c (can_access_registers_ptid): New.
14112
14113 2017-02-01 Pedro Alves <palves@redhat.com>
14114
14115 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
14116
14117 2017-01-31 Pedro Alves <palves@redhat.com>
14118
14119 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
14120 Fix typos.
14121
14122 2017-01-31 Pedro Alves <palves@redhat.com>
14123
14124 * stack.c (print_frame_args): Remove local mem_fileopen stream,
14125 not used.
14126
14127 2017-01-31 Pedro Alves <palves@redhat.com>
14128
14129 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
14130
14131 2017-01-31 Pedro Alves <palves@redhat.com>
14132
14133 * common/scoped_restore.h
14134 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
14135 change the value's parameter type to T2.
14136 (make_scoped_restore): Likewise.
14137
14138 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14139 Richard Henderson <rth@redhat.com>
14140
14141 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
14142 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
14143 GS_BASE for older kernels.
14144 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
14145 GS_BASE for older kernels.
14146 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
14147 and GS_BASE to the offset table.
14148 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
14149 system register group.
14150 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
14151 for older kernels.
14152 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
14153 amd64 ABI.
14154 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
14155 AMD64_GSBASE_REGNUM.
14156 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
14157 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
14158 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
14159 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
14160 i386/64bit-segments.xml in those rules.
14161 * features/i386/64bit-segments.xml: New file.
14162 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
14163 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
14164 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
14165 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
14166 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
14167 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
14168 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
14169 * features/i386/amd64-avx-linux.c: Regenerated.
14170 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
14171 * features/i386/amd64-avx-mpx.c: Regenerated.
14172 * features/i386/amd64-avx512-linux.c: Regenerated.
14173 * features/i386/amd64-linux.c: Regenerated.
14174 * features/i386/amd64-mpx-linux.c: Regenerated.
14175 * features/i386/i386-avx-mpx-linux.c: Regenerated.
14176 * features/i386/i386-avx-mpx.c: Regenerated.
14177 * features/i386/x32-avx-linux.c: Regenerated.
14178 * features/i386/x32-avx512-linux.c: Regenerated.
14179 * regformats/i386/amd64-avx-linux.dat: Regenerated.
14180 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
14181 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
14182 * regformats/i386/amd64-linux.dat: Regenerated.
14183 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
14184 * regformats/i386/x32-avx-linux.dat: Regenerated.
14185 * regformats/i386/x32-avx512-linux.dat: Regenerated.
14186 * regformats/i386/x32-linux.dat: Regenerated.
14187
14188 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14189
14190 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
14191 Set to AMD64_NUM_REGS.
14192
14193 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14194
14195 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
14196 that checks validity of a register number.
14197
14198 2017-01-27 Kees Cook <keescook@google.com>
14199
14200 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
14201 fetch_fpregs if target has fpa registers.
14202 (arm_linux_store_inferior_registers): Call store_fpregs if target
14203 has fpa registers.
14204
14205 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
14206
14207 * cris-tdep.c (cris_gdbarch_init): Remove check for
14208 info.byte_order and force it to BFD_ENDIAN_LITTLE.
14209
14210 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
14211
14212 * corelow.c (get_core_register_section): Check for regset
14213 existence before checking for REGSET_VARIABLE_SIZE.
14214
14215 2017-01-26 Yao Qi <yao.qi@linaro.org>
14216 Pedro Alves <palves@redhat.com>
14217
14218 PR gdb/20939
14219 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
14220 call memory_error, save memaddr instead.
14221 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
14222 negative, cal memory_error.
14223 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
14224
14225 2017-01-26 Yao Qi <yao.qi@linaro.org>
14226
14227 * disasm-selftests.c (memory_error_test): New function.
14228 (_initialize_disasm_selftests): Register memory_error_test.
14229
14230 2017-01-26 Yao Qi <yao.qi@linaro.org>
14231
14232 * Makefile.in (SFILES): Add disasm-selftests.c and
14233 selftest-arch.c.
14234 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
14235 * disasm-selftests.c: New file.
14236 * selftest-arch.c: New file.
14237 * selftest-arch.h: New file.
14238
14239 2017-01-26 Yao Qi <yao.qi@linaro.org>
14240
14241 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
14242 to bfd_arch_mep. Don't return 0 if section is not
14243 found. Call print_insn_mep.
14244
14245 2017-01-26 Pedro Alves <palves@redhat.com>
14246 Yao Qi <yao.qi@linaro.org>
14247
14248 * arm-tdep.c: Include "disasm.h".
14249 (gdb_print_insn_arm): Update code to get gdbarch.
14250 * disasm.c (dis_asm_read_memory): Change it to
14251 gdb_disassembler::dis_asm_read_memory.
14252 (dis_asm_memory_error): Likewise.
14253 (dis_asm_print_address): Likewise.
14254 (gdb_pretty_print_insn): Change it to
14255 gdb_disassembler::pretty_print_insn.
14256 (dump_insns): Add one argument gdb_disassemlber. All
14257 callers updated.
14258 (do_mixed_source_and_assembly_deprecated): Likewise.
14259 (do_mixed_source_and_assembly): Likewise.
14260 (do_assembly_only): Likewise.
14261 (gdb_disassembler::gdb_disassembler): New.
14262 (gdb_disassembler::print_insn): New.
14263 * disasm.h (class gdb_disassembler): New.
14264 (gdb_pretty_print_insn): Remove declaration.
14265 (gdb_disassemble_info): Likewise.
14266 * guile/scm-disasm.c (class gdbscm_disassembler): New.
14267 (gdbscm_disasm_read_memory_worker): Update.
14268 (gdbscm_disasm_read_memory): Update.
14269 (gdbscm_disasm_memory_error): Remove.
14270 (gdbscm_disasm_print_address): Remove.
14271 (gdbscm_disassembler::gdbscm_disassembler): New.
14272 (gdbscm_print_insn_from_port): Update.
14273 * mips-tdep.c: Include disasm.h.
14274 (gdb_print_insn_mips): Update code to get gdbarch.
14275 * record-btrace.c (btrace_insn_history): Update.
14276 * spu-tdep.c: Include disasm.h.
14277 (struct spu_dis_asm_data): Remove.
14278 (struct spu_dis_asm_info): New.
14279 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
14280 SPU id.
14281 (gdb_print_insn_spu): Cast disassemble_info to
14282 spu_dis_asm_info.
14283
14284 2017-01-26 Yao Qi <yao.qi@linaro.org>
14285
14286 * disasm.c (do_ui_file_delete): Delete.
14287 (gdb_insn_length): Move code creating stream to ...
14288 * utils.c (null_stream): ... here. New function.
14289 * utils.h (null_stream): Declare.
14290
14291 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14292
14293 * python/py-inferior.c (find_thread_object): Return directly
14294 from the loop. Remove "found" variable.
14295
14296 2017-01-21 Joel Brobecker <brobecker@adacore.com>
14297
14298 GDB 7.12.1 released.
14299
14300 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14301
14302 * python/py-function.c (fnpy_call): Reorder declarations to have
14303 the gdbpy_enter object declared first.
14304 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
14305
14306 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14307
14308 PR python/21068
14309 * python/python-internal.h (PyMem_RawMalloc): Define for
14310 Python < 3.4.
14311 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
14312 PyMem_RawMalloc instead of PyMem_Malloc.
14313
14314 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
14315 Luis Machado <lgustavo@codesourcery.com>
14316
14317 * NEWS (New commands): Mention flash-erase.
14318 (New MI commands): Mention target-flash-erase.
14319 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
14320 command.
14321 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
14322 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
14323 * target.c (flash_erase_command): New function.
14324 (initialize_targets): Add new flash-erase command.
14325 * target.h (flash_erase_command): New declaration.
14326
14327 2017-01-20 Joel Brobecker <brobecker@adacore.com>
14328
14329 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
14330 HAVE_SYS_PROCFS_H is defined.
14331
14332 2017-01-18 Alan Hayward <alan.hayward@arm.com>
14333
14334 * remote.c (struct cached_reg): Change data into a pointer.
14335 * (stop_reply_dtr): Free data pointers before deleting vector.
14336 (process_stop_reply): Likewise.
14337 (remote_parse_stop_reply): Allocate space for data
14338
14339 2017-01-18 Alan Hayward <alan.hayward@arm.com>
14340
14341 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
14342 MAX_REGISTER_SIZE.
14343 (amd64_pseudo_register_read_value): Likewise.
14344 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
14345 (store_register_using_P): Likewise.
14346 * regcache.c (regcache_xfer_part): Likewise.
14347
14348 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
14349
14350 Split real and pseudo registers.
14351 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
14352 (sparc32_pseudo_regnum): New enum.
14353 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
14354 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
14355 (SPARC32_CP0_REGISTERS): New macro.
14356 (sparc32_pseudo_register_name): New function.
14357 (sparc32_register_name): Use sparc32_pseudo_register_name.
14358 (sparc32_pseudo_register_type): New function.
14359 (sparc32_register_type): Use sparc32_pseudo_register_type.
14360 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
14361 pseudo register numbers.
14362 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
14363 (SPARC64_CP0_REGISTERS): New macro.
14364 (sparc64_pseudo_register_name): New function.
14365 (sparc64_register_name): Use sparc64_pseudo_register_name.
14366 (sparc64_pseudo_register_type): New function.
14367 (sparc64_register_type): Use sparc64_pseudo_register_type.
14368 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
14369 pseudo register numbers.
14370 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
14371 sparc64_store_arguments): Handle pseudo register numbers.
14372
14373 2017-01-13 Yao Qi <yao.qi@linaro.org>
14374
14375 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
14376 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
14377 output.
14378 (getpkt_or_notif_sane_1): Likewise.
14379
14380 2017-01-13 Yao Qi <yao.qi@linaro.org>
14381
14382 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
14383 of CC. Pass "-x c++-header" instead of "-x c".
14384
14385 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14386
14387 * remote.c (remote_can_async_p): Update comment.
14388
14389 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14390
14391 * linux-nat.c (linux_nat_can_async_p): Update comment.
14392
14393 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14394
14395 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
14396
14397 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
14398
14399 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
14400
14401 2017-01-10 Tom Tromey <tom@tromey.com>
14402
14403 * python/py-type.c (typy_legacy_template_argument): Update.
14404 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
14405 ~demangle_parse_info): Declare new members.
14406 (cp_demangled_name_to_comp): Return unique_ptr.
14407 (cp_demangled_name_parse_free)
14408 (make_cleanup_cp_demangled_name_parse_free)
14409 (cp_new_demangle_parse_info): Remove.
14410 * cp-support.c (do_demangled_name_parse_free_cleanup)
14411 (make_cleanup_cp_demangled_name_parse_free): Remove.
14412 (inspect_type, cp_canonicalize_string_full)
14413 (cp_canonicalize_string): Update.
14414 (mangled_name_to_comp): Change return type.
14415 (cp_class_name_from_physname, method_name_from_physname)
14416 (cp_func_name, cp_remove_params): Update.
14417 * cp-name-parser.y (demangle_parse_info): New constructor, from
14418 cp_new_demangle_parse_info.
14419 (~demangle_parse_info): New destructor, from
14420 cp_demangled_name_parse_free.
14421 (cp_merge_demangle_parse_infos): Update.
14422 (cp_demangled_name_to_comp): Change return type.
14423
14424 2017-01-10 Tom Tromey <tom@tromey.com>
14425
14426 * top.c (prevent_dont_repeat): Change return type.
14427 * python/python.c (execute_gdb_command): Use std::string.
14428 Update.
14429 * guile/guile.c (gdbscm_execute_gdb_command): Update.
14430 * command.h (prevent_dont_repeat): Change return type.
14431 * breakpoint.c (bpstat_do_actions_1): Update.
14432
14433 2017-01-10 Tom Tromey <tom@tromey.com>
14434
14435 * value.h (scoped_value_mark::~scoped_value_mark): Call
14436 free_to_mark.
14437 (scoped_value_mark::free_to_mark): New method.
14438 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
14439 scoped_value_mark.
14440
14441 2017-01-10 Tom Tromey <tom@tromey.com>
14442
14443 * python/py-value.c (valpy_dereference, valpy_referenced_value)
14444 (valpy_reference_value, valpy_const_value, valpy_get_address)
14445 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
14446 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
14447 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
14448 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
14449 scoped_value_mark.
14450 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
14451 * value.h (scoped_value_mark): New class.
14452
14453 2017-01-10 Tom Tromey <tom@tromey.com>
14454
14455 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
14456 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
14457 * psymtab.c (discard_psymtabs_upto): Remove.
14458 (make_cleanup_discard_psymtabs): Remove.
14459 (struct psymtab_state): Remove.
14460
14461 2017-01-10 Tom Tromey <tom@tromey.com>
14462
14463 * record-full.c (record_full_save_cleanups): Remove.
14464 (record_full_save): Use gdb::unlinker.
14465 * gcore.c (do_bfd_delete_cleanup): Remove.
14466 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
14467 cleanups.
14468 * dwarf2read.c (unlink_if_set): Remove.
14469 (write_psymtabs_to_index): Use gdb::unlinker.
14470 * common/gdb_unlinker.h: New file.
14471
14472 2017-01-10 Tom Tromey <tom@tromey.com>
14473
14474 * windows-tdep.c (windows_xfer_shared_library): Update.
14475 * windows-nat.c (windows_make_so): Update.
14476 * utils.h (make_cleanup_bfd_unref): Remove.
14477 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
14478 * symfile.h (symfile_bfd_open)
14479 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
14480 * symfile.c (read_symbols, symbol_file_add)
14481 (separate_debug_file_exists): Update.
14482 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
14483 (generic_load, reread_symbols): Update.
14484 * symfile-mem.c (symbol_file_add_from_memory): Update.
14485 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
14486 (spu_symbol_file_add_from_memory): Update.
14487 * solist.h (struct target_so_ops) <bfd_open>: Return
14488 gdb_bfd_ref_ptr.
14489 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
14490 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
14491 gdb_bfd_ref_ptr.
14492 (solib_map_sections, reload_shared_libraries_1): Update.
14493 * solib-svr4.c (enable_break): Update.
14494 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
14495 * solib-frv.c (enable_break2): Update.
14496 * solib-dsbt.c (enable_break): Update.
14497 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
14498 gdb_bfd_ref_ptr.
14499 (darwin_solib_get_all_image_info_addr_at_init): Update.
14500 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
14501 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
14502 * record-full.c (record_full_save): Update.
14503 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
14504 * procfs.c (insert_dbx_link_bpt_in_file): Update.
14505 * minidebug.c (find_separate_debug_file_in_section): Return
14506 gdb_bfd_ref_ptr.
14507 * machoread.c (macho_add_oso_symfile): Change abfd to
14508 gdb_bfd_ref_ptr.
14509 (macho_symfile_read_all_oso): Update.
14510 (macho_check_dsym): Return gdb_bfd_ref_ptr.
14511 (macho_symfile_read): Update.
14512 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
14513 (jit_bfd_try_read_symtab): Update.
14514 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
14515 (gdb_bfd_openw, gdb_bfd_openr_iovec)
14516 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
14517 gdb_bfd_ref_ptr.
14518 (gdb_bfd_ref_policy): New struct.
14519 (gdb_bfd_ref_ptr): New typedef.
14520 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
14521 (gdb_bfd_openw, gdb_bfd_openr_iovec)
14522 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
14523 gdb_bfd_ref_ptr.
14524 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
14525 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
14526 (gcore_command): Update.
14527 * exec.c (exec_file_attach): Update.
14528 * elfread.c (elf_symfile_read): Update.
14529 * dwarf2read.c (dwarf2_get_dwz_file): Update.
14530 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
14531 (open_and_init_dwo_file): Update.
14532 (open_dwp_file): Return gdb_bfd_ref_ptr.
14533 (open_and_init_dwp_file): Update.
14534 * corelow.c (core_open): Update.
14535 * compile/compile-object-load.c (compile_object_load): Update.
14536 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
14537 * coffread.c (coff_symfile_read): Update.
14538 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
14539 gdb_bfd_ref_ptr. Rename.
14540 (dump_bfd_file, restore_command): Update.
14541 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
14542 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
14543 (find_separate_debug_file_by_buildid): Update.
14544
14545 2017-01-10 Tom Tromey <tom@tromey.com>
14546
14547 * common/gdb_ref_ptr.h: New file.
14548 * python/py-ref.h (struct gdbpy_ref_policy): New.
14549 (gdbpy_ref): Now a typedef.
14550
14551 2017-01-10 Tom Tromey <tom@tromey.com>
14552
14553 * utils.h (make_cleanup_htab_delete): Don't declare.
14554 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
14555 Remove.
14556 * linespec.c (decode_compound_collector): Add constructor,
14557 destructor.
14558 (lookup_prefix_sym): Remove cleanup.
14559 (symtab_collector): Add constructor, destructor.
14560 (collect_symtabs_from_filename): Remove cleanup.
14561 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
14562 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
14563 Use htab_up.
14564 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
14565 * dwarf2read.c (dw2_expand_symtabs_matching)
14566 (dw2_map_symbol_filenames, dwarf_decode_macros)
14567 (write_psymtabs_to_index): Use htab_up.
14568 * dwarf2loc.c (func_verify_no_selftailcall)
14569 (call_site_find_chain_1, func_verify_no_selftailcall)
14570 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
14571 std::vector, gdb::unique_xmalloc_ptr.
14572 (call_sitep): Remove typedef.
14573 (dwarf2_locexpr_baton_eval): Remove unused variable.
14574
14575 2017-01-10 Tom Tromey <tom@tromey.com>
14576
14577 * python/python-internal.h (make_cleanup_py_decref)
14578 (make_cleanup_py_xdecref): Don't declare.
14579 * python/py-utils.c (py_decref, make_cleanup_py_decref)
14580 (py_xdecref, make_cleanup_py_xdecref): Remove.
14581
14582 2017-01-10 Tom Tromey <tom@tromey.com>
14583
14584 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
14585 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
14586
14587 2017-01-10 Tom Tromey <tom@tromey.com>
14588
14589 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
14590
14591 2017-01-10 Tom Tromey <tom@tromey.com>
14592
14593 * python/py-utils.c (unicode_to_encoded_string)
14594 (python_string_to_target_string)
14595 (python_string_to_target_python_string)
14596 (python_string_to_host_string, gdbpy_obj_to_string)
14597 (get_addr_from_python): Use gdbpy_ref.
14598
14599 2017-01-10 Tom Tromey <tom@tromey.com>
14600
14601 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
14602 gdbpy_ref.
14603
14604 2017-01-10 Tom Tromey <tom@tromey.com>
14605
14606 * python/python.c (eval_python_command, gdbpy_decode_line)
14607 (gdbpy_run_events, gdbpy_start_type_printers)
14608 (gdbpy_apply_type_printers): Use gdbpy_ref.
14609
14610 2017-01-10 Tom Tromey <tom@tromey.com>
14611
14612 * python/py-param.c (get_doc_string, compute_enum_values): Use
14613 gdbpy_ref.
14614
14615 2017-01-10 Tom Tromey <tom@tromey.com>
14616
14617 * python/py-inferior.c (find_thread_object, build_inferior_list):
14618 Use gdbpy_ref.
14619
14620 2017-01-10 Tom Tromey <tom@tromey.com>
14621
14622 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14623
14624 2017-01-10 Tom Tromey <tom@tromey.com>
14625
14626 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
14627 gdbpy_ref.
14628
14629 2017-01-10 Tom Tromey <tom@tromey.com>
14630
14631 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
14632 extra incref.
14633 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
14634 Use gdbpy_ref.
14635
14636 2017-01-10 Tom Tromey <tom@tromey.com>
14637
14638 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14639 gdbpy_ref.
14640
14641 2017-01-10 Tom Tromey <tom@tromey.com>
14642
14643 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
14644 decref results of PyArg_ParseTupleAndKeywords.
14645
14646 2017-01-10 Tom Tromey <tom@tromey.com>
14647
14648 * python/python.c (python_run_simple_file): Use
14649 unique_xmalloc_ptr, gdbpy_ref.
14650
14651 2017-01-10 Tom Tromey <tom@tromey.com>
14652
14653 * python/py-prettyprint.c (print_stack_unless_memory_error)
14654 (print_string_repr, print_children): Use gdbpy_ref.
14655 (dummy_python_frame): New class.
14656 (dummy_python_frame::dummy_python_frame): Rename from
14657 push_dummy_python_frame.
14658 (py_restore_tstate): Remove.
14659
14660 2017-01-10 Tom Tromey <tom@tromey.com>
14661
14662 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14663
14664 2017-01-10 Tom Tromey <tom@tromey.com>
14665
14666 * python/python.c (ensure_python_env, restore_python_env):
14667 Remove.
14668 * python/python-internal.h (ensure_python_env): Don't declare.
14669 * varobj.h (varobj_ensure_python_env): Don't declare.
14670 * varobj.c (varobj_ensure_python_env): Remove.
14671
14672 2017-01-10 Tom Tromey <tom@tromey.com>
14673
14674 * varobj.c (varobj_value_get_print_value): Use
14675 gdbpy_enter_varobj.
14676
14677 2017-01-10 Tom Tromey <tom@tromey.com>
14678
14679 * python/py-prettyprint.c (print_string_repr, print_children):
14680 Update.
14681 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
14682 of "encoding".
14683 * varobj.c (varobj_value_get_print_value): Update.
14684 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
14685
14686 2017-01-10 Tom Tromey <tom@tromey.com>
14687
14688 * varobj.c (varobj_get_display_hint)
14689 (dynamic_varobj_has_child_method, install_new_value_visualizer)
14690 (varobj_set_visualizer, free_variable): Use
14691 gdbpy_enter_varobj.
14692
14693 2017-01-10 Tom Tromey <tom@tromey.com>
14694
14695 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
14696 (do_finish_initialization): New function. Use gdbpy_ref.
14697 (gdbpy_finish_initialization): Use gdbpy_enter. Call
14698 do_finish_initialization.
14699
14700 2017-01-10 Tom Tromey <tom@tromey.com>
14701
14702 * python/py-param.c (get_set_value, get_show_value): Use
14703 gdbpy_enter, gdbpy_ref.
14704
14705 2017-01-10 Tom Tromey <tom@tromey.com>
14706
14707 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
14708
14709 2017-01-10 Tom Tromey <tom@tromey.com>
14710
14711 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
14712
14713 2017-01-10 Tom Tromey <tom@tromey.com>
14714
14715 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
14716 Use gdbpy_enter_varobj.
14717
14718 2017-01-10 Tom Tromey <tom@tromey.com>
14719
14720 * varobj.c (gdbpy_enter_varobj): New constructor.
14721 * python/python-internal.h (gdbpy_enter_varobj): New class.
14722 * python/py-varobj.c (py_varobj_get_iterator): Use
14723 gdbpy_enter_varobj.
14724
14725 2017-01-10 Tom Tromey <tom@tromey.com>
14726
14727 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
14728 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14729 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
14730 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
14731 unique_xmalloc_ptr.
14732 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
14733
14734 2017-01-10 Tom Tromey <tom@tromey.com>
14735
14736 * python/py-xmethods.c (invoke_match_method): Use
14737 gdbpy_ref.
14738
14739 2017-01-10 Tom Tromey <tom@tromey.com>
14740
14741 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
14742 gdbpy_enter, gdbpy_ref.
14743
14744 2017-01-10 Tom Tromey <tom@tromey.com>
14745
14746 * python/python.c (python_interactive_command): Use gdbpy_enter.
14747
14748 2017-01-10 Tom Tromey <tom@tromey.com>
14749
14750 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
14751 gdbpy_ref.
14752
14753 2017-01-10 Tom Tromey <tom@tromey.com>
14754
14755 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
14756 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14757
14758 2017-01-10 Tom Tromey <tom@tromey.com>
14759
14760 * utils.h (htab_deleter): New struct.
14761 (htab_up): New typedef.
14762 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
14763 gdbpy_enter, gdbpy_ref, htab_up.
14764
14765 2017-01-10 Tom Tromey <tom@tromey.com>
14766
14767 * python/py-unwind.c (pending_frame_invalidate): Remove.
14768 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
14769
14770 2017-01-10 Tom Tromey <tom@tromey.com>
14771
14772 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
14773 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
14774
14775 2017-01-10 Tom Tromey <tom@tromey.com>
14776
14777 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
14778
14779 2017-01-10 Tom Tromey <tom@tromey.com>
14780
14781 * python/python.c (gdbpy_eval_from_control_command)
14782 (gdbpy_source_script, gdbpy_run_events)
14783 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
14784 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
14785 gdbpy_enter.
14786
14787 2017-01-10 Tom Tromey <tom@tromey.com>
14788
14789 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
14790
14791 2017-01-10 Tom Tromey <tom@tromey.com>
14792
14793 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
14794
14795 2017-01-10 Tom Tromey <tom@tromey.com>
14796
14797 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
14798 (python_on_inferior_call_pre, python_on_inferior_call_post)
14799 (python_on_memory_change, python_on_register_change)
14800 (python_inferior_exit, python_new_objfile, add_thread_object)
14801 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
14802
14803 2017-01-10 Tom Tromey <tom@tromey.com>
14804
14805 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
14806 (bpfinishpy_handle_exit): Use gdbpy_enter.
14807
14808 2017-01-10 Tom Tromey <tom@tromey.com>
14809
14810 * python/py-cmd.c (cmdpy_destroyer)
14811 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
14812 gdbpy_enter.
14813
14814 2017-01-10 Tom Tromey <tom@tromey.com>
14815
14816 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14817 gdbpy_enter.
14818 (gdbpy_breakpoint_has_cond): Likewise.
14819
14820 2017-01-10 Tom Tromey <tom@tromey.com>
14821
14822 * python/python.c (gdbpy_enter): New constructor.
14823 (~gdbpy_enter): New destructor.
14824 (restore_python_env, ensure_python_env): Rewrite.
14825 * python/python-internal.h (gdbpy_enter): New class.
14826
14827 2017-01-10 Tom Tromey <tom@tromey.com>
14828
14829 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
14830
14831 2017-01-10 Tom Tromey <tom@tromey.com>
14832
14833 * python/py-value.c (value_has_field, get_field_flag)
14834 (get_field_type, valpy_getitem, convert_value_from_python): Use
14835 gdbpy_ref.
14836
14837 2017-01-10 Tom Tromey <tom@tromey.com>
14838
14839 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
14840 gdbpy_ref.
14841
14842 2017-01-10 Tom Tromey <tom@tromey.com>
14843
14844 * python/py-prettyprint.c (search_pp_list)
14845 (find_pretty_printer_from_objfiles)
14846 (find_pretty_printer_from_progspace)
14847 (find_pretty_printer_from_gdb, find_pretty_printer)
14848 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
14849 gdbpy_ref.
14850
14851 2017-01-10 Tom Tromey <tom@tromey.com>
14852
14853 * python/py-param.c (call_doc_function): Use gdbpy_ref.
14854
14855 2017-01-10 Tom Tromey <tom@tromey.com>
14856
14857 * python/py-linetable.c (build_line_table_tuple_from_pcs)
14858 (ltpy_get_all_source_lines): Use gdbpy_ref.
14859
14860 2017-01-10 Tom Tromey <tom@tromey.com>
14861
14862 * python/py-framefilter.c (extract_sym, extract_value)
14863 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
14864 gdbpy_ref.
14865
14866 2017-01-10 Tom Tromey <tom@tromey.com>
14867
14868 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
14869
14870 2017-01-10 Tom Tromey <tom@tromey.com>
14871
14872 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
14873
14874 2017-01-10 Tom Tromey <tom@tromey.com>
14875
14876 * python/py-function.c (convert_values_to_python, fnpy_init): Use
14877 gdbpy_ref.
14878
14879 2017-01-10 Tom Tromey <tom@tromey.com>
14880
14881 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
14882
14883 2017-01-10 Tom Tromey <tom@tromey.com>
14884
14885 * python/py-type.c (convert_field, make_fielditem, typy_fields)
14886 (typy_range): Use gdbpy_ref.
14887
14888 2017-01-10 Tom Tromey <tom@tromey.com>
14889
14890 * python/py-threadevent.c (create_thread_event_object): Use
14891 gdbpy_ref.
14892 * python/py-stopevent.c (create_stop_event_object): Simplify.
14893 (emit_stop_event): Use gdbpy_ref.
14894 * python/py-signalevent.c (create_signal_event_object): Use
14895 gdbpy_ref.
14896 * python/py-newobjfileevent.c (create_new_objfile_event_object)
14897 (emit_new_objfile_event, create_clear_objfiles_event_object)
14898 (emit_clear_objfiles_event): Use gdbpy_ref.
14899 * python/py-infevents.c (create_inferior_call_event_object)
14900 (create_register_changed_event_object)
14901 (create_memory_changed_event_object, emit_inferior_call_event)
14902 (emit_memory_changed_event, emit_register_changed_event): Use
14903 gdbpy_ref.
14904 * python/py-exitedevent.c (create_exited_event_object)
14905 (emit_exited_event): Use gdbpy_ref.
14906 * python/py-event.h (evpy_emit_event): Remove
14907 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
14908 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
14909 * python/py-continueevent.c (emit_continue_event): Use
14910 gdbpy_ref.
14911 * python/py-breakpoint.c (gdbpy_breakpoint_created)
14912 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
14913 gdbpy_ref.
14914 * python/py-bpevent.c (create_breakpoint_event_object): Use
14915 gdbpy_ref.
14916
14917 2017-01-10 Tom Tromey <tom@tromey.com>
14918
14919 * python/py-ref.h: New file.
14920
14921 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14922
14923 * cli-out.c (cli_ui_out::do_redirect): Change return type to
14924 void.
14925 * cli-out.h (cli_ui_out::do_redirect): Likewise.
14926 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
14927 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
14928 * ui-out.c (ui_out::redirect): Likewise.
14929 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
14930 * cli/cli-logging.c (set_logging_redirect): Update call site of
14931 ui_out::redirect.
14932 (handle_redirections): Likewise.
14933 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
14934 * top.c (execute_command_to_string): Likewise.
14935 * utils.c (do_ui_out_redirect_pop): Likewise.
14936
14937 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14938
14939 * stack.c (_initialize_stack): Update "frame" command help message.
14940
14941 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
14942
14943 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14944
14945 2017-01-06 Yao Qi <yao.qi@linaro.org>
14946
14947 * x86-linux-nat.h: Include gdb_proc_service.h.
14948
14949 2017-01-06 Yao Qi <yao.qi@linaro.org>
14950
14951 * ser-base.h: Include serial.h.
14952
14953 2017-01-06 Yao Qi <yao.qi@linaro.org>
14954
14955 * ppc-linux-tdep.h: Include ppc-tdep.h.
14956
14957 2017-01-06 Yao Qi <yao.qi@linaro.org>
14958
14959 * nat/amd64-linux-siginfo.h: Include signal.h.
14960
14961 2017-01-06 Yao Qi <yao.qi@linaro.org>
14962
14963 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14964
14965 2017-01-06 Yao Qi <yao.qi@linaro.org>
14966
14967 * mi/mi-parse.h: Include mi-cmds.h.
14968
14969 2017-01-06 Yao Qi <yao.qi@linaro.org>
14970
14971 * inf-loop.c: Don't include "target.h".
14972 * inf-loop.h: Include it here.
14973
14974 2017-01-06 Yao Qi <yao.qi@linaro.org>
14975
14976 * dfp.h: Include "dboulest.h" and "expression.h".
14977
14978 2017-01-06 Yao Qi <yao.qi@linaro.org>
14979
14980 * ax-gdb.h: Include "ax.h".
14981
14982 2017-01-06 Yao Qi <yao.qi@linaro.org>
14983
14984 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14985 with nat/gdb_ptrace.h.
14986
14987 2017-01-05 Yao Qi <yao.qi@linaro.org>
14988
14989 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14990 new line.
14991 (mips64_fbsd_sigframe_init): Likewise.
14992
14993 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14994
14995 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14996 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14997
14998 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14999
15000 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
15001 * NEWS: Mention new FreeBSD/mips native configuration.
15002 * config/mips/fbsd.mh: New file.
15003 * configure.host: Add mips*-*-freebsd*.
15004 * mips-fbsd-nat.c: New file.
15005
15006 2017-01-04 John Baldwin <jhb@FreeBSD.org>
15007
15008 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
15009 (ALLDEPFILES): Add mips-fbsd-tdep.c.
15010 * NEWS: Mention new FreeBSD/mips target.
15011 * configure.tgt: Add mips*-*-freebsd*.
15012 * mips-fbsd-tdep.c: New file.
15013 * mips-fbsd-tdep.h: New file.
15014
15015 2017-01-04 Yao Qi <yao.qi@linaro.org>
15016
15017 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
15018 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
15019
15020 2017-01-01 Joel Brobecker <brobecker@adacore.com>
15021
15022 Update copyright year range in all GDB files.
15023
15024 2017-01-01 Joel Brobecker <brobecker@adacore.com>
15025
15026 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
15027
15028 For older changes see ChangeLog-2016.
15029 \f
15030 Local Variables:
15031 mode: change-log
15032 left-margin: 8
15033 fill-column: 74
15034 version-control: never
15035 coding: utf-8
15036 End: