Constify add_com
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-11-07 Tom Tromey <tom@tromey.com>
2
3 * solib.h (no_shared_libraries): Constify.
4 * frame.h (return_command): Constify.
5 * cli/cli-cmds.h (quit_command): Constify.
6 * top.h (quit_command, execute_command): Constify.
7 * target.h (flash_erase_command): Constify.
8 * inferior.h (set_inferior_args, attach_command): Constify.
9 * tracepoint.h (start_tracing, stop_tracing): Constify.
10 * breakpoint.h (break_command, tbreak_command)
11 (hbreak_command_wrapper, thbreak_command_wrapper)
12 (rbreak_command_wrapper, watch_command_wrapper)
13 (awatch_command_wrapper, rwatch_command_wrapper)
14 (get_tracepoint_by_number): Constify.
15 * symtab.c (info_variables_command, rbreak_command)
16 (symtab_symbol_info): Constify.
17 (info_variables_command): Add non-const overload.
18 * top.c (dont_repeat_command): Constify.
19 * breakpoint.c (ignore_command, commands_command)
20 (condition_command, tbreak_command, hbreak_command)
21 (thbreak_command, clear_command, break_command)
22 (info_breakpoints_command, watch_command, rwatch_command)
23 (awatch_command, trace_command, ftrace_command, strace_command)
24 (trace_pass_command, break_range_command, dprintf_command)
25 (agent_printf_command, get_tracepoint_by_number)
26 (watch_maybe_just_location, trace_pass_command): Constify.
27 (info_breakpoints_command): Add non-const overload.
28 * tracefile.c (tsave_command): Constify.
29 * infcmd.c (attach_command, disconnect_command, signal_command)
30 (queue_signal_command, stepi_command, nexti_command)
31 (finish_command, next_command, step_command, until_command)
32 (advance_command, jump_command, continue_command, run_command)
33 (start_command, starti_command, interrupt_command)
34 (run_command_1, set_inferior_args, step_1): Constify.
35 * inferior.c (add_inferior_command, remove_inferior_command)
36 (clone_inferior_command): Constify.
37 * linux-fork.c (checkpoint_command, restart_command): Constify.
38 * windows-nat.c (signal_event_command): Constify.
39 * guile/guile.c (guile_repl_command, guile_command): Constify.
40 * printcmd.c (x_command, display_command, printf_command)
41 (output_command, set_command, call_command, print_command)
42 (eval_command): Constify.
43 (non_const_set_command): Remove.
44 (_initialize_printcmd): Update.
45 * source.c (forward_search_command, reverse_search_command):
46 Constify.
47 * jit.c (jit_reader_load_command, jit_reader_unload_command):
48 Constify.
49 * infrun.c (handle_command): Constify.
50 * memattr.c (mem_command): Constify.
51 * stack.c (return_command, up_command, up_silently_command)
52 (down_command, down_silently_command, frame_command)
53 (backtrace_command, func_command, backtrace_command_1): Constify.
54 (backtrace_command): Add non-const overload.
55 * remote-sim.c (simulator_command): Constify.
56 * exec.c (set_section_command): Constify.
57 * tracepoint.c (tdump_command, trace_variable_command)
58 (tstatus_command, tstop_command, tstart_command)
59 (end_actions_pseudocommand, while_stepping_pseudocommand)
60 (collect_pseudocommand, teval_pseudocommand, actions_command)
61 (start_tracing, stop_tracing): Constify.
62 * value.c (init_if_undefined_command): Constify.
63 * tui/tui-stack.c (tui_update_command): Constify.
64 * tui/tui-win.c (tui_refresh_all_command)
65 (tui_set_tab_width_command, tui_set_win_height_command)
66 (tui_set_focus_command, tui_scroll_forward_command)
67 (tui_scroll_backward_command, tui_scroll_left_command)
68 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
69 (tui_set_win_height): Constify.
70 * tui/tui-layout.c (tui_layout_command): Constify.
71 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
72 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
73 (proc_untrace_sysexit_cmd): Constify.
74 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
75 (threadset_test_cmd, threadlist_update_test_cmd)
76 (threadalive_test): Constify.
77 * objc-lang.c (print_object_command): Constify.
78 * command.h (add_com): Constify.
79 * cli/cli-dump.c (restore_command): Constify.
80 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
81 (help_command, complete_command, shell_command, edit_command)
82 (list_command, disassemble_command, make_command)
83 (apropos_command, alias_command): Constify.
84 * cli/cli-script.c (document_command, define_command)
85 (while_command, if_command, validate_comname): Constify.
86 * cli/cli-decode.c (struct cmd_list_element): Change type of
87 "fun".
88 * target.c (do_monitor_command, flash_erase_command): Constify.
89 * regcache.c (reg_flush_command): Constify.
90 * reverse.c (reverse_step, reverse_next, reverse_stepi)
91 (reverse_nexti, reverse_continue, reverse_finish)
92 (save_bookmark_command, goto_bookmark_command)
93 (exec_reverse_once): Constify.
94 * python/python.c (python_interactive_command, python_command):
95 Constify.
96 * typeprint.c (ptype_command, whatis_command, whatis_exp):
97 Constify.
98 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
99 * gcore.c (gcore_command): Constify.
100
101 2017-11-07 Tom Tromey <tom@tromey.com>
102
103 * printcmd.c (x_command): Call set_repeat_arguments.
104 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
105 * top.c (repeat_arguments): New global.
106 (set_repeat_arguments): New function.
107 (execute_command): Handle repeat_arguments.
108 (show_commands): Calls set_repeat_arguments.
109 * command.h (set_repeat_arguments): Declare.
110
111 2017-11-07 Tom Tromey <tom@tromey.com>
112
113 * stack.c (backtrace_command): Use std::string.
114 (backtrace_command_1): Make "count_exp" const.
115
116 2017-11-07 Tom Tromey <tom@tromey.com>
117
118 * source.c (directory_switch, mod_path, add_path): Constify.
119 * defs.h (add_path, mod_path, directory_switch): Constify.
120 * mi/mi-cmd-env.c (env_mod_path): Constify.
121
122 2017-11-07 Tom Tromey <tom@tromey.com>
123
124 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
125 (run_command_1, continue_command, step_1, jump_command)
126 (signal_command, until_command, advance_command, finish_command)
127 (attach_command): Update.
128
129 2017-11-07 Tom Tromey <tom@tromey.com>
130
131 * command.h (set_cmd_cfunc): Don't declare.
132 * cli/cli-decode.c (set_cmd_cfunc): Now static.
133
134 2017-11-07 Tom Tromey <tom@tromey.com>
135
136 * stack.c (select_frame_command): Constify.
137 * cli/cli-decode.c (add_com_suppress_notification): Constify.
138 * command.h (add_com_suppress_notification): Constify.
139
140 2017-11-07 Tom Tromey <tom@tromey.com>
141
142 * breakpoint.c (stop_command): Constify.
143 * cli/cli-decode.c (struct cmd_list_element): Constify.
144 * command.h (add_abbrev_prefix_cmd): Constify.
145
146 2017-11-07 Pedro Alves <palves@redhat.com>
147
148 * breakpoint.c (extract_bp_kind): New enum.
149 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
150 factored out from ...
151 (extract_bp_number_and_location): ... here.
152 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
153
154 2017-11-07 Pedro Alves <palves@redhat.com>
155
156 * breakpoint.c (extract_bp_number_and_location): Change return
157 type to void. Throw error instead of warning.
158 (enable_disable_command): Adjust.
159
160 2017-11-07 Xavier Roirand <roirand@adacore.com>
161 Pedro Alves <palves@redhat.com>
162
163 * breakpoint.c (map_breakpoint_number_range): New, factored out
164 from ...
165 (map_breakpoint_numbers): ... here.
166 (find_location_by_number): Change parameters from string to
167 breakpoint number and location.
168 (extract_bp_number_and_location): New function.
169 (enable_disable_bp_num_loc)
170 (enable_disable_breakpoint_location_range)
171 (enable_disable_command): New functions, factored out ...
172 (enable_command, disable_command): ... these functions, and
173 adjusted to support ranges.
174 * NEWS: Document enable/disable breakpoint location range feature.
175
176 2017-11-06 Luis Machado <luis.machado@linaro.org>
177
178 * MAINTAINERS (Write After Approval): Update my e-mail address.
179
180 2017-11-06 Pedro Alves <palves@redhat.com>
181
182 * gnu-nat.c (gnu_terminal_init): Delete.
183 (gnu_target): Don't install gnu_terminal_init.
184 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
185 (child_terminal_init): ... this function.
186
187 2017-11-06 Pedro Alves <palves@redhat.com>
188
189 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
190 sgtty.h.
191 * config.in, configure: Regenerate.
192
193 2017-11-06 Pedro Alves <palves@redhat.com>
194
195 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
196 (async_init_signals): Adjust.
197 (handle_stop_sig): Rename to ...
198 (handle_sigtstp): ... this.
199 (async_stop_sig): Rename to ...
200 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
201 SIGTSTP path.
202 * event-top.h: Move signal.h include to the top. Check SIGTSTP
203 instead of STOP_SIGNAL thoughout.
204 (handle_stop_sig): Rename to ...
205 (handle_sigtstp): ... this.
206 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
207
208 2017-11-06 Pedro Alves <palves@redhat.com>
209
210 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
211 longer set flags twice in row.
212
213 2017-11-06 Pedro Alves <palves@redhat.com>
214
215 * Makefile.in (SER_HARDWIRE): Update comment.
216 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
217 * common/gdb_termios.h: Delete file.
218 * common/job-control.c: Include termios.h and unistd.h instead of
219 gdb_termios.h.
220 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
221 check.
222 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
223 Remove sgtty code.
224 * configure.ac: No longer check for termio.h and sgtty.h.
225 * configure: Regenerate.
226 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
227 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
228 Replace PROCESS_GROUP_TYPE references with pid_t references
229 throughout.
230 (gdb_getpgrp): Delete.
231 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
232 (child_terminal_inferior): Remove comment. Remove sgtty code.
233 (child_terminal_ours_1): Use tcgetpgrp directly instead of
234 gdb_getpgrp. Use serial_set_tty_state instead aof
235 serial_noflush_set_tty_state. Remove sgtty code.
236 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
237 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
238 (inferior_process_group): Now returns pid_t.
239 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
240 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
241 * ser-event.c (serial_event_ops): Update.
242 * ser-go32.c (dos_noflush_set_tty_state): Delete.
243 (dos_ops): Update.
244 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
245 * ser-pipe.c (pipe_ops): Update.
246 * ser-tcp.c (tcp_ops): Update.
247 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
248 HAVE_TERMIOS checks.
249 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
250 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
251 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
252 assume termios.
253 (hardwire_noflush_set_tty_state): Delete.
254 (hardwire_print_tty_state, hardwire_drain_output)
255 (hardwire_flush_output, hardwire_flush_input)
256 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
257 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
258 code, and assume termios.
259 (hardwire_ops): Update.
260 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
261 * serial.c (serial_noflush_set_tty_state): Delete.
262 * serial.h (serial_noflush_set_tty_state): Delete.
263 (serial_ops::noflush_set_tty_state): Delete.
264
265 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
266
267 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
268 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
269 (COMMON_OBS): Remove doublest.o and dfp.o.
270 Do not build target-float.c (instead of doublest.c)
271 with -Wformat-nonliteral.
272
273 * doublest.c: Remove file.
274 * doublest.h: Remove file.
275 * dfp.c: Remove file.
276 * dfp.h: Remove file.
277
278 * target-float.c: Do not include "doublest.h" and "dfp.h".
279 (DOUBLEST): Move here from doublest.h.
280 (enum float_kind): Likewise.
281 (FLOATFORMAT_CHAR_BIT): Likewise.
282 (FLOATFORMAT_LARGEST_BYTES): Likewise.
283 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
284 (floatformat_precision): Likewise.
285 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
286 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
287 Likewise.
288 (host_float_format, host_double_format, host_long_double_format):
289 Likewise.
290 (floatformat_to_string, floatformat_from_string): Likewise.
291 (floatformat_to_doublest): Likewise. Also, inline the original
292 convert_floatformat_to_doublest.
293 (floatformat_from_doublest): Likewise. Also, inline the original
294 convert_floatformat_from_doublest.
295
296 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
297 (MAX_DECIMAL_STRING): Move here from dfp.c.
298 (match_endianness): Likewise.
299 (set_decnumber_context, decimal_check_errors): Likewise.
300 (decimal_from_number, decimal_to_number): Likewise.
301 (decimal_to_string, decimal_from_string): Likewise. Make static.
302 (decimal_from_longest, decimal_from_ulongest): Likewise.
303 (decimal_to_longest): Likewise.
304 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
305 (decimal_convert): Likewise.
306
307 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
308
309 * doublest.c: Do not include "gdbtypes.h".
310 (extract_typed_floating): Remove.
311 (store_typed_floating): Remove.
312 (convert_typed_floating): Remove.
313 * doublest.h (struct type): Remove.
314 (DOUBLEST_PRINT_FORMAT): Remove.
315 (DOUBLEST_SCAN_FORMAT): Remove.
316 (extract_typed_floating): Remove.
317 (store_typed_floating): Remove.
318 (convert_typed_floating): Remove.
319
320 * dfp.c (decimal_from_doublest): Remove.
321 (decimal_to_doublest): Remove.
322 * dfp.h: Do not include "doublest.h".
323 (decimal_from_doublest): Remove.
324 (decimal_to_doublest): Remove.
325
326 * value.c: Do not include "doublest.h" and "dfp.h".
327 (value_as_double): Remove.
328 (unpack_double): Remove.
329 (value_from_double): Remove.
330 (value_from_decfloat): Remove.
331 * value.h: Do not include "doublest.h".
332 (value_as_double): Remove.
333 (unpack_double): Remove.
334 (value_from_double): Remove.
335 (value_from_decfloat): Remove.
336
337 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
338
339 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
340 (i386_extract_return_value): Use target_float_convert.
341 (i386_store_return_value): Likewise.
342 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
343 (i387_value_to_register): Likewise.
344 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
345 (ia64_register_to_value): Use target_float_convert.
346 (ia64_value_to_register): Likewise.
347 (ia64_extract_return_value): Likewise.
348 (ia64_store_return_value): Likewise.
349 (ia64_push_dummy_call): Likewise.
350 * m68k-tdep.c: Include "target-float.h".
351 (m68k_register_to_value): Use target_float_convert.
352 (m68k_value_to_register): Likewise.
353 (m68k_svr4_extract_return_value): Likewise.
354 (m68k_svr4_store_return_value): Likewise.
355 * ppc-sysv-tdep.c: Include "target-float.h".
356 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
357 (do_ppc_sysv_return_value): Likewise.
358 (ppc64_sysv_abi_push_freg): Likewise.
359 (ppc64_sysv_abi_return_value_base): Likewise.
360 * rs6000-aix-tdep.c: Include "target-float.h".
361 (rs6000_push_dummy_call): Use target_float_convert.
362 (rs6000_return_value): Likewise.
363 * rs6000-lynx178-tdep.c: Include "target-float.h".
364 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
365 (rs6000_lynx178_return_value): Likewise.
366 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
367 (rs6000_register_to_value): Use target_float_convert.
368 (rs6000_value_to_register): Likewise.
369 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
370 (arm_extract_return_value): Use target_float_convert.
371 (arm_store_return_value): Likewise.
372 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
373 (sh_register_convert_to_virtual): Use target_float_convert.
374 (sh_register_convert_to_raw): Likewise.
375 * sh64-tdep.c: Include "target-float.h".
376 (sh64_extract_return_value): Use target_float_convert.
377 (sh64_register_convert_to_virtual): Likewise.
378 (sh64_register_convert_to_raw): Likewise. Fix argument types.
379
380 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
381
382 * target-float.c (floatformat_to_host_double): New function.
383 (floatformat_from_host_double): Likewise.
384 (target_float_to_host_double): Likewise.
385 (target_float_from_host_double): Likewise.
386 * target-float.h (target_float_to_host_double): Add prototype.
387 (target_float_from_host_double): Likewise.
388
389 * guile/scm-value.c: Include "target-float.h".
390 (gdbscm_value_to_real): Use target_float_to_host_double.
391 Handle integer source values via value_as_long.
392 * guile/scm-math.c: Include "target-float.h". Do not include
393 "doublest.h", "dfp.h", and "expression.h".
394 (vlscm_convert_typed_number): Use target_float_from_host_double.
395 (vlscm_convert_number): Likewise.
396
397 * python/py-value.c (valpy_float): Use target_float_to_host_double.
398 (convert_value_from_python): Use target_float_from_host_double.
399
400 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
401
402 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
403 (cast_from_fixed): Likewise.
404 (ada_scaling_type): New function.
405 (ada_delta): Return value instead of DOUBLEST. Perform target
406 arithmetic instead of host arithmetic.
407 (scaling_factor): Rename to ...
408 (ada_scaling_factor) ... this. Make non-static. Return value instead
409 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
410 (ada_fixed_to_float): Remove.
411 (ada_float_to_fixed): Remove.
412 * ada-lang.h (ada_fixed_to_float): Remove.
413 (ada_float_to_fixed): Remove.
414 (ada_delta): Return value instead of DOUBLEST.
415 (ada_scaling_factor): Add prototype.
416
417 * ada-typeprint.c: Include "target-float.h".
418 (print_fixed_point_type): Perform target arithmetic instead of
419 host arithmetic.
420 * ada-valprint.c: Include "target-float.h".
421 (ada_val_print_num): Perform target arithmetic instead of
422 host arithmetic for fixed-point types.
423
424 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
425
426 * target-float.c: Include <math.h>.
427 (floatformat_binop): New function.
428 (floatformat_compare): Likewise.
429 (target_float_binop): Likewise.
430 (target_float_compare): Likewise.
431 * target-float.h: Include "expression.h".
432 (target_float_binop): Add prototype.
433 (target_float_compare): Likewise.
434
435 * valarith.c: Do not include "doublest.h" and "dfp.h".
436 Include "common/byte-vector.h".
437 (value_args_as_decimal): Remove, replace by ...
438 (value_args_as_target_float): ... this function. Handle both
439 binary and decimal target floating-point formats.
440 (scalar_binop): Handle both binary and decimal FP using
441 value_args_as_target_float and target_float_binop.
442 (value_equal): Handle both binary and decimal FP using
443 value_args_as_target_float and target_float_compare.
444 (value_less): Likewise.
445 (value_pos): Handle all scalar types as simple copy.
446 (value_neg): Handle all scalar types via BINOP_SUB from 0.
447 * dfp.c (decimal_binop): Throw error instead of internal_error
448 when called with an unsupported operation code.
449
450 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
451
452 * target-float.c (target_float_to_string): New function.
453 (target_float_from_string): New function.
454 * target-float.h (target_float_to_string): Add prototype.
455 (target_float_from_string): Add prototype.
456
457 * valprint.c: Include "target-float.h". Do not include
458 "doublest.h" and "dfp.h".
459 (print_floating): Use target_float_to_string.
460 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
461 (printf_floating): Use target_float_to_string.
462 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
463 (print_i387_value): Use target_float_to_string.
464 * mips-tdep.c: Include "target-float.h".
465 (mips_print_fp_register): Use target_float_to_string.
466 * sh64-tdep.c: Include "target-float.h".
467 (sh64_do_fp_register): Use target_float_to_string.
468
469 * parse.c: Include "target-float.h". Do not include
470 "doublest.h" and "dfp.h".
471 (parse_float): Use target_float_from_string.
472 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
473 (define_symbol): Use target_float_from_string.
474 * gdbarch-selftests.c: Include "target-float.h".
475 (register_to_value_test): Use target_float_from_string.
476
477 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
478
479 * Makefile.c (SFILES): Add target-float.c.
480 (HFILES_NO_SRCDIR): Add target-float.h.
481 (COMMON_OBS): Add target-float.o.
482 * target-float.h: New file.
483 * target-float.c: New file.
484
485 * doublest.c (floatformat_classify): Fix detection of float_zero.
486
487 * gdbtypes.c (is_floating_type): New function.
488 * gdbtypes.h (is_floating_type): Add prototype.
489
490 * value.c: Do not include "floatformat.h".
491 (unpack_double): Use target_float_is_valid.
492 (is_floating_value): New function.
493 * value.h (is_floating_value): Add prototype-
494
495 * valarith.c: Include "target-float.h".
496 (value_logical_not): Use target_float_is_zero.
497
498 * python/py-value.c: Include "target-float.h".
499 (valpy_nonzero): Use target_float_is_zero.
500
501 2017-11-04 Tom Tromey <tom@tromey.com>
502
503 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
504
505 2017-11-04 Tom Tromey <tom@tromey.com>
506
507 * breakpoint.c (set_momentary_breakpoint): Return
508 breakpoint_up.
509 (until_break_command): Update.
510 (new_until_break_fsm): Change argument types to
511 breakpoint_up.
512 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
513 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
514 Remove.
515 * infcmd.c (finish_forward): Update.
516 * breakpoint.h (set_momentary_breakpoint)
517 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
518 (make_cleanup_delete_breakpoint): Remove.
519 (struct breakpoint_deleter): New.
520 (breakpoint_up): New typedef.
521 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
522 (insert_exception_resume_breakpoint): Update.
523 (insert_exception_resume_from_probe): Update.
524 (insert_longjmp_resume_breakpoint): Update.
525 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
526 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
527 * infcall.c (call_function_by_hand_dummy): Update
528
529 2017-11-04 Tom Tromey <tom@tromey.com>
530
531 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
532
533 2017-11-04 Tom Tromey <tom@tromey.com>
534
535 * linux-tdep.c (linux_core_info_proc_mappings): Use
536 gdb::def_vector.
537 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
538 "size" argument.
539 (linux_corefile_thread): Update.
540 (linux_make_corefile_notes): Remove unused variable.
541
542 2017-11-04 Tom Tromey <tom@tromey.com>
543
544 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
545 gdb::byte_vector.
546
547 2017-11-04 Tom Tromey <tom@tromey.com>
548
549 * objfiles.c (do_free_objfile_cleanup): Remove.
550 * compile/compile-object-load.c (compile_object_load): Update.
551 * objfiles.h (make_cleanup_free_objfile): Remove.
552
553 2017-11-04 Tom Tromey <tom@tromey.com>
554
555 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
556 (adi_read_versions): Change "tags" to "gdb_byte *".
557 (adi_print_versions): Likewise.
558
559 2017-11-04 Tom Tromey <tom@tromey.com>
560
561 * breakpoint.c
562 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
563 from start_rbreak_breakpoints.
564 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
565 * breakpoint.h (class scoped_rbreak_breakpoints): New.
566 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
567 * symtab.c (do_end_rbreak_breakpoints): Remove.
568 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
569
570 2017-11-04 Tom Tromey <tom@tromey.com>
571
572 * cp-namespace.c (reset_directive_searched): Remove.
573 (cp_lookup_symbol_via_imports): Use scoped_restore.
574 * cp-support.c (reset_directive_searched): Remove.
575 (make_symbol_overload_list_using): Use scoped_restore.
576 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
577 (reset_directive_searched): Remove.
578
579 2017-11-04 Tom Tromey <tom@tromey.com>
580
581 * symfile.c (find_separate_debug_file_by_debuglink): Use
582 unique_xmalloc_ptr.
583
584 2017-11-04 Tom Tromey <tom@tromey.com>
585
586 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
587 type of "info".
588 (compute_stack_depth): Likewise.
589 (do_compile_dwarf_expr_to_c): Use std::vector.
590
591 2017-11-04 Tom Tromey <tom@tromey.com>
592
593 * compile/compile-object-load.c (link_callbacks_einfo): Use
594 std::string.
595
596 2017-11-04 Tom Tromey <tom@tromey.com>
597
598 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
599 Use scoped_free_pendings.
600 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
601 scoped_free_pendings.
602 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
603 (xcoff_initial_scan): Likewise.
604 * buildsym.c (reset_symtab_globals): Update comment.
605 (scoped_free_pendings): Rename from really_free_pendings.
606 (prepare_for_building): Update comment.
607 (buildsym_init): Likewise.
608 * buildsym.h (class scoped_free_pendings): New class.
609 (really_free_pendings): Don't declare.
610
611 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
612
613 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
614 output when converting a zero value to a special byteorder format.
615
616 2017-11-02 Yao Qi <yao.qi@linaro.org>
617
618 * frame.c (do_frame_register_read): Remove aspace.
619 * jit.c (jit_frame_sniffer): Likwise.
620 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
621 * regcache.c (regcache::regcache): Pass nullptr.
622 (regcache_print): Caller updated.
623 * regcache.h (regcache::regcache): Remove one constructor
624 parameter aspace.
625
626 2017-11-02 Yao Qi <yao.qi@linaro.org>
627
628 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
629
630 2017-11-02 Yao Qi <yao.qi@linaro.org>
631
632 * breakpoint.c (insert_single_step_breakpoints): Update.
633 * frame.c (struct frame_info) <aspace>: Add const.
634 (frame_save_as_regcache): Add const.
635 (get_frame_address_space): Return const address_space *.
636 * frame.h (get_frame_address_space): Update declaration.
637 * infrun.c (struct step_over_info) <aspace>: Add const.
638 (set_step_over_info): Make aspace const.
639 (displaced_step_prepare_throw): Change variable const.
640 (resume): Likewise.
641 (proceed): Likewise.
642 (adjust_pc_after_break): Likewise.
643 (save_waitstatus): Likewise.
644 (handle_signal_stop): Likewise.
645 (keep_going_pass_signal): Likewise.
646 * jit.c (jit_frame_sniffer): Add const.
647 * mips-tdep.c (mips_single_step_through_delay): Likewise.
648 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
649 * record-full.c (record_full_wait_1): Likewise.
650 * regcache.c (regcache::regcache): Change parameter to const.
651 * regcache.h (regcache::regcache): Likewise.
652 (regcache::aspace): Return const address_space *.
653 (regcache) <m_aspace>: Add const.
654
655 2017-11-02 Yao Qi <yao.qi@linaro.org>
656
657 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
658 * frame.c (create_sentinel_frame): Likewise.
659 * infrun.c (displaced_step_prepare_throw): Likewise.
660 (resume): Likewise.
661 (thread_still_needs_step_over_bp): Likewise.
662 (proceed): Likewise.
663 (do_target_wait): Likewise.
664 (adjust_pc_after_break): Likewise.
665 (handle_syscall_event): Likewise.
666 (save_waitstatus): Likewise.
667 (handle_inferior_event_1): Likewise.
668 (handle_signal_stop): Likewise.
669 (keep_going_pass_signal): Likewise.
670 * linux-nat.c (status_callback): Likewise.
671 (save_stop_reason): Likewise.
672 (resume_stopped_resumed_lwps): Likewise.
673 * record-full.c (record_full_exec_insn): Likewise.
674 (record_full_wait_1): Likewise.
675 * regcache.c (get_regcache_aspace): Remove.
676 * regcache.h (get_regcache_aspace): Remove.
677
678 2017-11-02 Yao Qi <yao.qi@linaro.org>
679
680 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
681 (init_regcache_descr): Use gdbarch_num_regs.
682 (regcache::regcache): Likewise.
683 (regcache::get_register_status): Likewise.
684 (regcache::assert_raw_regnum): Likewise.
685 (regcache::cooked_read): Likewise.
686 (regcache::cooked_read_value): Likewise.
687 (regcache::cooked_write): Likewise.
688 (regcache::dump): Likewise.
689 (regcache::num_raw_registers): New method.
690 * regcache.h (class regcache) <num_raw_registers>: New.
691
692 2017-11-02 Yao Qi <yao.qi@linaro.org>
693
694 * regcache.c (regcache::assert_regnum): New method.
695 (regcache::invalidate): Call assert_regnum.
696 (regcache::raw_update): Likewise.
697 (regcache::raw_write): Likewise.
698 (regcache::raw_read_part): Likewise.
699 (regcache::raw_write_part): Likewise.
700 (regcache::raw_supply): Likewise.
701 (regcache::raw_supply_integer): Likewise.
702 (regcache::raw_supply_zeroed): Likewise.
703 (regcache::raw_collect): Likewise.
704 (regcache::raw_collect_integer): Likewise.
705 * regcache.h (regcache::assert_regnum): Declare.
706
707 2017-11-02 Yao Qi <yao.qi@linaro.org>
708
709 * regcache.c (regcache::dump): Remove code.
710
711 2017-11-02 Yao Qi <yao.qi@linaro.org>
712
713 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
714 Remove.
715 <sizeof_cooked_register_status>: Remove.
716 (init_regcache_descr): Update.
717 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
718 (regcache::save): Likewise.
719 (regcache::dump): Likewise.
720
721 2017-11-01 James Bowman <james.bowman@ftdichip.com>
722
723 * ft32-tdep.c (ft32_fetch_instruction): New function.
724 (ft32_analyze_prologue): Use ft32_fetch_instruction().
725
726 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
727
728 * cli/cli-script.c (execute_control_command): Rename to ...
729 (execute_control_command_1): ... this.
730 (execute_control_command): New function.
731
732 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
733
734 * tracepoint.c (tfind_command): Remove const_cast.
735
736 2017-10-30 Mike Gulick <mgulick@mathworks.com>
737
738 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
739
740 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
741
742 * common/common-utils.h (in_inclusive_range): New function.
743 * arm-tdep.c (arm_record_extension_space): Use
744 in_inclusive_range.
745 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
746 * cris-tdep.c (cris_spec_reg_applicable): Use
747 in_inclusive_range.
748
749 2017-10-30 Pedro Alves <palves@redhat.com>
750 Simon Marchi <simon.marchi@ericsson.com>
751
752 * remote.c (remote_set_syscall_catchpoint): Build a std::string
753 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
754
755 2017-10-30 Pedro Alves <palves@redhat.com>
756
757 * common/common-utils.c (string_appendf, string_vappendf): New
758 functions.
759 * common/common-utils.h (string_appendf, string_vappendf): New
760 declarations.
761 * unittests/common-utils-selftests.c (string_appendf_func)
762 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
763 (string_vappendf_tests): New functions.
764 (_initialize_common_utils_selftests): Register "string_appendf" and
765 "string_vappendf tests".
766
767 2017-10-30 Pedro Alves <palves@redhat.com>
768
769 * unittests/common-utils-selftests.c (format_func): New typedef.
770 (string_printf_tests, string_vprintf_tests): Tests factored out
771 and merged to ...
772 (test_format_func): ... this new function.
773 (string_printf_tests, string_vprintf_tests): Reimplement on top of
774 test_format_func.
775
776 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
777
778 * darwin-nat.c: Remove include of gdb.h.
779
780 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
781
782 * xtensa-xtregs.c: Fix formatting issues.
783
784 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
785
786 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
787
788 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
789
790 PR python/21213
791 * python/py-infthread.c (thpy_get_inferior): Increment reference
792 of inferior before returning it.
793
794 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
795
796 * unittests/common-utils-selftests.c (format): Add
797 ATTRIBUTE_PRINTF.
798
799 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
800
801 * xml-syscall.c (struct syscall_desc): Add constructor.
802 <name>: Change type to std::string.
803 (syscall_desc_up): New typedef.
804 (syscall_desc_p): Remove typeder.
805 (DEF_VEC_P(syscall_desc_p)): Remove.
806 (struct syscall_group_desc): Add constructor.
807 <name>: Change type to std::string.
808 <syscalls>: Change type to std::vector.
809 (syscall_group_desc_up): New typedef.
810 (syscall_group_desc_p): Remove typedef.
811 (DEF_VEC_P(syscall_group_desc_p)): Remove.
812 (struct syscalls_info) <syscalls>: Change type to std::vector of
813 unique_ptr.
814 <groups>: Likewise.
815 <my_gdb_datadir>: Change type to std::string.
816 (syscalls_info_up): New typedef.
817 (allocate_syscalls_info): Remove.
818 (syscalls_info_free_syscalls_desc): Remove.
819 (syscalls_info_free_syscall_group_desc): Remove.
820 (free_syscalls_info): Remove.
821 (make_cleanup_free_syscalls_info): Remove.
822 (syscall_group_create_syscall_group_desc): Adjust.
823 (syscall_group_add_syscall): Adjust.
824 (syscall_create_syscall_desc): Adjust.
825 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
826 (init_syscalls_info): Adjust.
827 (syscall_group_get_group_by_name): Adjust.
828 (xml_get_syscall_number): Adjust.
829 (xml_get_syscall_name): Adjust.
830 (xml_list_of_syscalls): Adjust.
831 (xml_list_syscalls_by_group): Adjust.
832 (xml_list_of_groups): Adjust.
833
834 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
835
836 * probe.h: Don't include gdb_vecs.h.
837 (DEF_VEC_P (probe_p)): Remove.
838 (find_probes_in_objfile): Return an std::vector.
839 * probe.c (find_probes_in_objfile): Likewise.
840 * breakpoint.c (breakpoint_objfile_data)
841 <longjmp_probes>: Change type to std::vector.
842 <exception_probes>: Likewise.
843 (free_breakpoint_probes): Don't manually free vectors.
844 (create_longjmp_master_breakpoint): Adjust.
845 (create_exception_master_breakpoint): Adjust.
846 * solib-svr4.c (svr4_create_probe_breakpoints): Change
847 parameter type, adjust.
848 (svr4_create_solib_event_breakpoints): Adjust.
849
850 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
851
852 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
853 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
854 with new.
855 (free_breakpoint_probes): Rename to ...
856 (free_breakpoint_objfile_data): ... this, and call delete on
857 bp_objfile_data..
858
859 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
860
861 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
862 (loaded_script_ptr): Remove typedef.
863 (DEF_VEC_P (loaded_script_ptr)): Remove.
864 (struct collect_matching_scripts_data): Add constructor.
865 <scripts_p>: Change type to (pointer to) std::vector.
866 (collect_matching_scripts_data): Adjust.
867 (sort_scripts_by_name): Make suitable for std::sort.
868 (print_scripts): Don't sort vector, adjust to std::vector.
869 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
870
871 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
872
873 * symfile.c (filename_language): Make struct, not typedef. Add
874 constructor.
875 <ext>: Change type to std::string.
876 (DEF_VEC_O (filename_language)): Remove.
877 (filename_language_table): Change type to std::vector.
878 (add_filename_language): Adjust.
879 (set_ext_lang_command): Adjust.
880 (info_ext_lang_command): Adjust.
881 (deduce_language_from_filename): Adjust.
882 (class scoped_restore_filename_language_table): Remove.
883 (test_filename_language): Use scoped_restore.
884 (test_set_ext_lang_command): Use scoped_restore, adjust to
885 std::vector change.
886
887 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
888
889 * symfile.c: Include selftest.h.
890 (class scoped_restore_filename_language_table): New.
891 (test_filename_language): New test.
892 (test_set_ext_lang_command): New test.
893 (_initialize_symfile): Register tests.
894
895 2017-10-27 Keith Seitz <keiths@redhat.com>
896
897 * breakpoint.c (print_breakpoint_location): Use the symbol saved
898 in the bp_location, falling back to find_pc_sect_function when
899 needed.
900 (add_location_to_breakpoint): Save sal->symbol.
901 * breakpoint.h (struct bp_location) <symbol>: New field.
902 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
903 * symtab.h (struct symtab_and_line) <symbol>: New field.
904
905 2017-10-26 Patrick Frants <osscontribute@gmail.com>
906
907 PR gdb/13669
908 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
909 to rewind obstack.
910
911 2017-10-26 Pedro Alves <palves@redhat.com>
912
913 * remote.c (remote_async_terminal_ours_p): Delete.
914 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
915 Remove references to 'remote_async_terminal_ours_p'.
916
917 2017-10-26 Yao Qi <yao.qi@linaro.org>
918
919 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
920
921 2017-10-26 Yao Qi <yao.qi@linaro.org>
922
923 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
924 aspace const.
925 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
926 Likewise.
927 * breakpoint.c (bpstat_check_location): Remove cast.
928 (breakpoint_hit_catch_fork): Make aspce const.
929 (breakpoint_hit_catch_solib): Likewise.
930 (breakpoint_hit_catch_exec): Likewise.
931 (breakpoint_hit_ranged_breakpoint): Likewise.
932 (breakpoint_hit_watchpoint): Likewise.
933 (base_breakpoint_breakpoint_hit): Likewise.
934 (bkpt_breakpoint_hit): Likewise.
935 (dprintf_breakpoint_hit): Likewise.
936 (tracepoint_breakpoint_hit): Likewise.
937 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
938
939 2017-10-26 Yao Qi <yao.qi@linaro.org>
940
941 * breakpoint.c (breakpoint_location_address_match): Change
942 "struct address_space *" to "const address_space".
943 (breakpoint_location_address_range_overlap): Likewise.
944 (breakpoint_here_p): Likewise.
945 (breakpoint_in_range_p): Likewise.
946 (moribund_breakpoint_here_p): Likewise.
947 (bp_location_inserted_here_p): Likewise.
948 (software_breakpoint_inserted_here_p): Likewise.
949 (hardware_breakpoint_inserted_here_p): Likewise.
950 (hardware_watchpoint_inserted_in_range): Likewise.
951 (bpstat_check_location): Likewise.
952 (bpstat_stop_status): Likewise.
953 (breakpoint_address_match): Likewise.
954 (breakpoint_address_match_range): Likewise.
955 (breakpoint_location_address_match): Likewise.
956 (breakpoint_location_address_range_overlap): Likewise.
957 (insert_single_step_breakpoint): Likewise.
958 (breakpoint_has_location_inserted_here): Likewise.
959 (single_step_breakpoint_inserted_here_p): Likewise.
960 (pc_at_non_inline_function): Likewise.
961 * breakpoint.h (bpstat_stop_status): Update declaration.
962 (breakpoint_here_p): Likewise.
963 (breakpoint_in_range_p): Likewise.
964 (moribund_breakpoint_here_p): Likewise.
965 (breakpoint_inserted_here_p): Likewise.
966 (software_breakpoint_inserted_here_p): Likewise.
967 (hardware_breakpoint_inserted_here_p): Likewise.
968 (breakpoint_has_location_inserted_here): Likewise.
969 (single_step_breakpoint_inserted_here_p): Likewise.
970 (hardware_watchpoint_inserted_in_range): Likewise.
971 (breakpoint_address_match): Likewise.
972 (insert_single_step_breakpoint): Likewise.
973 (pc_at_non_inline_function): Likewise.
974 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
975 * record.c (record_check_stopped_by_breakpoint): Likewise.
976 * record.h (record_check_stopped_by_breakpoint): Likewise.
977 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
978
979 2017-10-25 Yao Qi <yao.qi@linaro.org>
980
981 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
982 regcache->arch () instead get_regcache_arch.
983 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
984 Likewise.
985 (aarch64_fbsd_store_inferior_registers): Likewise.
986 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
987 (store_gregs_to_thread): Likewise.
988 (fetch_fpregs_from_thread): Likewise.
989 (store_fpregs_to_thread): Likewise.
990 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
991 (aarch64_store_return_value): Likewise.
992 (aarch64_software_single_step): Likewise.
993 * aix-thread.c (aix_thread_wait): Likewise.
994 (supply_reg32): Likewise.
995 (supply_sprs64): Likewise.
996 (supply_sprs32): Likewise.
997 (fill_gprs64): Likewise.
998 (fill_gprs32): Likewise.
999 (fill_sprs64): Likewise.
1000 (fill_sprs32): Likewise.
1001 (store_regs_user_thread): Likewise.
1002 (store_regs_kernel_thread): Likewise.
1003 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
1004 (alphabsd_store_inferior_registers): Likewise.
1005 * alpha-tdep.c (alpha_extract_return_value): Likewise.
1006 (alpha_store_return_value): Likewise.
1007 (alpha_deal_with_atomic_sequence): Likewise.
1008 (alpha_next_pc): Likewise.
1009 (alpha_software_single_step): Likewise.
1010 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
1011 (amd64bsd_store_inferior_registers): Likewise.
1012 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
1013 Likewise.
1014 (amd64_linux_store_inferior_registers): Likewise.
1015 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1016 (amd64_collect_native_gregset): Likewise.
1017 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
1018 (amd64obsd_collect_uthread): Likewise.
1019 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
1020 (amd64_collect_fpregset): Likewise.
1021 (amd64_supply_fxsave): Likewise.
1022 (amd64_supply_xsave): Likewise.
1023 (amd64_collect_fxsave): Likewise.
1024 (amd64_collect_xsave): Likewise.
1025 * arc-tdep.c (arc_write_pc): Likewise.
1026 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
1027 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
1028 (arm_fbsd_store_inferior_registers): Likewise.
1029 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
1030 (store_vfp_regs): Likewise.
1031 (arm_linux_fetch_inferior_registers): Likewise.
1032 (arm_linux_store_inferior_registers): Likewise.
1033 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1034 (arm_linux_sigreturn_next_pc): Likewise.
1035 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
1036 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
1037 (fetch_register): Likewise.
1038 (store_register): Likewise.
1039 * arm-tdep.c (arm_is_thumb): Likewise.
1040 (displaced_in_arm_mode): Likewise.
1041 (bx_write_pc): Likewise.
1042 (arm_get_next_pcs_addr_bits_remove): Likewise.
1043 (arm_software_single_step): Likewise.
1044 (arm_extract_return_value): Likewise.
1045 (arm_store_return_value): Likewise.
1046 (arm_write_pc): Likewise.
1047 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1048 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
1049 (bsd_uthread_store_registers): Likewise.
1050 * core-regset.c (fetch_core_registers): Likewise.
1051 * corelow.c (get_core_registers): Likewise.
1052 * cris-tdep.c (cris_store_return_value): Likewise.
1053 (cris_extract_return_value): Likewise.
1054 (find_step_target): Likewise.
1055 (find_step_target): Likewise.
1056 (cris_software_single_step): Likewise.
1057 * ctf.c (ctf_fetch_registers): Likewise.
1058 * darwin-nat.c (cancel_breakpoint): Likewise.
1059 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
1060 * frv-tdep.c (frv_extract_return_value): Likewise.
1061 * ft32-tdep.c (ft32_store_return_value): Likewise.
1062 (ft32_extract_return_value): Likewise.
1063 * go32-nat.c (fetch_register): Likewise.
1064 (go32_fetch_registers): Likewise.
1065 (go32_store_registers): Likewise.
1066 (store_register): Likewise.
1067 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1068 (h8300_store_return_value): Likewise.
1069 * hppa-linux-nat.c (fetch_register): Likewise.
1070 (store_register): Likewise.
1071 (hppa_linux_fetch_inferior_registers): Likewise.
1072 (hppa_linux_store_inferior_registers): Likewise.
1073 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
1074 (i386_darwin_store_inferior_registers): Likewise.
1075 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
1076 (gnu_store_registers): Likewise.
1077 * i386-linux-nat.c (fetch_register): Likewise.
1078 (store_register): Likewise.
1079 (supply_gregset): Likewise.
1080 (fill_gregset): Likewise.
1081 (i386_linux_fetch_inferior_registers): Likewise.
1082 (i386_linux_store_inferior_registers): Likewise.
1083 (i386_linux_resume): Likewise.
1084 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
1085 Likewise.
1086 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
1087 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
1088 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
1089 (i386obsd_collect_uthread): Likewise.
1090 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1091 (i386_supply_gregset): Likewise.
1092 (i386_collect_gregset): Likewise.
1093 (i386_supply_fpregset): Likewise.
1094 (i386_collect_fpregset): Likewise.
1095 (i386_mpx_bd_base): Likewise.
1096 * i386-v4-nat.c (supply_fpregset): Likewise.
1097 (fill_fpregset): Likewise.
1098 * i387-tdep.c (i387_supply_fsave): Likewise.
1099 (i387_collect_fsave): Likewise.
1100 (i387_supply_fxsave): Likewise.
1101 (i387_collect_fxsave): Likewise.
1102 (i387_supply_xsave): Likewise.
1103 (i387_collect_xsave): Likewise.
1104 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
1105 (ia64_linux_store_registers): Likewise.
1106 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
1107 (ia64_extract_return_value): Likewise.
1108 (ia64_store_return_value): Likewise.
1109 (find_func_descr): Likewise.
1110 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
1111 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
1112 (inf_ptrace_store_registers): Likewise.
1113 * infrun.c (use_displaced_stepping): Likewise.
1114 (displaced_step_prepare_throw): Likewise.
1115 (resume): Likewise.
1116 (proceed): Likewise.
1117 (do_target_wait): Likewise.
1118 (adjust_pc_after_break): Likewise.
1119 (handle_inferior_event_1): Likewise.
1120 (handle_signal_stop): Likewise.
1121 (save_infcall_suspend_state): Likewise.
1122 (restore_infcall_suspend_state): Likewise.
1123 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
1124 * jit.c (jit_frame_prev_register): Likewise.
1125 * linux-nat.c (save_stop_reason): Likewise.
1126 (linux_nat_wait_1): Likewise.
1127 (resume_stopped_resumed_lwps): Likewise.
1128 * linux-record.c (record_linux_sockaddr): Likewise.
1129 (record_linux_msghdr): Likewise.
1130 (record_linux_system_call): Likewise.
1131 * linux-tdep.c (linux_collect_thread_registers): Likewise.
1132 * lm32-tdep.c (lm32_extract_return_value): Likewise.
1133 (lm32_store_return_value): Likewise.
1134 * m32c-tdep.c (m32c_read_flg): Likewise.
1135 (m32c_pseudo_register_read): Likewise.
1136 (m32c_pseudo_register_write): Likewise.
1137 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
1138 (m32r_linux_collect_gregset): Likewise.
1139 * m32r-tdep.c (m32r_store_return_value): Likewise.
1140 (m32r_extract_return_value): Likewise.
1141 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
1142 (m68kbsd_collect_fpregset): Likewise.
1143 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1144 * m68k-linux-nat.c (fetch_register): Likewise.
1145 (old_fetch_inferior_registers): Likewise.
1146 (old_store_inferior_registers): Likewise.
1147 (store_regs): Likewise.
1148 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
1149 (m68k_svr4_store_return_value): Likewise.
1150 * m88k-tdep.c (m88k_store_arguments): Likewise.
1151 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
1152 (mi_cmd_data_write_register_values): Likewise.
1153 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
1154 (mips_fbsd_store_inferior_registers): Likewise.
1155 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
1156 (mips_fbsd_supply_gregs): Likewise.
1157 (mips_fbsd_collect_fpregs): Likewise.
1158 (mips_fbsd_collect_gregs): Likewise.
1159 (mips_fbsd_supply_fpregset): Likewise.
1160 (mips_fbsd_collect_fpregset): Likewise.
1161 (mips_fbsd_supply_gregset): Likewise.
1162 (mips_fbsd_collect_gregset): Likewise.
1163 * mips-linux-nat.c (supply_gregset): Likewise.
1164 (fill_gregset): Likewise.
1165 (supply_fpregset): Likewise.
1166 (fill_fpregset): Likewise.
1167 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
1168 (mips_fill_gregset): Likewise.
1169 (mips_supply_fpregset): Likewise.
1170 (mips_fill_fpregset): Likewise.
1171 (mips64_supply_gregset): Likewise.
1172 (micromips_linux_sigframe_validate): Likewise.
1173 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
1174 (mipsnbsd_fetch_inferior_registers): Likewise.
1175 (mipsnbsd_store_inferior_registers): Likewise.
1176 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1177 (mipsnbsd_supply_gregset): Likewise.
1178 (mipsnbsd_iterate_over_regset_sections): Likewise.
1179 (mipsnbsd_supply_reg): Likewise.
1180 (mipsnbsd_supply_fpreg): Likewise.
1181 * mips-tdep.c (mips_in_frame_stub): Likewise.
1182 (mips_dummy_id): Likewise.
1183 (is_octeon_bbit_op): Likewise.
1184 (micromips_bc1_pc): Likewise.
1185 (extended_mips16_next_pc): Likewise.
1186 (mips16_next_pc): Likewise.
1187 (deal_with_atomic_sequence): Likewise.
1188 * moxie-tdep.c (moxie_process_readu): Likewise.
1189 * nios2-tdep.c (nios2_get_next_pc): Likewise.
1190 * nto-procfs.c (procfs_store_registers): Likewise.
1191 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
1192 (ppcfbsd_store_inferior_registers): Likewise.
1193 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
1194 (fetch_altivec_register): Likewise.
1195 (get_spe_registers): Likewise.
1196 (fetch_spe_register): Likewise.
1197 (fetch_altivec_registers): Likewise.
1198 (fetch_all_gp_regs): Likewise.
1199 (fetch_all_fp_regs): Likewise.
1200 (store_vsx_register): Likewise.
1201 (store_altivec_register): Likewise.
1202 (set_spe_registers): Likewise.
1203 (store_spe_register): Likewise.
1204 (store_altivec_registers): Likewise.
1205 (store_all_gp_regs): Likewise.
1206 (store_all_fp_regs): Likewise.
1207 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1208 (ppc_linux_collect_gregset): Likewise.
1209 (ppc_canonicalize_syscall): Likewise.
1210 (ppc_linux_record_signal): Likewise.
1211 (ppu2spu_prev_register): Likewise.
1212 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1213 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
1214 (ppcobsd_store_registers): Likewise.
1215 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
1216 Likewise.
1217 (ppc_ravenscar_generic_store_registers): Likewise.
1218 * procfs.c (procfs_fetch_registers): Likewise.
1219 (procfs_store_registers): Likewise.
1220 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
1221 (ravenscar_store_registers): Likewise.
1222 (ravenscar_prepare_to_store): Likewise.
1223 * record-btrace.c (record_btrace_fetch_registers): Likewise.
1224 * record-full.c (record_full_wait_1): Likewise.
1225 (record_full_registers_change): Likewise.
1226 (record_full_store_registers): Likewise.
1227 (record_full_core_fetch_registers): Likewise.
1228 (record_full_save): Likewise.
1229 (record_full_goto_insn): Likewise.
1230 * regcache.c (regcache_register_size): Likewise.
1231 (get_regcache_arch): Remove.
1232 (regcache_read_pc): Likewise.
1233 * regcache.h (get_regcache_arch): Remove.
1234 * remote-sim.c (gdbsim_fetch_register): Likewise.
1235 (gdbsim_store_register): Likewise.
1236 * remote.c (fetch_register_using_p): Likewise.
1237 (send_g_packet): Likewise.
1238 (remote_prepare_to_store): Likewise.
1239 (store_registers_using_G): Likewise.
1240 * reverse.c (save_bookmark_command): Likewise.
1241 (goto_bookmark_command): Likewise.
1242 * rs6000-aix-tdep.c (branch_dest): Likewise.
1243 * rs6000-nat.c (rs6000_ptrace64): Likewise.
1244 (fetch_register): Likewise.
1245 * rs6000-tdep.c (ppc_supply_reg): Likewise.
1246 (ppc_collect_reg): Likewise.
1247 (ppc_collect_gregset): Likewise.
1248 (ppc_collect_fpregset): Likewise.
1249 (ppc_collect_vsxregset): Likewise.
1250 (ppc_collect_vrregset): Likewise.
1251 (ppc_displaced_step_hw_singlestep): Likewise.
1252 (rs6000_pseudo_register_read): Likewise.
1253 (rs6000_pseudo_register_write): Likewise.
1254 * s390-linux-nat.c (supply_gregset): Likewise.
1255 (fill_gregset): Likewise.
1256 (s390_linux_fetch_inferior_registers): Likewise.
1257 * s390-linux-tdep.c (s390_write_pc): Likewise.
1258 (s390_software_single_step): Likewise.
1259 (s390_all_but_pc_registers_record): Likewise.
1260 (s390_linux_syscall_record): Likewise.
1261 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
1262 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
1263 (shnbsd_store_inferior_registers): Likewise.
1264 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
1265 (sh_extract_return_value_fpu): Likewise.
1266 (sh_store_return_value_nofpu): Likewise.
1267 (sh_corefile_supply_regset): Likewise.
1268 (sh_corefile_collect_regset): Likewise.
1269 * sh64-tdep.c (sh64_extract_return_value): Likewise.
1270 (sh64_store_return_value): Likewise.
1271 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
1272 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
1273 (sparc_store_inferior_registers): Likewise.
1274 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
1275 (sparc_ravenscar_prepare_to_store): Likewise.
1276 * sparc-tdep.c (sparc32_store_arguments): Likewise.
1277 (sparc_analyze_control_transfer): Likewise.
1278 (sparc_step_trap): Likewise.
1279 (sparc_software_single_step): Likewise.
1280 (sparc32_gdbarch_init): Likewise.
1281 (sparc_supply_rwindow): Likewise.
1282 (sparc_collect_rwindow): Likewise.
1283 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
1284 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
1285 (sparc64nbsd_collect_gregset): Likewise.
1286 (sparc64nbsd_supply_fpregset): Likewise.
1287 (sparc64nbsd_collect_fpregset): Likewise.
1288 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
1289 (sparc64_supply_gregset): Likewise.
1290 (sparc64_collect_gregset): Likewise.
1291 (sparc64_supply_fpregset): Likewise.
1292 (sparc64_collect_fpregset): Likewise.
1293 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
1294 * spu-tdep.c (spu_unwind_sp): Likewise.
1295 (spu2ppu_prev_register): Likewise.
1296 (spu_memory_remove_breakpoint): Likewise.
1297 * stack.c (return_command): Likewise.
1298 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
1299 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1300 * tracefile.c (trace_save_ctf): Likewise.
1301 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
1302 (do_windows_store_inferior_registers): Likewise.
1303 (windows_resume): Likewise.
1304 * xtensa-linux-nat.c (fill_gregset): Likewise.
1305 (supply_gregset_reg): Likewise.
1306 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
1307 (xtensa_register_read_masked): Likewise.
1308 (xtensa_supply_gregset): Likewise.
1309 (xtensa_extract_return_value): Likewise.
1310 (xtensa_store_return_value): Likewise.
1311
1312 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
1313
1314 * doublest.c (floatformat_from_string): New function.
1315 * doublest.h (floatformat_from_string): Add prototype.
1316
1317 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
1318 (OP_FLOAT): ... this.
1319 * expression.h: Do not include "doublest.h".
1320 (union exp_element): Replace doubleconst and decfloatconst by
1321 new element floatconst.
1322 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
1323 (ada_evaluate_subexp): Likewise.
1324 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
1325 OP_DOUBLE and OP_DECFLOAT.
1326 * expprint.c (print_subexp_standard): Likewise.
1327 (dump_subexp_body_standard): Likewise.
1328 * breakpoint.c (watchpoint_exp_is_const): Likewise.
1329
1330 * parse.c: Include "dfp.h".
1331 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
1332 (write_exp_elt_floatcst): New function.
1333 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
1334 and OP_DECFLOAT.
1335 (operator_check_standard): Likewise.
1336 (parse_float): Do not accept suffix. Take type as input. Return bool.
1337 Return target format buffer instead of host DOUBLEST.
1338 Use floatformat_from_string and decimal_from_string to parse
1339 either binary or decimal floating-point types.
1340 (parse_c_float): Remove.
1341 * parser-defs.h: Do not include "doublest.h".
1342 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
1343 (write_exp_elt_floatcst): Add prototype.
1344 (parse_float): Update prototype.
1345 (parse_c_float): Remove.
1346
1347 * c-exp.y: Do not include "dfp.h".
1348 (typed_val_float): Use byte buffer instead of DOUBLEST.
1349 (typed_val_decfloat): Remove.
1350 (DECFLOAT): Remove.
1351 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1352 (parse_number): Update to new parse_float interface.
1353 Parse suffixes and determine type before calling parse_float.
1354 Handle decimal and binary FP types the same way.
1355
1356 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1357 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
1358 (parse_number): Update to new parse_float interface.
1359 Parse suffixes and determine type before calling parse_float.
1360
1361 * f-exp.y: Replace dval by typed_val_float.
1362 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1363 (parse_number): Use parse_float instead of atof.
1364
1365 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1366 (parse_go_float): Remove.
1367 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1368 (parse_number): Call parse_float instead of parse_go_float.
1369 Parse suffixes and determine type before calling parse_float.
1370
1371 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1372 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1373 (parse_number): Update to new parse_float interface.
1374 Parse suffixes and determine type before calling parse_float.
1375
1376 * m2-exp.y: Replace dval by byte buffer val.
1377 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1378 (parse_number): Call parse_float instead of atof.
1379
1380 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1381 (lex_number): Call parse_float instead of strtod.
1382 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
1383 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
1384 Use write_exp_elt_floatcst.
1385 (unit_testing): Remove static variable.
1386 (rust_type): Do not check unit_testing.
1387 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
1388
1389 * ada-exp.y (type_float, type_double): Remove.
1390 (typed_val_float): Use byte buffer instead of DOUBLEST.
1391 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1392 * ada-lex.l (processReal): Use parse_float instead of sscanf.
1393
1394 2017-10-25 Alan Hayward <alan.hayward@arm.com>
1395
1396 * aarch64-tdep.h (enum aarch64_regnum): Remove.
1397 * arch/aarch64.h: New file.
1398
1399 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1400
1401 * dfp.h (decimal_from_string): Use const reference for argument.
1402 * dfp.c (decimal_from_string): Likewise.
1403
1404 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1405
1406 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
1407 * sh64-tdep.c (sh64_do_fp_register): Likewise.
1408 * mips-tdep.c (mips_print_fp_register): Likewise.
1409
1410 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1411
1412 * common/format.h (enum argclass): Replace decfloat_arg by
1413 dec32float_arg, dec64float_arg, and dec128float_arg.
1414 * common/format.c (parse_format_string): Update to return
1415 new decimal float argument classes.
1416
1417 * printcmd.c (printf_decfloat): Rename to ...
1418 (printf_floating): ... this. Add argclass argument, and use it
1419 instead of parsing the format string again. Add support for
1420 binary floating-point values, using floatformat_to_string.
1421 Convert value to the target format if it doesn't already match.
1422 (ui_printf): Call printf_floating instead of printf_decfloat,
1423 also for double_arg / long_double_arg. Pass argclass.
1424
1425 * dfp.c (decimal_to_string): Add format string argument.
1426 * dfp.h (decimal_to_string): Likewise.
1427
1428 * doublest.c (floatformat_to_string): Add format string argument.
1429 * doublest.h (floatformat_to_string): Likewise.
1430
1431 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1432
1433 * doublest.c (floatformat_precision): New routine.
1434 (floatformat_to_string): Likewise.
1435 * doublest.c (floatformat_to_string): Add prototype.
1436
1437 * printcmd.c (print_scalar_formatted): Only call print_floating
1438 on floating-point types.
1439 * valprint.c: Do not include "floatformat.h".
1440 (generic_val_print_decfloat): Remove.
1441 (generic_val_print): Call generic_val_print_float for both
1442 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
1443 (print_floating): Use floatformat_to_string. Handle decimal float.
1444 (print_decimal_floating): Remove, merge into floatformat_to_string.
1445 * value.h (print_decimal_floating): Remove.
1446
1447 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
1448
1449 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1450
1451 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
1452
1453 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1454
1455 * memattr.h: Don't include vec.h.
1456 (struct mem_attrib): Initialize fields.
1457 <unknown>: New static method.
1458 (struct mem_region): Add constructors, operator<, initialize
1459 fields.
1460 * memattr.c: Include algorithm.
1461 (default_mem_attrib, unknown_mem_attrib): Remove.
1462 (user_mem_region_list): New global.
1463 (target_mem_region_list, mem_region_list): Change type to
1464 std::vector<mem_region>.
1465 (mem_use_target): Now a function.
1466 (target_mem_regions_valid): Change type to bool.
1467 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
1468 (require_user_regions): Adjust.
1469 (require_target_regions): Adjust.
1470 (create_mem_region): Adjust.
1471 (lookup_mem_region): Adjust.
1472 (invalidate_target_mem_regions): Adjust.
1473 (mem_clear): Rename to...
1474 (user_mem_clear): ... this, and adjust.
1475 (mem_command): Adjust.
1476 (info_mem_command): Adjust.
1477 (mem_enable, enable_mem_command, mem_disable,
1478 disable_mem_command): Adjust.
1479 (mem_delete): Adjust.
1480 (delete_mem_command): Adjust.
1481 * memory-map.h (parse_memory_map): Return an std::vector.
1482 * memory-map.c (parse_memory_map): Likewise.
1483 (struct memory_map_parsing_data): Add constructor.
1484 <memory_map>: Point to std::vector.
1485 (memory_map_start_memory): Adjust.
1486 (memory_map_end_memory): Adjust.
1487 (memory_map_end_property): Adjust.
1488 (clear_result): Remove.
1489 * remote.c (remote_memory_map): Return an std::vector.
1490 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
1491 Remove.
1492 (target_debug_print_mem_region_vector): New.
1493 * target-delegates.c: Regenerate.
1494 * target.h (mem_region_vector): New typedef.
1495 (to_memory_map): Return mem_region_vector.
1496 (target_memory_map): Return an std::vector.
1497 * target.c (target_memory_map): Return an std::vector.
1498 (flash_erase_command): Adjust.
1499
1500 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1501
1502 * memory-map.c (struct memory_map_parsing_data) <property_name>:
1503 Change type to std::string.
1504 (memory_map_start_property): Adjust.
1505 (memory_map_end_property): Adjust.
1506
1507 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1508
1509 * infrun.h: Include common/byte-vector.h.
1510 (struct displaced_step_closure): New struct.
1511 (struct buf_displaced_step_closure): New struct.
1512 * infrun.c (displaced_step_closure::~displaced_step_closure):
1513 Provide default implementation.
1514 (displaced_step_clear): Deallocate step closure with delete.
1515 * aarch64-tdep.c (displaced_step_closure): Rename to ...
1516 (aarch64_displaced_step_closure): ... this, extend
1517 displaced_step_closure.
1518 (aarch64_displaced_step_data) <dsc>: Change type to
1519 aarch64_displaced_step_closure.
1520 (aarch64_displaced_step_copy_insn): Adjust to type change, use
1521 unique_ptr.
1522 (aarch64_displaced_step_fixup): Add cast for displaced step
1523 closure.
1524 * amd64-tdep.c (displaced_step_closure): Rename to ...
1525 (amd64_displaced_step_closure): ... this, extend
1526 displaced_step_closure.
1527 <insn_buf>: Change type to std::vector<gdb_byte>.
1528 <max_len>: Remove.
1529 (fixup_riprel): Change type of DSC parameter, adjust to type
1530 change of insn_buf.
1531 (fixup_displaced_copy): Change type of DSC parameter.
1532 (amd64_displaced_step_copy_insn): Instantiate
1533 amd64_displaced_step_closure.
1534 (amd64_displaced_step_fixup): Add cast for closure type, adjust
1535 to type change of insn_buf.
1536 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
1537 parameter DSC.
1538 (arm_linux_copy_svc): Likewise.
1539 (cleanup_kernel_helper_return): Likewise.
1540 (arm_catch_kernel_helper_return): Likewise.
1541 (arm_linux_displaced_step_copy_insn): Instantiate
1542 arm_displaced_step_closure.
1543 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
1544 (displaced_read_reg): Change type of parameter DSC.
1545 (branch_write_pc): Likewise.
1546 (load_write_pc): Likewise.
1547 (alu_write_pc): Likewise.
1548 (displaced_write_reg): Likewise.
1549 (arm_copy_unmodified): Likewise.
1550 (thumb_copy_unmodified_32bit): Likewise.
1551 (thumb_copy_unmodified_16bit): Likewise.
1552 (cleanup_preload): Likewise.
1553 (install_preload): Likewise.
1554 (arm_copy_preload): Likewise.
1555 (thumb2_copy_preload): Likewise.
1556 (install_preload_reg): Likewise.
1557 (arm_copy_preload_reg): Likewise.
1558 (cleanup_copro_load_store): Likewise.
1559 (install_copro_load_store): Likewise.
1560 (arm_copy_copro_load_store) Likewise.
1561 (thumb2_copy_copro_load_store): Likewise.
1562 (cleanup_branch): Likewise.
1563 (install_b_bl_blx): Likewise.
1564 (arm_copy_b_bl_blx): Likewise.
1565 (thumb2_copy_b_bl_blx): Likewise.
1566 (thumb_copy_b): Likewise.
1567 (install_bx_blx_reg): Likewise.
1568 (arm_copy_bx_blx_reg): Likewise.
1569 (thumb_copy_bx_blx_reg): Likewise.
1570 (cleanup_alu_imm): Likewise.
1571 (arm_copy_alu_imm): Likewise.
1572 (thumb2_copy_alu_imm): Likewise.
1573 (cleanup_alu_reg): Likewise.
1574 (install_alu_reg): Likewise.
1575 (arm_copy_alu_reg): Likewise.
1576 (thumb_copy_alu_reg): Likewise.
1577 (cleanup_alu_shifted_reg): Likewise.
1578 (install_alu_shifted_reg): Likewise.
1579 (arm_copy_alu_shifted_reg): Likewise.
1580 (cleanup_load): Likewise.
1581 (cleanup_store): Likewise.
1582 (arm_copy_extra_ld_st): Likewise.
1583 (install_load_store): Likewise.
1584 (thumb2_copy_load_literal): Likewise.
1585 (thumb2_copy_load_reg_imm): Likewise.
1586 (arm_copy_ldr_str_ldrb_strb): Likewise.
1587 (cleanup_block_load_all): Likewise.
1588 (cleanup_block_store_pc): Likewise.
1589 (cleanup_block_load_pc): Likewise.
1590 (arm_copy_block_xfer): Likewise.
1591 (thumb2_copy_block_xfer): Likewise.
1592 (cleanup_svc): Likewise.
1593 (install_svc): Likewise.
1594 (arm_copy_svc): Likewise.
1595 (thumb_copy_svc): Likewise.
1596 (arm_copy_undef): Likewise.
1597 (thumb_32bit_copy_undef): Likewise.
1598 (arm_copy_unpred): Likewise.
1599 (arm_decode_misc_memhint_neon): Likewise.
1600 (arm_decode_unconditional): Likewise.
1601 (arm_decode_miscellaneous): Likewise.
1602 (arm_decode_dp_misc): Likewise.
1603 (arm_decode_ld_st_word_ubyte): Likewise.
1604 (arm_decode_media): Likewise.
1605 (arm_decode_b_bl_ldmstm): Likewise.
1606 (arm_decode_ext_reg_ld_st): Likewise.
1607 (thumb2_decode_dp_shift_reg): Likewise.
1608 (thumb2_decode_ext_reg_ld_st): Likewise.
1609 (arm_decode_svc_copro): Likewise.
1610 (thumb2_decode_svc_copro): Likewise.
1611 (install_pc_relative): Likewise.
1612 (thumb_copy_pc_relative_16bit): Likewise.
1613 (thumb_decode_pc_relative_16bit): Likewise.
1614 (thumb_copy_pc_relative_32bit): Likewise.
1615 (thumb_copy_16bit_ldr_literal): Likewise.
1616 (thumb_copy_cbnz_cbz): Likewise.
1617 (thumb2_copy_table_branch): Likewise.
1618 (cleanup_pop_pc_16bit_all): Likewise.
1619 (thumb_copy_pop_pc_16bit): Likewise.
1620 (thumb_process_displaced_16bit_insn): Likewise.
1621 (decode_thumb_32bit_ld_mem_hints): Likewise.
1622 (thumb_process_displaced_32bit_insn): Likewise.
1623 (thumb_process_displaced_insn): Likewise.
1624 (arm_process_displaced_insn): Likewise.
1625 (arm_displaced_init_closure): Likewise.
1626 (arm_displaced_step_fixup): Add cast for closure.
1627 * arm-tdep.h: Include infrun.h.
1628 (displaced_step_closure): Rename to ...
1629 (arm_displaced_step_closure): ... this, extend
1630 displaced_step_closure.
1631 <u::svc::copy_svc_os>: Change type of parameter DSC.
1632 <cleanup>: Likewise.
1633 (arm_process_displaced_insn): Likewise.
1634 (arm_displaced_init_closure): Likewise.
1635 (displaced_read_reg): Likewise.
1636 (displaced_write_reg): Likewise.
1637 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1638 Adjust.
1639 * i386-tdep.h: Include infrun.h.
1640 (i386_displaced_step_closure): New typedef.
1641 * i386-tdep.c (i386_displaced_step_copy_insn): Use
1642 i386_displaced_step_closure.
1643 (i386_displaced_step_fixup): Adjust.
1644 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
1645 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
1646 and unique_ptr.
1647 (ppc_displaced_step_fixup): Adjust.
1648 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
1649 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
1650 and unique_ptr.
1651 (s390_displaced_step_fixup): Adjust.
1652
1653 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1654
1655 * interps.h (interp_resume, interp_suspend, interp_set_temp):
1656 Remove declarations.
1657
1658 2017-10-20 Tom Tromey <tom@tromey.com>
1659
1660 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
1661 std::vector.
1662 (gdb_bfd_record_inclusion): Update.
1663 (bfdp): Remove typedef.
1664
1665 2017-10-20 Tom Tromey <tom@tromey.com>
1666
1667 * gdb_bfd.c (gdb_bfd_ref): Use new.
1668 (struct gdb_bfd_data): Add constructor, destructor, and member
1669 initializers.
1670 (gdb_bfd_unref): Use delete.
1671
1672 2017-10-20 Tom Tromey <tom@tromey.com>
1673
1674 * exec.c (exec_file_attach): Use new_bfd_ref.
1675 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
1676 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1677 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
1678 new_bfd_ref.
1679 * gdb_bfd.h (new_bfd_ref): New function.
1680
1681 2017-10-20 Pedro Alves <palves@redhat.com>
1682
1683 * main.c (captured_command_loop): Add attribute noinline.
1684
1685 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
1686
1687 * interps.c (struct interp_factory): Add constructor.
1688 (interp_factory_p): Remove typedef.
1689 (DEF_VEC_P(interp_factory_p)): Remove.
1690 (interpreter_factories): Change type to std::vector.
1691 (interp_factory_register): Adjust.
1692 (interp_lookup): Adjust.
1693 (interpreter_completer): Adjust.
1694
1695 2017-10-19 Tom Tromey <tom@tromey.com>
1696
1697 * break-catch-syscall.c (catch_syscall_completer): Use
1698 std::string, gdb::unique_xmalloc_ptr.
1699
1700 2017-10-19 Tom Tromey <tom@tromey.com>
1701
1702 * infcall.c (call_function_by_hand_dummy): Use std::string.
1703
1704 2017-10-19 Tom Tromey <tom@tromey.com>
1705
1706 * mi/mi-main.c (mi_cmd_execute): Update.
1707 * top.h (prepare_execute_command): Return scoped_value_mark.
1708 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
1709 Add move constructor.
1710 * top.c (prepare_execute_command): Return scoped_value_mark.
1711 (execute_command): Update.
1712
1713 2017-10-19 Pedro Alves <palves@redhat.com>
1714
1715 * xml-support.c (xml_fetch_content_from_file): Check fread's
1716 return.
1717
1718 2017-10-19 Pedro Alves <palves@redhat.com>
1719
1720 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
1721 async.
1722 (handle_error_fd): New function.
1723 (ser_base_async): Add/delete an event loop file handler for
1724 error_fd.
1725
1726 2017-10-19 Pedro Alves <palves@redhat.com>
1727
1728 * xml-support.c (xml_fetch_content_from_file): Don't read in
1729 chunks. Instead use fseek to determine the file's size, and read
1730 it in one go.
1731
1732 2017-11-18 Keith Seitz <keiths@redhat.com>
1733
1734 * c-exp.y (oper): Canonicalize conversion operators of user-defined
1735 types.
1736 Add whitespace to front of type name.
1737
1738 2017-10-18 Keith Seitz <keiths@redhat.com>
1739
1740 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
1741 DW_AT_accessibility.
1742
1743 2017-10-18 Yao Qi <yao.qi@linaro.org>
1744
1745 * features/tic6x-c62x-linux.c: Remove.
1746
1747 2017-10-17 Tom Tromey <tom@tromey.com>
1748
1749 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
1750 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
1751 (do_mixed_source_and_assembly): Likewise.
1752
1753 2017-10-17 Tom Tromey <tom@tromey.com>
1754
1755 * regcache.c (regcache::xfer_part): Remove assertion.
1756
1757 2017-10-17 Pedro Alves <palves@redhat.com>
1758
1759 * xml-support.c (xml_fetch_content_from_file): Call
1760 unique_ptr::release() instead unique_ptr::get() when passing
1761 through xrealloc.
1762
1763 2017-10-17 Yao Qi <yao.qi@linaro.org>
1764
1765 * regcache.c (regcache::xfer_part): Remove parameters read and
1766 write, add parameter is_raw. All callers are updated.
1767
1768 2017-10-16 Keith Seitz <keiths@redhat.com>
1769
1770 * c-typeprint.c (enum access_specifier): Moved here from
1771 c_type_print_base.
1772 (output_access_specifier): New function.
1773 (c_type_print_base): Consider typedefs when assessing
1774 whether access labels are needed.
1775 Use output_access_specifier as needed.
1776 Output access specifier for typedefs, if needed.
1777 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
1778 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
1779 fields.
1780 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
1781 accessor macros.
1782
1783 2017-10-16 Tom Tromey <tom@tromey.com>
1784
1785 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
1786 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
1787 * target.c (target_fileio_read_stralloc): Update.
1788 * sparc64-tdep.c (adi_is_addr_mapped): Update.
1789 * target.h (target_fileio_read_stralloc): Return
1790 unique_xmalloc_ptr.
1791
1792 2017-10-16 Tom Tromey <tom@tromey.com>
1793
1794 * xml-syscall.c (xml_init_syscalls_info): Update.
1795 * xml-support.c (xinclude_start_include): Update.
1796 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
1797 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
1798 (xml_fetch_content_from_file): Likewise.
1799 * osdata.c (get_osdata): Update.
1800 * target.h (target_read_stralloc, target_get_osdata): Return
1801 unique_xmalloc_ptr.
1802 * solib-aix.c (solib_aix_get_library_list): Update.
1803 * solib-target.c (solib_target_current_sos): Update.
1804 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
1805 * xml-tdesc.c (fetch_available_features_from_target): Update.
1806 (target_fetch_description_xml): Update.
1807 (file_read_description_xml): Update.
1808 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
1809 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
1810 (remote_pid_to_exec_file): Update.
1811 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
1812 (target_get_osdata): Likewise.
1813
1814 2017-10-16 Tom Tromey <tom@tromey.com>
1815
1816 * remote.c (remote_register_number_and_offset): Use std::vector.
1817 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
1818 (putpkt_binary): Use gdb::def_vector.
1819 (compare_sections_command): Use gdb::byte_vector.
1820
1821 2017-10-16 Tom Tromey <tom@tromey.com>
1822
1823 * ppc-linux-nat.c (hwdebug_insert_point): Use
1824 gdb::unique_xmalloc_ptr, XDUP.
1825
1826 2017-10-16 Tom Tromey <tom@tromey.com>
1827
1828 * probe.c (parse_probes): Use std::string.
1829 (info_probes_for_ops, enable_probes_command)
1830 (disable_probes_command): Remove cleanups.
1831
1832 2017-10-16 Tom Tromey <tom@tromey.com>
1833
1834 * buildsym.c (block_compar): Remove.
1835 (end_symtab_get_static_block): Use std::vector.
1836
1837 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
1838
1839 * memrange.h (struct mem_range): Define operator< and operator==.
1840 (mem_range_s): Remove.
1841 (DEF_VEC_O (mem_range_s)): Remove.
1842 (normalize_mem_ranges): Change parameter type to std::vector.
1843 * memrange.c (compare_mem_ranges): Remove.
1844 (normalize_mem_ranges): Change parameter type to std::vector,
1845 adjust to vector change.
1846 * exec.c (section_table_available_memory): Return vector, remove
1847 parameter.
1848 (section_table_read_available_memory): Adjust to std::vector
1849 change.
1850 * remote.c (remote_read_bytes): Adjust to std::vector
1851 change.
1852 * tracepoint.h (traceframe_available_memory): Change parameter
1853 type to std::vector.
1854 * tracepoint.c (traceframe_available_memory): Change parameter
1855 type to std::vector, adjust.
1856 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
1857 std::vector change.
1858 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1859 unittests/memrange-selftests.c.
1860 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
1861 * gdb/unittests/memrange-selftests.c: New file.
1862
1863 2017-10-16 Pedro Alves <palves@redhat.com>
1864
1865 * elfread.c (probe_key_free): Rename range-for variable.
1866 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
1867 (find_probe_by_pc, collect_probes): Rename range-for variable.
1868
1869 2017-10-16 Yao Qi <yao.qi@linaro.org>
1870
1871 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1872 * features/tic6x-c62x.c: Remove.
1873 * features/tic6x-c64x-linux.c: Remove.
1874 * features/tic6x-c64x.c: Remove.
1875 * features/tic6x-c64xp-linux.c: Remove.
1876 * features/tic6x-c64xp.c: Remove.
1877 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1878 initialize_tdesc_tic6x_*_linux functions.
1879 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1880 initialize_tdesc_tic6x_* functions.
1881
1882 2017-10-16 Yao Qi <yao.qi@linaro.org>
1883
1884 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1885 tic6x-c62x.
1886 * regformats/tic6x-c62x.dat: Remove.
1887 * regformats/tic6x-c64x.dat: Remove.
1888 * regformats/tic6x-c64xp.dat: Remove.
1889
1890 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1891
1892 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1893 (the !HAVE_LIBEXPAT version).
1894
1895 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1896
1897 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1898 const.
1899
1900 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1901
1902 * target.h: Include tracepoint.h.
1903 (enum trace_find_type): Move to tracepoint.h.
1904 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1905 * tracepoint.h: Don't include target.h
1906 (enum trace_find_type): Move from target.h.
1907 (parse_traceframe_info): Return a unique ptr.
1908 * tracepoint.c (current_traceframe_info): Change type to unique
1909 ptr.
1910 (free_traceframe_info): Remove.
1911 (clear_traceframe_info): Don't manually free
1912 current_traceframe_info.
1913 (free_result): Remove.
1914 (parse_traceframe_info): Return a unique ptr.
1915 (get_traceframe_info): Adjust to unique ptr.
1916 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1917 * remote.c (remote_traceframe_info): Return a unique ptr.
1918 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1919 ptr.
1920 * target-debug.h (target_debug_print_traceframe_info_up): New
1921 macro.
1922 * target-delegates.c: Regenerate.
1923
1924 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1925
1926 * memrange.h (struct mem_range): Add constructors.
1927 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1928 std::vector<mem_range>.
1929 * tracepoint.c (free_traceframe_info): Don't manually free
1930 vector.
1931 (traceframe_info_start_memory): Adjust to vector change.
1932 (traceframe_available_memory): Likewise.
1933 * tracefile-tfile.c (build_traceframe_info): Likewise.
1934 * ctf.c (ctf_traceframe_info): Likewise.
1935
1936 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1937
1938 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1939 std::vector<int>.
1940 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1941 (traceframe_info_start_tvar): Adjust to vector change.
1942 (parse_traceframe_info): Allocate with new.
1943 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1944 vector change.
1945 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1946 change.
1947 tfile_traceframe_info): Allocate with new.
1948 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1949 change.
1950
1951 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1952
1953 * tracepoint.c (traceframe_info): Rename to...
1954 (current_traceframe_info): ...this.
1955 (clear_traceframe_info): Adjust.
1956 (get_traceframe_info): Adjust.
1957
1958 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1959
1960 * nat/linux-osdata.c: Include algorithm.
1961 (compare_processes): Remove.
1962 (struct pid_pgid_entry): New struct.
1963 (linux_xfer_osdata_processgroups): Use std::vector instead of
1964 XNEWVEC.
1965
1966 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1967
1968 * objfiles.h: Don't include symfile.h.
1969 (struct partial_symbol): Remove forward-declaration.
1970 (struct objfile) <global_psymbols, static_psymbols>: Change type
1971 to std::vector<partial_symbol *>.
1972 * objfiles.c (objfile::objfile): Don't memset those fields.
1973 (objfile::~objfile): Don't free those fields.
1974 * psympriv.h (struct psymbol_allocation_list): Remove
1975 forward-declaration.
1976 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1977 to std::vector.
1978 (start_psymtab_common): Change parameters to std::vector.
1979 * psymtab.c: Include algorithm.
1980 (require_partial_symbols): Call shrink_to_fit.
1981 (find_pc_sect_psymbol): Adjust to vector change.
1982 (match_partial_symbol): Likewise.
1983 (lookup_partial_symbol): Likewise.
1984 (psym_relocate): Likewise.
1985 (dump_psymtab): Likewise.
1986 (recursively_search_psymtabs): Likewise.
1987 (compare_psymbols): Remove.
1988 (sort_pst_symbols): Adjust to vector change.
1989 (start_psymtab_common): Likewise.
1990 (end_psymtab_common): Likewise.
1991 (psymbol_bcache_full): De-constify return value.
1992 (add_psymbol_to_bcache): Likewise.
1993 (extend_psymbol_list): Remove.
1994 (append_psymbol_to_list): Adjust to vector change.
1995 (add_psymbol_to_list): Likewise.
1996 (init_psymbol_list): Likewise.
1997 (maintenance_info_psymtabs): Likewise.
1998 (maintenance_check_psymtabs): Likewise.
1999 * symfile.h (struct psymbol_allocation_list): Remove.
2000 * symfile.c (reread_symbols): Adjust to vector change.
2001 * dbxread.c (start_psymtab): Change type of parameters.
2002 (dbx_symfile_read): Adjust to vector change.
2003 (read_dbx_symtab): Likewise.
2004 (start_psymtab): Change type of parameters.
2005 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
2006 (create_partial_symtab): Likewise.
2007 (add_partial_symbol): Likewise.
2008 (write_one_signatured_type): Likewise.
2009 (recursively_write_psymbols): Likewise.
2010 * mdebugread.c (parse_partial_symbols): Likewise.
2011 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
2012 (scan_xcoff_symtab): Adjust to vector change.
2013 (xcoff_initial_scan): Likewise.
2014
2015 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
2016
2017 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
2018
2019 2017-10-13 Yao Qi <yao.qi@linaro.org>
2020
2021 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
2022 Remove s390x-*-expedite, add s390x-expedite.
2023
2024 2017-10-13 Yao Qi <yao.qi@linaro.org>
2025
2026 * features/s390-gs-linux64.c: Regenerated.
2027 * features/s390x-gs-linux64.c: Regenerated.
2028
2029 2017-10-13 Tom Tromey <tom@tromey.com>
2030
2031 * compile/compile-object-run.c (do_module_cleanup): Use delete.
2032 * solib.c (update_solib_list, reload_shared_libraries_1): Use
2033 delete.
2034 * symfile.c (symbol_file_add_with_addrs): Use new.
2035 (symbol_file_add_separate): Update comment.
2036 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
2037 * jit.c (jit_object_close_impl): Use new.
2038 (jit_unregister_code): Use delete.
2039 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
2040 (~objfile): Rename from free_objfile.
2041 (free_objfile_separate_debug, do_free_objfile_cleanup)
2042 (free_all_objfiles, objfile_purge_solibs): Use delete.
2043 * objfiles.h (struct objfile): Add constructor and destructor.
2044 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
2045 (allocate_objfile, free_objfile): Don't declare.
2046 (struct objstats): Add initializers.
2047
2048 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2049
2050 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
2051 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
2052 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
2053 * gdbarch.h: Regenerate.
2054 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
2055 Adjust comment.
2056 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
2057 (i386_displaced_step_fixup): Adjust comment.
2058 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
2059
2060 2017-10-12 Tom Tromey <tom@tromey.com>
2061
2062 * prologue-value.h (pv_area::store_would_trash): Return bool.
2063 (pv_area::find_reg): Likewise.
2064 * prologue-value.c (pv_area::store_would_trash): Return bool.
2065 (pv_area::find_reg): Likewise.
2066
2067 2017-10-12 Tom Tromey <tom@tromey.com>
2068
2069 * s390-linux-tdep.c (s390_store, s390_load)
2070 (s390_check_for_saved, s390_analyze_prologue): Update.
2071 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
2072 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
2073 * prologue-value.h (class pv_area): Move from prologue-value.c.
2074 Change names of members. Add constructor, destructor, member
2075 functions.
2076 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
2077 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
2078 (pv_area_fetch, pv_area_scan): Don't declare.
2079 * prologue-value.c (struct pv_area::area_entry): Now member of
2080 pv_area.
2081 (struct pv_area): Move to prologue-value.h.
2082 (pv_area::pv_area): Rename from make_pv_area.
2083 (pv_area::~pv_area): Rename from free_pv_area.
2084 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
2085 (clear_entries, find_entry, overlaps, store_would_trash, store)
2086 (fetch, find_reg, scan): Now member of pv_area.
2087 Remove "area" argument. Update.
2088 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
2089 Update.
2090 * mn10300-tdep.c (push_reg, check_for_saved)
2091 (mn10300_analyze_prologue): Update.
2092 * mep-tdep.c (is_arg_spill, check_for_saved)
2093 (mep_analyze_prologue): Update.
2094 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
2095 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
2096 (m32c_is_struct_return, m32c_analyze_prologue): Update.
2097 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
2098 Update.
2099 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
2100 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
2101
2102 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2103
2104 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
2105 * linux-nat.c (linux_nat_delete_thread): New variable.
2106 (lwp_free): Invoke linux_nat_delete_thread if set.
2107 (linux_nat_set_delete_thread): New function.
2108 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
2109 thread delete callback.
2110 * arm-linux-nat.c (arm_linux_delete_thread): New function.
2111 (_initialize_arm_linux_nat): Assign thread delete callback.
2112 * s390-linux-nat.c (s390_delete_thread): New function.
2113 (_initialize_s390_nat): Assign thread delete callback.
2114 * x86-linux-nat.c (x86_linux_add_target): Likewise.
2115 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
2116 function.
2117 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
2118 declaration.
2119 * nat/x86-linux.c (x86_linux_delete_thread): New function.
2120 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
2121
2122 2017-10-09 Tom Tromey <tom@tromey.com>
2123
2124 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
2125 std::string.
2126 * tui/tui-layout.c (enum tui_status): Use std::string.
2127
2128 2017-10-11 Tom Tromey <tom@tromey.com>
2129
2130 * gdbthread.h (thread_command): Constify.
2131 * inferior.h (detach_command): Constify.
2132 * top.h (set_history, show_history): Constify.
2133 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
2134 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
2135 * bsd-kvm.c (bsd_kvm_cmd): Constify.
2136 * printcmd.c (set_command): Constify.
2137 (non_const_set_command): New function.
2138 * dcache.c (set_dcache_command, show_dcache_command): Constify.
2139 * breakpoint.c (enable_command, disable_command, delete_command)
2140 (catch_command, tcatch_command, set_breakpoint_cmd)
2141 (show_breakpoint_cmd): Constify.
2142 * macrocmd.c (macro_command): Constify.
2143 * infcmd.c (unset_command, kill_command, detach_command)
2144 (info_proc_cmd): Constify.
2145 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
2146 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
2147 (info_auto_load_cmd): Constify.
2148 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
2149 (unset_tdesc_cmd): Constify.
2150 * ada-lang.c (set_ada_command, show_ada_command)
2151 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
2152 * guile/guile.c (set_guile_command, show_guile_command)
2153 (info_guile_command): Constify.
2154 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
2155 Constify.
2156 * skip.c (skip_command): Constify.
2157 * compile/compile.c (_initialize_compile): Constify.
2158 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
2159 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
2160 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
2161 (maint_btrace_pt_show_cmd): Constify.
2162 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
2163 Constify.
2164 * python/python.c (user_show_python, user_set_python): Constify.
2165 * mips-tdep.c (set_mips_command, show_mips_command)
2166 (set_mipsfpu_command): Constify.
2167 * record-btrace.c (cmd_record_btrace_start)
2168 (cmd_set_record_btrace, cmd_show_record_btrace)
2169 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
2170 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
2171 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
2172 Constify.
2173 * symfile.c (overlay_command): Constify.
2174 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
2175 * cli/cli-logging.c (set_logging_command, show_logging_command):
2176 Constify.
2177 * cli/cli-dump.c (dump_command, append_command)
2178 (srec_dump_command, ihex_dump_command, verilog_dump_command)
2179 (tekhex_dump_command, binary_dump_command)
2180 (binary_append_command): Constify.
2181 * cli/cli-decode.c (struct cmd_list_element): Change type of
2182 "fun".
2183 * cli/cli-cmds.c (info_command, show_command, set_debug)
2184 (show_debug): Constify.
2185 (show_command): Add non-const overload.
2186 * top.c (set_history, show_history): Constify.
2187 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
2188 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
2189 * target.c (target_command): Constify.
2190 * sparc64-tdep.c (info_adi_command): Constify.
2191 * record-full.c (cmd_record_full_start): Constify.
2192 (set_record_full_command): Constify. Fix typo.
2193 (show_record_full_command): Constify.
2194 * thread.c (thread_command, thread_apply_command): Constify.
2195 * memattr.c (dummy_cmd): Constify.
2196 * value.c (function_command): Constify.
2197 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
2198 * probe.c (info_probes_command): Constify.
2199 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
2200 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
2201 (show_thread_cmd, set_thread_default_cmd)
2202 (show_thread_default_cmd): Constify.
2203 (check_empty): Constify.
2204 * tracepoint.c (tfind_command): Constify.
2205 * cp-support.c (maint_cplus_command): Constify.
2206 * windows-tdep.c (info_w32_command): Constify.
2207 * record.c (cmd_record_start, set_record_command)
2208 (show_record_command, info_record_command, cmd_record_goto):
2209 Constify.
2210 * ravenscar-thread.c (set_ravenscar_command)
2211 (show_ravenscar_command): Constify.
2212 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
2213 Constify.
2214 (add_internal_problem_command): Remove casts.
2215 * arc-tdep.c (maintenance_print_arc_command): Constify.
2216 * valprint.c (set_print, show_print, set_print_raw)
2217 (show_print_raw): Constify.
2218 * maint.c (maintenance_command, maintenance_info_command)
2219 (maintenance_print_command, maintenance_set_cmd)
2220 (maintenance_show_cmd, set_per_command_cmd)
2221 (show_per_command_cmd, maintenance_check_command): Constify.
2222 * language.c (set_check, show_check): Constify.
2223 * typeprint.c (show_print_type, set_print_type): Constify.
2224 * go32-nat.c (go32_info_dos_command): Constify.
2225
2226 2017-10-11 Tom Tromey <tom@tromey.com>
2227
2228 * breakpoint.c (prepare_re_set_context): Remove.
2229 (breakpoint_re_set_one): Update. Don't use cleanups.
2230 (breakpoint_re_set): Use scoped_restore, std::string, and
2231 scoped_restore_current_language.
2232
2233 2017-10-11 Tom Tromey <tom@tromey.com>
2234
2235 * breakpoint.c (commands_command_1): Use std::string.
2236 (cleanup_executing_breakpoints): Remove.
2237 (bpstat_do_actions_1): Use scoped_restore.
2238 (bpstat_check_watchpoint): Use std::string.
2239 (decode_static_tracepoint_spec): Likewise.
2240 (break_range_command): Likewise.
2241 (watch_command_1): Likewise.
2242 (compare_breakpoints): Change argument types.
2243 (clear_command): Use std::vector.
2244 (cleanup_executing_breakpoints): Remove.
2245 (update_global_location_list): Use unique_xmalloc_ptr.
2246 (strace_command): Remove unused declaration.
2247
2248 2017-10-11 John Baldwin <jhb@FreeBSD.org>
2249
2250 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
2251 * NEWS: Mention new FreeBSD/arm native configuration.
2252 * configure.host: Add arm*-*-freebsd*.
2253 * configure.nat: Likewise.
2254 * arm-fbsd-nat.c: New file.
2255
2256 2017-10-11 John Baldwin <jhb@FreeBSD.org>
2257
2258 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
2259 (ALLDEPFILES): Add arm-fbsd-tdep.c.
2260 * NEWS: Mention new FreeBSD/arm target.
2261 * configure.tgt: Add arm*-*-freebsd*.
2262 * arm-fbsd-tdep.c: New file.
2263 * arm-fbsd-tdep.h: New file.
2264
2265 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
2266
2267 * linux-tdep.c (linux_make_corefile_notes): Remove call to
2268 `gdbarch_elfcore_write_linux_prpsinfo'.
2269 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
2270 method.
2271 (elf_internal_linux_prpsinfo): Remove declaration.
2272 * gdbarch.h: Regenerate.
2273 * gdbarch.c: Regenerate.
2274
2275 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
2276
2277 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
2278 `set_gdbarch_elfcore_write_linux_prpsinfo'.
2279
2280 2017-10-11 Pedro Alves <palves@redhat.com>
2281
2282 * breakpoint.c (reattach_breakpoints): Delete.
2283 * breakpoint.h (reattach_breakpoints): Delete.
2284
2285 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
2286
2287 * symfile.c (registered_sym_fns): Make struct, not typedef.
2288 (DEF_VEC_O (registered_sym_fns)): Remove.
2289 (symtab_fns): Change type to std::vector.
2290 (add_symtab_fns): Adjust.
2291 (find_sym_fns): Adjust.
2292
2293 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
2294
2295 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
2296 * arc-tdep.h (arc_arch_is_em): New function.
2297 (arc_arch_is_hs): Likewise.
2298
2299 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
2300
2301 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
2302 parentheses in the declaration.
2303 (macro_lookup_inclusion): Likewise.
2304 (macro_lookup_definition): Likewise.
2305 * p-lang.h (pascal_builtin_types): Likewise.
2306 * tui/tui-data.c (tui_win_list): Likewise.
2307 * tui/tui-data.h (tui_win_list): Likewise.
2308 * utils.h (make_cleanup_free_section_addr_info): Likewise.
2309
2310 2017-10-11 Mark Rages <markrages@gmail.com>
2311
2312 * target-memory.c (block_boundaries): Fix for block address not
2313 aligned on block size.
2314
2315 2017-10-10 Pedro Alves <palves@redhat.com>
2316 Tom Tromey <tom@tromey.com>
2317
2318 * breakpoint.c (struct captured_breakpoint_query_args)
2319 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
2320 (print_breakpoint): New.
2321 * breakpoint.h (print_breakpoint): Declare.
2322 * common/common-exceptions.h (enum return_reason): Remove
2323 references to catch_exceptions.
2324 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
2325 Delete.
2326 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
2327 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
2328 * gdb.h: Delete.
2329 * gdbthread.h (thread_select): Declare.
2330 * mi/mi-cmd-break.c: Don't include gdb.h.
2331 (breakpoint_notify): Use print_breakpoint.
2332 * mi/mi-cmd-catch.c: Don't include gdb.h.
2333 * mi/mi-interp.c: Don't include gdb.h.
2334 (mi_print_breakpoint_for_event): New.
2335 (mi_breakpoint_created, mi_breakpoint_modified): Use
2336 mi_print_breakpoint_for_event.
2337 * mi/mi-main.c: Don't include gdb.h.
2338 (mi_cmd_thread_select): Parse the global thread ID here. Use
2339 thread_select instead of gdb_thread_select.
2340 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
2341 of using gdb_list_thread_ids.
2342 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
2343 FILEIO_ENOSYS here.
2344 (remote_fileio_request): Use TRY/CATCH instead of
2345 catch_exceptions.
2346 * symfile-mem.c (struct symbol_file_add_from_memory_args)
2347 (symbol_file_add_from_memory_wrapper): Delete.
2348 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
2349 * thread.c: Don't include gdb.h.
2350 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
2351 (thread_alive): Use thread_select.
2352 (do_captured_thread_select): Delete, parts salvaged as ...
2353 (thread_select): ... this new function.
2354 (gdb_thread_select): Delete.
2355
2356 2017-10-10 Pedro Alves <palves@redhat.com>
2357 Tom Tromey <tom@tromey.com>
2358
2359 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
2360 and reverse logic.
2361 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
2362 No longer macros. Instead ...
2363 (enum wp_check_result): They're now values of this new
2364 enumeration.
2365 (watchpoint_check): Change return type to wp_check_result and
2366 parameter type to bpstat.
2367 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
2368 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
2369 catch_errors. Reverse logic of watchpoint_check call.
2370 (breakpoint_re_set_one): Now returns void and takes a breakpoint
2371 pointer as parameter.
2372 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
2373 * common/common-exceptions.c (throw_exception_sjlj): Update
2374 comments to avoid mentioning catch_errors.
2375 * exceptions.c (catch_errors): Delete.
2376 * exceptions.h: Update comments to avoid mentioning catch_errors.
2377 (catch_errors_ftype, catch_errors): Delete.
2378 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
2379 (hook_stop_stub): Delete.
2380 (restore_selected_frame): Change return type to void, and
2381 parameter type to const frame_id &.
2382 (restore_infcall_control_state): Use TRY/CATCH instead of
2383 catch_errors.
2384 * main.c (captured_command_loop): Return void and remove
2385 parameter. Remove references to catch_errors.
2386 (captured_main): Use TRY/CATCH instead of catch_errors.
2387 * objc-lang.c (objc_submethod_helper_data)
2388 (find_objc_msgcall_submethod_helper): Delete.
2389 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
2390 catch_errors.
2391 * record-full.c (record_full_message): Return void.
2392 (record_full_message_args, record_full_message_wrapper): Delete.
2393 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
2394 instead of catch_errors.
2395 * solib-aix.c (solib_aix_open_symbol_file_object): Change
2396 parameter type to int.
2397 * solib-darwin.c (open_symbol_file_object): Ditto.
2398 * solib-dsbt.c (open_symbol_file_object): Ditto.
2399 * solib-frv.c (open_symbol_file_object): Ditto.
2400 * solib-svr4.c (open_symbol_file_object): Ditto.
2401 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
2402 * solib.c (update_solib_list): Use TRY/CATCH instead of
2403 catch_errors.
2404 * solist.h (struct target_so_ops) <open_symbol_file_object>:
2405 Change type.
2406 * symmisc.c (struct print_symbol_args): Remove.
2407 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
2408 (print_symbol): Change type.
2409 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
2410 and remove parameters.
2411 (catch_errors): New.
2412 (get_windows_debug_event): Adjust.
2413
2414 2017-10-09 Tom Tromey <tom@tromey.com>
2415
2416 * mi/mi-main.c (free_splay_tree): Remove.
2417 (list_available_thread_groups): Use splay_tree_up.
2418 * common/gdb_splay_tree.h: New file.
2419
2420 2017-10-09 Tom Tromey <tom@tromey.com>
2421
2422 * mi/mi-main.c (do_nothing): Remove.
2423 (list_available_thread_groups): Update.
2424
2425 2017-10-09 Pedro Alves <palves@redhat.com>
2426
2427 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
2428 reading registers when switching context.
2429
2430 2017-10-09 John Baldwin <jhb@FreeBSD.org>
2431
2432 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
2433 (fbsd_convert_siginfo): Likewise.
2434 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
2435
2436 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
2437
2438 * configure.ac (try_guile_versions): Remove guile-2.2.
2439 * configure: Regenerate.
2440
2441 2017-10-09 Tom Tromey <tom@tromey.com>
2442
2443 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
2444 (COMPILE.pre): Use $(CXX).
2445
2446 2017-10-09 Pedro Alves <palves@redhat.com>
2447
2448 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
2449 Use bool.
2450 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
2451 * cp-support.h (cp_remove_params): Now returns a
2452 gdb::unique_xmalloc_ptr.
2453 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
2454 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
2455 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
2456 returning a gdb::unique_xmalloc_ptr.
2457 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
2458 * stack.c (find_frame_funname): Adjust to cp_remove_params
2459 returning a gdb::unique_xmalloc_ptr.
2460
2461 2017-10-08 Tom Tromey <tom@tromey.com>
2462
2463 * dwarf2read.c (dwarf2_get_dwz_file): Use
2464 gdb::unique_xmalloc_ptr.
2465 (find_slot_in_mapped_hash): Likewise.
2466 (dwarf2_physname): Likewise.
2467 (create_dwo_unit_in_dwp_v1): Use std::string.
2468 (create_dwo_unit_in_dwp_v2): Likewise.
2469 (lookup_dwo_cutu): Likewise.
2470 (inherit_abstract_dies): Use std::vector.
2471 (read_array_type): Likewise.
2472 (dwarf_decode_macros): Remove unused declaration.
2473 (unsigned_int_compar): Remove.
2474 (dwarf2_build_psymtabs_hard): Use scoped_restore.
2475 (psymtabs_addrmap_cleanup): Remove.
2476
2477 2017-10-08 Tom Tromey <tom@tromey.com>
2478
2479 * frame-unwind.c (frame_unwind_try_unwinder): Update.
2480 * frame.h (frame_cleanup_after_sniffer): Declare.
2481 (frame_prepare_for_sniffer): Return void.
2482 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
2483 type of argument.
2484 (frame_prepare_for_sniffer): Return void.
2485
2486 2017-10-08 Tom Tromey <tom@tromey.com>
2487
2488 * utils.h (make_cleanup_value_free): Remove.
2489 * utils.c (do_value_free, struct cleanup): Remove.
2490 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
2491 Use gdb_value_up.
2492 * value.h (struct value_deleter): New.
2493 (gdb_value_up): New typedef.
2494
2495 2017-10-08 Tom Tromey <tom@tromey.com>
2496
2497 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
2498 (make_cleanup_free_search_symbols): Remove.
2499 (search_symbols): Return std::vector.
2500 (symbol_search::compare_search_syms): Now member of
2501 symbol_search. Change arguments.
2502 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
2503 (symtab_symbol_info, rbreak_command): Update.
2504 * symtab.h (struct symbol_search) <next>: Remove.
2505 Add constructors.
2506 (symbol_search::operator<): New function.
2507 (symbol_search::operator==): New function.
2508 (search_symbols): Remove std::vector.
2509 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
2510 (symbol_search::compare_search_syms): Declare.
2511
2512 2017-10-06 Yao Qi <yao.qi@linaro.org>
2513
2514 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
2515 arch/aarch64-insn.o.
2516 Remove one rule.
2517 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
2518
2519 2017-10-06 Yao Qi <yao.qi@linaro.org>
2520
2521 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
2522 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
2523 arch/arm-linux.o respectively.
2524 * configure.tgt: Likewise.
2525
2526 2017-10-06 Yao Qi <yao.qi@linaro.org>
2527
2528 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
2529 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
2530
2531 2017-10-06 Pedro Alves <palves@redhat.com>
2532
2533 * windows-nat.c: Include <algorithm>.
2534
2535 2017-10-06 Yao Qi <yao.qi@linaro.org>
2536
2537 * configure.tgt (i386_tobjs): New variable.
2538 (amd64_tobjs): New variable.
2539 Set $cpu_obs and $os_obs.
2540
2541 2017-10-06 Yao Qi <yao.qi@linaro.org>
2542
2543 * Makefile.in (CONFIG_SRC_SUBDIR): New.
2544 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
2545 (clean): Remove object files and dependency files.
2546 (distclean): Remove the directory.
2547 * configure.ac: Invoke AC_CONFIG_COMMANDS.
2548 * configure: Re-generated.
2549 * configure.tgt: Replace amd64.o with arch/amd64.o.
2550
2551 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
2552
2553 PR build/22188
2554 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
2555 and SETEND.
2556
2557 2017-10-05 Pedro Alves <palves@redhat.com>
2558
2559 * linux-nat.c (linux_child_follow_fork): When following the parent
2560 and detaching the child, consult the parent thread's architecture
2561 instead of the child's.
2562
2563 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2564
2565 * ax.h: Do not include "doublest.h".
2566 (union agent_val): Remove.
2567
2568 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2569
2570 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
2571 (decimal_to_string): Return std::string object.
2572 (decimal_from_string): Accept std::string object. Return bool.
2573 (decimal_from_integral, decimal_from_doublest): Remove.
2574 (decimal_from_longest): Add prototype.
2575 (decimal_from_ulongest): Likewise.
2576 (decimal_to_longest): Likewise.
2577 (decimal_from_doublest): Likewise.
2578 * dfp.c: Do not include "gdbtypes.h" or "value.h".
2579 (MAX_DECIMAL_STRING): Move here.
2580 (decimal_to_string): Return std::string object.
2581 (decimal_from_string): Accept std::string object. Return bool.
2582 (decimal_from_integral): Remove, replace by ...
2583 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
2584 (decimal_to_longest): New function.
2585 (decimal_from_floating): Remove, replace by ...
2586 (decimal_from_doublest): ... this new function.
2587 (decimal_to_doublest): Update to new decimal_to_string interface.
2588
2589 * value.c (unpack_long): Use decimal_to_longest.
2590 * valops.c (value_cast): Use decimal_from_doublest instead of
2591 decimal_from_floating. Use decimal_from_[u]longest isntead of
2592 decimal_from_integral.
2593 * valarith.c (value_args_as_decimal): Likewise.
2594 * valprint.c (print_decimal_floating): Update to new
2595 decimal_to_string interface.
2596 * printcmd.c (printf_decfloat): Likewise.
2597 * c-exp.y (parse_number): Update to new decimal_from_string interface.
2598
2599 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2600
2601 * doublest.h: Do not include "floatformat.h". Remove stale comments.
2602 * gdbtypes.c: Include "floatformat.h".
2603 * value.c: Likewise.
2604 * m68k-tdep.c: Likewise.
2605
2606 * findvar.c: Do not include "floatformat.h".
2607 * amd64-darwin-tdep.c: Likewise.
2608 * arm-linux-tdep.c: Likewise.
2609 * i386-darwin-tdep.c: Likewise.
2610 * i387-tdep.c: Likewise.
2611 * m68k-linux-tdep.c: Likewise.
2612 * mep-tdep.c: Likewise.
2613 * mips-tdep.c: Likewise.
2614 * nios2-tdep.c: Likewise.
2615 * s390-linux-tdep.c: Likewise.
2616 * sparc-obsd-tdep.c: Likewise.
2617 * sparc-tdep.c: Likewise.
2618 * sparc64-tdep.c: Likewise.
2619 * spu-tdep.c: Likewise.
2620 * tic6x-tdep.c: Likewise.
2621 * tilegx-tdep.c: Likewise.
2622 * vax-tdep.c: Likewise.
2623 * xstormy16-tdep.c: Likewise.
2624 * xtensa-tdep.c: Likewise.
2625
2626 * top.c: Do not include "doublest.h".
2627 * aarch64-tdep.c: Likewise.
2628 * alpha-tdep.c: Likewise.
2629 * arm-linux-tdep.c: Likewise.
2630 * m68k-linux-tdep.c: Likewise.
2631 * tilegx-tdep.c: Likewise.
2632 * xstormy16-tdep.c: Likewise.
2633
2634 2017-10-05 John Baldwin <jhb@FreeBSD.org>
2635
2636 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
2637 (mipsn32_fbsd_sigframe): Define.
2638 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
2639 for FreeBSD/mipsn32.
2640
2641 2017-10-05 John Baldwin <jhb@FreeBSD.org>
2642
2643 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
2644 AT_HWCAP.
2645
2646 2017-10-05 Tristan Gingold <tgingold@free.fr>
2647
2648 * MAINTAINERS (Misc): Update my email address.
2649
2650 2017-10-04 Pedro Alves <palves@redhat.com>
2651
2652 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
2653 it instead of target_gdbarch.
2654 (get_remote_state, get_remote_packet_size): Adjust
2655 get_remote_arch_state calls, passing down target_gdbarch
2656 explicitly.
2657 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
2658 'gdbarch' and use it instead of target_gdbarch.
2659 (get_memory_packet_size): Adjust get_remote_arch_state calls,
2660 passing down target_gdbarch explicitly.
2661 (struct stop_reply) <arch>: New field.
2662 (remote_parse_stop_reply): Use the stopped thread's architecture,
2663 not the current inferior's. Save the architecture in the
2664 stop_reply.
2665 (process_stop_reply): Use the stop reply's architecture.
2666 (process_g_packet, remote_fetch_registers)
2667 (remote_prepare_to_store, store_registers_using_G)
2668 (remote_store_registers): Adjust get_remote_arch_state calls,
2669 using the regcache's architecture.
2670 (remote_get_trace_status): Adjust get_remote_arch_state calls,
2671 passing down target_gdbarch explicitly.
2672 * spu-multiarch.c (spu_thread_architecture): Defer to the target
2673 beneath instead of calling target_gdbarch.
2674 * target.c (default_thread_architecture): Use the specified
2675 inferior's architecture, instead of the current inferior's
2676 architecture (via target_gdbarch).
2677
2678 2017-10-04 Pedro Alves <palves@redhat.com>
2679
2680 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
2681 case.
2682 (regcache_print): Handle !target_has_registers here instead.
2683
2684 2017-10-04 Pedro Alves <palves@redhat.com>
2685
2686 * frame.c (create_test_frame): Delete.
2687 * frame.h (create_test_frame): Delete.
2688 * gdbarch-selftests.c: Include gdbthread.h and target.h.
2689 (class regcache_test): Delete.
2690 (test_target_has_registers, test_target_has_stack)
2691 (test_target_has_memory, test_target_prepare_to_store)
2692 (test_target_store_registers): New functions.
2693 (test_target_ops): New class.
2694 (register_to_value_test): Error out if there's already a
2695 process_stratum (or higher) target pushed. Create a fuller mock
2696 environment, with mock target_ops, inferior, address space, thread
2697 and inferior_ptid.
2698 * progspace.c (struct address_space): Move to ...
2699 * progspace.h (struct address_space): ... here.
2700 * regcache.h (regcache::~regcache, regcache::raw_write)
2701 [GDB_SELF_TEST]: No longer virtual.
2702
2703 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
2704
2705 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
2706
2707 2017-10-04 Pedro Alves <palves@redhat.com>
2708
2709 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
2710 out of 'between TRY and CATCH'.
2711
2712 2017-10-04 Pedro Alves <palves@redhat.com>
2713
2714 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
2715 * common/common-exceptions.h (TRY): Open an outermost scope.
2716 Expand intro comment.
2717 (CATCH): Reindent.
2718 (END_CATCH): Close the outermost scope.
2719 * completer.c (complete_line_internal): Add missing END_CATCH.
2720
2721 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2722
2723 * NEWS (Changes since GDB 8.0): Add entry about new
2724 'set-cwd-on-gdbserver' feature.
2725 (New remote packets): Add entry for QSetWorkingDir.
2726 * common/common-inferior.h (set_inferior_cwd): New prototype.
2727 * infcmd.c (set_inferior_cwd): Remove "static".
2728 (show_cwd_command): Expand text to include remote debugging.
2729 * remote.c: Add PACKET_QSetWorkingDir.
2730 (remote_protocol_features) <QSetWorkingDir>: New entry for
2731 PACKET_QSetWorkingDir.
2732 (extended_remote_set_inferior_cwd): New function.
2733 (extended_remote_create_inferior): Call
2734 "extended_remote_set_inferior_cwd".
2735 (_initialize_remote): Call "add_packet_config_cmd" for
2736 QSetWorkingDir.
2737
2738 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2739
2740 * NEWS (New commands): Mention "set/show cwd".
2741 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
2742 "cd" command's help text.
2743 * common/common-inferior.h (get_inferior_cwd): New prototype.
2744 * infcmd.c (inferior_cwd_scratch): New global variable.
2745 (set_inferior_cwd): New function.
2746 (get_inferior_cwd): Likewise.
2747 (set_cwd_command): Likewise.
2748 (show_cwd_command): Likewise.
2749 (_initialize_infcmd): Add "set/show cwd" commands.
2750 * inferior.h (class inferior) <cwd>: New field.
2751 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
2752 (fork_inferior): Change inferior's cwd before its execution.
2753 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
2754 to CreateProcess.
2755
2756 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2757
2758 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
2759 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
2760 (COMMON_OBS): Add gdb_tilde_expand.o.
2761 * common/gdb_tilde_expand.c: New file.
2762 * common/gdb_tilde_expand.h: Likewise.
2763
2764 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
2765
2766 * gdbarch.sh (objfile): Remove duplicate declaration.
2767 * gdbarch.h: Regenerate.
2768
2769 2017-10-03 Tom Tromey <tom@tromey.com>
2770
2771 * utils.c (internal_vproblem): Use string_vprintf.
2772
2773 2017-10-03 Tom Tromey <tom@tromey.com>
2774
2775 * printcmd.c (info_symbol_command): Use std::string.
2776
2777 2017-10-03 Tom Tromey <tom@tromey.com>
2778
2779 * top.c (gdb_safe_append_history): Use std::string.
2780
2781 2017-10-03 Tom Tromey <tom@tromey.com>
2782
2783 * event-top.c (stdin_event_handler): Update.
2784 * main.c (captured_main_1): Update.
2785 * top.h (make_delete_ui_cleanup): Remove.
2786 (struct ui): Add constructor and destructor.
2787 (new_ui, delete_ui): Remove.
2788 * top.c (make_delete_ui_cleanup): Remove.
2789 (new_ui_command): Use std::unique_ptr.
2790 (delete_ui_cleanup): Remove.
2791 (ui::ui): Rename from new_ui. Update.
2792 (free_ui): Remove.
2793 (ui::~ui): Rename from delete_ui. Update.
2794
2795 2017-10-03 Tom Tromey <tom@tromey.com>
2796
2797 * symfile.c (load_progress): Use gdb::byte_vector.
2798
2799 2017-10-03 Tom Tromey <tom@tromey.com>
2800
2801 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
2802 declaration.
2803 * printcmd.c (x_command): Remove unused declaration.
2804 * symfile.c (symbol_file_command): Remove unused declaration.
2805
2806 2017-10-03 Tom Tromey <tom@tromey.com>
2807
2808 * utils.c (internal_vproblem): Use std::string.
2809 (defaulted_query): Likewise.
2810
2811 2017-10-03 Tom Tromey <tom@tromey.com>
2812
2813 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
2814 * top.c (execute_command_to_string): Update.
2815 * utils.c (make_cleanup_restore_page_info): Remove.
2816 (do_restore_page_info_cleanup): Remove.
2817 (set_batch_flag_and_restore_page_info):
2818 New.
2819 (make_cleanup_restore_page_info): Remove.
2820 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2821 (~set_batch_flag_and_restore_page_info): New
2822 (make_cleanup_restore_uinteger): Remove.
2823 (make_cleanup_restore_integer): Remove.
2824 (struct restore_integer_closure): Remove.
2825 (restore_integer): Remove.
2826 * utils.h (struct set_batch_flag_and_restore_page_info): New
2827 class.
2828 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2829 (make_cleanup_restore_page_info): Remove.
2830 (make_cleanup_restore_uinteger) Remove.
2831 (make_cleanup_restore_integer) Remove.
2832
2833 2017-10-03 Tom Tromey <tom@tromey.com>
2834
2835 * record-full.h (record_full_gdb_operation_disable_set): Return
2836 scoped_restore_tmpl<int>.
2837 * infrun.c (adjust_pc_after_break): Update.
2838 (handle_signal_stop): Update.
2839 * record-full.c (record_full_gdb_operation_disable_set): Return
2840 scoped_restore_tmpl<int>.
2841 (record_full_wait_1, record_full_insert_breakpoint)
2842 (record_full_remove_breakpoint, record_full_save)
2843 (record_full_goto_insn): Update.
2844
2845 2017-10-02 Tom Tromey <tom@tromey.com>
2846
2847 PR rust/22236:
2848 * rust-lang.c (rust_val_print_str): New function.
2849 (val_print_struct): Call it.
2850 (rust_subscript): Preserve name of slice type.
2851
2852 2017-10-02 Tom Tromey <tom@tromey.com>
2853
2854 * rust-lang.c (rust_subscript): Handle slices in
2855 EVAL_AVOID_SIDE_EFFECTS case.
2856
2857 2017-10-02 Tom Tromey <tom@tromey.com>
2858
2859 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
2860
2861 2017-10-02 Tom Tromey <tom@tromey.com>
2862
2863 * rust-lang.h (rust_slice_type): Add "extern".
2864
2865 2017-10-02 Tom Tromey <tom@tromey.com>
2866 Pedro Alves <palves@redhat.com>
2867
2868 * ada-lang.h (ada_exc_info::operator<): Make const.
2869 (ada_exc_info::operator==): Make const.
2870 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2871 Make const.
2872
2873 2017-09-29 Tom Tromey <tom@tromey.com>
2874
2875 * target.c (read_whatever_is_readable): Change type of "result".
2876 Update.
2877 (free_memory_read_result_vector): Remove.
2878 (read_memory_robust): Change return type. Update.
2879 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2880 bin2hex, std::string.
2881 * target.h (memory_read_result_s): Remove typedef.
2882 (free_memory_read_result_vector): Remove.
2883 (read_memory_robust): Return std::vector.
2884
2885 2017-09-29 Tom Tromey <tom@tromey.com>
2886
2887 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2888
2889 2017-09-29 Tom Tromey <tom@tromey.com>
2890
2891 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2892 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2893 operator< and operator==.
2894 (ada_exceptions_list): Return a std::vector.
2895 * ada-lang.c (ada_exc_info::operator<): Rename from
2896 compare_ada_exception_info.
2897 (ada_exc_info::operator==): New.
2898 (sort_remove_dups_ada_exceptions_list): Change type of
2899 "exceptions".
2900 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2901 (ada_add_global_exceptions): Likewise.
2902 (ada_exceptions_list_1): Return a std::vector.
2903 (ada_exceptions_list): Likewise.
2904
2905 2017-09-29 Tom Tromey <tom@tromey.com>
2906
2907 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2908 'std::set *'.
2909 (print_one_inferior): Update.
2910 (free_vector_of_ints): Remove.
2911 (list_available_thread_groups): Change "ids" to std::set.
2912 (mi_cmd_list_thread_groups): Update.
2913 (struct collect_cores_data) <core>: Now a std::set.
2914 (collect_cores): Update.
2915 (unique): Remove.
2916 (print_one_inferior): Update.
2917
2918 2017-09-29 Tom Tromey <tom@tromey.com>
2919
2920 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2921 (mi_execute_async_cli_command): Likewise.
2922 (mi_cmd_trace_frame_collected): Use field_fmt.
2923
2924 2017-09-29 Tom Tromey <tom@tromey.com>
2925
2926 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2927 gdb::byte_vector.
2928
2929 2017-09-29 Tom Tromey <tom@tromey.com>
2930
2931 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2932
2933 2017-09-29 Tom Tromey <tom@tromey.com>
2934
2935 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2936
2937 2017-09-29 Tom Tromey <tom@tromey.com>
2938
2939 * varobj.h (varobj_gen_name): Return std::string.
2940 * varobj.c (varobj_gen_name): Return std::string.
2941 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2942 (mi_cmd_var_delete): Don't copy "name".
2943
2944 2017-09-29 Tom Tromey <tom@tromey.com>
2945
2946 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2947 (mi_cmd_break_insert_1): Update.
2948
2949 2017-09-29 Tom Tromey <tom@tromey.com>
2950
2951 * target.h (make_scoped_defer_target_commit_resume): Update.
2952 * target.c (make_scoped_defer_target_commit_resume): Rename from
2953 make_cleanup_defer_target_commit_resume. Return a
2954 scoped_restore.
2955 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2956
2957 2017-09-29 Tom Tromey <tom@tromey.com>
2958
2959 * main.c (captured_main_1): Remove unused declaration.
2960 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2961
2962 2017-09-29 Tom Tromey <tom@tromey.com>
2963
2964 * symtab.c (search_symbols): Remove unused outer cleanup.
2965 (make_source_files_completion_list): Remove unused declaration.
2966
2967 2017-09-29 Tom Tromey <tom@tromey.com>
2968
2969 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2970
2971 2017-09-29 Tom Tromey <tom@tromey.com>
2972
2973 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2974 gdb::byte_vector.
2975
2976 2017-09-29 Tom Tromey <tom@tromey.com>
2977
2978 * complaints.c (vcomplaint): Use std::string.
2979
2980 2017-09-29 Tom Tromey <tom@tromey.com>
2981
2982 * tracepoint.c (trace_variable_command): Use std::string.
2983 (encode_actions_1): Remove unused declarations.
2984 (create_tsv_from_upload): Use std::string.
2985
2986 2017-09-29 Tom Tromey <tom@tromey.com>
2987
2988 * cp-support.c (gdb_demangle): Use std::string.
2989
2990 2017-09-29 Tom Tromey <tom@tromey.com>
2991
2992 * stack.c (parse_frame_specification): Use std::string
2993 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2994
2995 2017-09-29 Tom Tromey <tom@tromey.com>
2996
2997 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2998
2999 2017-09-29 Tom Tromey <tom@tromey.com>
3000
3001 * utils.c (vfprintf_maybe_filtered): Use std::string.
3002 (vfprintf_unfiltered): Likewise.
3003
3004 2017-09-29 Tom Tromey <tom@tromey.com>
3005
3006 * event-top.c (top_level_prompt): Return std::string.
3007 (display_gdb_prompt): Update.
3008
3009 2017-09-29 Tom Tromey <tom@tromey.com>
3010
3011 * unittests/common-utils-selftests.c (format): New function.
3012 (string_vprintf_tests): New function.
3013 (_initialize_common_utils_selftests): Register new tests.
3014 * common/common-utils.c (string_vprintf): New function.
3015 * common/common-utils.h (string_vprintf): Declare.
3016
3017 2017-09-29 Pedro Alves <palves@redhat.com>
3018
3019 * common/rsp-low.c (unpack_varlen_hex): Constify.
3020 * common/rsp-low.h (unpack_varlen_hex): Constify.
3021 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3022 Constify.
3023 * remote.c (remote_set_permissions, read_ptid)
3024 (remote_current_thread, remote_get_threads_with_qthreadinfo)
3025 (remote_static_tracepoint_marker_at)
3026 (remote_static_tracepoint_markers_by_strid)
3027 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
3028 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
3029 (parse_tracepoint_definition, parse_tsv_definition)
3030 (parse_static_tracepoint_marker_definition): Constify.
3031 * tracepoint.h (parse_static_tracepoint_marker_definition)
3032 (parse_trace_status, parse_tracepoint_status)
3033 (parse_tracepoint_definition, parse_tsv_definition): Constify.
3034
3035 2017-09-29 Pedro Alves <palves@redhat.com>
3036
3037 * remote.c (target_buf, target_buf_size): Delete.
3038 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
3039 Use the connection's packet buffer instead.
3040 All callers adjusted.
3041 (_initialize_remote): Remove references to target_buf and
3042 target_buf_size.
3043
3044 2017-09-28 Pedro Alves <palves@redhat.com>
3045
3046 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3047 unittests/common-utils-selftests.c.
3048 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
3049 (COMMON_OBS): Remove utils-selftests.o.
3050 * utils-selftests.c: Move to ...
3051 * unittests/common-utils-selftests.c: ... here and rename self
3052 test to "string_printf".
3053
3054 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
3055
3056 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
3057 having NULL cus or tus.
3058
3059 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3060
3061 * arm-tdep.c: (convert_from_extended): Remove.
3062 (convert_to_extended): Likewise.
3063 (arm_extract_return_value): Use convert_typed_floating.
3064 (arm_store_return_value): Likewise.
3065
3066 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
3067 * sh-tdep.c: Do not include "floatformat.h".
3068 (sh_littlebyte_bigword_type): New function.
3069 (sh_register_convert_to_virtual): Use convert_typed_floating.
3070 (sh_register_convert_to_raw): Likewise.
3071 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
3072 (sh64_littlebyte_bigword_type): New function.
3073 (sh64_extract_return_value): Use convert_typed_floating.
3074 (sh64_register_convert_to_virtual): Likewise.
3075 (sh64_register_convert_to_raw): Likewise.
3076
3077 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3078
3079 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
3080 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
3081
3082 * gdbtypes.h (union type_specific): Make field floatformat hold
3083 just a single struct floatformat, not an array.
3084 (floatformat_from_type): Move here.
3085 * gdbtypes.c (floatformat_from_type): Move here. Update to
3086 changed TYPE_FLOATFORMAT definition.
3087 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
3088 (recursive_dump_type): Likewise.
3089 (init_float_type): Install correct floatformat for byte order.
3090 (arch_float_type): Likewise.
3091
3092 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
3093
3094 * gdbtypes.c (init_type): Change incoming argument from
3095 length-in-bytes to length-in-bits. Assert length is a
3096 multiple of TARGET_CHAR_BITS.
3097 (arch_type, arch_flags_type): Likewise.
3098 (init_integer_type): Update call to init_type.
3099 (init_character_type): Likewise.
3100 (init_boolean_type): Likewise.
3101 (init_float_type): Likewise.
3102 (init_decfloat_type): Likewise.
3103 (init_complex_type): Likewise.
3104 (init_pointer_type): Likewise.
3105 (objfile_type): Likewise.
3106 (arch_integer_type): Update call to arch_type.
3107 (arch_character_type): Likewise.
3108 (arch_boolean_type): Likewise.
3109 (arch_float_type): Likewise.
3110 (arch_decfloat_type): Likewise.
3111 (arch_complex_type): Likewise.
3112 (arch_pointer_type): Likewise.
3113 (gdbtypes_post_init): Likewise.
3114
3115 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
3116 (read_base_type): Likewise.
3117 * mdebugread.c (basic_type): Likewise.
3118 * stabsread.c (dbx_init_float_type): Likewise.
3119 (rs6000_builtin_type): Likewise.
3120 (read_range_type): Likewise. Also, fix call to init_integer_type
3121 with erroneous length argument.
3122
3123 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
3124 * d-lang.c (build_d_types): Likewise.
3125 * f-lang.c (build_fortran_types): Likewise.
3126 * go-lang.c (build_go_types): Likewise.
3127 * opencl-lang.c (build_opencl_types): Likewise.
3128 * jit.c (finalize_symtab): Likewise.
3129 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3130 (build_std_type_info_type): Likewise.
3131 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
3132 update call to arch_flags_type.
3133
3134 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
3135 arch_type.
3136 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
3137 * windows-tdep.c (windows_get_tlb_type): Likewise.
3138
3139 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
3140 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
3141 * m32c-tdep.c (make_types): Likewise.
3142 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3143 (rl78_psw_type): Update call to arch_flags_type.
3144 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
3145 * rx-tdep.c (rx_psw_type): Likewise.
3146 (rx_fpsw_type): Likewise.
3147 * sparc-tdep.c (sparc_psr_type): Likewise.
3148 (sparc_fsr_type): Likewise.
3149 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
3150 (sparc64_ccr_type): Likewise.
3151 (sparc64_fsr_type): Likewise.
3152 (sparc64_fprs_type): Likewise.
3153
3154 2017-09-27 Tom Tromey <tom@tromey.com>
3155
3156 * findcmd.c (find_command): Constify.
3157
3158 2017-09-27 Tom Tromey <tom@tromey.com>
3159
3160 * ada-tasks.c (task_command_1, task_command): Constify.
3161
3162 2017-09-27 Tom Tromey <tom@tromey.com>
3163
3164 * symtab.c (maintenance_print_symbol_cache)
3165 (maintenance_flush_symbol_cache)
3166 (maintenance_print_symbol_cache_statistics): Constify.
3167
3168 2017-09-27 Tom Tromey <tom@tromey.com>
3169
3170 * inferior.c (detach_inferior_command, kill_inferior_command)
3171 (inferior_command): Constify.
3172
3173 2017-09-27 Tom Tromey <tom@tromey.com>
3174
3175 * regcache.c (regcache_print, maintenance_print_registers)
3176 (maintenance_print_raw_registers)
3177 (maintenance_print_cooked_registers)
3178 (maintenance_print_register_groups)
3179 (maintenance_print_remote_registers): Constify.
3180
3181 2017-09-27 Tom Tromey <tom@tromey.com>
3182
3183 * printcmd.c (map_display_numbers, undisplay_command)
3184 (enable_disable_display_command, enable_display_command)
3185 (disable_display_command): Constify.
3186
3187 2017-09-27 Tom Tromey <tom@tromey.com>
3188
3189 * breakpoint.h (delete_command): Don't declare.
3190 * breakpoint.c (delete_command, enable_once_command)
3191 (enable_count_command, enable_delete_command, breakpoint_1)
3192 (maintenance_info_breakpoints, stopin_command, stopat_command)
3193 (delete_command, delete_trace_command, save_breakpoints)
3194 (save_breakpoints_command, save_tracepoints_command): Constify.
3195
3196 2017-09-27 Tom Tromey <tom@tromey.com>
3197
3198 * macrocmd.c (macro_expand_command, macro_expand_once_command)
3199 (skip_ws, extract_identifier, macro_define_command)
3200 (macro_undef_command, macro_list_command): Constify.
3201
3202 2017-09-27 Tom Tromey <tom@tromey.com>
3203
3204 * infcmd.c (environment_info, set_environment_command)
3205 (unset_environment_command, path_info, info_proc_cmd_1)
3206 (info_proc_cmd_mappings, info_proc_cmd_stat)
3207 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
3208 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
3209
3210 2017-09-27 Tom Tromey <tom@tromey.com>
3211
3212 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
3213 Constify.
3214
3215 2017-09-27 Tom Tromey <tom@tromey.com>
3216
3217 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
3218
3219 2017-09-27 Tom Tromey <tom@tromey.com>
3220
3221 * demangle.c (demangle_command): Constify.
3222
3223 2017-09-27 Tom Tromey <tom@tromey.com>
3224
3225 * progspace.c (maintenance_info_program_spaces_command):
3226 Constify.
3227
3228 2017-09-27 Tom Tromey <tom@tromey.com>
3229
3230 * compile/compile.c (check_raw_argument, compile_file_command)
3231 (compile_code_command, compile_print_command): Constify.
3232
3233 2017-09-27 Tom Tromey <tom@tromey.com>
3234
3235 * reggroups.c (maintenance_print_reggroups): Constify.
3236
3237 2017-09-27 Tom Tromey <tom@tromey.com>
3238
3239 * dwarf2read.c (save_gdb_index_command): Constify.
3240
3241 2017-09-27 Tom Tromey <tom@tromey.com>
3242
3243 * stap-probe.c (info_probes_stap_command): Constify.
3244
3245 2017-09-27 Tom Tromey <tom@tromey.com>
3246
3247 * fork-child.c (unset_exec_wrapper_command): Constify.
3248
3249 2017-09-27 Tom Tromey <tom@tromey.com>
3250
3251 * btrace.c (get_uint, get_context_size, no_chunk)
3252 (maint_btrace_packet_history_cmd)
3253 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
3254 (maint_info_btrace_cmd): Constify.
3255
3256 2017-09-27 Tom Tromey <tom@tromey.com>
3257
3258 * reverse.c (delete_bookmark_command): Constify.
3259
3260 2017-09-27 Tom Tromey <tom@tromey.com>
3261
3262 * remote.c (set_memory_packet_size)
3263 (set_memory_write_packet_size, show_memory_write_packet_size)
3264 (set_memory_read_packet_size, show_memory_read_packet_size)
3265 (compare_sections_command, packet_command, remote_put_command)
3266 (remote_get_command, remote_delete_command): Constify.
3267
3268 2017-09-27 Tom Tromey <tom@tromey.com>
3269
3270 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
3271 (set_mipsfpu_double_command, set_mipsfpu_none_command)
3272 (set_mipsfpu_auto_command): Constify.
3273
3274 2017-09-27 Tom Tromey <tom@tromey.com>
3275
3276 * cli/cli-cmds.h (cd_command): Constify.
3277 * cli/cli-cmds.c (cd_command): Constify.
3278
3279 2017-09-27 Tom Tromey <tom@tromey.com>
3280
3281 * thread.c (thread_name_command, thread_find_command): Constify.
3282
3283 2017-09-27 Tom Tromey <tom@tromey.com>
3284
3285 * probe.c (enable_probes_command, disable_probes_command):
3286 Constify.
3287
3288 2017-09-27 Tom Tromey <tom@tromey.com>
3289
3290 * symfile.c (symbol_file_command): Constify.
3291 * gdbcore.h (deprecated_file_changed_hook): Constify.
3292 * exec.c (deprecated_file_changed_hook, exec_file_command)
3293 (file_command): Constify.
3294 * defs.h (symbol_file_command): Constify.
3295
3296 2017-09-27 Tom Tromey <tom@tromey.com>
3297
3298 * remote-fileio.c (set_system_call_allowed)
3299 (show_system_call_allowed): Constify.
3300
3301 2017-09-27 Tom Tromey <tom@tromey.com>
3302
3303 * tracepoint.c (delete_trace_variable_command)
3304 (tfind_end_command, tfind_start_command, tfind_pc_command)
3305 (tfind_tracepoint_command, tfind_line_command)
3306 (tfind_range_command, tfind_outside_command): Constify.
3307
3308 2017-09-27 Tom Tromey <tom@tromey.com>
3309
3310 * ax-gdb.c (maint_agent_printf_command, agent_command)
3311 (agent_eval_command): Constify.
3312
3313 2017-09-27 Tom Tromey <tom@tromey.com>
3314
3315 * tracepoint.c (info_scope_command): Constify.
3316 * python/python.c (gdbpy_decode_line): Constify.
3317 * python/py-breakpoint.c (bppy_init): Constify.
3318 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
3319 * location.h: (new_linespec_location)
3320 (string_to_event_location_basic, string_to_event_location):
3321 Constify.
3322 * location.c (new_linespec_location)
3323 (string_to_event_location_basic, string_to_event_location):
3324 Constify.
3325 * linespec.h (decode_line_with_current_source)
3326 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
3327 * linespec.c (linespec_lex_to_end)
3328 (decode_line_with_current_source)
3329 (decode_line_with_last_displayed): Constify.
3330 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
3331 Constify.
3332 * cli/cli-cmds.c (edit_command, list_command): Constify.
3333 * breakpoint.h (until_break_command, watch_command_wrapper)
3334 (awatch_command_wrapper, rwatch_command_wrapper)
3335 (init_ada_exception_breakpoint): Constify.
3336 * breakpoint.c (break_command_1, dprintf_command)
3337 (break_range_command, watch_command_wrapper)
3338 (rwatch_command_wrapper, awatch_command_wrapper)
3339 (until_break_command, init_ada_exception_breakpoint)
3340 (strace_marker_create_sals_from_location, trace_command)
3341 (ftrace_command, strace_command, struct tracepoint): Constify.
3342 * ax-gdb.c (agent_command_1): Constify.
3343 * ada-lang.c (ada_exception_sal): Constify.
3344
3345 2017-09-27 Tom Tromey <tom@tromey.com>
3346
3347 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
3348 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
3349 (get_context_size, no_chunk, get_insn_history_modifiers)
3350 (cmd_record_insn_history, get_call_history_modifiers)
3351 (cmd_record_call_history): Constify.
3352
3353 2017-09-27 Tom Tromey <tom@tromey.com>
3354
3355 * source.c (show_substitute_path_command)
3356 (unset_substitute_path_command, set_substitute_path_command):
3357 Constify.
3358
3359 2017-09-27 Tom Tromey <tom@tromey.com>
3360
3361 * typeprint.c (maintenance_print_type): Constify.
3362 * maint.c (maintenance_dump_me, maintenance_demangle)
3363 (maintenance_time_display, maintenance_info_sections)
3364 (maintenance_print_statistics, maintenance_deprecate)
3365 (maintenance_undeprecate): Constify.
3366 (maintenance_do_deprecate): Constify. Use std::string.
3367 (maintenance_selftest): Constify.
3368 * gdbtypes.h (maintenance_print_type): Constify.
3369
3370 2017-09-27 Tom Tromey <tom@tromey.com>
3371
3372 * hppa-tdep.c (unwind_command): Constify.
3373
3374 2017-09-27 Tom Tromey <tom@tromey.com>
3375
3376 * target-descriptions.c (unset_tdesc_filename_cmd)
3377 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
3378 Constify.
3379
3380 2017-09-27 Tom Tromey <tom@tromey.com>
3381
3382 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
3383
3384 2017-09-27 Tom Tromey <tom@tromey.com>
3385
3386 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
3387
3388 2017-09-27 Tom Tromey <tom@tromey.com>
3389
3390 * tui/tui-regs.c (tui_reg_command): Constify.
3391
3392 2017-09-27 Tom Tromey <tom@tromey.com>
3393
3394 * skip.c (skip_file_command, skip_function_command)
3395 (skip_enable_command, skip_disable_command, skip_delete_command):
3396 Constify.
3397
3398 2017-09-27 Tom Tromey <tom@tromey.com>
3399
3400 * record-btrace.c (cmd_record_btrace_bts_start)
3401 (cmd_record_btrace_pt_start): Constify.
3402
3403 2017-09-27 Tom Tromey <tom@tromey.com>
3404
3405 * symmisc.c (maintenance_print_symbols)
3406 (maintenance_print_msymbols, maintenance_print_objfiles)
3407 (maintenance_info_symtabs, maintenance_check_symtabs)
3408 (maintenance_expand_symtabs, maintenance_info_line_tables):
3409 Constify.
3410
3411 2017-09-27 Tom Tromey <tom@tromey.com>
3412
3413 * top.c (new_ui_command): Constify.
3414
3415 2017-09-27 Tom Tromey <tom@tromey.com>
3416
3417 * symfile.c (add_symbol_file_command)
3418 (remove_symbol_file_command, list_overlays_command)
3419 (map_overlay_command, unmap_overlay_command)
3420 (overlay_auto_command, overlay_manual_command)
3421 (overlay_off_command, overlay_load_command): Constify.
3422
3423 2017-09-27 Tom Tromey <tom@tromey.com>
3424
3425 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3426 (info_spu_mailbox_command, info_spu_dma_command)
3427 (info_spu_proxydma_command): Constify.
3428
3429 2017-09-27 Tom Tromey <tom@tromey.com>
3430
3431 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
3432
3433 2017-09-27 Tom Tromey <tom@tromey.com>
3434
3435 * cli/cli-script.c (user_defined_command): Constify.
3436
3437 2017-09-27 Tom Tromey <tom@tromey.com>
3438
3439 * cli/cli-dump.c (dump_memory_command, dump_value_command)
3440 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
3441 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
3442 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
3443 (dump_binary_value, append_binary_memory, append_binary_value):
3444 Constify.
3445 (struct dump_context) <func>: Constify.
3446 (add_dump_command): Update.
3447
3448 2017-09-27 Tom Tromey <tom@tromey.com>
3449
3450 * cli/cli-cmds.c (show_version, show_configuration)
3451 (source_command, show_user): Constify.
3452
3453 2017-09-27 Tom Tromey <tom@tromey.com>
3454
3455 * target.c (maintenance_print_target_stack): Constify.
3456
3457 2017-09-27 Tom Tromey <tom@tromey.com>
3458
3459 * interps.c (interpreter_exec_cmd): Constify.
3460
3461 2017-09-27 Tom Tromey <tom@tromey.com>
3462
3463 * record-full.c (cmd_record_full_restore): Constify.
3464
3465 2017-09-27 Tom Tromey <tom@tromey.com>
3466
3467 * memattr.c (enable_mem_command, disable_mem_command)
3468 (delete_mem_command): Constify.
3469
3470 2017-09-27 Tom Tromey <tom@tromey.com>
3471
3472 * value.c (show_convenience): Constify.
3473
3474 2017-09-27 Tom Tromey <tom@tromey.com>
3475
3476 * gdbcore.h (core_file_command): Update.
3477 * corefile.c (core_file_command): Constify.
3478
3479 2017-09-27 Tom Tromey <tom@tromey.com>
3480
3481 * user-regs.c (maintenance_print_user_registers): Constify.
3482
3483 2017-09-27 Tom Tromey <tom@tromey.com>
3484
3485 * cp-namespace.c (maintenance_cplus_namespace): Constify.
3486
3487 2017-09-27 Tom Tromey <tom@tromey.com>
3488
3489 * cp-support.c (first_component_command): Constify.
3490
3491 2017-09-27 Tom Tromey <tom@tromey.com>
3492
3493 * psymtab.c (maintenance_print_psymbols)
3494 (maintenance_info_psymtabs, maintenance_check_psymtabs):
3495 Constify.
3496
3497 2017-09-27 Tom Tromey <tom@tromey.com>
3498
3499 * windows-tdep.c (display_tib): Constify.
3500
3501 2017-09-27 Tom Tromey <tom@tromey.com>
3502
3503 * linux-fork.c (delete_checkpoint_command)
3504 (detach_checkpoint_command): Constify.
3505
3506 2017-09-27 Tom Tromey <tom@tromey.com>
3507
3508 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
3509
3510 2017-09-27 Tom Tromey <tom@tromey.com>
3511
3512 * arc-tdep.c (dump_arc_instruction_command): Constify.
3513
3514 2017-09-27 Tom Tromey <tom@tromey.com>
3515
3516 * valprint.c (set_radix, show_radix): Constify.
3517
3518 2017-09-27 Tom Tromey <tom@tromey.com>
3519
3520 * dtrace-probe.c (info_probes_dtrace_command): Constify.
3521
3522 2017-09-27 Tom Tromey <tom@tromey.com>
3523
3524 * command.h (not_just_help_class_command): Update.
3525 * cli/cli-decode.h (not_just_help_class_command): Update.
3526 * cli/cli-decode.c (not_just_help_class_command): Constify.
3527
3528 2017-09-27 Tom Tromey <tom@tromey.com>
3529
3530 * gdb_bfd.c (maintenance_info_bfds): Constify.
3531
3532 2017-09-27 Tom Tromey <tom@tromey.com>
3533
3534 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
3535 overloads.
3536 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
3537 (do_const_cfunc): New function.
3538 (cmd_cfunc_eq): New overload.
3539 (cli_user_command_p): Check do_const_cfunc.
3540 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
3541 const_cfunc.
3542 * command.h (add_cmd): Add const overload and no-function
3543 overload.
3544 (set_cmd_cfunc): Add const overload.
3545 (cmd_const_cfunc_ftype): Declare.
3546 (cmd_cfunc_eq): Add const overload.
3547 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
3548 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
3549 overload.
3550
3551 2017-09-27 Tom Tromey <tom@tromey.com>
3552
3553 * macroexp.c (get_next_token_for_substitution): New function.
3554 (substitute_args): Call it. Check for __VA_OPT__.
3555
3556 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3557 Pedro Alves <palves@redhat.com>
3558
3559 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
3560 producer_is_icc_lt_14.
3561 (producer_is_icc_lt_14): New function.
3562 (check_producer): Add code for checking version of ICC.
3563 (producer_is_icc): Move to producer.c.
3564 (read_structure_type): Restrict ICC workaround to ICC<14.
3565 * producer.c: Include selftest.h.
3566 (producer_is_icc, producer_parsing_tests, _initialize_producer):
3567 New functions.
3568 * producer.h (producer_is_icc): New declaration.
3569
3570 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3571
3572 * Makefile.in (SFILES): Add producer.c.
3573 (COMMON_OBS): Add producer.o
3574 * amd64-tdep.c (producer.h): Add new include.
3575 * dwarf2read.c (producer.h): Add new include.
3576 * producer.c: New file.
3577 * producer.h: New file.
3578 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
3579 producer.c.
3580 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
3581 producer.h.
3582
3583 2017-09-26 Matthias Klose <doko@ubuntu.com>
3584
3585 * configure.ac: Search ncursesw before ncurses.
3586 Check ncursesw/ncurses.h before ncurses/ncurses.h.
3587 * gdb_curses.h: Include <ncursesw/ncurses.h>
3588 * config.in, configure: Regenerate.
3589
3590 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3591
3592 PR gdb/22185
3593 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
3594 obsolete.
3595 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
3596 Remove i386sol2 support.
3597 * configure.nat <i386sol2>: Remove.
3598 <sol2-64>: Fold into ...
3599 <sol2>: ... this.
3600 Move common settings to default section.
3601 Add sol-thread.o.
3602 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
3603 x86_64-*-solaris2.1[0-9]*>: Rename to ...
3604 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
3605 <i[34567]86-*-solaris*>: Remove.
3606 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
3607
3608 * configure.ac: Remove wctype in libw check.
3609 (_MSE_INT_H): Don't define on Solaris 7-9.
3610 <solaris*>: Remove libthread_db.so.1 check.
3611 * configure: Regenerate.
3612 * config.in: Regenerate.
3613
3614 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
3615 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
3616 (gdb_ps_size_t): Remove.
3617 Use base types in users.
3618 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
3619
3620 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
3621
3622 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3623
3624 PR build/22206
3625 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
3626 (adi_is_addr_mapped): Likewise.
3627 (PSR_ICC): Don't redefine.
3628 (PSR_IMPL): Likewise.
3629
3630 2017-09-25 Tom Tromey <tom@tromey.com>
3631
3632 * regcache.c (regcache::dump): Use string_printf.
3633
3634 2017-09-25 Tom Tromey <tom@tromey.com>
3635
3636 * regcache.c (class regcache_invalidator): New.
3637 (struct register_to_invalidate): Remove.
3638 (make_cleanup_regcache_invalidate): Remove.
3639 (regcache::raw_write): Use regcache_invalidator.
3640
3641 2017-09-25 Tom Tromey <tom@tromey.com>
3642
3643 * spu-tdep.c (spu2ppu_sniffer): Update.
3644 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
3645 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
3646 Remove.
3647 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
3648 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
3649 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
3650 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
3651 (frame_pop): Update.
3652
3653 2017-09-25 Tom Tromey <tom@tromey.com>
3654
3655 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
3656 * regcache.h (regcache_xfree): Don't declare.
3657 * regcache.c (regcache_xfree): Remove.
3658 (do_regcache_xfree): Use delete.
3659 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
3660 * linux-fork.c (free_fork): Use delete.
3661 (fork_save_infrun_state): Likewise.
3662 * jit.c (jit_dealloc_cache): Use delete.
3663 * infrun.c (discard_infcall_suspend_state): Use delete.
3664
3665 2017-09-25 Tom Tromey <tom@tromey.com>
3666
3667 * regcache.h (regcache_xmalloc): Don't declare.
3668 (regcache_raw_set_cached_value): Update comment.
3669 * regcache.c (regcache_xmalloc): Remove.
3670 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
3671 * jit.c (jit_frame_sniffer): Use new.
3672 * frame.c (frame_save_as_regcache): Use new.
3673
3674 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3675
3676 * NEWS: Advertise support for guarded-storage registers on IBM z.
3677
3678 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3679
3680 * s390-linux-nat.c (have_regset_gs): New static variable.
3681 (s390_linux_fetch_inferior_registers): Handle guarded-storage
3682 control block and guarded-storage broadcast control regsets.
3683 (s390_read_description): Detect whether the target has
3684 guarded-storage support, return appropriate tdesc.
3685 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
3686 (features/s390x-gs-linux64.c): Likewise.
3687 (struct gdbarch_tdep) <have_gs>: New field.
3688 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
3689 (s390_gsbc_regset): New variables.
3690 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
3691 and s390_gsbc_regset, if applicable.
3692 (s390_core_read_description): Check whether core file was from a
3693 target with guarded-storage support; include appropriate regsets.
3694 (s390_gdbarch_init): Add registers for guarded-storage support.
3695 (_initialize_s390_tdep): Initialize new target descriptions that
3696 include registers for guarded-storage support.
3697 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
3698 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
3699 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
3700 (S390_NUM_REGS): Adjust macro definition.
3701 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
3702 (tdesc_s390x_gs_linux64): New declarations.
3703
3704 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3705
3706 * features/s390-gs-linux64.xml: New file.
3707 * features/s390-gs.xml: New file.
3708 * features/s390-gsbc.xml: New file.
3709 * features/s390x-gs-linux64.xml: New file.
3710 * features/Makefile (WHICH): Add s390-gs-linux64 and
3711 s390x-gs-linux64.
3712 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
3713 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
3714 * features/s390-gs-linux64.c: New generated file.
3715 * features/s390x-gs-linux64.c: New file.
3716 * regformats/s390-gs-linux64.dat: New file.
3717 * regformats/s390x-gs-linux64.dat: New file.
3718
3719 2017-09-23 Tom Tromey <tom@tromey.com>
3720
3721 * defs.h (make_cleanup_override_quit_handler): Don't declare.
3722
3723 2017-09-22 Tom Tromey <tom@tromey.com>
3724
3725 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
3726 type to scoped_restore_tmpl.
3727 <scoped_input_handler>: Initialize m_quit_handler directly.
3728
3729 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3730
3731 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
3732 (cd_command): Likewise. Free "current_directory" before
3733 assigning to it.
3734 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
3735 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
3736 * top.c (gdb_dirbuf): Remove global declaration.
3737 * top.h (gdb_dirbuf): Likewise.
3738
3739 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3740
3741 * gnulib/aclocal.m4: Regenerate.
3742 * gnulib/config.in: Regenerate.
3743 * gnulib/configure: Regenerate.
3744 * gnulib/import/Makefile.am: Regenerate.
3745 * gnulib/import/Makefile.in: Regenerate.
3746 * gnulib/import/assure.h: New file.
3747 * gnulib/import/at-func.c: Likewise
3748 * gnulib/import/chdir-long.c: New file.
3749 * gnulib/import/chdir-long.h: New file.
3750 * gnulib/import/cloexec.c: New file.
3751 * gnulib/import/cloexec.h: New file.
3752 * gnulib/import/close.c: New file.
3753 * gnulib/import/closedir.c: New file.
3754 * gnulib/import/dirent-private.h: New file.
3755 * gnulib/import/dup-safer.c: New file.
3756 * gnulib/import/dup.c: New file.
3757 * gnulib/import/dup2.c: New file.
3758 * gnulib/import/error.c: New file.
3759 * gnulib/import/error.h: New file.
3760 * gnulib/import/exitfail.c: New file.
3761 * gnulib/import/exitfail.h: New file.
3762 * gnulib/import/fchdir.c: New file.
3763 * gnulib/import/fcntl.c: New file.
3764 * gnulib/import/fcntl.in.h: New file.
3765 * gnulib/import/fd-hook.c: New file.
3766 * gnulib/import/fd-hook.h: New file.
3767 * gnulib/import/fd-safer.c: New file.
3768 * gnulib/import/fdopendir.c: New file.
3769 * gnulib/import/filename.h: New file.
3770 * gnulib/import/filenamecat-lgpl.c: New file.
3771 * gnulib/import/filenamecat.h: New file.
3772 * gnulib/import/fstat.c: New file.
3773 * gnulib/import/fstatat.c: New file.
3774 * gnulib/import/getcwd-lgpl.c: New file.
3775 * gnulib/import/getcwd.c: New file.
3776 * gnulib/import/getdtablesize.c: New file.
3777 * gnulib/import/getlogin_r.c: New file.
3778 * gnulib/import/getprogname.c: New file.
3779 * gnulib/import/getprogname.h: New file.
3780 * gnulib/import/gettext.h: New file.
3781 * gnulib/import/glob-libc.h: New file.
3782 * gnulib/import/glob.c: New file.
3783 * gnulib/import/glob.in.h: New file.
3784 * gnulib/import/intprops.h: New file.
3785 * gnulib/import/m4/chdir-long.m4: New file.
3786 * gnulib/import/m4/close.m4: New file.
3787 * gnulib/import/m4/closedir.m4: New file.
3788 * gnulib/import/m4/d-ino.m4: New file.
3789 * gnulib/import/m4/d-type.m4: New file.
3790 * gnulib/import/m4/dup.m4: New file.
3791 * gnulib/import/m4/dup2.m4: New file.
3792 * gnulib/import/m4/error.m4: New file.
3793 * gnulib/import/m4/fchdir.m4: New file.
3794 * gnulib/import/m4/fcntl.m4: New file.
3795 * gnulib/import/m4/fcntl_h.m4: New file.
3796 * gnulib/import/m4/fdopendir.m4: New file.
3797 * gnulib/import/m4/filenamecat.m4: New file.
3798 * gnulib/import/m4/fstat.m4: New file.
3799 * gnulib/import/m4/fstatat.m4: New file.
3800 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
3801 * gnulib/import/m4/getcwd-path-max.m4: New file.
3802 * gnulib/import/m4/getcwd.m4: New file.
3803 * gnulib/import/m4/getdtablesize.m4: New file.
3804 * gnulib/import/m4/getlogin_r.m4: New file.
3805 * gnulib/import/m4/getprogname.m4: New file.
3806 * gnulib/import/m4/glob.m4: New file.
3807 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3808 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3809 * gnulib/import/m4/mempcpy.m4: New file.
3810 * gnulib/import/m4/memrchr.m4: New file.
3811 * gnulib/import/m4/mode_t.m4: New file.
3812 * gnulib/import/m4/msvc-inval.m4: New file.
3813 * gnulib/import/m4/msvc-nothrow.m4: New file.
3814 * gnulib/import/m4/open.m4: New file.
3815 * gnulib/import/m4/openat.m4: New file.
3816 * gnulib/import/m4/opendir.m4: New file.
3817 * gnulib/import/m4/readdir.m4: New file.
3818 * gnulib/import/m4/realloc.m4: New file.
3819 * gnulib/import/m4/rewinddir.m4: New file.
3820 * gnulib/import/m4/save-cwd.m4: New file.
3821 * gnulib/import/m4/strdup.m4: New file.
3822 * gnulib/import/m4/strerror.m4: New file.
3823 * gnulib/import/m4/unistd-safer.m4: New file.
3824 * gnulib/import/mempcpy.c: New file.
3825 * gnulib/import/memrchr.c: New file.
3826 * gnulib/import/msvc-inval.c: New file.
3827 * gnulib/import/msvc-inval.h: New file.
3828 * gnulib/import/msvc-nothrow.c: New file.
3829 * gnulib/import/msvc-nothrow.h: New file.
3830 * gnulib/import/open.c: New file.
3831 * gnulib/import/openat-die.c: New file.
3832 * gnulib/import/openat-priv.h: New file.
3833 * gnulib/import/openat-proc.c: New file.
3834 * gnulib/import/openat.c: New file.
3835 * gnulib/import/openat.h: New file.
3836 * gnulib/import/opendir.c: New file.
3837 * gnulib/import/pipe-safer.c: New file.
3838 * gnulib/import/readdir.c: New file.
3839 * gnulib/import/realloc.c: New file.
3840 * gnulib/import/rewinddir.c: New file.
3841 * gnulib/import/save-cwd.c: New file.
3842 * gnulib/import/save-cwd.h: New file.
3843 * gnulib/import/strdup.c: New file.
3844 * gnulib/import/strerror-override.c: New file.
3845 * gnulib/import/strerror-override.h: New file.
3846 * gnulib/import/strerror.c: New file.
3847 * gnulib/import/unistd--.h: New file.
3848 * gnulib/import/unistd-safer.h: New file.
3849 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3850 "getcwd" and "glob".
3851 * ser-tcp.c: Undefine "close" before redefining it.
3852
3853 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3854
3855 * guile/scm-value.c (gdbscm_value_address): Initialize address,
3856 get rid of res_val.
3857
3858 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3859
3860 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
3861 <sol2,sparc>: Likewise.
3862 <sol2-64,i386>: Likewise.
3863
3864 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
3865 -Wdeprecated-declarations on *-*-solaris*.
3866 * configure: Regenerate.
3867
3868 * procfs.c: Include "nat/inferior.h".
3869 (procfs_info_proc): Fix typo.
3870
3871 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3872
3873 * remote.c (vector): Include.
3874 (struct private_thread_info): Add field, thread_handle.
3875 (free_private_thread_info): Deallocate storage associated with
3876 thread handle.
3877 (get_private_info_thread): Initialize `thread_handle' field.
3878 (struct thread_item): Add field, thread_handle.
3879 (clear_threads_listing_context): Deallocate storage associated
3880 with thread handle.
3881 (start_thread): Add support for "handle" attribute.
3882 (thread_attributes): Add "handle".
3883 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3884 field.
3885 (remote_update_thread_list): Update thread_handle.
3886 (remote_thread_handle_to_thread_info): New function.
3887 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3888
3889 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3890
3891 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3892 function.
3893 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3894 * python/python-internal.h (thread_object_type): Declare.
3895
3896 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3897
3898 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3899 (target_thread_handle_to_thread_info): Declare.
3900 * target.c (target_thread_handle_to_thread_info): New function.
3901 * target-delegates.c: Regenerate.
3902 * gdbthread.h (find_thread_by_handle): Declare.
3903 * thread.c (find_thread_by_handle): New function.
3904 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3905 function.
3906 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3907
3908 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3909
3910 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3911
3912 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3913
3914 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3915
3916 2017-09-21 Yao Qi <yao.qi@linaro.org>
3917
3918 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3919 to gdb_target_obs.
3920
3921 2017-09-20 Tom Tromey <tom@tromey.com>
3922
3923 * breakpoint.c (struct counted_command_line): Remove.
3924 (breakpoint_commands): Update.
3925 (alloc_counted_command_line, incref_counted_command_line)
3926 (decref_counted_command_line, do_cleanup_counted_command_line)
3927 (make_cleanup_decref_counted_command_line): Remove.
3928 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3929 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3930 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3931 (save_breakpoints): Update.
3932 * breakpoint.h (counted_command_line): Now a typedef to
3933 shared_ptr.
3934 (struct breakpoint) <commands>: Now a counted_command_line.
3935 (struct bpstats) <command>: Likewise.
3936
3937 2017-09-20 Tom Tromey <tom@tromey.com>
3938
3939 * breakpoint.c (struct commands_info, do_map_commands_command):
3940 Remove.
3941 (commands_command_1): Update.
3942 (iterate_over_related_breakpoints): Take a function_view.
3943 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3944 (delete_command): Update.
3945 (map_breakpoint_numbers): Take a function_view.
3946 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3947 (disable_command): Update.
3948 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3949 (enable_command): Update.
3950 (struct disp_data, do_enable_breakpoint_disp)
3951 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3952 (do_map_enable_delete_breakpoint): Remove.
3953 (enable_once_command, enable_count_command, enable_delete_command)
3954 (delete_trace_variable_command): Update.
3955
3956 2017-09-20 Tom Tromey <tom@tromey.com>
3957
3958 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3959 (bpstat_clear): Use delete.
3960 (bpstats): New constructors.
3961 (bpstat_copy, bpstat_stop_status): Use new.
3962 (dprintf_after_condition_true): Update.
3963 * breakpoint.h (bpstats::bpstats): Add constructors.
3964 (bpstats::~bpstats): Add destructor.
3965
3966 2017-09-20 Pedro Alves <palves@redhat.com>
3967
3968 * eval.c (make_params): Delete, refactored as ...
3969 (class fake_method): ... this new type's ctor.
3970 (fake_method::~fake_method): New.
3971 (evaluate_subexp_standard): Use 'fake_method'.
3972
3973 2017-09-20 Tom Tromey <tom@tromey.com>
3974
3975 * windows-nat.c (get_windows_debug_event, windows_wait)
3976 (do_initial_windows_stuff, windows_attach): Update.
3977 * utils.c (vwarning, internal_vproblem): Update.
3978 (ui_unregister_input_event_handler_cleanup)
3979 (prepare_to_handle_input): Remove.
3980 (class scoped_input_handler): New.
3981 (defaulted_query, prompt_for_continue): Update.
3982 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3983 Update.
3984 * top.c (undo_terminal_modifications_before_exit): Update.
3985 * target/target.h (target_terminal_init, target_terminal_inferior)
3986 (target_terminal_ours): Don't declare.
3987 (class target_terminal): New.
3988 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3989 (target_terminal_ours_for_output)
3990 (make_cleanup_restore_target_terminal): Don't declare.
3991 (target_terminal_info): Remove.
3992 * target.c (enum terminal_state, terminal_state): Remove.
3993 (target_terminal::terminal_state): Define.
3994 (target_terminal::init): Rename from target_terminal_init.
3995 (target_terminal::inferior): Rename from
3996 target_terminal_inferior.
3997 (target_terminal::ours): Rename from target_terminal_ours.
3998 (target_terminal::ours_for_output): Rename from
3999 target_terminal_ours_for_output.
4000 (target_terminal::info): New method.
4001 (cleanup_restore_target_terminal)
4002 (make_cleanup_restore_target_terminal): Remove.
4003 * solib.c (handle_solib_event): Update.
4004 * remote.c (remote_serial_quit_handler): Update.
4005 (remote_terminal_inferior, remote_wait_as): Update.
4006 * record-full.c (record_full_wait_1): Update.
4007 * nto-procfs.c (procfs_create_inferior): Update.
4008 * nat/fork-inferior.c (startup_inferior): Update.
4009 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
4010 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
4011 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
4012 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
4013 (mi_breakpoint_created, mi_breakpoint_deleted)
4014 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
4015 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
4016 (mi_user_selected_context_changed, report_initial_inferior):
4017 Update.
4018 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
4019 (linux_nat_terminal_inferior): Update.
4020 * infrun.c (follow_fork_inferior)
4021 (handle_vfork_child_exec_or_exit, do_target_resume)
4022 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
4023 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
4024 Update.
4025 * inflow.c (child_terminal_init, info_terminal_command): Update.
4026 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
4027 (attach_command): Update.
4028 * infcall.c (call_thread_fsm_should_stop): Update.
4029 * gnu-nat.c (gnu_attach): Update.
4030 * extension.c (struct active_ext_lang_state)
4031 (restore_active_ext_lang): Update.
4032 * exceptions.c (print_flush): Update.
4033 * event-top.c (async_enable_stdin, default_quit_handler): Update.
4034 (struct quit_handler_cleanup_data, restore_quit_handler)
4035 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
4036 Remove.
4037 * cp-support.c (gdb_demangle): Update.
4038 * breakpoint.c (update_inserted_breakpoint_locations)
4039 (insert_breakpoint_locations, handle_jit_event)
4040 (disable_breakpoints_in_unloaded_shlib): Update.
4041 * annotate.c (annotate_breakpoints_invalid)
4042 (annotate_frames_invalid): Update.
4043
4044 2017-09-20 Tom Tromey <tom@tromey.com>
4045
4046 * main.c (catch_command_errors): Rename from
4047 catch_command_errors_const.
4048 (captured_main_1): Update.
4049
4050 2017-09-20 Pedro Alves <palves@redhat.com>
4051
4052 * cli/cli-cmds.c (list_command): Use print_sal_location.
4053 (print_sal_location): New function.
4054 (ambiguous_line_spec): Use print_sal_location.
4055 * linespec.c (symbol_to_sal): Record the symbol in the sal.
4056 * symtab.c (find_function_start_sal): Likewise.
4057 * symtab.h (symtab_and_line::symbol): New field.
4058
4059 2017-09-20 Pedro Alves <palves@redhat.com>
4060
4061 * linespec.c (minsym_found): Handle non-text minsyms.
4062 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
4063
4064 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
4065
4066 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
4067 backslash.
4068
4069 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
4070
4071 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
4072 vmovups instead vmovaps.
4073 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
4074
4075 2017-09-19 John Baldwin <jhb@FreeBSD.org>
4076
4077 * NEWS (Changes since GDB 8.0): Add starti.
4078 * infcmd.c (enum run_break): New.
4079 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
4080 case.
4081 (run_command): Use enum run_how.
4082 (start_command): Likewise.
4083 (starti_command): New function.
4084 (RUN_ARGS_HELP): New macro.
4085 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
4086 commands. Add starti command.
4087
4088 2017-09-19 Yao Qi <yao.qi@linaro.org>
4089
4090 * Makefile.in (monitor.o): Remove the rule.
4091
4092 2017-09-19 Yao Qi <yao.qi@linaro.org>
4093
4094 * annotate.h (struct annotate_arg_emitter): Use
4095 DISABLE_COPY_AND_ASSIGN.
4096 * common/refcounted-object.h (refcounted_object): Likewise.
4097 * completer.h (struct completion_result): Likewise.
4098 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
4099 * filename-seen-cache.h (filename_seen_cache): Likewise.
4100 * gdbcore.h (thread_section_name): Likewise.
4101 * gdb_regex.h (compiled_regex): Likewise.
4102 * gdbthread.h (scoped_restore_current_thread): Likewise.
4103 * inferior.h (scoped_restore_current_inferior): Likewise.
4104 * jit.c (jit_reader): Likewise.
4105 * linespec.h (struct linespec_result): Likewise.
4106 * mi/mi-parse.h (struct mi_parse): Likewise.
4107 * nat/fork-inferior.c (execv_argv): Likewise.
4108 * progspace.h (scoped_restore_current_program_space): Likewise.
4109 * python/python-internal.h (class gdbpy_enter): Likewise.
4110 * regcache.h (regcache): Likewise.
4111 * target-descriptions.c (struct tdesc_reg): Likewise.
4112 (struct tdesc_type): Likewise.
4113 (struct tdesc_feature): Likewise.
4114 * ui-out.h (ui_out_emit_type): Likewise.
4115
4116 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
4117
4118 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
4119 label abort_expression.
4120
4121 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4122
4123 * common/buffer.c (buffer_xml_printf): Adjust.
4124 * common/xml-utils.c (xml_escape_text): Change return type to
4125 std::string, update code accordingly.
4126 * common/xml-utils.h (xml_escape_text): Change return type to
4127 std::string.
4128 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
4129 * windows-tdep.c (windows_xfer_shared_library): Adjust.
4130 * unittests/xml-utils-selftests.c (test_xml_escape_text):
4131 Adjust.
4132
4133 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4134
4135 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
4136 (SUBDIR_UNITTESTS_OBS): Add new object file.
4137 * unittests/xml-utils-selftests.c: New file.
4138
4139 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4140
4141 * common/selftest.h (selftest): New struct/interface.
4142 (register_test): Add name parameter, add new overload.
4143 (run_tests): Add filter parameter.
4144 (for_each_selftest_ftype): New typedef.
4145 (for_each_selftest): New declaration.
4146 * common/selftest.c (tests): Change type to
4147 map<string, unique_ptr<selftest>>.
4148 (simple_selftest): New struct.
4149 (register_test): New function.
4150 (register_test): Add name parameter and use it.
4151 (run_tests): Add filter parameter and use it. Add prints.
4152 Adjust to vector -> map change.
4153 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
4154 registering selftests.
4155 * arm-tdep.c (_initialize_arm_tdep): Likewise.
4156 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
4157 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
4158 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
4159 * findvar.c (_initialize_findvar): Likewise.
4160 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
4161 * maint.c (maintenance_selftest): Update call to run_tests.
4162 (maintenance_info_selftests): New function.
4163 (_initialize_maint_cmds): Register "maintenance info selftests"
4164 command. Update "maintenance selftest" doc.
4165 * regcache.c (_initialize_regcache): Add names when registering
4166 selftests.
4167 * rust-exp.y (_initialize_rust_exp): Likewise.
4168 * selftest-arch.c (gdbarch_selftest): New struct.
4169 (gdbarch_tests): Remove.
4170 (register_test_foreach_arch): Add name parameter. Call
4171 register_test.
4172 (tests_with_arch): Remove, move most content to
4173 gdbarch_selftest::operator().
4174 (_initialize_selftests_foreach_arch): Remove.
4175 * selftest-arch.h (register_test_foreach_arch): Add name
4176 parameter.
4177 (run_tests_with_arch): New declaration.
4178 * utils-selftests.c (_initialize_utils_selftests): Add names
4179 when registering selftests.
4180 * utils.c (_initialize_utils): Likewise.
4181 * unittests/array-view-selftests.c
4182 (_initialize_array_view_selftests): Likewise.
4183 * unittests/environ-selftests.c (_initialize_environ_selftests):
4184 Likewise.
4185 * unittests/function-view-selftests.c
4186 (_initialize_function_view_selftests): Likewise.
4187 * unittests/offset-type-selftests.c
4188 (_initialize_offset_type_selftests): Likewise.
4189 * unittests/optional-selftests.c
4190 (_initialize_optional_selftests): Likewise.
4191 * unittests/scoped_restore-selftests.c
4192 (_initialize_scoped_restore_selftests): Likewise.
4193 * NEWS: Document "maintenance selftest" and "maint info
4194 selftests".
4195
4196 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4197
4198 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
4199 scoped_restore.
4200
4201 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4202
4203 * mi/mi-main.c (mi_load_progress): Make uiout variable
4204 a unique_ptr.
4205
4206 2017-09-15 Pedro Alves <palves@redhat.com>
4207
4208 * compile/compile-c-types.c (convert_enum, convert_int)
4209 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
4210
4211 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4212
4213 * dwarf2read.c (copy_string): Remove.
4214 (parse_macro_definition): Replace copy_string with savestring.
4215
4216 2017-09-15 Yao Qi <yao.qi@linaro.org>
4217
4218 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
4219 gdb_target_obs.
4220 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
4221 Likewise.
4222 (i[34567]86-*-linux*): Likewise.
4223
4224 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4225
4226 * dwarf2expr.h (dwarf_stack_value): Add constructor.
4227 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
4228 <stack>: Change type to std::vector.
4229 <stack_len, stack_allocated>: Remove.
4230 <grow_stack>: Remove.
4231 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4232 (dwarf_expr_context::~dwarf_expr_context): Remove.
4233 (dwarf_expr_context::grow_stack): Remove.
4234 (dwarf_expr_context::push): Adjust.
4235 (dwarf_expr_context::pop): Adjust.
4236 (dwarf_expr_context::fetch): Adjust.
4237 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
4238 (dwarf_expr_context::stack_empty_p): Adjust.
4239 (dwarf_expr_context::execute_stack_op): Adjust.
4240
4241 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4242
4243 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
4244 return type to bool.
4245 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
4246
4247 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4248
4249 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
4250 Change type to bool.
4251 (dwarf_stack_value) <in_stack_memory>: Likewise.
4252 (dwarf_expr_context) <push_address>: Change parameter type to
4253 bool.
4254 <fetch_in_stack_memory>: Change return type to bool.
4255 <push>: Change parameter type to bool.
4256 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
4257 to bool.
4258 (dwarf_expr_context::push_address): Likewise.
4259 (dwarf_expr_context::fetch_in_stack_memory): Change return type
4260 to bool.
4261 (dwarf_expr_context::execute_stack_op): Adjust.
4262 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
4263
4264 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4265
4266 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
4267 (struct dwarf_expr_context) <n_pieces>: Remove.
4268 <pieces>: Change type to std::vector.
4269 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4270 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
4271 pieces.
4272 (dwarf_expr_context::add_piece): Adjust.
4273 * dwarf2loc.c (struct piece_closure): Initialize fields.
4274 <n_pieces>: Remove.
4275 <pieces>: Change type to std::vector.
4276 (allocate_piece_closure): Adjust, change parameter to
4277 std::vector rvalue and std::move it to piece_closure.
4278 (rw_pieced_value): Adjust.
4279 (check_pieced_synthetic_pointer): Adjust.
4280 (indirect_synthetic_pointer): Adjust.
4281 (coerce_pieced_ref): Adjust.
4282 (free_pieced_value_closure): Adjust. Use delete to free
4283 piece_closure.
4284 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
4285 to allocate_piece_closure.
4286 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
4287
4288 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4289
4290 * probe.h (probe_ops_cp): Remove typedef.
4291 (DEF_VEC_P (probe_ops_cp)): Remove.
4292 (all_probe_ops): Change type to std::vector.
4293 * probe.c (info_probes_for_ops): Adjust to vector change.
4294 (probe_linespec_to_ops): Likewise.
4295 (all_probe_ops): Change type to std::vector.
4296 (_initialize_probe): Adjust to vector change.
4297 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
4298 * elfread.c (elf_get_probes): Likewise.
4299 * stap-probe.c (_initialize_stap_probe): Likewise.
4300
4301 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4302
4303 * probe.h (struct bound_probe): Define constructors.
4304 * probe.c (bound_probe_s): Remove typedef.
4305 (DEF_VEC_O (bound_probe_s)): Remove VEC.
4306 (collect_probes): Change return type to std::vector, remove
4307 cleanup.
4308 (compare_probes): Return bool, change parameter type. Change
4309 semantic to "less than".
4310 (gen_ui_out_table_header_info): Change parameter to std::vector
4311 and update.
4312 (exists_probe_with_pops): Likewise.
4313 (info_probes_for_ops): Update to std::vector change.
4314 (enable_probes_command): Likewise.
4315 (disable_probes_command): Likewise.
4316
4317 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4318
4319 * probe.h (struct probe_ops) <get_probes>: Change parameter from
4320 vec to std::vector.
4321 * probe.c (parse_probes_in_pspace): Update.
4322 (find_probes_in_objfile): Update.
4323 (find_probe_by_pc): Update.
4324 (collect_probes): Update.
4325 (probe_any_get_probes): Update.
4326 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
4327 return type to reference to std::vector.
4328 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
4329 std::vector and update.
4330 (dtrace_process_dof): Likewise.
4331 (dtrace_get_probes): Likewise.
4332 * elfread.c (elf_get_probes): Change return type to std::vector,
4333 store an std::vector in bfd_data.
4334 (probe_key_free): Update to std::vector.
4335 * stap-probe.c (handle_stap_probe): Change parameter to
4336 std::vector and update.
4337 (stap_get_probes): Likewise.
4338 * symfile-debug.c (debug_sym_get_probes): Change return type to
4339 std::vector and update.
4340
4341 2017-09-11 Tom Tromey <tom@tromey.com>
4342
4343 * breakpoint.c (program_breakpoint_here_p): Update.
4344 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
4345 from make_show_memory_breakpoints_cleanup. Return a
4346 scoped_restore_tmpl<int>.
4347 (restore_show_memory_breakpoints): Remove.
4348 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
4349 * mem-break.c (memory_validate_breakpoint): Update.
4350 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
4351 (ia64_memory_remove_breakpoint): Update.
4352 (ia64_breakpoint_from_pc): Update.
4353 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
4354 from make_show_memory_breakpoints_cleanup.
4355
4356 2017-09-11 Tom Tromey <tom@tromey.com>
4357
4358 * d-namespace.c (d_lookup_symbol): Use std::string.
4359 (find_symbol_in_baseclass): Likewise.
4360
4361 2017-09-11 Tom Tromey <tom@tromey.com>
4362
4363 * ctf.c (ctf_start): Use std::string.
4364
4365 2017-09-11 Tom Tromey <tom@tromey.com>
4366
4367 * ada-lang.c (is_known_support_routine): Update.
4368 (ada_unhandled_exception_name_addr_from_raise): Update.
4369 * guile/scm-frame.c (gdbscm_frame_name): Update.
4370 * python/py-frame.c (frapy_name): Update.
4371 (frapy_function): Update.
4372 * stack.h (find_frame_funname): Update.
4373 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
4374 (print_frame): Update.
4375
4376 2017-09-11 Tom Tromey <tom@tromey.com>
4377
4378 * findcmd.c (put_bits): Take a gdb::byte_vector.
4379 (parse_find_args): Return gdb::byte_vector. "args" now const.
4380 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
4381 cleanups.
4382 (find_command): Update.
4383
4384 2017-09-11 Tom Tromey <tom@tromey.com>
4385
4386 * cli/cli-script.c (class scoped_restore_hook_in): New.
4387 (clear_hook_in_cleanup): Remove.
4388 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
4389 scoped_restore_hook_in.
4390
4391 2017-09-11 Tom Tromey <tom@tromey.com>
4392
4393 * cli/cli-script.c (restore_interp): Remove.
4394 (read_command_lines): Use scoped_restore_interp.
4395 * interps.c (scoped_restore_interp::set_temp): Rename from
4396 interp_set_temp.
4397 * interps.h (class scoped_restore_interp): New.
4398 (interp_set_temp): Remove.
4399
4400 2017-09-11 Tom Tromey <tom@tromey.com>
4401
4402 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
4403 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
4404 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
4405 scoped_restore.
4406 (mi_cmd_break_insert_1): Update.
4407 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
4408 scoped_restore.
4409
4410 2017-09-11 Tom Tromey <tom@tromey.com>
4411
4412 * demangle.c (demangle_command): Update.
4413 * breakpoint.c (disable_command): Update.
4414 (enable_command): Update.
4415 (find_location_by_number): Make "number" const. Use
4416 get_number_trailer.
4417 * cli/cli-utils.c (extract_arg): Return std::string.
4418 * probe.c (parse_probe_linespec): Update. Change types.
4419 (collect_probes): Take string arguments.
4420 (parse_probe_linespec): Likewise.
4421 (info_probes_for_ops): Update.
4422 (enable_probes_command): Update.
4423 (disable_probes_command): Update.
4424 * break-catch-sig.c (catch_signal_split_args): Update.
4425 * mi/mi-parse.c (mi_parse): Update.
4426
4427 2017-09-11 Tom Tromey <tom@tromey.com>
4428
4429 * language.h (language_enum): Make argument const.
4430 * language.c (language_enum): Make argument const.
4431
4432 2017-09-11 Tom Tromey <tom@tromey.com>
4433
4434 * common/common-utils.h (skip_to_space): Remove macro, redeclare
4435 as function.
4436 (skip_to_space): Rename from skip_to_space_const.
4437 * common/common-utils.c (skip_to_space): New function.
4438 (skip_to_space): Rename from skip_to_space_const.
4439 * cli/cli-utils.h (get_number): Rename from get_number_const.
4440 (extract_arg): Rename from extract_arg_const.
4441 * cli/cli-utils.c (get_number): Rename from get_number_const.
4442 (extract_arg): Rename from extract_arg_const.
4443 (number_or_range_parser::get_number): Use ::get_number.
4444 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
4445 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
4446 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
4447 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
4448 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
4449 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
4450 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
4451 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
4452
4453 2017-09-11 Tom Tromey <tom@tromey.com>
4454
4455 * python/python.c (do_start_initialization): Use
4456 py-event-types.def to initialize types.
4457 Define all object type structures.
4458 * python/python-internal.h: Don't declare event initialization
4459 functions.
4460 * python/py-threadevent.c (thread_event_object_type): Don't
4461 define.
4462 * python/py-stopevent.c (stop_event_object_type): Don't define.
4463 * python/py-signalevent.c (signal_event_object_type): Don't
4464 declare or define.
4465 * python/py-newobjfileevent.c (new_objfile_event_object_type)
4466 (clear_objfiles_event_object_type): Don't declare or define.
4467 * python/py-infevents.c (inferior_call_pre_event_object_type)
4468 (inferior_call_post_event_object_type)
4469 (register_changed_event_object_type)
4470 (memory_changed_event_object_type): Don't declare or define.
4471 * python/py-inferior.c (new_thread_event_object_type)
4472 (new_inferior_event_object_type)
4473 (inferior_deleted_event_object_type): Don't declare or define.
4474 * python/py-exitedevent.c (exited_event_object_type): Don't
4475 declare or define.
4476 * python/py-evts.c (gdbpy_initialize_py_events): Use
4477 py-all-events.def.
4478 * python/py-events.h (thread_event_object_type): Don't declare.
4479 (events_object): Use py-all-events.def.
4480 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
4481 py-event-types.def.
4482 * python/py-event-types.def: New file.
4483 * python/py-continueevent.c (create_continue_event_object): Don't
4484 declare or define.
4485 * python/py-bpevent.c (breakpoint_event_object_type): Don't
4486 declare or define.
4487 * python/py-all-events.def: New file.
4488
4489 2017-09-11 Tom Tromey <tom@tromey.com>
4490
4491 * python/py-threadevent.c (create_thread_event_object): Return
4492 gdbpy_ref.
4493 * python/py-stopevent.h (create_stop_event_object)
4494 (create_breakpoint_event_object, create_signal_event_object):
4495 Update.
4496 * python/py-stopevent.c (create_stop_event_object): Return
4497 gdbpy_ref.
4498 (emit_stop_event): Update.
4499 * python/py-signalevent.c (create_signal_event_object): Return
4500 gdbpy_ref.
4501 * python/py-infevents.c (create_inferior_call_event_object):
4502 Update.
4503 * python/py-event.h (create_event_object)
4504 (create_thread_event_object): Update.
4505 * python/py-event.c (create_event_object): Return gdbpy_ref.
4506 * python/py-continueevent.c: Return gdbpy_ref.
4507 * python/py-bpevent.c (create_breakpoint_event_object): Return
4508 gdbpy_ref.
4509
4510 2017-09-11 Tom Tromey <tom@tromey.com>
4511
4512 PR python/15622:
4513 * NEWS: Add entry.
4514 * python/python.c (do_start_initialization): Initialize new event
4515 types.
4516 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
4517 (gdbpy_initialize_inferior_deleted_event)
4518 (gdbpy_initialize_new_thread_event): Declare.
4519 * python/py-threadevent.c (create_thread_event_object): Add option
4520 "thread" parameter.
4521 * python/py-inferior.c (new_thread_event_object_type)
4522 (new_inferior_event_object_type)
4523 (inferior_deleted_event_object_type): Declare.
4524 (python_new_inferior, python_inferior_deleted): New functions.
4525 (add_thread_object): Emit new_thread event.
4526 (gdbpy_initialize_inferior): Attach new functions to corresponding
4527 observers.
4528 (new_thread, new_inferior, inferior_deleted): Define new event
4529 types.
4530 * python/py-evts.c (gdbpy_initialize_py_events): Add new
4531 registries.
4532 * python/py-events.h (events_object) <new_inferior,
4533 inferior_deleted, new_thread>: New fields.
4534 * python/py-event.h (create_thread_event_breakpoint): Add optional
4535 "thread" parameter.
4536
4537 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
4538
4539 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
4540 check current_ui instead.
4541 (internal_vproblem): Likewise.
4542
4543 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
4544
4545 * thread.c (print_thread_info_1): Remove unnecessary calls to
4546 uiout->is_mi_like_p.
4547
4548 2017-09-09 Tom Tromey <tom@tromey.com>
4549
4550 * namespace.h (add_using_directive): Update.
4551 * namespace.c (add_using_directive): Change type of excludes to
4552 std::vector.
4553 * dwarf2read.c (read_import_statement): Use std::vector.
4554 (read_namespace): Update.
4555 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4556
4557 2017-09-09 Tom Tromey <tom@tromey.com>
4558
4559 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
4560
4561 2017-09-09 Tom Tromey <tom@tromey.com>
4562
4563 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
4564
4565 2017-09-09 Tom Tromey <tom@tromey.com>
4566
4567 * stack.c (func_command): Use gdb::def_vector.
4568
4569 2017-09-09 Tom Tromey <tom@tromey.com>
4570
4571 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
4572 ui_out_emit_list, ui_out_emit_tuple.
4573 (mi_cmd_var_update): Likewise.
4574
4575 2017-09-09 Tom Tromey <tom@tromey.com>
4576
4577 * mi/mi-interp.c (mi_user_selected_context_changed): Use
4578 ui_out_redirect_pop.
4579 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
4580 ui_out_redirect_pop.
4581 * utils.c (do_ui_out_redirect_pop)
4582 (make_cleanup_ui_out_redirect_pop): Remove.
4583 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
4584 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
4585 * ui-out.h (ui_out_redirect_pop): New class.
4586
4587 2017-09-09 Tom Tromey <tom@tromey.com>
4588
4589 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
4590 (list_available_thread_groups, mi_cmd_list_thread_groups)
4591 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
4592 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
4593 Likewise.
4594
4595 2017-09-09 Tom Tromey <tom@tromey.com>
4596
4597 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4598 ui_out_emit_tuple.
4599
4600 2017-09-09 Tom Tromey <tom@tromey.com>
4601
4602 * target.c (flash_erase_command): Use ui_out_emit_tuple.
4603 * stack.c (print_frame): Use ui_out_emit_tuple.
4604 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
4605 (info_spu_mailbox_command, info_spu_dma_command)
4606 (info_spu_proxydma_command): Likewise.
4607 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
4608 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
4609 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
4610 ui_out_emit_tuple.
4611 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
4612
4613 2017-09-09 Tom Tromey <tom@tromey.com>
4614
4615 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
4616 (class ui_out_emit_table): Update comment.
4617 * ui-out.c (do_cleanup_table_end)
4618 (make_cleanup_ui_out_table_begin_end): Remove.
4619 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
4620 (info_spu_dma_cmdlist): Likewise.
4621 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
4622 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
4623 ui_out_emit_table.
4624
4625 2017-09-09 Tom Tromey <tom@tromey.com>
4626
4627 * thread.c (print_thread_info_1): Use ui_out_emit_table,
4628 ui_out_emit_list, gdb::optional.
4629
4630 2017-09-09 John Baldwin <jhb@FreeBSD.org>
4631
4632 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
4633 prototype.
4634 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
4635 prototype.
4636 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
4637 prototype.
4638 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
4639 * ada-exp.y: Remove _initialize_ada_exp prototype.
4640 * ada-lang.c: Remove _initialize_ada_language prototype.
4641 * ada-tasks.c: Remove _initialize_tasks prototype.
4642 * addrmap.c: Remove _initialize_addrmap prototype.
4643 * agent.c: Remove _initialize_agent prototype.
4644 * aix-thread.c: Remove _initialize_aix_thread prototype.
4645 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
4646 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
4647 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
4648 prototype.
4649 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
4650 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
4651 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
4652 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
4653 prototype.
4654 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
4655 prototype.
4656 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
4657 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
4658 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
4659 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
4660 prototype.
4661 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
4662 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
4663 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
4664 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
4665 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4666 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
4667 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
4668 prototype.
4669 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
4670 prototype.
4671 * annotate.c: Remove _initialize_annotate prototype.
4672 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
4673 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
4674 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
4675 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
4676 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
4677 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
4678 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
4679 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
4680 prototype.
4681 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
4682 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
4683 * auto-load.c: Remove _initialize_auto_load prototype.
4684 * auxv.c: Remove _initialize_auxv prototype.
4685 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
4686 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
4687 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
4688 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
4689 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
4690 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
4691 prototype.
4692 * break-catch-throw.c: Remove _initialize_break_catch_throw
4693 prototype.
4694 * breakpoint.c: Remove _initialize_breakpoint prototype.
4695 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
4696 * btrace.c: Remove _initialize_btrace prototype.
4697 * charset.c: Remove _initialize_charset prototype.
4698 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
4699 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
4700 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
4701 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
4702 * cli/cli-script.c: Remove _initialize_cli_script prototype.
4703 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
4704 * coffread.c: Remove _initialize_coffread prototype.
4705 * compile/compile.c: Remove _initialize_compile prototype.
4706 * complaints.c: Remove _initialize_complaints prototype.
4707 * completer.c: Remove _initialize_completer prototype.
4708 * copying.awk: Remove _initialize_copying prototype.
4709 * copying.c: Regenerate.
4710 * core-regset.c: Remove _initialize_core_regset prototype.
4711 * corefile.c: Remove _initialize_core prototype.
4712 * corelow.c: Remove _initialize_corelow prototype.
4713 * cp-abi.c: Remove _initialize_cp_abi prototype.
4714 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
4715 * cp-support.c: Remove _initialize_cp_support prototype.
4716 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
4717 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
4718 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
4719 * ctf.c: Remove _initialize_ctf prototype.
4720 * d-lang.c: Remove _initialize_d_language prototype.
4721 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
4722 prototype.
4723 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
4724 * dbxread.c: Remove _initialize_dbxread prototype.
4725 * dcache.c: Remove _initialize_dcache prototype.
4726 * demangle.c: Remove _initialize_demangler prototype.
4727 * disasm-selftests.c: Remove _initialize_disasm_selftests
4728 prototype.
4729 * disasm.c: Remove _initialize_disasm prototype.
4730 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
4731 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
4732 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
4733 prototype.
4734 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
4735 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
4736 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
4737 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
4738 * elfread.c: Remove _initialize_elfread prototype.
4739 * exec.c: Remove _initialize_exec prototype.
4740 * extension.c: Remove _initialize_extension prototype.
4741 * f-lang.c: Remove _initialize_f_language prototype.
4742 * f-valprint.c: Remove _initialize_f_valprint prototype.
4743 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
4744 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
4745 * filesystem.c: Remove _initialize_filesystem prototype.
4746 * findcmd.c: Remove _initialize_mem_search prototype.
4747 * fork-child.c: Remove _initialize_fork_child prototype.
4748 * frame-base.c: Remove _initialize_frame_base prototype.
4749 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
4750 * frame.c: Remove _initialize_frame prototype.
4751 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
4752 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
4753 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
4754 * gcore.c: Remove _initialize_gcore prototype.
4755 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
4756 * gdbarch.c: Regenerate.
4757 * gdbarch.sh: Remove _initialize_gdbarch prototype.
4758 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
4759 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
4760 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
4761 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
4762 * go-lang.c: Remove _initialize_go_language prototype.
4763 * go32-nat.c: Remove _initialize_go32_nat prototype.
4764 * guile/guile.c: Remove _initialize_guile prototype.
4765 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
4766 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
4767 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
4768 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
4769 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
4770 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
4771 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
4772 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
4773 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
4774 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
4775 prototype.
4776 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
4777 prototype.
4778 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
4779 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
4780 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
4781 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
4782 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
4783 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
4784 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
4785 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
4786 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
4787 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
4788 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
4789 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
4790 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
4791 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4792 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
4793 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
4794 prototype.
4795 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
4796 prototype.
4797 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
4798 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
4799 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
4800 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
4801 * infcall.c: Remove _initialize_infcall prototype.
4802 * infcmd.c: Remove _initialize_infcmd prototype.
4803 * inferior.c: Remove _initialize_inferiors prototype.
4804 * inflow.c: Remove _initialize_inflow prototype.
4805 * infrun.c: Remove _initialize_infrun prototype.
4806 * interps.c: Remove _initialize_interpreter prototype.
4807 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
4808 * jit.c: Remove _initialize_jit prototype.
4809 * language.c: Remove _initialize_language prototype.
4810 * linux-fork.c: Remove _initialize_linux_fork prototype.
4811 * linux-nat.c: Remove _initialize_linux_nat prototype.
4812 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
4813 * linux-thread-db.c: Remove _initialize_thread_db prototype.
4814 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
4815 * m2-lang.c: Remove _initialize_m2_language prototype.
4816 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
4817 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
4818 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
4819 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
4820 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
4821 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4822 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4823 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
4824 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
4825 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
4826 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4827 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4828 * machoread.c: Remove _initialize_machoread prototype.
4829 * macrocmd.c: Remove _initialize_macrocmd prototype.
4830 * macroscope.c: Remove _initialize_macroscope prototype.
4831 * maint.c: Remove _initialize_maint_cmds prototype.
4832 * mdebugread.c: Remove _initialize_mdebugread prototype.
4833 * memattr.c: Remove _initialize_mem prototype.
4834 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
4835 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
4836 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
4837 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
4838 * mi/mi-main.c: Remove _initialize_mi_main prototype.
4839 * microblaze-linux-tdep.c: Remove
4840 _initialize_microblaze_linux_tdep prototype.
4841 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
4842 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
4843 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
4844 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
4845 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
4846 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
4847 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
4848 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
4849 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
4850 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
4851 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
4852 prototype.
4853 * mipsread.c: Remove _initialize_mipsread prototype.
4854 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
4855 prototype.
4856 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
4857 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
4858 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
4859 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
4860 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
4861 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
4862 prototype.
4863 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
4864 * nto-procfs.c: Remove _initialize_procfs prototype.
4865 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
4866 * objc-lang.c: Remove _initialize_objc_language prototype.
4867 * objfiles.c: Remove _initialize_objfiles prototype.
4868 * observer.c: Remove observer_test_first_notification_function,
4869 observer_test_second_notification_function,
4870 observer_test_third_notification_function, and
4871 _initialize_observer prototypes.
4872 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4873 * osabi.c: Remove _initialize_gdb_osabi prototype.
4874 * osdata.c: Remove _initialize_osdata prototype.
4875 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4876 * parse.c: Remove _initialize_parse prototype.
4877 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4878 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4879 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4880 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4881 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4882 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4883 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4884 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4885 * printcmd.c: Remove _initialize_printcmd prototype.
4886 * probe.c: Remove _initialize_probe prototype.
4887 * proc-api.c: Remove _initialize_proc_api prototype.
4888 * proc-events.c: Remove _initialize_proc_events prototype.
4889 * proc-service.c: Remove _initialize_proc_service prototype.
4890 * procfs.c: Remove _initialize_procfs prototype.
4891 * psymtab.c: Remove _initialize_psymtab prototype.
4892 * python/python.c: Remove _initialize_python prototype.
4893 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4894 * record-btrace.c: Remove _initialize_record_btrace prototype.
4895 * record-full.c: Remove _initialize_record_full prototype.
4896 * record.c: Remove _initialize_record prototype.
4897 * regcache.c: Remove _initialize_regcache prototype.
4898 * reggroups.c: Remove _initialize_reggroup prototype.
4899 * remote-notif.c: Remove _initialize_notif prototype.
4900 * remote-sim.c: Remove _initialize_remote_sim prototype.
4901 * remote.c: Remove _initialize_remote prototype.
4902 * reverse.c: Remove _initialize_reverse prototype.
4903 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4904 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4905 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4906 prototype.
4907 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4908 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4909 * rust-exp.y: Remove _initialize_rust_exp prototype.
4910 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4911 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4912 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4913 * score-tdep.c: Remove _initialize_score_tdep prototype.
4914 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4915 prototype.
4916 * ser-go32.c: Remove _initialize_ser_dos prototype.
4917 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4918 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4919 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4920 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4921 * serial.c: Remove _initialize_serial prototype.
4922 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4923 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4924 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4925 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4926 * skip.c: Remove _initialize_step_skip prototype.
4927 * sol-thread.c: Remove _initialize_sol_thread prototype.
4928 * solib-aix.c: Remove _initialize_solib_aix prototype.
4929 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4930 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4931 * solib-frv.c: Remove _initialize_frv_solib prototype.
4932 * solib-spu.c: Remove _initialize_spu_solib prototype.
4933 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4934 * solib-target.c: Remove _initialize_solib_target prototype.
4935 * solib.c: Remove _initialize_solib prototype.
4936 * source.c: Remove _initialize_source prototype.
4937 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4938 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4939 prototype.
4940 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4941 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4942 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4943 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4944 prototype.
4945 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4946 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4947 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4948 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4949 prototype.
4950 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4951 prototype.
4952 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4953 prototype.
4954 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4955 prototype.
4956 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4957 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4958 prototype.
4959 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4960 prototype.
4961 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4962 prototype.
4963 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4964 prototype.
4965 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4966 prototype.
4967 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4968 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4969 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4970 * stabsread.c: Remove _initialize_stabsread prototype.
4971 * stack.c: Remove _initialize_stack prototype.
4972 * stap-probe.c: Remove _initialize_stap_probe prototype.
4973 * std-regs.c: Remove _initialize_frame_reg prototype.
4974 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4975 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4976 * symfile.c: Remove _initialize_symfile prototype.
4977 * symmisc.c: Remove _initialize_symmisc prototype.
4978 * symtab.c: Remove _initialize_symtab prototype.
4979 * target-dcache.c: Remove _initialize_target_dcache prototype.
4980 * target-descriptions.c: Remove _initialize_target_descriptions
4981 prototype.
4982 * thread.c: Remove _initialize_thread prototype.
4983 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4984 prototype.
4985 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4986 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4987 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4988 prototype.
4989 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4990 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4991 * tracefile.c: Remove _initialize_tracefile prototype.
4992 * tracepoint.c: Remove _initialize_tracepoint prototype.
4993 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4994 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4995 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4996 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4997 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4998 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4999 * tui/tui.c: Remove _initialize_tui prototype.
5000 * typeprint.c: Remove _initialize_typeprint prototype.
5001 * user-regs.c: Remove _initialize_user_regs prototype.
5002 * utils.c: Remove _initialize_utils prototype.
5003 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
5004 * valarith.c: Remove _initialize_valarith prototype.
5005 * valops.c: Remove _initialize_valops prototype.
5006 * valprint.c: Remove _initialize_valprint prototype.
5007 * value.c: Remove _initialize_values prototype.
5008 * varobj.c: Remove _initialize_varobj prototype.
5009 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
5010 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
5011 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
5012 * windows-nat.c: Remove _initialize_windows_nat,
5013 _initialize_check_for_gdb_ini, and _initialize_loadable
5014 prototypes.
5015 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
5016 * xcoffread.c: Remove _initialize_xcoffread prototype.
5017 * xml-support.c: Remove _initialize_xml_support prototype.
5018 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
5019 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
5020 prototype.
5021 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
5022 prototype.
5023 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
5024
5025 2017-09-08 Keith Seitz <keiths@redhat.com>
5026
5027 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
5028 field.
5029
5030 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
5031
5032 * f-valprint.c (f_val_print): Remove check for one byte
5033 sized integers. Remove printing of character type.
5034
5035 2017-09-08 Frank Penczek <frank.penczek@intel.com>
5036 Christoph Weinmann <christoph.t.weinmann@intel.com>
5037 Bernhard Heckel <bernhard.heckel@intel.com>
5038
5039 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
5040 to maintain proper indentation when printing pointers/refs.
5041
5042 2017-09-07 Joel Brobecker <brobecker@adacore.com>
5043
5044 GDB 8.0.1 released.
5045
5046 2017-09-07 Joel Brobecker <brobecker@adacore.com>
5047
5048 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
5049
5050 2017-09-05 Tom Tromey <tom@tromey.com>
5051
5052 * parse.c (funcall_chain): Now a std::vector.
5053 (start_arglist, end_arglist): Simplify.
5054 (free_funcalls): Remove.
5055 (parse_exp_in_context_1): Remove cleanup.
5056
5057 2017-09-05 Tom Tromey <tom@tromey.com>
5058
5059 * go-exp.y (go_parse): Don't create a cleanup.
5060
5061 2017-09-05 Tom Tromey <tom@tromey.com>
5062
5063 * d-exp.y (PrimaryExpression): Use std::string.
5064 (d_parse): Don't create a cleanup.
5065
5066 2017-09-05 Tom Tromey <tom@tromey.com>
5067
5068 * utils.c (do_clear_parser_state): Remove.
5069 (make_cleanup_clear_parser_state): Remove.
5070 * p-exp.y (pascal_parse): Use scoped_restore.
5071 * m2-exp.y (m2_parse): Use scoped_restore.
5072 * f-exp.y (f_parse): Use scoped_restore.
5073 * d-exp.y (d_parse): Use scoped_restore.
5074 * c-exp.y (c_parse): Use scoped_restore.
5075 * ada-exp.y (ada_parse): Use scoped_restore.
5076 * utils.h (make_cleanup_clear_parser_state): Remove.
5077
5078 2017-09-06 Keith Seitz <keiths@redhat.com>
5079
5080 * dwarf2read.c (dw2_linkage_name_attr): New function.
5081 (dw2_linkage_name): New function.
5082 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
5083 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
5084 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
5085
5086 2017-09-06 Kamil Rytarowski <n54@gmx.com>
5087
5088 * config/djgpp/djconfig.sh: Correct shell portability issue.
5089
5090 2017-09-06 Kamil Rytarowski <n54@gmx.com>
5091
5092 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
5093
5094 2017-09-06 John Baldwin <jhb@FreeBSD.org>
5095
5096 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
5097 * NEWS: Mention new FreeBSD/mips native configuration.
5098 * configure.host: Add aarch64*-*-freebsd*.
5099 * configure.nat: Likewise.
5100 * aarch64-fbsd-nat.c: New file.
5101
5102 2017-09-06 John Baldwin <jhb@FreeBSD.org>
5103
5104 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
5105 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
5106 * NEWS: Mention new FreeBSD/aarch64 target.
5107 * configure.tgt: Add aarch64*-*-freebsd*.
5108 * aarch64-fbsd-tdep.c: New file.
5109 * aarch64-fbsd-tdep.h: New file.
5110
5111 2017-09-06 Kamil Rytarowski <n54@gmx.com>
5112
5113 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
5114
5115 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5116
5117 * parse.c (find_minsym_type_and_address): Don't relocate addresses
5118 of TLS symbols.
5119
5120 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5121
5122 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
5123 call.
5124
5125 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5126
5127 * infrun.c (follow_exec): Call add_thread after
5128 target_find_description.
5129
5130 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5131
5132 * infrun.c (handle_inferior_event_1): When exec'ing, read
5133 stop_pc after follow_exec.
5134
5135 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5136
5137 * remote.c (process_g_packet): Update error message.
5138
5139 2017-09-05 Yao Qi <yao.qi@linaro.org>
5140
5141 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
5142 targets.
5143
5144 2017-09-05 Pedro Alves <palves@redhat.com>
5145
5146 * eval.c (eval_call, evaluate_funcall): New functions, factored
5147 out from ...
5148 (evaluate_subexp_standard): ... this.
5149
5150 2017-09-05 Yao Qi <yao.qi@linaro.org>
5151
5152 * amd64-tdep.c (amd64_target_description): Create target
5153 descriptions.
5154 (_initialize_amd64_tdep): Don't call functions
5155 initialize_tdesc_amd64_*. Add self tests.
5156 * arch/amd64.c (amd64_create_target_description): Add parameter
5157 is_linux. Call set_tdesc_osabi if is_linux is true.
5158 * arch/amd64.h (amd64_create_target_description): Update the
5159 declaration.
5160 * arch/i386.c (i386_create_target_description): Add parameter
5161 is_linux. Call set_tdesc_osabi if is_linux is true.
5162 * arch/i386.h (i386_create_target_description): Update
5163 declaration.
5164 * configure.tgt: Add i386.o to gdb_target_obs.
5165 * features/Makefile (XMLTOC): Remove i386/*.xml.
5166 * features/i386/amd64-avx-avx512.c: Remove.
5167 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
5168 * features/i386/amd64-avx-mpx.c: Remove.
5169 * features/i386/amd64-avx.c: Remove.
5170 * features/i386/amd64-mpx.c: Remove.
5171 * features/i386/amd64.c: Remove.
5172 * features/i386/i386-avx-avx512.c: Remove.
5173 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
5174 * features/i386/i386-avx-mpx.c: Remove.
5175 * features/i386/i386-avx.c: Remove.
5176 * features/i386/i386-mmx.c: Remove.
5177 * features/i386/i386-mpx.c: Remove.
5178 * features/i386/i386.c: Remove.
5179 * i386-tdep.c: Don't include features/i386/i386*.c., include
5180 target-descriptions.h and arch/i386.h.
5181 (i386_target_description): Create target descriptions.
5182 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
5183 functions. Do self tests.
5184
5185 2017-09-05 Yao Qi <yao.qi@linaro.org>
5186
5187 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
5188 * features/i386/amd64-avx-avx512-linux.c: Removed.
5189 * features/i386/amd64-avx-linux.c: Removed.
5190 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
5191 * features/i386/amd64-avx-mpx-linux.c: Removed.
5192 * features/i386/amd64-linux.c: Removed.
5193 * features/i386/amd64-mpx-linux.c: Removed.
5194 * features/i386/x32-avx-avx512-linux.c: Removed.
5195 * features/i386/x32-avx-linux.c: Removed.
5196 * features/i386/x32-linux.c: Removed.
5197
5198 2017-09-05 Yao Qi <yao.qi@linaro.org>
5199
5200 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
5201 features/i386/*.c.
5202 (amd64_linux_read_description): Call
5203 amd64_create_target_description.
5204 * arch/amd64.c: New file.
5205 * arch/amd64.h: New file.
5206 * configure.tgt (x86_64-*-linux*): Append amd64.o.
5207 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
5208
5209 2017-09-05 Yao Qi <yao.qi@linaro.org>
5210
5211 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
5212 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
5213 (amd64_linux_read_description): Create target descriptions.
5214 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
5215 functions. Add unit tests.
5216 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
5217 x32-core.xml.
5218 * features/i386/64bit-avx.c: Generated.
5219 * features/i386/64bit-avx512.c: Generated.
5220 * features/i386/64bit-core.c: Generated.
5221 * features/i386/64bit-linux.c: Generated.
5222 * features/i386/64bit-mpx.c: Generated.
5223 * features/i386/64bit-pkeys.c: Generated.
5224 * features/i386/64bit-segments.c: Generated.
5225 * features/i386/64bit-sse.c: Generated.
5226 * features/i386/x32-core.c: Generated.
5227 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
5228 c files for amd64-linux and x32-linux.
5229
5230 2017-09-05 Yao Qi <yao.qi@linaro.org>
5231
5232 * amd64-linux-tdep.c (amd64_linux_read_description): New
5233 function.
5234 (amd64_linux_core_read_description): Call
5235 amd64_linux_read_description.
5236 (amd64_linux_init_abi): Likewise.
5237 (amd64_x32_linux_init_abi): Likewise.
5238 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
5239 * x86-linux-nat.c (x86_linux_read_description): Call
5240 amd64_linux_read_description.
5241
5242 2017-09-05 Yao Qi <yao.qi@linaro.org>
5243
5244 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
5245 comments.
5246
5247 2017-09-05 Yao Qi <yao.qi@linaro.org>
5248
5249 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
5250 * features/i386/i386-avx-avx512-linux.c: Remove.
5251 * features/i386/i386-avx-linux.c: Remove.
5252 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
5253 * features/i386/i386-avx-mpx-linux.c: Remove.
5254 * features/i386/i386-linux.c: Remove.
5255 * features/i386/i386-mmx-linux.c: Remove.
5256 * features/i386/i386-mpx-linux.c: Remove.
5257
5258 2017-09-05 Yao Qi <yao.qi@linaro.org>
5259
5260 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
5261 (SFILES): Add arch/i386.c.
5262 (HFILES_NO_SRCDIR): Add arch/i386.h.
5263 * arch/i386.c: New file.
5264 * arch/i386.h: New file.
5265 * arch/tdesc.h (allocate_target_description): Declare.
5266 (set_tdesc_architecture): Declare.
5267 (set_tdesc_osabi): Declare.
5268 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
5269 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
5270 include arch/i386.h.
5271 (i386_linux_read_description): Remove code and call
5272 i386_create_target_description.
5273 (set_tdesc_architecture): New function.
5274 (set_tdesc_osabi): New function.
5275 * target-descriptions.h (allocate_target_description): Remove.
5276
5277 2017-09-05 Yao Qi <yao.qi@linaro.org>
5278
5279 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
5280 * target-descriptions.c (tdesc_create_feature): Likewise, and
5281 adjust code.
5282 * features/i386/32bit-avx.c: Re-generated.
5283 * features/i386/32bit-avx512.c: Re-generated.
5284 * features/i386/32bit-core.c: Re-generated.
5285 * features/i386/32bit-linux.c: Re-generated.
5286 * features/i386/32bit-mpx.c: Re-generated.
5287 * features/i386/32bit-pkeys.c: Re-generated.
5288 * features/i386/32bit-sse.c: Re-generated.
5289
5290 2017-09-05 Yao Qi <yao.qi@linaro.org>
5291
5292 * regformats/regdef.h (struct reg): Override operator == and !=.
5293
5294 2017-09-05 Yao Qi <yao.qi@linaro.org>
5295
5296 * arch/tdesc.h: New file.
5297 * regformats/regdat.sh: Generate code using tdesc_create_reg.
5298 * target-descriptions.c: Update comments.
5299 * target-descriptions.h: Include "arch/tdesc.h". Remove the
5300 declarations.
5301 * features/i386/32bit-avx.c: Re-generated.
5302 * features/i386/32bit-avx512.c: Re-generated.
5303 * features/i386/32bit-core.c: Re-generated.
5304 * features/i386/32bit-linux.c: Re-generated.
5305 * features/i386/32bit-mpx.c: Re-generated.
5306 * features/i386/32bit-pkeys.c: Re-generated.
5307 * features/i386/32bit-sse.c: Re-generated.
5308
5309 2017-09-05 Yao Qi <yao.qi@linaro.org>
5310
5311 * regformats/regdat.sh: Update generated code.
5312
5313 2017-09-05 Yao Qi <yao.qi@linaro.org>
5314
5315 * regformats/regdat.sh: Adjust code order.
5316
5317 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5318
5319 * expprint.c (dump_subexp_body_standard): Use constant format
5320 string in fprintf_filtered call.
5321
5322 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5323
5324 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
5325 NetBSD/i386.
5326 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
5327
5328 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5329
5330 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
5331
5332 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5333
5334 * bsd-kvm.o: Define _KMEMUSER.
5335 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
5336 * configure: Regenerate.
5337
5338 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5339
5340 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
5341 * i386-fbsd-nat.c: Likewise.
5342
5343 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5344
5345 * unittests/array-view-selftests.c: Add include of <array>.
5346
5347 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5348
5349 * spu-tdep.c (flush_ea_cache): Add missing argument to
5350 call_function_by_hand.
5351
5352 2017-09-04 Pedro Alves <palves@redhat.com>
5353
5354 * NEWS (Safer support for debugging with no debug info): New.
5355
5356 2017-09-04 Pedro Alves <palves@redhat.com>
5357
5358 * c-exp.y (function_method, function_method_void): Add current
5359 instance flags to TYPE_INSTANCE.
5360 * dwarf2read.c (check_modifier): New.
5361 (compute_delayed_physnames): Assert that only C++ adds delayed
5362 physnames. Mark fn_fields as const/volatile depending on
5363 physname.
5364 * eval.c (make_params): New type_instance_flags parameter. Use
5365 it as the new type's instance flags.
5366 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
5367 flags element and pass it to make_params.
5368 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
5369 instance flags element.
5370 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
5371 * gdbtypes.h: Include "enum-flags.h".
5372 (type_instance_flags): New enum-flags type.
5373 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
5374 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
5375 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
5376 (follow_type_instance_flags): New function.
5377 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
5378 * parser-defs.h (follow_type_instance_flags): Declare.
5379 * valops.c (value_struct_elt_for_reference): const/volatile must
5380 match too.
5381
5382 2017-09-04 Pedro Alves <palves@redhat.com>
5383
5384 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
5385 function/method scopes; lookup the nested name as a function local
5386 static variable.
5387
5388 2017-09-04 Pedro Alves <palves@redhat.com>
5389
5390 (%type <voidval>): Add function_method.
5391 * c-exp.y (exp): New production for calls with no arguments.
5392 (function_method, function_method_void_or_typelist): New
5393 productions.
5394 (exp): New production for "method()::static_var".
5395 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
5396 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5397 Handle OP_FUNC_STATIC_VAR.
5398 * parse.c (operator_length_standard):
5399 Handle OP_FUNC_STATIC_VAR.
5400
5401 2017-09-04 Pedro Alves <palves@redhat.com>
5402
5403 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
5404 handling.
5405 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5406 Ditto.
5407 * parse.c (operator_length_standard, operator_check_standard):
5408 Ditto.
5409 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
5410
5411 2017-09-04 Pedro Alves <palves@redhat.com>
5412
5413 * ax-gdb.c: Include "typeprint.h".
5414 (gen_expr_for_cast): New function.
5415 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
5416 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
5417 type is unknown.
5418 * dwarf2read.c (new_symbol_full): Fallback to int instead of
5419 nodebug_data_symbol.
5420 * eval.c: Include "typeprint.h".
5421 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
5422 Error out if symbol has unknown type.
5423 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
5424 evaluate_subexp_for_cast.
5425 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
5426 OP_VAR_MSYM_VALUE.
5427 (evaluate_subexp_for_cast): New function.
5428 * gdbtypes.c (init_nodebug_var_type): New function.
5429 (objfile_type): Use it to initialize types of variables with no
5430 debug info.
5431 * typeprint.c (error_unknown_type): New.
5432 * typeprint.h (error_unknown_type): New declaration.
5433 * compile/compile-c-types.c (convert_type_basic): Handle
5434 TYPE_CODE_ERROR; warn and fallback to int for variables with
5435 unknown type.
5436
5437 2017-09-04 Pedro Alves <palves@redhat.com>
5438
5439 * eval.c (evaluate_var_value): New function, factored out from ...
5440 (evaluate_subexp_standard): ... here.
5441
5442 2017-09-04 Pedro Alves <palves@redhat.com>
5443
5444 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
5445 Remove useless assignments to 'op'.
5446
5447 2017-09-04 Pedro Alves <palves@redhat.com>
5448
5449 * eval.c (eval_skip_value): New function.
5450 (evaluate_subexp_standard): Use it.
5451
5452 2017-09-04 Pedro Alves <palves@redhat.com>
5453
5454 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
5455 function name from symbol/minsym and pass it to
5456 error_call_unknown_return_type.
5457
5458 2017-09-04 Pedro Alves <palves@redhat.com>
5459
5460 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
5461 * ax-gdb.c (gen_msym_var_ref): New function.
5462 (gen_expr): Handle OP_VAR_MSYM_VALUE.
5463 * eval.c (evaluate_var_msym_value): New function.
5464 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
5465 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
5466 to call_function_by_hand.
5467 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5468 Handle OP_VAR_MSYM_VALUE.
5469 (union exp_element) <msymbol>: New field.
5470 * minsyms.h (struct type): Forward declare.
5471 (find_minsym_type_and_address): Declare.
5472 * parse.c (write_exp_elt_msym): New function.
5473 (write_exp_msymbol): Delete, refactored as ...
5474 (find_minsym_type_and_address): ... this new function.
5475 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
5476 (operator_length_standard, operator_check_standard): Handle
5477 OP_VAR_MSYM_VALUE.
5478 * std-operator.def (OP_VAR_MSYM_VALUE): New.
5479
5480 2017-09-04 Pedro Alves <palves@redhat.com>
5481
5482 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
5483 TYPE_GNU_IFUNC specially here. Throw error if return type is
5484 unknown.
5485 * ada-typeprint.c (print_func_type): Handle functions with unknown
5486 return type.
5487 * c-typeprint.c (c_type_print_base): Handle functions and methods
5488 with unknown return type.
5489 * compile/compile-c-symbols.c (convert_symbol_bmsym)
5490 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
5491 * compile/compile-c-types.c: Include "objfiles.h".
5492 (convert_func): For functions with unknown return type, warn and
5493 default to int.
5494 * compile/compile-object-run.c (compile_object_run): Adjust call
5495 to call_function_by_hand_dummy.
5496 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
5497 call_function_by_hand.
5498 * eval.c (evaluate_subexp_standard): Adjust calls to
5499 call_function_by_hand. Handle functions and methods with unknown
5500 return type. Pass expect_type to call_function_by_hand.
5501 * f-typeprint.c (f_type_print_base): Handle functions with unknown
5502 return type.
5503 * gcore.c (call_target_sbrk): Adjust call to
5504 call_function_by_hand.
5505 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
5506 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
5507 an integer address type instead of nodebug.
5508 * guile/scm-value.c (gdbscm_value_call): Adjust call to
5509 call_function_by_hand.
5510 * infcall.c (error_call_unknown_return_type): New function.
5511 (call_function_by_hand): New "default_return_type" parameter.
5512 Pass it down.
5513 (call_function_by_hand_dummy): New "default_return_type"
5514 parameter. Use it instead of defaulting to int. If there's no
5515 default and the return type is unknown, throw an error. If
5516 there's a default return type, and the called function has no
5517 debug info, then assume the function is prototyped.
5518 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
5519 New "default_return_type" parameter.
5520 (error_call_unknown_return_type): New declaration.
5521 * linux-fork.c (call_lseek): Cast return type of lseek.
5522 (inferior_call_waitpid, checkpoint_command): Adjust calls to
5523 call_function_by_hand.
5524 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
5525 calls to call_function_by_hand.
5526 * m2-typeprint.c (m2_procedure): Handle functions with unknown
5527 return type.
5528 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5529 (value_nsstring, print_object_command): Adjust calls to
5530 call_function_by_hand.
5531 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
5532 functions with unknown return type.
5533 (pascal_type_print_func_varspec_suffix): New function.
5534 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
5535 TYPE_CODE_METHOD>: Use it.
5536 * python/py-value.c (valpy_call): Adjust call to
5537 call_function_by_hand.
5538 * rust-lang.c (rust_evaluate_funcall): Adjust call to
5539 call_function_by_hand.
5540 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
5541 call_function_by_hand.
5542 * valops.c (value_allocate_space_in_inferior): Adjust call to
5543 call_function_by_hand.
5544 * typeprint.c (type_print_unknown_return_type): New function.
5545 * typeprint.h (type_print_unknown_return_type): New declaration.
5546
5547 2017-09-04 Pedro Alves <palves@redhat.com>
5548
5549 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
5550 types with more than one parameter as prototyped.
5551
5552 2017-09-04 Pedro Alves <palves@redhat.com>
5553
5554 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
5555 (disassemble_command): Use gdb_disassembly_flags instead of bare
5556 int.
5557 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
5558 (dump_insns, do_mixed_source_and_assembly_deprecated)
5559 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
5560 Use gdb_disassembly_flags instead of bare int.
5561 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
5562 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
5563 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
5564 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
5565 (enum gdb_disassembly_flag): ... values of this new enumeration.
5566 (gdb_disassembly_flags): Define.
5567 (gdb_disassembly)
5568 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
5569 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
5570 gdb_disassembly_flags instead of bare int.
5571 * record-btrace.c (btrace_insn_history)
5572 (record_btrace_insn_history, record_btrace_insn_history_range)
5573 (record_btrace_insn_history_from): Use gdb_disassembly_flags
5574 instead of bare int.
5575 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
5576 Use gdb_disassembly_flags instead of bare int.
5577 * target-debug.h (target_debug_print_gdb_disassembly_flags):
5578 Define.
5579 * target-delegates.c: Regenerate.
5580 * target.c (target_insn_history, target_insn_history_from)
5581 (target_insn_history_range): Use gdb_disassembly_flags instead of
5582 bare int.
5583 * target.h: Include "disasm.h".
5584 (struct target_ops) <to_insn_history, to_insn_history_from,
5585 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
5586 int.
5587 (target_insn_history, target_insn_history_from)
5588 (target_insn_history_range): Use gdb_disassembly_flags instead of
5589 bare int.
5590
5591 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5592
5593 * cli/cli-script.c (build_command_line): For if/while commands,
5594 check whether args is empty.
5595
5596 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5597
5598 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
5599 (enum command_control_type): Likewise.
5600 (struct command_line): Likewise.
5601 (free_command_lines): Likewise.
5602 (struct command_lines_deleter): Likewise.
5603 (command_line_up): Likewise.
5604 (read_command_lines): Likewise.
5605 (read_command_lines_1): Likewise.
5606 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
5607 (enum command_control_type): Likewise.
5608 (struct command_line): Likewise.
5609 (free_command_lines): Likewise.
5610 (struct command_lines_deleter): Likewise.
5611 (command_line_up): Likewise.
5612 (read_command_lines): Likewise.
5613 (read_command_lines_1): Likewise.
5614 * breakpoint.h: Include cli/cli-script.h.
5615 * extension-priv.h: Likewise.
5616 * gdbcmd.h: Likewise.
5617
5618 2017-09-04 Pedro Alves <palves@redhat.com>
5619
5620 * ada-lang.c (is_known_support_routine): Move sal declaration to
5621 where it is initialized.
5622 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
5623 (parse_breakpoint_sals, decode_static_tracepoint_spec)
5624 (clear_command, update_static_tracepoint): Remove init_sal
5625 references. Move declarations closer to initializations.
5626 * cli/cli-cmds.c (list_command): Move sal declarations closer to
5627 initializations.
5628 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
5629 references. Move sal declarations closer to initializations.
5630 * frame.c (find_frame_sal): Return a symtab_and_line via function
5631 return instead of output parameter. Remove init_sal references.
5632 * frame.h (find_frame_sal): Return a symtab_and_line via function
5633 return instead of output parameter.
5634 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
5635 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
5636 instead of memset.
5637 (gdbscm_find_pc_line): Remove init_sal reference.
5638 * infcall.c (call_function_by_hand_dummy): Remove init_sal
5639 references. Move declarations closer to initializations.
5640 * infcmd.c (set_step_frame): Update. Move declarations closer to
5641 initializations.
5642 (finish_backward): Remove init_sal references. Move declarations
5643 closer to initializations.
5644 * infrun.c (process_event_stop_test, handle_step_into_function)
5645 (insert_hp_step_resume_breakpoint_at_frame)
5646 (insert_step_resume_breakpoint_at_caller): Likewise.
5647 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
5648 (symbol_to_sal): Likewise.
5649 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
5650 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
5651 to its initialization.
5652 * reverse.c (save_bookmark_command): Use new/delete. Remove
5653 init_sal references. Move declarations closer to initializations.
5654 * source.c (get_current_source_symtab_and_line): Remove brace
5655 initialization.
5656 (set_current_source_symtab_and_line): Now takes the sal by const
5657 reference. Remove brace initialization.
5658 (line_info): Remove init_sal reference.
5659 * source.h (set_current_source_symtab_and_line): Now takes a
5660 symtab_and_line via const reference.
5661 * stack.c (set_current_sal_from_frame): Adjust.
5662 (print_frame_info): Adjust.
5663 (get_last_displayed_sal): Return the sal via function return
5664 instead of via output parameter. Simplify.
5665 (frame_info): Adjust.
5666 * stack.h (get_last_displayed_sal): Return the sal via function
5667 return instead of via output parameter.
5668 * symtab.c (init_sal): Delete.
5669 (find_pc_sect_line): Remove init_sal references. Move
5670 declarations closer to initializations.
5671 (find_function_start_sal): Remove init_sal references. Move
5672 declarations closer to initializations.
5673 * symtab.h (struct symtab_and_line): In-class initialize all
5674 fields.
5675 * tracepoint.c (set_traceframe_context)
5676 (print_one_static_tracepoint_marker): Remove init_sal references.
5677 Move declarations closer to initializations.
5678 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
5679 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
5680 declarations closer to initializations.
5681 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
5682 init_sal references. Adjust.
5683
5684 2017-09-04 Pedro Alves <palves@redhat.com>
5685
5686 * ax-gdb.c (agent_command_1): Use range-for.
5687 * break-catch-throw.c (re_set_exception_catchpoint): Update.
5688 * breakpoint.c: Include "common/array-view.h".
5689 (init_breakpoint_sal, create_breakpoint_sal): Change sals
5690 parameter from struct symtabs_and_lines to
5691 array_view<symtab_and_line>. Adjust. Use range-for. Update.
5692 (breakpoint_sals_to_pc): Change sals parameter from struct
5693 symtabs_and_lines to std::vector reference.
5694 (check_fast_tracepoint_sals): Change sals parameter from struct
5695 symtabs_and_lines to std::array_view. Use range-for.
5696 (decode_static_tracepoint_spec): Return a std::vector instead of
5697 symtabs_and_lines. Update.
5698 (create_breakpoint): Update.
5699 (break_range_command, until_break_command, clear_command): Update.
5700 (base_breakpoint_decode_location, bkpt_decode_location)
5701 (bkpt_probe_create_sals_from_location)
5702 (bkpt_probe_decode_location, tracepoint_decode_location)
5703 (tracepoint_probe_decode_location)
5704 (strace_marker_create_sals_from_location): Return a std::vector
5705 instead of symtabs_and_lines.
5706 (strace_marker_create_breakpoints_sal): Update.
5707 (strace_marker_decode_location): Return a std::vector instead of
5708 symtabs_and_lines. Update.
5709 (update_breakpoint_locations): Change struct symtabs_and_lines
5710 parameters to gdb::array_view. Adjust.
5711 (location_to_sals): Return a std::vector instead of
5712 symtabs_and_lines. Update.
5713 (breakpoint_re_set_default): Use std::vector instead of struct
5714 symtabs_and_lines.
5715 (decode_location_default): Return a std::vector instead of
5716 symtabs_and_lines. Update.
5717 * breakpoint.h: Include "common/array-view.h".
5718 (struct breakpoint_ops) <decode_location>: Now returns a
5719 std::vector instead of returning a symtabs_and_lines via output
5720 parameter.
5721 (update_breakpoint_locations): Change sals parameters to use
5722 gdb::array_view.
5723 * cli/cli-cmds.c (edit_command, list_command): Update to use
5724 std::vector and gdb::array_view.
5725 (ambiguous_line_spec): Adjust to use gdb::array_view and
5726 range-for.
5727 (compare_symtabs): Rename to ...
5728 (cmp_symtabs): ... this. Change parameters to symtab_and_line
5729 const reference and adjust.
5730 (filter_sals): Rewrite using std::vector and standard algorithms.
5731 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
5732 (jump_command): Update to use std::vector.
5733 * linespec.c (struct linespec_state) <canonical_names>: Update
5734 comment.
5735 (add_sal_to_sals_basic): Delete.
5736 (add_sal_to_sals, filter_results, convert_results_to_lsals)
5737 (decode_line_2, create_sals_line_offset)
5738 (convert_address_location_to_sals, convert_linespec_to_sals)
5739 (convert_explicit_location_to_sals, parse_linespec)
5740 (event_location_to_sals, decode_line_full, decode_line_1)
5741 (decode_line_with_current_source)
5742 (decode_line_with_last_displayed, decode_objc)
5743 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
5744 (linespec_result::~linespec_result): Adjust to use std::vector
5745 instead of symtabs_and_lines.
5746 * linespec.h (linespec_sals::sals): Now a std::vector.
5747 (struct linespec_result): Use std::vector, bool, and in-class
5748 initialization.
5749 (decode_line_1, decode_line_with_current_source)
5750 (decode_line_with_last_displayed): Return std::vector.
5751 * macrocmd.c (info_macros_command): Use std::vector.
5752 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
5753 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
5754 std::vector.
5755 * probe.h (parse_probes): Return a std::vector.
5756 * python/python.c (gdbpy_decode_line): Use std::vector and
5757 gdb::array_view.
5758 * source.c (select_source_symtab, line_info): Use std::vector.
5759 * stack.c (func_command): Use std::vector.
5760 * symtab.h (struct symtabs_and_lines): Delete.
5761 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
5762
5763 2017-09-04 Pedro Alves <palves@redhat.com>
5764
5765 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5766 unittests/array-view-selftests.c.
5767 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
5768 * common/array-view.h: New file.
5769 * unittests/array-view-selftests.c: New file.
5770
5771 2017-09-04 Pedro Alves <palves@redhat.com>
5772
5773 * cli/cli-cmds.c (edit_command): Pass message to
5774 ambiguous_line_spec.
5775 (list_command): Pass message to ambiguous_line_spec. Say
5776 "first"/"last" instead of "start" and "end" to be consistent with
5777 the manual.
5778 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
5779 them to print formatted message.
5780
5781 2017-09-04 Pedro Alves <palves@redhat.com>
5782
5783 * btrace.c (ftrace_add_pt): Pass btrace_insn to
5784 ftrace_update_insns by reference instead of pointer.
5785
5786 2017-09-04 Yao Qi <yao.qi@linaro.org>
5787
5788 * i386-go32-tdep.c: Include x86-xstate.h.
5789 (i386_go32_init_abi): Call i386_target_description.
5790 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
5791 if xcr0 is X86_XSTATE_X87_MASK.
5792 * i386-tdep.h (tdesc_i386): Remove the declaration.
5793 (tdesc_i386_mmx): Likewise.
5794
5795 2017-09-04 Yao Qi <yao.qi@linaro.org>
5796
5797 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
5798 X86_XSTATE_SSE_MASK instead of 0.
5799
5800 2017-09-04 Yao Qi <yao.qi@linaro.org>
5801
5802 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
5803 i386_target_description.
5804 * i386-fbsd-nat.c (i386fbsd_read_description): Call
5805 i386_target_description.
5806 * i386-tdep.c (i386_gdbarch_init): Likewise.
5807
5808 2017-09-04 Yao Qi <yao.qi@linaro.org>
5809
5810 * amd64-darwin-tdep.c: Include "x86-xstate.h".
5811 (x86_darwin_init_abi_64): Call amd64_target_description.
5812 * amd64-dicos-tdep.c: Likewise.
5813 * amd64-fbsd-nat.c: Likewise.
5814 * amd64-fbsd-tdep.c: Likewise.
5815 * amd64-nbsd-tdep.c: Likewise.
5816 * amd64-obsd-tdep.c: Likewise.
5817 * amd64-sol2-tdep.c: Likewise.
5818 * amd64-windows-tdep.c: Likewise.
5819 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
5820
5821 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5822
5823 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
5824 (btrace_function) <insn>: Change type to use std::vector.
5825 * btrace.c (ftrace_debug, ftrace_call_num_insn,
5826 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
5827 ftrace_update_insns, ftrace_compute_global_level_offset,
5828 btrace_stitch_bts, btrace_clear, btrace_insn_get,
5829 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
5830 change to std::vector.
5831 (ftrace_update_insns): Adjust to change to std::vector, change
5832 type of INSN parameter.
5833 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
5834 * record-btrace.c (btrace_call_history_insn_range,
5835 btrace_compute_src_line_range,
5836 record_btrace_frame_prev_register): Adjust to change to
5837 std::vector.
5838 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
5839 to change to std::vector.
5840
5841 2017-09-03 Tom Tromey <tom@tromey.com>
5842
5843 * corefile.c (reopen_exec_file): Use std::string.
5844
5845 2017-09-03 Tom Tromey <tom@tromey.com>
5846
5847 * compile/compile.c (compile_register_name_mangled): Return
5848 std::string.
5849 * compile/compile-loc2c.c (pushf_register_address): Update.
5850 (pushf_register): Update.
5851 * compile/compile-c-types.c (convert_array): Update.
5852 * compile/compile-c-symbols.c (generate_vla_size): Update.
5853 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
5854 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
5855 (convert_one_symbol): Update.
5856 (generate_c_for_for_one_variable): Update.
5857 * compile/compile-c-support.c (c_get_range_decl_name): Return a
5858 std::string.
5859 (generate_register_struct): Update.
5860 * compile/compile-internal.h (c_get_range_decl_name): Return a
5861 std::string.
5862 (compile_register_name_mangled): Return std::string.
5863
5864 2017-09-03 Tom Tromey <tom@tromey.com>
5865
5866 * utils.c (perror_string): Return a std::string.
5867 (throw_perror_with_name, perror_warning_with_name): Update.
5868
5869 2017-09-03 Tom Tromey <tom@tromey.com>
5870
5871 * demangle.c (demangle_command): Use std::string,
5872 unique_xmalloc_ptr.
5873
5874 2017-09-03 Tom Tromey <tom@tromey.com>
5875
5876 * cli/cli-setshow.c (do_set_command): Use std::string.
5877
5878 2017-09-03 Tom Tromey <tom@tromey.com>
5879
5880 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5881
5882 2017-09-03 Tom Tromey <tom@tromey.com>
5883
5884 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5885
5886 2017-09-03 Tom Tromey <tom@tromey.com>
5887
5888 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5889 gdb::unique_xmalloc_ptr.
5890
5891 2017-09-03 Tom Tromey <tom@tromey.com>
5892
5893 * thread.c (print_thread_info_1): Use string_printf.
5894 (thread_apply_command, thread_apply_all_command): Use
5895 std::string.
5896
5897 2017-09-03 Tom Tromey <tom@tromey.com>
5898
5899 * valprint.c (val_print_string): Update.
5900 * gdbcore.h (memory_error_message): Return std::string.
5901 * corefile.c (memory_error_message): Return std::string.
5902 (memory_error): Update.
5903 * breakpoint.c (insert_bp_location): Update.
5904
5905 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5906
5907 * target/waitstatus.h (target_waitstatus_to_string): Change
5908 return type to std::string.
5909 * target/waitstatus.c (target_waitstatus_to_string): Return
5910 std::string.
5911 * target.h (target_waitstatus_to_string): Remove declaration.
5912 * infrun.c (resume, clear_proceed_status_thread,
5913 print_target_wait_results, do_target_wait, save_waitstatus,
5914 stop_all_threads): Adjust.
5915 * record-btrace.c (record_btrace_wait): Adjust.
5916 * target-debug.h
5917 (target_debug_print_struct_target_waitstatus_p): Adjust.
5918
5919 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5920
5921 PR gdb/22046
5922 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5923 detection.
5924
5925 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5926
5927 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5928 for setting/unsetting environment variables on the remote target.
5929 (New remote packets): Add entries for QEnvironmentHexEncoded,
5930 QEnvironmentUnset and QEnvironmentReset.
5931 * common/environ.c (gdb_environ::operator=): Extend method to
5932 handle m_user_set_env_list and m_user_unset_env_list.
5933 (gdb_environ::clear): Likewise.
5934 (match_var_in_string): Change type of first parameter from 'char
5935 *' to 'const char *'.
5936 (gdb_environ::set): Extend method to handle
5937 m_user_set_env_list and m_user_unset_env_list.
5938 (gdb_environ::unset): Likewise.
5939 (gdb_environ::clear_user_set_env): New method.
5940 (gdb_environ::user_set_envp): Likewise.
5941 (gdb_environ::user_unset_envp): Likewise.
5942 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5943 m_user_unset_env_list on move constructor/assignment.
5944 (unset): Add new default parameter 'update_unset_list = true'.
5945 (clear_user_set_env): New method.
5946 (user_set_envp): Likewise.
5947 (user_unset_envp): Likewise.
5948 (m_user_set_env_list): New std::set.
5949 (m_user_unset_env_list): Likewise.
5950 * common/rsp-low.c (hex2str): New function.
5951 (bin2hex): New overload for bin2hex function.
5952 * common/rsp-low.c (hex2str): New prototype.
5953 (str2hex): New overload prototype.
5954 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5955 QEnvironmentUnset and QEnvironmentReset.
5956 (remote_protocol_features): Add QEnvironmentHexEncoded,
5957 QEnvironmentUnset and QEnvironmentReset packets.
5958 (send_environment_packet): New function.
5959 (extended_remote_environment_support): Likewise.
5960 (extended_remote_create_inferior): Call
5961 extended_remote_environment_support.
5962 (_initialize_remote): Add QEnvironmentHexEncoded,
5963 QEnvironmentUnset and QEnvironmentReset packet configs.
5964 * unittests/environ-selftests.c (gdb_selftest_env_var):
5965 New variable.
5966 (test_vector_initialization): New function.
5967 (test_init_from_host_environ): Likewise.
5968 (test_reinit_from_host_environ): Likewise.
5969 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5970 Likewise.
5971 (test_unset_set_empty_vector): Likewise.
5972 (test_vector_clear): Likewise.
5973 (test_std_move): Likewise.
5974 (test_move_constructor):
5975 (test_self_move): Likewise.
5976 (test_set_unset_reset): Likewise.
5977 (run_tests): Rewrite in terms of the functions above.
5978
5979 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
5980
5981 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5982 (adi_available): Use a temp variable of type CORE_ADDR as argument
5983 3 when calling target_auxv_search.
5984 (adi_normalize_address): Use masks and xor operators to calculate
5985 normalized address.
5986 (adi_read_versions, adi_write_versions, adi_print_versions)
5987 (do_examine, do_assign): Use paddress.
5988
5989 2017-08-29 John Baldwin <jhb@FreeBSD.org>
5990
5991 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5992 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5993 out of loop and add supply of FIR.
5994 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5995 add collect of FIR.
5996
5997 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5998
5999 PR gdb/21827
6000 * cli/cli-script.c (define_command): Don't convert command name
6001 to lower case.
6002
6003 2017-08-25 Joel Brobecker <brobecker@adacore.com>
6004
6005 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
6006 Update all callers accordingly. Remove all code blocks handling
6007 the case where DISPP is not NULL.
6008
6009 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6010
6011 PR symtab/22003
6012 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
6013 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6014 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
6015
6016 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6017
6018 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
6019 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
6020 (read_comp_units_from_section): New parameter abbrev_section, use
6021 read_and_check_comp_unit_head, allocate signatured_type if needed.
6022 (create_all_comp_units): Update read_comp_units_from_section caller.
6023
6024 2017-08-23 Pedro Alves <palves@redhat.com>
6025
6026 PR remote/21852
6027 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
6028 to null_ptid and switch to thread without reading the registers
6029 after adding the inferior.
6030
6031 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6032
6033 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
6034 compile-gcc.
6035 * compile/compile.c (compile_gcc, show_compile_gcc): New.
6036 (compile_to_object): Implement compile_gcc.
6037 (_initialize_compile): Install "set compile-gcc". Initialize
6038 compile_gcc.
6039
6040 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6041
6042 * compile/compile.c (compile_to_object): Conditionally call
6043 set_verbose. Conditionally call compile or compile_v0.
6044
6045 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
6046
6047 * sparc64-tdep.h: (adi_normalize_address): New export.
6048 * sparc-nat.h: (open_adi_tag_fd): New export.
6049 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
6050 * sparc64-linux-tdep.c:
6051 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
6052 (sparc64_linux_handle_segmentation_fault): New function.
6053 (sparc64_linux_init_abi): Register
6054 sparc64_linux_handle_segmentation_fault
6055 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
6056 (sparc64_addr_bits_remove): New function.
6057 (sparc64_init_abi): Register sparc64_addr_bits_remove.
6058 (MAX_PROC_NAME_SIZE): New macro.
6059 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
6060 (sparc64adilist): New variable.
6061 (adi_proc_list): New variable.
6062 (find_adi_info): New function.
6063 (add_adi_info): New function.
6064 (get_adi_info_proc): New function.
6065 (get_adi_info): New function.
6066 (info_adi_command): New function.
6067 (read_maps_entry): New function.
6068 (adi_available): New function.
6069 (adi_normalize_address): New function.
6070 (adi_align_address): New function.
6071 (adi_convert_byte_count): New function.
6072 (adi_tag_fd): New function.
6073 (adi_is_addr_mapped): New function.
6074 (adi_read_versions): New function.
6075 (adi_write_versions): New function.
6076 (adi_print_versions): New function.
6077 (do_examine): New function.
6078 (do_assign): New function.
6079 (adi_examine_command): New function.
6080 (adi_assign_command): New function.
6081 (_initialize_sparc64_adi_tdep): New function.
6082
6083 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
6084
6085 * breakpoint.c (breakpoints_info): Rename to ...
6086 (info_breakpoints_command): ... this.
6087 (watchpoints_info): Rename to ...
6088 (info_watchpoints_command): ... this.
6089 (tracepoints_info): Rename to ...
6090 (info_tracepoints_command): ... this.
6091 (_initialize_breakpoint): Adjust.
6092 * dcache.c (dcache_info): Rename to ...
6093 (info_display_command): ... this.
6094 (_initialize_dcache): Adjust.
6095 * frame.h (args_info): Rename to ...
6096 (info_args_command): ... this.
6097 (locals_info): Rename to ...
6098 (info_locals_command): ... this.
6099 * infcmd.c (nofp_registers_info): Rename to ...
6100 (info_registers_command): ... this.
6101 (float_info): Rename to ...
6102 (info_float_command): ... this.
6103 (program_info): Rename to ...
6104 (info_program_command): ... this.
6105 (all_registers_info): Rename to ...
6106 (info_all_registers_command): ... this.
6107 (vector_info): Rename to ...
6108 (info_vector_command): ... this.
6109 (float_info): Rename to ...
6110 (info_float_command): ... this.
6111 (_initialize_infcmd): Adjust.
6112 * inferior.h (term_info): Rename to ...
6113 (info_terminal_command): ... this.
6114 * inflow.c (term_info): Rename to ...
6115 (info_terminal_command): ... this.
6116 (_initialize_inflow): Adjust.
6117 * infrun.c (signals_info): Rename to ...
6118 (info_signals_command): ... this.
6119 (_initialize_infrun): Adjust.
6120 * objc-lang.c (classes_info): Rename to ...
6121 (info_classes_command): ... this.
6122 (selectors_info): Rename to ...
6123 (info_selectors_command): ... this.
6124 (_initialize_objc_language): Adjust.
6125 * printcmd.c (sym_info): Rename to ...
6126 (info_symbol_command): ... this.
6127 (address_info): Rename to ...
6128 (info_address_command): ... this.
6129 (display_info): Rename to ...
6130 (info_display_command): ... this.
6131 (_initialize_printcmd): Adjust.
6132 * reverse.c (bookmarks_info): Rename to ...
6133 (info_breakpoints_command): ... this.
6134 (_initialize_reverse): Adjust.
6135 * ser-go32.c (dos_info): Rename to ...
6136 (info_serial_command): ... this.
6137 (_initialize_ser_dos): Adjust.
6138 * skip.c (skip_info): Rename to ...
6139 (info_skip_command): ... this.
6140 (_initialize_step_skip): Adjust.
6141 * source.c (line_info): Rename to ...
6142 (info_line_command): ... this.
6143 (source_info): Rename to ...
6144 (info_source_command)
6145 * stack.c (frame_info): Rename to ...
6146 (info_frame_command): ... this.
6147 (locals_info): Rename to ...
6148 (info_locals_command): ... this.
6149 (args_info): Rename to ...
6150 (info_args_command): ... this.
6151 (_initialize_stack): Adjust.
6152 * symtab.c (sources_info): Rename to ...
6153 (info_sources_command): ... this.
6154 (variables_info): Rename to ...
6155 (info_variables_command): ... this.
6156 (functions_info): Rename to ...
6157 (info_functions_command): ... this.
6158 (types_info): Rename to ...
6159 (info_types_command): ... this.
6160 (_initialize_symtab): Adjust.
6161 * target.c (target_info): Rename to ...
6162 (info_target_command): ... this.
6163 (initialize_targets): Adjust.
6164 * tracepoint.c (tvariables_info): Rename to ...
6165 (info_tvariables_command): ... this.
6166 (scope_info): Rename to ...
6167 (info_scope_command): ... this.
6168 (trace_dump_actions): Adjust.
6169 (_initialize_tracepoint): Adjust.
6170
6171 2017-08-22 Tom Tromey <tom@tromey.com>
6172
6173 * breakpoint.h (install_breakpoint): Update.
6174 * breakpoint.c (add_solib_catchpoint): Update.
6175 (install_breakpoint): Change argument to a std::unique_ptr.
6176 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
6177 (create_breakpoint_sal, create_breakpoint): Update.
6178 (watch_command_1, catch_exec_command_1)
6179 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
6180 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
6181 Return the breakpoint.
6182 (set_raw_breakpoint_without_location, set_raw_breakpoint)
6183 (new_single_step_breakpoint): Update.
6184 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
6185 std::unique_ptr.
6186 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
6187 std::unique_ptr.
6188 * break-catch-sig.c (create_signal_catchpoint): Use
6189 std::unique_ptr.
6190 * ada-lang.c (create_ada_exception_catchpoint): Use
6191 std::unique_ptr.
6192
6193 2017-08-22 Tom Tromey <tom@tromey.com>
6194
6195 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
6196
6197 2017-08-22 Tom Tromey <tom@tromey.com>
6198
6199 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
6200 (lookup_partial_symbol): Update.
6201
6202 2017-08-22 Tom Tromey <tom@tromey.com>
6203
6204 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
6205 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
6206 (find_and_open_source, symtab_to_fullname): Update.
6207 * psymtab.c (psymtab_to_fullname): Update.
6208
6209 2017-08-22 Tom Tromey <tom@tromey.com>
6210
6211 * exec.c (exec_file_attach): Update.
6212 * linux-thread-db.c (try_thread_db_load): Update.
6213 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
6214 * utils.c (gdb_realpath): Change return type.
6215 (gdb_realpath_keepfile): Update.
6216 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
6217 (_initialize_utils): Register the new self test.
6218 * source.c (openp): Update.
6219 (find_and_open_source): Update.
6220 * nto-tdep.c (nto_find_and_open_solib): Update.
6221 * main.c (set_gdb_data_directory): Update.
6222 (captured_main_1): Update.
6223 * dwarf2read.c (dwarf2_get_dwz_file): Update
6224 (dw2_map_symbol_filenames): Update.
6225 * auto-load.c (auto_load_safe_path_vec_update): Update.
6226 (filename_is_in_auto_load_safe_path_vec): Change type of
6227 "filename_realp".
6228 (auto_load_objfile_script): Update.
6229 (file_is_auto_load_safe): Update. Use std::string.
6230 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
6231
6232 2017-08-22 Tom Tromey <tom@tromey.com>
6233
6234 * utils.c (gdb_realpath_keepfile): Return a
6235 gdb::unique_xmalloc_ptr.
6236 * exec.c (exec_file_attach): Update.
6237 * utils.h (gdb_realpath_keepfile): Return a
6238 gdb::unique_xmalloc_ptr.
6239
6240 2017-08-22 Tom Tromey <tom@tromey.com>
6241
6242 * compile/compile.c (compile_file_command): Use
6243 gdb::unique_xmalloc_ptr, std::string.
6244 * utils.c (gdb_abspath): Change return type.
6245 * source.c (openp): Update.
6246 * objfiles.c (allocate_objfile): Update.
6247 * main.c (set_gdb_data_directory): Update.
6248 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
6249
6250 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
6251
6252 * cli-cmds.c (list_commands): List actual code around more than
6253 one location.
6254
6255 2017-08-21 John Baldwin <jhb@FreeBSD.org>
6256
6257 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
6258
6259 2017-08-21 Pedro Alves <palves@redhat.com>
6260
6261 PR gdb/19487
6262 * c-exp.y (variable production): Handle function aliases.
6263 * minsyms.c (msymbol_is_text): New function.
6264 * minsyms.h (msymbol_is_text): Declare.
6265 * symtab.c (find_function_alias_target): New function.
6266 * symtab.h (find_function_alias_target): Declare.
6267
6268 2017-08-21 Pedro Alves <palves@redhat.com>
6269
6270 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
6271 typedefs.
6272 * typeprint.c (whatis_exp): If handling "whatis", and expression
6273 is OP_TYPE, strip one typedef level. Otherwise don't strip
6274 typedefs here.
6275 * valops.c (value_cast): Save "to" type before resolving
6276 stubs/typedefs. Use that type as resulting value's type.
6277
6278 2017-08-18 Tom Tromey <tom@tromey.com>
6279 Pedro Alves <palves@redhat.com>
6280
6281 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
6282 * sol-thread.c (sol_thread_resume, sol_thread_wait)
6283 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
6284 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
6285 * proc-service.c (ps_xfer_memory): Use scoped_restore.
6286 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
6287 (linux_get_siginfo_data): Add "thread" argument. Use
6288 scoped_restore.
6289 * linux-nat.c (linux_child_follow_fork)
6290 (check_stopped_by_watchpoint): Use scoped_restore.
6291 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
6292 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
6293 (restore_inferior_ptid, save_inferior_ptid): Remove.
6294 * btrace.c (btrace_fetch): Use scoped_restore.
6295 * bsd-uthread.c (bsd_uthread_fetch_registers)
6296 (bsd_uthread_store_registers): Use scoped_restore.
6297 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
6298 scoped_restore.
6299 * aix-thread.c (aix_thread_resume, aix_thread_wait)
6300 (aix_thread_xfer_partial): Use scoped_restore.
6301 * inferior.h (save_inferior_ptid): Remove.
6302
6303 2017-08-18 Yao Qi <yao.qi@linaro.org>
6304
6305 PR tdep/21818
6306 * arm-tdep.c (gdb_print_insn_arm): Mark
6307 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
6308
6309 2017-08-18 Yao Qi <yao.qi@linaro.org>
6310
6311 * NEWS: Mention GDBserver's new option "--selftest".
6312 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
6313 * selftest.c: Move it to common/selftest.c.
6314 * selftest.h: Move it to common/selftest.h.
6315 * selftest-arch.c (reset): New function.
6316 (tests_with_arch): Call reset.
6317
6318 2017-08-18 Yao Qi <yao.qi@linaro.org>
6319
6320 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
6321 instead of exception_fprintf and printf_filtered.
6322
6323 2017-08-18 Yao Qi <yao.qi@linaro.org>
6324
6325 * selftest.c (register_self_test): Rename it to
6326 selftests::register_test.
6327 (run_self_tests): selftest::run_tests.
6328 * selftest.h: Update declarations.
6329 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
6330 selftests::register_test_foreach_arch.
6331 * selftest-arch.h: Update declaration.
6332 * aarch64-tdep.c: Update.
6333 * arm-tdep.c: Likewise.
6334 * disasm-selftests.c: Likewise.
6335 * dwarf2loc.c: Likewise.
6336 * dwarf2-frame.c: Likewise.
6337 * findvar.c: Likewise.
6338 * gdbarch-selftests.c: Likewise.
6339 * maint.c (maintenance_selftest): Likewise.
6340 * regcache.c: Likewise.
6341 * rust-exp.y: Likewise.
6342 * selftest-arch.c: Likewise.
6343 * unittests/environ-selftests.c: Likewise.
6344 * unittests/function-view-selftests.c: Likewise.
6345 * unittests/offset-type-selftests.c: Likewise.
6346 * unittests/optional-selftests.c: Likewise.
6347 * unittests/scoped_restore-selftests.c: Likewise.
6348 * utils-selftests.c: Likewise.
6349
6350 2017-08-17 Pedro Alves <palves@redhat.com>
6351
6352 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
6353 local.
6354
6355 2017-08-17 Pedro Alves <palves@redhat.com>
6356
6357 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
6358 field.
6359 (reset_die_in_process): Delete, replaced by ...
6360 (process_die_scope): ... this new class. Make it responsible for
6361 freeing cu->line_header too.
6362 (process_die): Use process_die_scope.
6363 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
6364 cu->line_header_die_owner. Don't release the line header if it's
6365 owned by the CU.
6366 (setup_type_unit_groups): Make the CU/DIE own the line header.
6367 Don't release the line header here.
6368
6369 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
6370
6371 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
6372
6373 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
6374
6375 * NEWS: Mention new shortcuts for nexti and stepi in TUI
6376 Single-Key mode
6377
6378 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
6379
6380 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
6381 mode command list.
6382
6383 2017-08-15 Stafford Horne <shorne@gmail.com>
6384
6385 * MAINTAINERS (Write After Approval): Add Stafford Horne.
6386
6387 2017-08-15 Stafford Horne <shorne@gmail.com>
6388
6389 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
6390
6391 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
6392
6393 PR gdb/21954
6394 * infcmd.c (unset_environment_command): Use the 'clear' method on
6395 the environment instead of resetting it.
6396
6397 2017-08-15 John Baldwin <jhb@FreeBSD.org>
6398
6399 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
6400 platforms.
6401
6402 2017-08-14 Tom Tromey <tom@tromey.com>
6403
6404 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
6405 (print_binary_chars): Likewise.
6406 (BITS_IN_BYTES): Remove.
6407
6408 2017-08-14 Tom Tromey <tom@tromey.com>
6409
6410 PR gdb/21675
6411 * valprint.c (LOW_ZERO): Change value to 034.
6412 (print_octal_chars): Add static_asserts for octal constants.
6413 * printcmd.c (print_scalar_formatted): Add 'd' case.
6414
6415 2017-08-11 Tom Tromey <tom@tromey.com>
6416
6417 * symfile.c (add_symbol_file_command): Use std::vector.
6418
6419 2017-08-14 Tom Tromey <tom@tromey.com>
6420
6421 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
6422 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
6423 std::move.
6424 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
6425
6426 2017-08-11 Pedro Alves <palves@redhat.com>
6427
6428 * infrun.c (process_event_stop_test): Adjust
6429 function_name_is_marked_for_skip call.
6430 * skip.c: Include <list>.
6431 (skiplist_entry): Make it a class with private fields, and
6432 getters/setters.
6433 (skiplist_entry_chain): Delete.
6434 (skiplist_entries): New.
6435 (skiplist_entry_count): Delete.
6436 (highest_skiplist_entry_num): New.
6437 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
6438 (add_skiplist_entry): Delete.
6439 (skiplist_entry::skiplist_entry): New.
6440 (skiplist_entry::add_entry): New.
6441 (skip_file_command, skip_function): Adjust.
6442 (compile_skip_regexp): Delete.
6443 (skip_command): Don't compile regexp here. Adjust to use
6444 skiplist_entry::add_entry.
6445 (skip_info): Adjust to use range-for and getters.
6446 (skip_enable_command, skip_disable_command): Adjust to use
6447 range-for and setters.
6448 (skip_delete_command): Adjust to use std::list.
6449 (add_skiplist_entry): Delete.
6450 (skip_file_p): Delete, refactored as ...
6451 (skiplist_entry::do_skip_file_p): ... this new method.
6452 (skip_gfile_p): Delete, refactored as ...
6453 (skiplist_entry::do_gskip_file_p): ... this new method.
6454 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
6455 (skiplist_entry::skip_function_p): ... this new method.
6456 (function_name_is_marked_for_skip): Now returns bool, and takes
6457 the function sal by const reference. Adjust to use range-for and
6458 skiplist_entry methods.
6459 (_initialize_step_skip): Remove references to
6460 skiplist_entry_chain, skiplist_entry_count.
6461 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
6462 takes the function sal by const reference.
6463
6464 2017-08-11 Yao Qi <yao.qi@linaro.org>
6465
6466 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
6467 (dwarf2_frame_cache): Remove reset_cache_cleanup.
6468 (dwarf2_frame_cache):
6469 * frame-unwind.c (frame_unwind_try_unwinder): Catch
6470 RETURN_MASK_ALL and set *this_case to NULL.
6471 * frame-unwind.h: Update comments.
6472
6473 2017-08-11 Yao Qi <yao.qi@linaro.org>
6474
6475 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
6476 (dwarf2_frame_state_copy_regs): Remove.
6477 (dwarf2_frame_state_free_regs): Remove.
6478 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
6479 (dwarf2_restore_rule): Call method .alloc_regs instead of
6480 dwarf2_frame_state_alloc_regs.
6481 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
6482 constructor. Call std::move.
6483 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
6484 (dwarf2_frame_cache): Likewise.
6485
6486 [GDB_SELF_TEST]: Include selftest.h and
6487 selftest-arch.h.
6488 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
6489 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
6490 execute_cfa_program_test.
6491
6492 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
6493 copy ctor, assignment operator, move assignment.
6494 <alloc_regs>: New method.
6495 <swap>: New method.
6496 (struct dwarf2_frame_state): Delete dtor.
6497 (dwarf2_frame_state_alloc_regs): Remove declaration.
6498 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
6499 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
6500
6501 2017-08-11 Yao Qi <yao.qi@linaro.org>
6502
6503 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
6504 (dwarf2_frame_state::dwarf2_frame_state): New.
6505 (dwarf2_frame_state::~dwarf2_frame_state): New.
6506 (dwarf2_fetch_cfa_info): Update.
6507 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
6508 rather than a pointer. Update code.
6509 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
6510 dtor.
6511 <data_align, code_align, retaddr_column>: Change them to const.
6512 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
6513 to bool.
6514
6515 2017-08-11 Yao Qi <yao.qi@linaro.org>
6516
6517 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
6518 <loc.exp>: New field.
6519 * dwarf2-frame.c (execute_cfa_program): Update.
6520 (dwarf2_frame_prev_register): Update.
6521
6522 2017-08-10 Pedro Alves <palves@redhat.com>
6523
6524 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
6525
6526 2017-08-09 John Baldwin <jhb@FreeBSD.org>
6527
6528 * fbsd-nat.c (struct fbsd_fork_info): Remove.
6529 (fbsd_pending_children): Use std::list.
6530 (fbsd_remember_child): Likewise.
6531 (fbsd_is_child_pending): Likewise.
6532 (fbsd_pending_vfork_done): Use std::forward_list.
6533 (fbsd_add_vfork_done): Likewise.
6534 (fbsd_is_vfork_done_pending): Likewise.
6535 (fbsd_next_vfork_done): Likewise.
6536
6537 2017-08-09 John Baldwin <jhb@FreeBSD.org>
6538
6539 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
6540 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
6541 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
6542 for `mapfilename'.
6543 (fbsd_xfer_partial): Use gdb::byte_vector.
6544 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
6545
6546 2017-08-09 John Baldwin <jhb@FreeBSD.org>
6547
6548 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
6549 "filestuff.h".
6550 (fbsd_find_memory_regions): Fix `mapfile' initialization.
6551
6552 2017-08-09 Tom Tromey <tom@tromey.com>
6553
6554 * skip.c (skiplist_entry): New constructor.
6555 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
6556 (skiplist_entry::file_is_glob): Now bool.
6557 (skiplist_entry::file, skiplist_entry::function): Now
6558 std::string.
6559 (make_skip_entry): Return a unique_ptr. Use new.
6560 (free_skiplist_entry, free_skiplist_entry_cleanup)
6561 (make_free_skiplist_entry_cleanup): Remove.
6562 (skip_command, skip_disable_command, add_skiplist_entry)
6563 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
6564 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
6565 (function_name_is_marked_for_skip): Update.
6566 (skip_delete_command): Update. Use delete.
6567
6568 2017-08-09 Jiong Wang <jiong.wang@arm.com>
6569
6570 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
6571 (aarch64_linux_core_read_description): New function.
6572 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
6573
6574 2017-08-09 Pedro Alves <palves@redhat.com>
6575
6576 * cp-name-parser.y (cp_comp_to_string): Return a
6577 gdb::unique_xmalloc_ptr<char>.
6578 * cp-support.c (replace_typedefs_qualified_name)
6579 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
6580 (cp_canonicalize_string_full): Use op= instead of explicit
6581 convertion.
6582 (cp_class_name_from_physname, method_name_from_physname)
6583 (cp_func_name, cp_remove_params): Adjust to use
6584 gdb::unique_xmalloc_ptr<char>.
6585 * cp-support.h (cp_comp_to_string): Return a
6586 gdb::unique_xmalloc_ptr<char>.
6587 * python/py-type.c (typy_lookup_type): Adjust to use
6588 gdb::unique_xmalloc_ptr<char>.
6589
6590 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
6591
6592 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
6593
6594 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
6595 Yao Qi <yao.qi@linaro.org>
6596
6597 * cp-support.c (cp_canonicalize_string_full): Use
6598 gdb::unique_xmalloc_ptr<char>.
6599 (cp_canonicalize_string): Likewise.
6600
6601 2017-08-09 Yao Qi <yao.qi@linaro.org>
6602
6603 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
6604 * regformats/i386/amd64-avx-avx512.dat: Remove.
6605 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
6606 * regformats/i386/amd64-avx-mpx.dat:Remove.
6607 * regformats/i386/amd64-avx.dat: Remove.
6608 * regformats/i386/amd64-mpx.dat: Remove.
6609 * regformats/i386/i386-avx-avx512.dat: Remove.
6610 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
6611 * regformats/i386/i386-avx-mpx.dat: Remove.
6612 * regformats/i386/i386-mmx.dat: Remove.
6613 * regformats/i386/i386-mpx.dat: Remove.
6614
6615 2017-08-09 Yao Qi <yao.qi@linaro.org>
6616
6617 * amd64-tdep.h (tdesc_x32): Remove the declaration.
6618 * amd64-tdep.c: Don't include features/i386/x32*.c.
6619 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
6620 functions.
6621 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
6622 and i386/x32-avx-avx512.
6623 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
6624 and i386/x32.xml.
6625 * features/i386/x32-avx-avx512.c: Removed.
6626 * features/i386/x32-avx-avx512.xml: Removed.
6627 * features/i386/x32-avx.c: Removed.
6628 * features/i386/x32-avx.xml: Removed.
6629 * features/i386/x32.c: Removed.
6630 * features/i386/x32.xml: Removed.
6631 * regformats/i386/x32-avx-avx512.dat: Removed.
6632 * regformats/i386/x32-avx.dat: Removed.
6633 * regformats/i386/x32.dat: Removed.
6634
6635 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6636
6637 PR breakpoints/21886
6638 * mem-break.c (default_memory_insert_breakpoint): Use
6639 `->placed_address' rather than `->reqstd_address' for the
6640 breakpoint location.
6641
6642 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6643
6644 * arch-utils.c (default_print_insn): Remove arch/mach/endian
6645 assertions.
6646
6647 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6648
6649 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
6650 a union of `tdep_info', `tdesc_data' and `id'.
6651 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
6652 rather than `info.tdep_info'.
6653 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
6654 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6655 * i386-tdep.c (i386_gdbarch_init): Likewise.
6656 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
6657 * mips-tdep.c (mips_gdbarch_init): Likewise.
6658 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6659 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6660 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
6661 `info.tdep_info'.
6662 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
6663 `info.tdep_info'.
6664 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6665 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
6666 `info.tdep_info'.
6667 * spu-tdep.c (spu_gdbarch_init): Likewise.
6668 * gdbarch.h: Regenerate.
6669
6670 2017-08-07 Leszek Swirski <leszeks@google.com>
6671
6672 PR symtab/20899
6673 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
6674
6675 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
6676
6677 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
6678 (gdbsim_open): Rename gdb_argv args object to argv.
6679
6680 2017-08-05 Tom Tromey <tom@tromey.com>
6681
6682 * compile/compile-object-load.c (compile_object_load): Use
6683 gdb::unique_xmalloc_ptr.
6684 * cli/cli-dump.c (scan_filename): Rename from
6685 scan_filename_with_cleanup. Change return type.
6686 (scan_expression): Rename from scan_expression_with_cleanup.
6687 Change return type.
6688 (dump_memory_to_file, dump_value_to_file, restore_command):
6689 Use gdb::unique_xmalloc_ptr. Update.
6690 * cli/cli-cmds.c (find_and_open_script): Use
6691 gdb::unique_xmalloc_ptr.
6692 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
6693 * symmisc.c (maintenance_print_symbols)
6694 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
6695 * symfile.c (symfile_bfd_open, generic_load)
6696 (add_symbol_file_command, remove_symbol_file_command): Use
6697 gdb::unique_xmalloc_ptr.
6698 * source.c (openp): Use gdb::unique_xmalloc_ptr.
6699 * psymtab.c (maintenance_print_psymbols): Use
6700 gdb::unique_xmalloc_ptr.
6701 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
6702 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
6703 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
6704 (reload_shared_libraries_1): Likewise.
6705
6706 2017-08-05 Tom Tromey <tom@tromey.com>
6707
6708 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
6709 (rust_op_vector, rust_set_vector): New typedefs.
6710 (current_parser): New global.
6711 (work_obstack): Change to pointer type. Update all users.
6712 (rust_ast, pstate): Remove globals.
6713 (struct rust_parser): New.
6714 (%union) <params, field_inits>: Change type.
6715 (start, tuple_expr, unit_expr, struct_expr_list, literal)
6716 (field_expr, expr_list, maybe_expr_list, type_list): Update.
6717 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
6718 (convert_params_to_types, convert_params_to_expression): Change
6719 type of "params".
6720 (ast_string): Change type of "fields".
6721 (rust_parse): Make a rust_parser. Remove cleanups.
6722 (rust_lex_tests): Make and install an auto_obstack.
6723
6724 2017-08-04 Yao Qi <yao.qi@linaro.org>
6725
6726 * configure.srv (ipa_x32_linux_regobj): New.
6727 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
6728 instead of X86_TDESC_AVX512.
6729 (initialize_low_tracepoint): Call
6730 init_registers_x32_avx_avx512_linux.
6731
6732 2017-08-04 Yao Qi <yao.qi@linaro.org>
6733
6734 * utils.h (gdb_argv): Add namespace std for nullptr_t.
6735
6736 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
6737
6738 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
6739
6740 2017-08-03 Tom Tromey <tom@tromey.com>
6741
6742 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
6743 Remove.
6744 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
6745
6746 2017-08-03 Tom Tromey <tom@tromey.com>
6747
6748 * python/py-param.c (compute_enum_values): Use gdb_argv.
6749
6750 2017-08-03 Tom Tromey <tom@tromey.com>
6751
6752 * utils.h (struct gdb_argv_deleter): New.
6753 (gdb_argv): New class.
6754 * utils.c (gdb_argv::reset): New method.
6755 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
6756 * tracefile.c (tsave_command): Use gdb_argv.
6757 * top.c (new_ui_command): Use gdb_argv.
6758 * symmisc.c (maintenance_print_symbols)
6759 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
6760 * symfile.c (symbol_file_command, generic_load)
6761 (remove_symbol_file_command): Use gdb_argv.
6762 * stack.c (backtrace_command): Use gdb_argv.
6763 * source.c (add_path, show_substitute_path_command)
6764 (unset_substitute_path_command, set_substitute_path_command):
6765 Use gdb_argv.
6766 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
6767 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
6768 * remote.c (extended_remote_run, remote_put_command)
6769 (remote_get_command, remote_delete_command): Use gdb_argv.
6770 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
6771 (gdbsim_open): Use gdb_argv.
6772 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
6773 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
6774 * procfs.c (procfs_info_proc): Use gdb_argv.
6775 * interps.c (interpreter_exec_cmd): Use gdb_argv.
6776 * infrun.c (handle_command): Use gdb_argv.
6777 * inferior.c (add_inferior_command, clone_inferior_command):
6778 Use gdb_argv.
6779 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
6780 * exec.c (exec_file_command): Use gdb_argv.
6781 * cli/cli-cmds.c (alias_command): Use gdb_argv.
6782 * compile/compile.c (build_argc_argv): Use gdb_argv.
6783
6784 2017-08-03 Tom Tromey <tom@tromey.com>
6785
6786 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
6787
6788 2017-08-03 Tom Tromey <tom@tromey.com>
6789
6790 * python/python.c (compute_python_string): Return std::string.
6791 (gdbpy_eval_from_control_command): Update.
6792 (do_start_initialization): Use std::string.
6793 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
6794 xstrprintf.
6795 * python/py-breakpoint.c (local_setattro): Use string_printf, not
6796 xstrprintf.
6797
6798 2017-08-03 Tom Tromey <tom@tromey.com>
6799
6800 * top.h (do_restore_instream_cleanup): Remove.
6801 * top.c (do_restore_instream_cleanup): Remove.
6802 (read_command_file): Use scoped_restore.
6803 * cli/cli-script.c (execute_user_command): Use scoped_restore.
6804
6805 2017-08-03 Tom Tromey <tom@tromey.com>
6806
6807 * cli/cli-script.c (execute_user_command)
6808 (execute_control_command): Use scoped_restore.
6809
6810 2017-08-03 Tom Tromey <tom@tromey.com>
6811
6812 * cli/cli-script.c (do_restore_user_call_depth): Remove.
6813 (execute_user_command): Remove user_call_depth; use
6814 user_args_stack's size instead.
6815
6816 2017-08-03 Tom Tromey <tom@tromey.com>
6817
6818 * top.h (in_user_command): Remove.
6819 * top.c (in_user_command): Remove.
6820 * cli/cli-script.c (do_restore_user_call_depth)
6821 (execute_user_command): Update.
6822
6823 2017-08-03 Tom Tromey <tom@tromey.com>
6824
6825 * valops.c (search_struct_method): Use gdb::byte_vector.
6826 * valarith.c (value_concat): Use std::vector.
6827 * target.c (memory_xfer_partial): Use gdb::byte_vector.
6828 (simple_search_memory): Likewise.
6829 * printcmd.c (find_string_backward): Use gdb::byte_vector.
6830 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
6831 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
6832 * elfread.c (elf_rel_plt_read): Use std::string.
6833 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
6834 * cli/cli-dump.c (restore_section_callback): Use
6835 gdb::byte_vector.
6836
6837 2017-08-03 Tom Tromey <tom@tromey.com>
6838
6839 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
6840
6841 2017-08-03 Tom Tromey <tom@tromey.com>
6842
6843 * tui/tui-regs.c (tui_restore_gdbout): Remove.
6844 (tui_register_format): Use scoped_restore.
6845
6846 2017-08-03 Tom Tromey <tom@tromey.com>
6847
6848 * reverse.c (exec_direction_default): Remove.
6849 (exec_reverse_once): Use scoped_restore.
6850 * remote.c (restore_remote_timeout): Remove.
6851 (remote_flash_erase, remote_flash_write, remote_flash_done)
6852 (readchar, remote_serial_write): Use scoped_restore.
6853 * cli/cli-script.c (struct source_cleanup_lines_args)
6854 (source_cleanup_lines): Remove.
6855 (script_from_file): Use scoped_restore.
6856 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
6857 (source_command): Use scoped_restore.
6858
6859 2017-08-03 Tom Tromey <tom@tromey.com>
6860
6861 * utils.h (make_cleanup_free_so): Remove.
6862 * utils.c (do_free_so, make_cleanup_free_so): Remove.
6863 * solist.h (struct so_deleter): New.
6864 (so_list_up): New typedef.
6865 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
6866
6867 2017-08-03 Tom Tromey <tom@tromey.com>
6868
6869 * utils.h (make_cleanup_restore_current_language): Remove.
6870 * utils.c (do_restore_current_language)
6871 (make_cleanup_restore_current_language): Remove.
6872 * parse.c (parse_exp_in_context_1)
6873 (parse_expression_with_language): Use
6874 scoped_restore_current_language.
6875 * mi/mi-main.c (mi_cmd_execute): Use
6876 scoped_restore_current_language.
6877 * language.h (scoped_restore_current_language): New class.
6878
6879 2017-08-03 Tom Tromey <tom@tromey.com>
6880
6881 * compile/compile.c (cleanup_unlink_file): Remove.
6882 (compile_to_object): Use gdb::unlinker.
6883 (eval_compile_command): Likewise.
6884
6885 2017-08-03 Tom Tromey <tom@tromey.com>
6886
6887 * utils.h (make_cleanup_fclose): Remove.
6888 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6889
6890 2017-08-03 Tom Tromey <tom@tromey.com>
6891
6892 * top.c (open_terminal_stream): Return gdb_file_up.
6893 (new_ui_command): Update.
6894
6895 2017-08-03 Tom Tromey <tom@tromey.com>
6896
6897 * source.c (print_source_lines_base, forward_search_command)
6898 (reverse_search_command): Use gdb_file_up.
6899
6900 2017-08-03 Tom Tromey <tom@tromey.com>
6901
6902 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6903
6904 2017-08-03 Tom Tromey <tom@tromey.com>
6905
6906 * cli/cli-cmds.c (find_and_open_script): Change return type.
6907 Remove "streamp" and "full_path" parameters.
6908 (source_script_with_search): Update.
6909 * auto-load.c (source_script_file): Update.
6910 * cli/cli-cmds.h (find_and_open_script): Change type.
6911 (open_script): New struct.
6912
6913 2017-08-03 Tom Tromey <tom@tromey.com>
6914
6915 * xml-support.c (xml_fetch_content_from_file): Update.
6916 * ui-file.c (stdio_file::open): Update.
6917 * tracefile-tfile.c (tfile_start): Update.
6918 * remote.c (remote_file_put, remote_file_get): Update.
6919 * nat/linux-procfs.c (linux_proc_get_int)
6920 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6921 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6922 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6923 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6924 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6925 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6926 * linux-nat.c (linux_proc_pending_signals): Update.
6927 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6928 (file_closer): Remove.
6929 * compile/compile.c (compile_to_object): Update.
6930 * common/filestuff.h (struct gdb_file_deleter): New.
6931 (gdb_file_up): New typedef.
6932 (gdb_fopen_cloexec): Change return type.
6933 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6934 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6935 (dump_binary_file, restore_binary_file): Update.
6936 * auto-load.c (auto_load_objfile_script_1): Update.
6937
6938 2017-08-03 Tom Tromey <tom@tromey.com>
6939
6940 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6941 (info_static_tracepoint_markers_command): Likewise.
6942 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6943 * skip.c (skip_info): Use ui_out_emit_table.
6944 * progspace.c (print_program_space): Use ui_out_emit_table.
6945 * osdata.c (info_osdata): Use ui_out_emit_table.
6946 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6947 ui_out_emit_table.
6948 * linux-thread-db.c (info_auto_load_libthread_db): Use
6949 ui_out_emit_table.
6950 * inferior.c (print_inferior): Use ui_out_emit_table.
6951 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6952 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6953 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6954 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6955 * ui-out.h (class ui_out_emit_table): New.
6956
6957 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6958
6959 * mips-tdep.c (mips_fpu_type_str): New function.
6960 (mips_dump_tdep): Call it.
6961
6962 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6963
6964 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6965 `->mips_fpu_type'.
6966
6967 2017-07-31 Xavier Roirand <roirand@adacore.com>
6968
6969 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6970
6971 2017-07-27 Xavier Roirand <roirand@adacore.com>
6972
6973 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6974
6975 2017-07-26 Yao Qi <yao.qi@linaro.org>
6976
6977 * cli/cli-cmds.c (maintenancechecklist): New variable.
6978 * gdbcmd.h (maintenancechecklist): Declare it.
6979 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6980 Call i386_linux_read_description with different masks.
6981 * maint.c (maintenance_check_command): New function.
6982 (_initialize_maint_cmds): Call add_prefix_cmd.
6983 * target-descriptions.c (tdesc_reg): override operator != and ==.
6984 (tdesc_type): Likewise.
6985 (tdesc_feature): Likewise.
6986 (target_desc): Likewise.
6987 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6988 (maintenance_check_xml_descriptions): New function.
6989 (_initialize_target_descriptions) Add command "xml-descriptions".
6990 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6991
6992 2017-07-26 Yao Qi <yao.qi@linaro.org>
6993
6994 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6995 Include features/i386/32bit-*.c.
6996 (i386_linux_read_description): Generate target description if it
6997 doesn't exist.
6998 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6999 functions.
7000 * features/i386/32bit-linux.c: Re-generated.
7001 * features/i386/32bit-sse.c: Likewise.
7002 * target-descriptions.c (print_c_feature::visit): Print code to
7003 set register number if needed.
7004 (print_c_feature) <m_next_regnum>: New field.
7005
7006 2017-07-26 Yao Qi <yao.qi@linaro.org>
7007
7008 * features/Makefile (CFILES): Rename with TDESC_CFILES.
7009 (FEATURE_XMLFILES): New.
7010 (FEATURE_CFILES): New.
7011 New rules.
7012 (clean-cfiles): Remove generated c files.
7013 * features/i386/32bit-avx.c: Generated.
7014 * features/i386/32bit-avx512.c: Generated.
7015 * features/i386/32bit-core.c: Generated.
7016 * features/i386/32bit-linux.c: Generated.
7017 * features/i386/32bit-mpx.c: Generated.
7018 * features/i386/32bit-pkeys.c: Generated.
7019 * features/i386/32bit-sse.c: Generated.
7020 * target-descriptions.c: Include algorithm.
7021 (tdesc_element_visitor): Add method visit_end.
7022 (print_c_tdesc): Implement visit_end.
7023 (print_c_tdesc:: m_filename_after_features): Move it to
7024 protected.
7025 (print_c_feature): New class.
7026 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
7027 name starts with "i386/32bit-".
7028
7029 2017-07-26 Yao Qi <yao.qi@linaro.org>
7030
7031 * target-descriptions.c (tdesc_element_visitor): New class.
7032 (tdesc_element): New class.
7033 (tdesc_reg): Inherit from tdesc_element.
7034 (tdesc_reg::accept): New function.
7035 (tdesc_type): Inherit from tdesc_element.
7036 (tdesc_type::accept): New function.
7037 (tdesc_feature): Inherit from tdesc_element.
7038 (tdesc_feature::accept): New function.
7039 (target_desc): Inherit from tdesc_element.
7040 (target_desc::target_desc): New.
7041 (target_desc::~target_desc): New.
7042 (target_desc::accept): New.
7043 (allocate_target_description): Use new.
7044 (free_target_description): Use delete.
7045 (print_c_tdesc): New class.
7046 (maint_print_c_tdesc_cmd): Adjust.
7047
7048 * features/aarch64.c: Re-generated.
7049 * features/arc-arcompact.c: Re-generated.
7050 * features/arc-v2.c: Re-generated.
7051 * features/arm/arm-with-iwmmxt.c: Re-generated.
7052 * features/arm/arm-with-m.c: Re-generated.
7053 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
7054 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
7055 * features/arm/arm-with-neon.c: Re-generated.
7056 * features/arm/arm-with-vfpv2.c: Re-generated.
7057 * features/arm/arm-with-vfpv3.c: Re-generated.
7058 * features/i386/amd64-avx-avx512.c: Re-generated.
7059 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7060 * features/i386/amd64-avx.c: Re-generated.
7061 * features/i386/amd64-avx-linux.c: Re-generated.
7062 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
7063 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7064 * features/i386/amd64-avx-mpx.c: Re-generated.
7065 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
7066 * features/i386/amd64.c: Re-generated.
7067 * features/i386/amd64-linux.c: Re-generated.
7068 * features/i386/amd64-mpx.c: Re-generated.
7069 * features/i386/amd64-mpx-linux.c: Re-generated.
7070 * features/i386/i386-avx-avx512.c: Re-generated.
7071 * features/i386/i386-avx-avx512-linux.c: Re-generated.
7072 * features/i386/i386-avx.c: Re-generated.
7073 * features/i386/i386-avx-linux.c: Re-generated.
7074 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
7075 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
7076 * features/i386/i386-avx-mpx.c: Re-generated.
7077 * features/i386/i386-avx-mpx-linux.c: Re-generated.
7078 * features/i386/i386.c: Re-generated.
7079 * features/i386/i386-linux.c: Re-generated.
7080 * features/i386/i386-mmx.c: Re-generated.
7081 * features/i386/i386-mmx-linux.c: Re-generated.
7082 * features/i386/i386-mpx.c: Re-generated.
7083 * features/i386/i386-mpx-linux.c: Re-generated.
7084 * features/i386/x32-avx-avx512.c: Re-generated.
7085 * features/i386/x32-avx-avx512-linux.c: Re-generated.
7086 * features/i386/x32-avx.c: Re-generated.
7087 * features/i386/x32-avx-linux.c: Re-generated.
7088 * features/i386/x32.c: Re-generated.
7089 * features/i386/x32-linux.c: Re-generated.
7090 * features/microblaze.c: Re-generated.
7091 * features/microblaze-with-stack-protect.c: Re-generated.
7092 * features/mips64-dsp-linux.c: Re-generated.
7093 * features/mips64-linux.c: Re-generated.
7094 * features/mips-dsp-linux.c: Re-generated.
7095 * features/mips-linux.c: Re-generated.
7096 * features/nds32.c: Re-generated.
7097 * features/nios2.c: Re-generated.
7098 * features/nios2-linux.c: Re-generated.
7099 * features/rs6000/powerpc-32.c: Re-generated.
7100 * features/rs6000/powerpc-32l.c: Re-generated.
7101 * features/rs6000/powerpc-403.c: Re-generated.
7102 * features/rs6000/powerpc-403gc.c : Re-generated.
7103 * features/rs6000/powerpc-405.c: Re-generated.
7104 * features/rs6000/powerpc-505.c: Re-generated.
7105 * features/rs6000/powerpc-601.c: Re-generated.
7106 * features/rs6000/powerpc-602.c: Re-generated.
7107 * features/rs6000/powerpc-603.c: Re-generated.
7108 * features/rs6000/powerpc-604.c: Re-generated.
7109 * features/rs6000/powerpc-64.c: Re-generated.
7110 * features/rs6000/powerpc-64l.c: Re-generated.
7111 * features/rs6000/powerpc-7400.c: Re-generated.
7112 * features/rs6000/powerpc-750.c: Re-generated.
7113 * features/rs6000/powerpc-860.c: Re-generated.
7114 * features/rs6000/powerpc-altivec32.c: Re-generated.
7115 * features/rs6000/powerpc-altivec32l.c: Re-generated.
7116 * features/rs6000/powerpc-altivec64.c: Re-generated.
7117 * features/rs6000/powerpc-altivec64l.c: Re-generated.
7118 * features/rs6000/powerpc-cell32l.c: Re-generated.
7119 * features/rs6000/powerpc-cell64l.c: Re-generated.
7120 * features/rs6000/powerpc-e500.c: Re-generated.
7121 * features/rs6000/powerpc-e500l.c: Re-generated.
7122 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
7123 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
7124 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
7125 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
7126 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
7127 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
7128 * features/rs6000/powerpc-vsx32.c: Re-generated.
7129 * features/rs6000/powerpc-vsx32l.c: Re-generated.
7130 * features/rs6000/powerpc-vsx64.c: Re-generated.
7131 * features/rs6000/powerpc-vsx64l.c: Re-generated.
7132 * features/rs6000/rs6000.c: Re-generated.
7133 * features/s390-linux32.c: Re-generated.
7134 * features/s390-linux32v1.c: Re-generated.
7135 * features/s390-linux32v2.c: Re-generated.
7136 * features/s390-linux64.c: Re-generated.
7137 * features/s390-linux64v1.c: Re-generated.
7138 * features/s390-linux64v2.c: Re-generated.
7139 * features/s390-te-linux64.c: Re-generated.
7140 * features/s390-tevx-linux64.c: Re-generated.
7141 * features/s390-vx-linux64.c: Re-generated.
7142 * features/s390x-linux64.c: Re-generated.
7143 * features/s390x-linux64v1.c: Re-generated.
7144 * features/s390x-linux64v2.c: Re-generated.
7145 * features/s390x-te-linux64.c: Re-generated.
7146 * features/s390x-tevx-linux64.c: Re-generated.
7147 * features/s390x-vx-linux64.c: Re-generated.
7148 * features/sparc/sparc32-solaris.c: Re-generated.
7149 * features/sparc/sparc64-solaris.c: Re-generated.
7150 * features/tic6x-c62x.c: Re-generated.
7151 * features/tic6x-c62x-linux.c: Re-generated.
7152 * features/tic6x-c64x.c: Re-generated.
7153 * features/tic6x-c64x-linux.c: Re-generated.
7154 * features/tic6x-c64xp.c: Re-generated.
7155 * features/tic6x-c64xp-linux.c: Re-generated.
7156
7157 2017-07-26 Yao Qi <yao.qi@linaro.org>
7158
7159 * i386-linux-tdep.c (i386_linux_read_description): New function.
7160 (i386_linux_core_read_description): Call
7161 i386_linux_read_description.
7162 * i386-linux-tdep.h (i386_linux_read_description): Declare.
7163 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
7164 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
7165 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
7166 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
7167 * x86-linux-nat.c (x86_linux_read_description): Call
7168 i386_linux_read_description.
7169
7170 2017-07-26 Yao Qi <yao.qi@linaro.org>
7171
7172 * NEWS: Mention it.
7173 * features/Makefile (%.c: %.xml): Pass the xml file name to
7174 command "maint print c-tdesc".
7175 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
7176 name from 'arg'.
7177
7178 2017-07-26 Yao Qi <yao.qi@linaro.org>
7179
7180 * target-descriptions.c (target_desc): Add ctor and dtor. Do
7181 in-class initialization.
7182 (tdesc_create_feature): Call new instead of XCNEW.
7183 (free_target_description): Ue delete.
7184
7185 2017-07-25 John Baldwin <jhb@FreeBSD.org>
7186
7187 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
7188
7189 2017-07-25 Yao Qi <yao.qi@linaro.org>
7190
7191 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
7192 constant.
7193 (amd64_x32_init_abi): Likewise.
7194 * amd64-tdep.h (amd64_init_abi): Update declaration.
7195 (amd64_x32_init_abi): Likewise.
7196
7197 2017-07-25 Yao Qi <yao.qi@linaro.org>
7198
7199 PR tdep/21717
7200 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
7201 condition for FPSCR.
7202 (arm_linux_store_inferior_registers): Likewise.
7203
7204 2017-07-22 Tom Tromey <tom@tromey.com>
7205
7206 * break-catch-syscall.c (struct catch_syscall_inferior_data)
7207 <syscalls_counts>: Now a std::vector.
7208 (get_catch_syscall_inferior_data): Use "new".
7209 (catch_syscall_inferior_data_cleanup): Use "delete".
7210 (insert_catch_syscall, remove_catch_syscall)
7211 (clear_syscall_counts): Update.
7212
7213 2017-07-22 Tom Tromey <tom@tromey.com>
7214
7215 * break-catch-syscall.c (syscall_catchpoint)
7216 <syscalls_to_be_caught>: Now a std::vector<int>
7217 (~syscall_catchpoint): Remove.
7218 (insert_catch_syscall, remove_catch_syscall)
7219 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
7220 (print_mention_catch_syscall, print_recreate_catch_syscall):
7221 Update.
7222 (create_syscall_event_catchpoint): Change type of "filter"
7223 parameter.
7224 (catch_syscall_split_args): Return a std::vector.
7225 (catch_syscall_command_1, catching_syscall_number_1): Update.
7226
7227 2017-07-22 Tom Tromey <tom@tromey.com>
7228
7229 * break-catch-throw.c (struct exception_catchpoint)
7230 <exception_rx>: Now a std::string.
7231 (~exception_catchpoint): Remove.
7232 (print_one_detail_exception_catchpoint): Update.
7233 (handle_gnu_v3_exceptions): Change type of except_rx.
7234 (extract_exception_regexp): Return a std::string.
7235 (catch_exception_command_1): Update.
7236
7237 2017-07-22 Tom Tromey <tom@tromey.com>
7238
7239 * break-catch-sig.c (gdb_signal_type): Remove typedef.
7240 (struct signal_catchpoint) <signals_to_be_caught>: Now a
7241 std::vector.
7242 <catch_all>: Now a bool.
7243 (~signal_catchpoint): Remove.
7244 (signal_catchpoint_insert_location)
7245 (signal_catchpoint_remove_location)
7246 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
7247 (signal_catchpoint_print_mention)
7248 (signal_catchpoint_print_recreate)
7249 (signal_catchpoint_explains_signal): Update.
7250 (create_signal_catchpoint): Change type of "filter" and
7251 "catch_all".
7252 (catch_signal_split_args): Return a std::vector. Change type of
7253 "catch_all".
7254 (catch_signal_command): Update.
7255
7256 2017-07-20 Pedro Alves <palves@redhat.com>
7257
7258 * ada-lang.c (ada_language_defn): Make extern.
7259 (_initialize_ada_language): Remove add_language call.
7260 * c-lang.c (c_language_defn, cplus_language_defn)
7261 (asm_language_defn, minimal_language_defn): Make extern.
7262 (_initialize_c_language): Delete.
7263 * completer.c (compare_cstrings): Delete, moved to utils.h.
7264 * d-lang.c (d_language_defn): Make extern.
7265 (_initialize_d_language): Remove add_language calls.
7266 * defs.h (enum language): Add comment.
7267 * f-lang.c (f_language_defn): Make extern.
7268 (_initialize_f_language): Remove add_language call.
7269 * go-lang.c (go_language_defn): Make extern.
7270 (_initialize_go_language): Remove add_language call.
7271 * language.c: Include <algorithm>.
7272 (languages): Redefine as const array.
7273 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
7274 (set_language_command): Handle "local". Use for-range loop.
7275 (set_language): Remove loop.
7276 (language_enum): Rewrite.
7277 (language_def, language_str): Remove loops.
7278 (add_language): Delete.
7279 (add_set_language_command): New, based on add_languages.
7280 (skip_language_trampoline): Adjust.
7281 (local_language_defn): Delete.
7282 (language_gdbarch_post_init): Adjust.
7283 (_initialize_language): Remove add_language calls. Call
7284 add_set_language_command.
7285 * language.h (add_language): Delete.
7286 (auto_language_defn)
7287 (unknown_language_defn, minimal_language_defn, ada_language_defn)
7288 (asm_language_defn, c_language_defn, cplus_language_defn)
7289 (d_language_defn, f_language_defn, go_language_defn)
7290 (m2_language_defn, objc_language_defn, opencl_language_defn)
7291 (pascal_language_defn, rust_language_defn): Declare.
7292 * m2-lang.c (m2_language_defn): Make extern.
7293 (_initialize_m2_language): Remove add_language call.
7294 * objc-lang.c (objc_language_defn): Make extern.
7295 (_initialize_objc_language): Remove add_language call.
7296 * opencl-lang.c (opencl_language_defn): Make extern.
7297 (_initialize_opencl_language): Remove add_language call.
7298 * p-lang.c (pascal_language_defn): Make extern.
7299 (_initialize_pascal_language): Delete.
7300 * rust-lang.c (rust_language_defn): Make extern.
7301 (_initialize_rust_language): Delete.
7302 * utils.h (compare_cstrings): New static inline function.
7303
7304 2017-07-20 Pedro Alves <palves@redhat.com>
7305
7306 * ada-lang.c (ada_to_fixed_type_1): Adjust.
7307 (get_var_value): Constify parameters.
7308 (get_int_var_value): Change prototype.
7309 (to_fixed_range_type): Adjust.
7310 * ada-lang.h (get_int_var_value): Change prototype.
7311
7312 2017-07-20 Pedro Alves <palves@redhat.com>
7313
7314 * dwarf2read.c (dw2_lookup_symbol): Use
7315 SYMBOL_MATCHES_SEARCH_NAME.
7316 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
7317
7318 2017-07-20 Pedro Alves <palves@redhat.com>
7319
7320 * block.c (block_iter_name_step, block_iter_name_first)
7321 (block_iter_name_next): Delete.
7322 (block_lookup_symbol_primary): Adjust to use
7323 dict_iter_match_first/dict_iter_match_next.
7324 * block.h (block_iter_name_first, block_iter_name_next): Delete
7325 declarations.
7326 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
7327 dict_iter_match_first/dict_iter_match_next.
7328
7329 2017-07-20 Pedro Alves <palves@redhat.com>
7330
7331 * cp-support.c (cp_find_first_component_aux): Add missing case for
7332 end of string.
7333
7334 2017-07-18 David Blaikie <dblaikie@gmail.com>
7335
7336 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
7337 of dwo_cu's dwo_file.
7338
7339 2017-07-18 Yao Qi <yao.qi@linaro.org>
7340
7341 * remote.c (store_registers_using_G): Remove one line comment.
7342
7343 2017-07-18 Yao Qi <yao.qi@linaro.org>
7344
7345 * regcache.c (regcache_cpy): Simplify it.
7346 (regcache::cpy_no_passthrough): Remove it.
7347 * regcache.h (cpy_no_passthrough): Remove it.
7348 (regcache_dup, regcache_cpy): Update comments.
7349
7350 2017-07-18 Pedro Alves <palves@redhat.com>
7351
7352 * remote-sim.c (sim_command_completer): Adjust to work with a
7353 completion_tracker instead of a VEC.
7354
7355 2017-07-17 Pedro Alves <palves@redhat.com>
7356
7357 * completer.c (complete_source_filenames): New function.
7358 (complete_address_and_linespec_locations): New function.
7359 (location_completer): Use complete_address_and_linespec_locations.
7360 (completion_tracker::build_completion_result): Honor the tracker's
7361 request to suppress append.
7362 * completer.h (completion_tracker::suppress_append_ws)
7363 (completion_tracker::set_suppress_append_ws): New methods.
7364 (completion_tracker::m_suppress_append_ws): New field.
7365 (complete_source_filenames): New declaration.
7366 * linespec.c (linespec_complete_what): New.
7367 (struct ls_parser) <complete_what, completion_word,
7368 completion_quote_char, completion_quote_end, completion_tracker>:
7369 New fields.
7370 (string_find_incomplete_keyword_at_end): New.
7371 (linespec_lexer_lex_string): Record quote char. If in completion
7372 mode, don't throw.
7373 (linespec_lexer_consume_token): Advance the completion word point.
7374 (linespec_lexer_peek_token): Save/restore completion info.
7375 (save_stream_and_consume_token): New.
7376 (set_completion_after_number): New.
7377 (linespec_parse_basic): Set what to complete next depending on
7378 token. Handle function and label completions specially.
7379 (parse_linespec): Disable objc shortcut in completion mode. Set
7380 what to complete next depending on token type. Skip keyword if in
7381 completion mode.
7382 (complete_linespec_component, linespec_complete): New.
7383 * linespec.h (linespec_complete): Declare.
7384
7385 2017-07-17 Pedro Alves <palves@redhat.com>
7386
7387 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
7388 Handle 'operator<' / 'operator<<'.
7389
7390 2017-07-17 Pedro Alves <palves@redhat.com>
7391
7392 * completer.c (collect_explicit_location_matches): Handle
7393 MATCH_LABEL.
7394 (convert_explicit_location_to_linespec): New, factored out from
7395 ...
7396 (convert_explicit_location_to_sals): ... this.
7397 (complete_label): New.
7398 (linespec_complete_label, find_label_symbols_in_block): New.
7399 (find_label_symbols): Add completion_mode parameter and adjust to
7400 call find_label_symbols_in_block.
7401 * linespec.h (linespec_complete_label): Declare.
7402
7403 2017-07-17 Pedro Alves <palves@redhat.com>
7404
7405 * ada-lang.c (ada_collect_symbol_completion_matches): Add
7406 complete_symbol_mode parameter.
7407 * cli/cli-cmds.c (complete_command): Get the completion result out
7408 of the handle_brkchars tracker if used a custom word point.
7409 * completer.c: Include "linespec.h".
7410 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
7411 (advance_to_expression_complete_word_point): New.
7412 (completion_tracker::completes_to_completion_word): New.
7413 (complete_files_symbols): Pass down
7414 complete_symbol_mode::EXPRESSION.
7415 (explicit_options, probe_options): New.
7416 (collect_explicit_location_matches): Complete on the
7417 explictit_loc->foo instead of word. Use
7418 linespec_complete_function. Handle MATCH_LINE. Handle offering
7419 keyword and options completions.
7420 (backup_text_ptr): Delete.
7421 (skip_keyword): New.
7422 (complete_explicit_location): Remove 'word' parameter. Add
7423 language, quoted_arg_start and quoted_arg_end parameters.
7424 Rewrite, parsing left to right.
7425 (location_completer): Rewrite.
7426 (location_completer_handle_brkchars): New function.
7427 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
7428 (enum complete_line_internal_reason): Adjust comments.
7429 (completion_tracker::discard_completions): New.
7430 (completer_handle_brkchars_func_for_completer): Handle
7431 location_completer.
7432 (gdb_custom_word_point_brkchars)
7433 (gdb_org_rl_basic_quote_characters): New.
7434 (gdb_completion_word_break_characters_throw)
7435 (completion_find_completion_word): Handle trackers that use a
7436 custom word point.
7437 (completion_tracker::advance_custom_word_point_by): New.
7438 (completion_tracker::build_completion_result): Don't rely on
7439 readline appending the quote char.
7440 (gdb_rl_attempted_completion_function_throw): Handle trackers that
7441 use a custom word point.
7442 (gdb_rl_attempted_completion_function): Restore
7443 rl_basic_quote_characters.
7444 * completer.h (class completion_tracker): Extend intro comment.
7445 (completion_tracker::set_quote_char)
7446 (completion_tracker::quote_char)
7447 (completion_tracker::set_use_custom_word_point)
7448 (completion_tracker::use_custom_word_point)
7449 (completion_tracker::custom_word_point)
7450 (completion_tracker::set_custom_word_point)
7451 (completion_tracker::advance_custom_word_point_by)
7452 (completion_tracker::completes_to_completion_word)
7453 (completion_tracker::discard_completions): New methods.
7454 (completion_tracker::m_quote_char)
7455 (completion_tracker::m_use_custom_word_point)
7456 (completion_tracker::m_custom_word_point): New fields.
7457 (advance_to_expression_complete_word_point): Declare.
7458 * f-lang.c (f_collect_symbol_completion_matches): Add
7459 complete_symbol_mode parameter.
7460 * language.h (struct language_defn)
7461 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
7462 parameter.
7463 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
7464 (linespec_complete_function): New function.
7465 (linespec_lexer_lex_keyword): Adjust.
7466 * linespec.h (linespec_keywords, linespec_complete_function): New
7467 declarations.
7468 * location.c (find_end_quote): New function.
7469 (explicit_location_lex_one): Add explicit_completion_info
7470 parameter. Save quoting info. Don't throw if being called for
7471 completion. Don't handle Ada operators here.
7472 (is_cp_operator, skip_op_false_positives, first_of)
7473 (explicit_location_lex_one_function): New function.
7474 (string_to_explicit_location): Replace 'dont_throw' parameter with
7475 an explicit_completion_info pointer parameter. Handle it. Don't
7476 use explicit_location_lex_one to lex function names. Use
7477 explicit_location_lex_one_function instead.
7478 * location.h (struct explicit_completion_info): New.
7479 (string_to_explicit_location): Replace 'dont_throw' parameter with
7480 an explicit_completion_info pointer parameter.
7481 * symtab.c (default_collect_symbol_completion_matches_break_on):
7482 Add complete_symbol_mode parameter. Handle LINESPEC mode.
7483 (default_collect_symbol_completion_matches)
7484 (collect_symbol_completion_matches): Add complete_symbol_mode
7485 parameter.
7486 (collect_symbol_completion_matches_type): Pass down
7487 complete_symbol_mode::EXPRESSION.
7488 (collect_file_symbol_completion_matches): Add complete_symbol_mode
7489 parameter. Handle LINESPEC mode.
7490 * symtab.h (complete_symbol_mode): New.
7491 (default_collect_symbol_completion_matches_break_on)
7492 (default_collect_symbol_completion_matches)
7493 (collect_symbol_completion_matches)
7494 (collect_file_symbol_completion_matches): Add complete_symbol_mode
7495 parameter.
7496
7497 2017-07-17 Pedro Alves <palves@redhat.com>
7498
7499 * utils.c (enum class strncmp_iw_mode): New.
7500 (strcmp_iw): Rename to ...
7501 (strncmp_iw_with_mode): ... this. Add string2_len and mode
7502 parameters. Handle them.
7503 (strncmp_iw): New.
7504 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
7505 * utils.h (strncmp_iw): Declare.
7506 (strcmp_iw): Move describing comments here.
7507
7508 2017-07-17 Pedro Alves <palves@redhat.com>
7509
7510 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
7511 CP_OPERATOR_STR.
7512 * c-typeprint.c (is_type_conversion_operator): Use
7513 CP_OPERATOR_STR.
7514 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
7515 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
7516 CP_OPERATOR_LEN.
7517 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
7518 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
7519 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
7520 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
7521 CP_OPERATOR_STR.
7522 * location.c: Include "cp-support.h".
7523 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
7524 CP_OPERATOR_STR.
7525 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
7526 CP_OPERATOR_LEN.
7527
7528 2017-07-17 Pedro Alves <palves@redhat.com>
7529
7530 * cli/cli-cmds.c (complete_command): Use a completion tracker
7531 along with completion_find_completion_word for handle_brkchars
7532 phase.
7533 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
7534 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
7535 (struct gdb_rl_completion_word_info): New.
7536 (gdb_rl_find_completion_word): New.
7537 (completion_find_completion_word): New.
7538 * completer.h (completion_find_completion_word): Declare.
7539
7540 2017-07-17 Pedro Alves <palves@redhat.com>
7541
7542 * ada-lang.c (symbol_completion_match): Adjust comments.
7543 (symbol_completion_add): Replace vector parameter with
7544 completion_tracker parameter. Use it.
7545 (ada_make_symbol_completion_list): Rename to...
7546 (ada_collect_symbol_completion_matches): ... this. Add
7547 completion_tracker parameter and use it.
7548 (ada_language_defn): Adjust.
7549 * break-catch-syscall.c (catch_syscall_completer): Adjust
7550 prototype and work with completion_tracker instead of VEC.
7551 * breakpoint.c (condition_completer): Adjust prototype and work
7552 with completion_tracker instead of VEC.
7553 * c-lang.c (c_language_defn, cplus_language_defn)
7554 (asm_language_defn, minimal_language_defn): Adjust to renames.
7555 * cli/cli-cmds.c (complete_command): Rework using
7556 completion_tracker. Catch exceptions when completing.
7557 * cli/cli-decode.c (integer_unlimited_completer)
7558 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
7559 with completion_tracker instead of VEC.
7560 * command.h (struct completion_tracker): Forward declare.
7561 (completer_ftype, completer_handle_brkchars_ftype): Change
7562 types.
7563 (complete_on_cmdlist, complete_on_enum): Adjust.
7564 * completer.c: Include <algorithm>.
7565 (struct gdb_completer_state): New.
7566 (current_completion): New global.
7567 (readline_line_completion_function): Delete.
7568 (noop_completer, filename_completer)
7569 (filename_completer_handle_brkchars, complete_files_symbols)
7570 (linespec_location_completer): Adjust to work with a
7571 completion_tracker instead of a VEC.
7572 (string_or_empty): New.
7573 (collect_explicit_location_matches): Adjust to work with a
7574 completion_tracker instead of a VEC.
7575 (explicit_location_completer): Rename to ...
7576 (complete_explicit_location): ... this and adjust to work with a
7577 completion_tracker instead of a VEC.
7578 (location_completer): Adjust to work with a completion_tracker
7579 instead of a VEC.
7580 (add_struct_fields): Adjust to work with a completion_list instead
7581 of VEC.
7582 (expression_completer): Rename to ...
7583 (complete_expression): ... this and adjust to work with a
7584 completion_tracker instead of a VEC. Use complete_files_symbols.
7585 (expression_completer): Reimplement on top of complete_expression.
7586 (symbol_completer): Adjust to work with a completion_tracker
7587 instead of a VEC.
7588 (enum complete_line_internal_reason): Add describing comments.
7589 (complete_line_internal_normal_command): Adjust to work with a
7590 completion_tracker instead of a VEC.
7591 (complete_line_internal): Rename to ...
7592 (complete_line_internal_1): ... this and adjust to work with a
7593 completion_tracker instead of a VEC. Assert TEXT is NULL in the
7594 handle_brkchars phase.
7595 (new_completion_tracker): Delete.
7596 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
7597 complete_line_internal_1.
7598 (free_completion_tracker): Delete.
7599 (INITIAL_COMPLETION_HTAB_SIZE): New.
7600 (completion_tracker::completion_tracker)
7601 (completion_tracker::~completion_tracker): New.
7602 (maybe_add_completion): Delete.
7603 (completion_tracker::maybe_add_completion)
7604 (completion_tracker::add_completion)
7605 (completion_tracker::add_completions): New.
7606 (throw_max_completions_reached_error): Delete.
7607 (complete_line): Adjust to work with a completion_tracker instead
7608 of a VEC. Don't create a completion_tracker_t or check for max
7609 completions here.
7610 (command_completer, command_completer_handle_brkchars)
7611 (signal_completer, reg_or_group_completer_1)
7612 (reg_or_group_completer, default_completer_handle_brkchars):
7613 Adjust to work with a completion_tracker.
7614 (gdb_completion_word_break_characters_throw): New.
7615 (gdb_completion_word_break_characters): Reimplement.
7616 (line_completion_function): Delete.
7617 (completion_tracker::recompute_lowest_common_denominator)
7618 (expand_preserving_ws)
7619 (completion_tracker::build_completion_result)
7620 (completion_result::completion_result)
7621 (completion_result::completion_result)
7622 (completion_result::~completion_result)
7623 (completion_result::completion_result)
7624 (completion_result::release_match_list, compare_cstrings)
7625 (completion_result::sort_match_list)
7626 (completion_result::reset_match_list)
7627 (gdb_rl_attempted_completion_function_throw)
7628 (gdb_rl_attempted_completion_function): New.
7629 * completer.h (completion_list, struct completion_result)
7630 (class completion_tracker): New.
7631 (complete_line): Add completion_tracker parameter.
7632 (readline_line_completion_function): Delete.
7633 (gdb_rl_attempted_completion_function): New.
7634 (noop_completer, filename_completer, expression_completer)
7635 (location_completer, symbol_completer, command_completer)
7636 (signal_completer, reg_or_group_completer): Update prototypes.
7637 (completion_tracker_t, new_completion_tracker)
7638 (make_cleanup_free_completion_tracker): Delete.
7639 (enum maybe_add_completion_enum): Delete.
7640 (maybe_add_completion): Delete.
7641 (throw_max_completions_reached_error): Delete.
7642 * corefile.c (complete_set_gnutarget): Adjust to work with a
7643 completion_tracker instead of a VEC.
7644 * cp-abi.c (cp_abi_completer): Adjust to work with a
7645 completion_tracker instead of a VEC.
7646 * d-lang.c (d_language_defn): Adjust.
7647 * disasm.c (disassembler_options_completer): Adjust to work with a
7648 completion_tracker instead of a VEC.
7649 * f-lang.c (f_make_symbol_completion_list): Rename to ...
7650 (f_collect_symbol_completion_matches): ... this. Adjust to work
7651 with a completion_tracker instead of a VEC.
7652 (f_language_defn): Adjust.
7653 * go-lang.c (go_language_defn): Adjust.
7654 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
7655 Adjust to work with a completion_tracker instead of a VEC.
7656 * infrun.c (handle_completer): Likewise.
7657 * interps.c (interpreter_completer): Likewise.
7658 * interps.h (interpreter_completer): Likewise.
7659 * language.c (unknown_language_defn, auto_language_defn)
7660 (local_language_defn): Adjust.
7661 * language.h (language_defn::la_make_symbol_completion_list):
7662 Rename to ...
7663 (language_defn::la_collect_symbol_completion_matches): ... this
7664 and adjust to work with a completion_tracker instead of a VEC.
7665 * m2-lang.c (m2_language_defn): Adjust.
7666 * objc-lang.c (objc_language_defn): Adjust.
7667 * opencl-lang.c (opencl_language_defn): Adjust.
7668 * p-lang.c (pascal_language_defn): Adjust.
7669 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
7670 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
7671 with a completion_tracker.
7672 * rust-lang.c (rust_language_defn): Adjust.
7673 * symtab.c (free_completion_list, do_free_completion_list)
7674 (return_val, completion_tracker): Delete.
7675 (completion_list_add_name, completion_list_add_symbol)
7676 (completion_list_add_msymbol, completion_list_objc_symbol)
7677 (completion_list_add_fields, add_symtab_completions): Add
7678 completion_tracker parameter and use it.
7679 (default_make_symbol_completion_list_break_on_1): Rename to...
7680 (default_collect_symbol_completion_matches_break_on): ... this.
7681 Add completion_tracker parameter and use it instead of allocating
7682 a completion tracker here.
7683 (default_make_symbol_completion_list_break_on): Delete old
7684 implementation.
7685 (default_make_symbol_completion_list): Delete.
7686 (default_collect_symbol_completion_matches): New.
7687 (make_symbol_completion_list): Delete.
7688 (collect_symbol_completion_matches): New.
7689 (make_symbol_completion_type): Rename to ...
7690 (collect_symbol_completion_matches_type): ... this. Add
7691 completion_tracker parameter and use it instead of VEC.
7692 (make_file_symbol_completion_list_1): Rename to...
7693 (collect_file_symbol_completion_matches): ... this. Add
7694 completion_tracker parameter and use it instead of VEC.
7695 (make_file_symbol_completion_list): Delete.
7696 (add_filename_to_list): Use completion_list instead of a VEC.
7697 (add_partial_filename_data::list): Now a completion_list.
7698 (make_source_files_completion_list): Work with a completion_list
7699 instead of a VEC.
7700 * symtab.h: Include "completer.h".
7701 (default_make_symbol_completion_list_break_on)
7702 (default_make_symbol_completion_list, make_symbol_completion_list)
7703 (make_symbol_completion_type, make_file_symbol_completion_list)
7704 (make_source_files_completion_list): Delete.
7705 (default_collect_symbol_completion_matches_break_on)
7706 (default_collect_symbol_completion_matches)
7707 (collect_symbol_completion_matches)
7708 (collect_symbol_completion_matches_type)
7709 (collect_file_symbol_completion_matches)
7710 (make_source_files_completion_list): New.
7711 * top.c (init_main): Don't install a rl_completion_entry_function
7712 hook. Install a rl_attempted_completion_function hook instead.
7713 * tui/tui-layout.c (layout_completer): Adjust to work with a
7714 completion_tracker.
7715 * tui/tui-regs.c (tui_reggroup_completer):
7716 * tui/tui-win.c (window_name_completer, focus_completer)
7717 (winheight_completer): Adjust to work with a completion_tracker.
7718 * value.c: Include "completer.h".
7719 (complete_internalvar): Adjust to work with a completion_tracker.
7720 * value.h (complete_internalvar): Likewise.
7721
7722 2017-07-17 Pedro Alves <palves@redhat.com>
7723
7724 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
7725 renames.
7726 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
7727 comments to completer_ftype's declaration.
7728 <completer_handle_brkchars>: Change type to
7729 completer_handle_brkchars_ftype.
7730 * command.h (completer_ftype): Add describing comment and give
7731 names to parameters.
7732 (completer_ftype_void): Rename to ...
7733 (completer_handle_brkchars_ftype) ... this. Add describing comment.
7734 (set_cmd_completer_handle_brkchars): Adjust.
7735 * completer.c (filename_completer_handle_brkchars): New function.
7736 (complete_line_internal_normal_command): New function, factored
7737 out from ...
7738 (complete_line_internal): ... here.
7739 (command_completer_handle_brkchars)
7740 (default_completer_handle_brkchars)
7741 (completer_handle_brkchars_func_for_completer): New functions.
7742 * completer.h (set_gdb_completion_word_break_characters): Delete
7743 declaration.
7744 (completer_handle_brkchars_func_for_completer): New declaration.
7745 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
7746 completer_handle_brkchars_func_for_completer.
7747
7748 2017-07-17 Pedro Alves <palves@redhat.com>
7749
7750 * completer.c (symbol_completer): New function, based on
7751 make_symbol_completion_list_fn.
7752 * completer.h (symbol_completer): New declaration.
7753 * guile/scm-cmd.c (cmdscm_completers): Adjust.
7754 * python/py-cmd.c (completers): Adjust.
7755 * symtab.c (make_symbol_completion_list_fn): Delete.
7756 * symtab.h (make_symbol_completion_list_fn): Delete.
7757 * cli/cli-decode.c (add_cmd): Adjust.
7758
7759 2017-07-17 Pedro Alves <palves@redhat.com>
7760
7761 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
7762 * dwarf2read.c: Include "filename-seen-cache.h".
7763 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
7764 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
7765 * filename-seen-cache.c: New file.
7766 * filename-seen-cache.h: New file.
7767 * symtab.c: Include "filename-seen-cache.h".
7768 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
7769 (create_filename_seen_cache, clear_filename_seen_cache)
7770 (delete_filename_seen_cache, filename_seen): Delete, parts moved
7771 to filename-seen-cache.h/filename-seen-cache.c.
7772 (output_source_filename, sources_info)
7773 (maybe_add_partial_symtab_filename)
7774 (make_source_files_completion_list): Adjust to use
7775 filename_seen_cache.
7776
7777 2017-07-17 Pedro Alves <palves@redhat.com>
7778
7779 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
7780 fields.
7781 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
7782 dwarf2_debug_sections*)): New.
7783 (dwarf2_per_objfile::dwarf2_per_objfile(const
7784 dwarf2_per_objfile&)): Declare as deleted.
7785 (dwarf2_per_objfile::operator=): Declare as deleted.
7786 (dwarf2_per_objfile::dwarf2_per_objfile)
7787 (dwarf2_per_objfile::~dwarf2_per_objfile)
7788 (dwarf2_per_objfile::free_cached_comp_units): New.
7789 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
7790 ctor. Call dwarf2_per_objfile's ctor manually.
7791 (dwarf2_locate_sections): Deleted/refactored as ...
7792 (dwarf2_per_objfile::locate_sections): ... this new method.
7793 (free_cached_comp_units): Defer to
7794 dwarf2_per_objfile::free_cached_comp_units.
7795 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
7796
7797 2017-07-14 Tom Tromey <tom@tromey.com>
7798
7799 PR rust/21764:
7800 * rust-exp.y (convert_ast_to_expression): Add "want_type"
7801 parameter.
7802 <UNOP_SIZEOF>: Split into separate case.
7803 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
7804
7805 2017-07-14 Tom Tromey <tom@tromey.com>
7806
7807 PR rust/21763:
7808 * symtab.c (symbol_matches_domain): Add language_rust to special
7809 case.
7810 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
7811 treat LOC_TYPEDEF symbols as variables.
7812
7813 2017-07-14 Pedro Alves <palves@redhat.com>
7814
7815 * symtab.c (make_file_symbol_completion_list_1): Iterate over
7816 symtabs matching all symtabs with SRCFILE as file name instead of
7817 only considering the first hit, with lookup_symtab.
7818
7819 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7820
7821 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
7822 operator_name parameters.
7823 (gen_expr): Update function call.
7824
7825 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7826
7827 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
7828 parameter.
7829 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
7830 Likewise.
7831 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
7832 parameter, use agent_expr::gdbarch instead, update function
7833 calls.
7834 (locexpr_tracepoint_var_ref): Likewise.
7835 (loclist_tracepoint_var_ref): Likewise.
7836 * ax-gdb.c (gen_trace_static_fields): Likewise.
7837 (gen_traced_pop): Likewise.
7838 (gen_frame_args_address): Likewise.
7839 (gen_frame_locals_address): Likewise.
7840 (gen_var_ref): Likewise.
7841 (gen_struct_ref_recursive): Likewise.
7842 (gen_static_field): Likewise.
7843 (gen_maybe_namespace_elt): Likewise.
7844 (gen_expr): Likewise.
7845 (gen_trace_for_var): Likewise.
7846 (gen_trace_for_expr): Likewise.
7847 (gen_trace_for_return_address): Likewise.
7848
7849 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7850
7851 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
7852 parameter.
7853 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
7854
7855 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7856
7857 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
7858 from ax, update calls.
7859 (gen_usual_arithmetic): Likewise.
7860 (gen_integral_promotions): Likewise.
7861 (gen_bitfield_ref): Likewise.
7862 (gen_primitive_field): Likewise.
7863 (gen_struct_ref_recursive): Likewise.
7864 (gen_struct_ref): Likewise.
7865 (gen_maybe_namespace_elt): Likewise.
7866 (gen_struct_elt_for_reference): Likewise.
7867 (gen_namespace_elt): Likewise.
7868 (gen_aggregate_elt_ref): Likewise.
7869 (gen_expr): Get gdbarch from ax, update calls.
7870 (gen_expr_binop_rest): Likewise.
7871
7872 2017-07-13 Pedro Alves <palves@redhat.com>
7873
7874 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7875 as default tdesc.
7876 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7877 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7878 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7879 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7880 tdep.
7881 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7882 Get final tdesc from the tdep.
7883 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7884 default tdesc.
7885 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7886 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7887 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7888 Use it as default tdesc.
7889 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7890 down to amd_init_abi. No longer handle fallback tdesc here.
7891 * amd64-tdep.h (tdesc_x32): Declare.
7892 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7893 parameter.
7894 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7895 as default tdesc.
7896
7897 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7898
7899 * s390-linux-tdep.c (s390_process_record): Add support for
7900 instructions new in arch12.
7901
7902 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7903
7904 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7905 PT_GETFSBASE and PT_GETGSBASE.
7906 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7907 PT_SETGSBASE.
7908
7909 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7910
7911 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7912 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7913 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7914 those rules.
7915 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7916 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7917 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7918 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7919 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7920 * features/i386/amd64.xml: Add 64bit-segments.xml.
7921 * features/i386/amd64-avx-avx512.c: Regenerated.
7922 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7923 * features/i386/amd64-avx-mpx.c: Regenerated.
7924 * features/i386/amd64-avx.c: Regenerated.
7925 * features/i386/amd64-mpx.c: Regenerated.
7926 * features/i386/amd64.c: Regenerated.
7927 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7928 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7929 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7930 * regformats/i386/amd64-avx.dat: Regenerated.
7931 * regformats/i386/amd64-mpx.dat: Regenerated.
7932 * regformats/i386/amd64.dat: Regenerated.
7933
7934 2017-07-10 Yao Qi <yao.qi@linaro.org>
7935
7936 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7937 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7938
7939 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7940
7941 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7942 unsetenv.
7943 * gnulib/aclocal.m4: Regenerate.
7944 * gnulib/config.in: Regenerate.
7945 * gnulib/configure: Regenerate.
7946 * gnulib/import/Makefile.am: Regenerate.
7947 * gnulib/import/Makefile.in: Regenerate.
7948 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7949 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7950 * gnulib/import/m4/environ.m4: New file.
7951 * gnulib/import/m4/setenv.m4: New file.
7952 * gnulib/import/setenv.c: New file.
7953 * gnulib/import/unsetenv.c: New file.
7954
7955 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7956
7957 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7958 address when op is DW_OP_addr.
7959
7960 2017-07-09 Tom Tromey <tom@tromey.com>
7961
7962 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7963 check and apply to outer type.
7964
7965 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7966
7967 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7968 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7969 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7970 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7971
7972 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7973
7974 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7975
7976 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7977
7978 * corelow.c (get_core_siginfo): Remove.
7979 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7980 instead of get_core_siginfo.
7981 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7982 * gdbarch.h: Re-generate.
7983 * gdbarch.c: Re-generate.
7984 * linux-tdep.c (linux_core_xfer_siginfo): New.
7985 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7986
7987 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7988
7989 * corelow.c (thread_section_name): Move to ...
7990 * gdbcore.h (thread_section_name): ... here.
7991
7992 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7993
7994 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7995 (struct siginfo32): New.
7996 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7997 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7998 via ptrace(PT_LWPINFO).
7999
8000 2017-07-07 John Baldwin <jhb@FreeBSD.org>
8001
8002 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
8003 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
8004 (fbsd_get_siginfo_type): New.
8005 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
8006 (_initialize_fbsd_tdep): New.
8007
8008 2017-07-06 David Blaikie <dblaikie@gmail.com>
8009
8010 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
8011 a singular dwo_unit*) to support multiple CUs in the same way that
8012 multiple TUs are supported.
8013 (create_cus_hash_table): Replace create_dwo_cu with a function for
8014 parsing multiple CUs from a DWO file.
8015 (open_and_init_dwo_file): Use create_cus_hash_table rather than
8016 create_dwo_cu.
8017 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
8018 htab_find, rather than comparing the signature to a singleton CU in
8019 the dwo_file.
8020
8021 2017-07-06 Pedro Alves <palves@redhat.com>
8022
8023 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
8024
8025 2017-07-04 Pedro Alves <palves@redhat.com>
8026
8027 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
8028 * gdbtypes.h (TYPE_STATIC): Delete.
8029 (struct fn_field) <is_public, is_abstract, is_static, is_final,
8030 is_synchronized, is_native>: Delete.
8031 <dummy>: Bump.
8032 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
8033 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
8034 (TYPE_FN_FIELD_ABSTRACT): Delete.
8035
8036 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
8037
8038 * buffer.h (buffer_finish): Fix spelling mistakes.
8039
8040 2017-07-01 Eli Zaretskii <eliz@gnu.org>
8041
8042 * .dir-locals.el: Automatically switch to C-style comments in
8043 versions of Emacs that support the feature.
8044
8045 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
8046 Pedro Alves <palves@redhat.com>
8047
8048 PR cli/21688
8049 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
8050 (process_next_line): New variable 'inline_cmd'.
8051 Adjust 'if' clauses for "python", "compile" and "guile" to use
8052 'command_name_equals' and check for '!inline_cmd'.
8053
8054 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
8055
8056 PR cli/21688
8057 * cli/cli-script.c (command_name_equals_not_inline): New function.
8058 (process_next_line): Adjust 'if' clauses for "python", "compile"
8059 and "guile" to use command_name_equals_not_inline.
8060
8061 2017-06-29 Pedro Alves <palves@redhat.com>
8062
8063 * completer.c (expression_completer): Call
8064 linespec_location_completer instead of location_completer.
8065
8066 2017-06-29 Pedro Alves <palves@redhat.com>
8067
8068 * completer.c (expression_completer): Remove code that recomputes
8069 'text' from 'word'.
8070
8071 2017-06-29 Yao Qi <yao.qi@linaro.org>
8072
8073 * regformats/regdat.sh: Generate code with
8074 "ifndef IN_PROCESS_AGENT".
8075
8076 2017-06-28 Pedro Alves <palves@redhat.com>
8077
8078 * command.h: Include "common/scoped_restore.h".
8079
8080 2017-06-28 Yao Qi <yao.qi@linaro.org>
8081
8082 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
8083 instead of obstack_grow.
8084
8085 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
8086
8087 PR gdb/21337
8088 * symfile.c (reread_symbols): Call objfiles_changed just before
8089 read_symbols.
8090
8091 2017-06-27 Pedro Alves <palves@redhat.com>
8092
8093 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
8094 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
8095 (completion_list_add_symbol, completion_list_add_msymbol):
8096 ... these new functions.
8097 (add_symtab_completions)
8098 (default_make_symbol_completion_list_break_on_1): Adjust.
8099
8100 2017-06-27 Pedro Alves <palves@redhat.com>
8101
8102 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
8103 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
8104 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
8105 dtor.
8106 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
8107 'storage_obstack' field an auto_obstack. In-class initialize all
8108 non-bitfield fields. Make minsyms_read bool.
8109 * symfile.c (read_symbols): Adjust.
8110
8111 2017-06-27 Alan Hayward <alan.hayward@arm.com>
8112
8113 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
8114 (gdbsim_store_register): Likewise.
8115
8116 2017-06-27 Pedro Alves <palves@redhat.com>
8117
8118 * c-exp.y (name_obstack): Now an auto_obstack.
8119 (yylex): Use auto_obstack::clear.
8120 (c_parse): Use auto_obstack::clear instead of reinitializing and
8121 freeing the obstack.
8122 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
8123 * d-exp.y (name_obstack): Now an auto_obstack.
8124 (yylex): Use auto_obstack::clear.
8125 (d_parse): Use auto_obstack::clear instead of reinitializing and
8126 freeing the obstack.
8127 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
8128 auto_obstack.
8129 * dwarf2read.c (create_addrmap_from_index)
8130 (dwarf2_build_psymtabs_hard)
8131 (update_enumeration_type_from_children): Likewise.
8132 * gdb_obstack.h (auto_obstack): New type.
8133 * go-exp.y (name_obstack): Now an auto_obstack.
8134 (build_packaged_name): Use auto_obstack::clear.
8135 (go_parse): Use auto_obstack::clear instead of reinitializing and
8136 freeing the obstack.
8137 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
8138 auto_obstack.
8139 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
8140 * rust-exp.y (work_obstack): Now an auto_obstack.
8141 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
8142 reinitializing and freeing the obstack.
8143 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
8144 (host_char_to_target): Use auto_obstack.
8145 * utils.h (make_cleanup_obstack_free): Delete declaration.
8146 * valprint.c (generic_emit_char, generic_printstr): Use
8147 auto_obstack.
8148
8149 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
8150
8151 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
8152 thread.
8153 (darwin_init_thread_list): Don't update dummy thread.
8154 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
8155
8156 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8157
8158 * record-full.c (netorder16): Remove.
8159
8160 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8161
8162 * common/diagnostics.h: Define macros for GCC.
8163 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
8164 * common/vec.h: Include diagnostics.h.
8165 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
8166 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
8167 warning.
8168
8169 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8170
8171 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
8172 New macro.
8173 * ada-lex.l: Ignore deprecated register warnings.
8174
8175 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8176
8177 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
8178 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
8179
8180 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8181
8182 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
8183 its own line.
8184
8185 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8186
8187 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
8188
8189 2017-06-23 Alan Hayward <alan.hayward@arm.com>
8190
8191 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
8192 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
8193 (xtensa_register_read_masked): Likewise.
8194
8195 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
8196
8197 * common/environ.c (gdb_environ::unset): Update comment.
8198
8199 2017-06-22 Alan Hayward <alan.hayward@arm.com>
8200
8201 * python/py-unwind.c (pyuw_sniffer): Allocate space for
8202 registers.
8203
8204 2017-06-22 Alan Hayward <alan.hayward@arm.com>
8205
8206 * record-full.c (record_full_exec_insn): Use byte_vector.
8207
8208 2017-06-22 Yao Qi <yao.qi@linaro.org>
8209
8210 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
8211 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
8212
8213 2017-06-22 Alan Hayward <alan.hayward@arm.com>
8214
8215 * remote.c (cached_reg): Move from here...
8216 * regcache.h (cached_reg): ...to here.
8217 * python/py-unwind.c (struct reg_info): Remove.
8218 (cached_frame_info): Use cached_reg_t.
8219 (pyuw_prev_register): Likewise.
8220 (pyuw_sniffer): Use cached_reg_t and allocate registers.
8221 (pyuw_dealloc_cache): Free all registers.
8222
8223 2017-06-22 Pedro Alves <palves@redhat.com>
8224 Simon Marchi <simon.marchi@ericsson.com>
8225
8226 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
8227 warning.
8228 * common/diagnostics.h: New file.
8229
8230 2017-06-22 Pedro Alves <palves@redhat.com>
8231
8232 * common/agent.h: Add include guards.
8233
8234 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
8235
8236 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
8237 talk about addressable units instead of bytes.
8238
8239 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
8240
8241 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
8242 of '::const_iterator'.
8243
8244 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
8245
8246 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8247 'unittests/environ-selftests.c'.
8248 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
8249 * charset.c (find_charset_names): Declare object 'iconv_env'.
8250 Update code to use 'iconv_env' object. Remove call to
8251 'free_environ'.
8252 * common/environ.c: Include <utility>.
8253 (make_environ): Delete function.
8254 (free_environ): Delete function.
8255 (gdb_environ::clear): New function.
8256 (gdb_environ::operator=): New function.
8257 (gdb_environ::get): Likewise.
8258 (environ_vector): Delete function.
8259 (set_in_environ): Delete function.
8260 (gdb_environ::set): New function.
8261 (unset_in_environ): Delete function.
8262 (gdb_environ::unset): New function.
8263 (gdb_environ::envp): Likewise.
8264 * common/environ.h: Include <vector>.
8265 (struct gdb_environ): Delete; transform into...
8266 (class gdb_environ): ... this class.
8267 (free_environ): Delete prototype.
8268 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
8269 environ_vector): Likewise.
8270 * infcmd.c (run_command_1): Update code to call
8271 'envp' from 'gdb_environ' class.
8272 (environment_info): Update code to call methods from 'gdb_environ'
8273 class.
8274 (unset_environment_command): Likewise.
8275 (path_info): Likewise.
8276 (path_command): Likewise.
8277 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
8278 (inferior::inferior): Initialize 'environment' using the host's
8279 information.
8280 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
8281 Include "environ.h".
8282 (class inferior) <environment>: Change type from 'struct
8283 gdb_environ' to 'gdb_environ'.
8284 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
8285 methods from 'gdb_environ' class.
8286 * solib.c (solib_find_1): Likewise
8287 * unittests/environ-selftests.c: New file.
8288
8289 2017-06-20 Yao Qi <yao.qi@linaro.org>
8290
8291 * features/i386/i386-linux.xml: Exchange the order of including
8292 32bit-linux.xml and 32bit-sse.xml.
8293 * features/i386/i386-linux.c: Regenerated.
8294
8295 2017-06-20 Yao Qi <yao.qi@linaro.org>
8296
8297 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
8298 Delete copy ctor and assignment operator.
8299 (tdesc_type): Likewise.
8300 (tdesc_feature): Likewise.
8301 (tdesc_free_reg): Remove.
8302 (tdesc_create_reg): Use new.
8303 (tdesc_free_type): Remove.
8304 (tdesc_create_vector): Use new.
8305 (tdesc_create_union): Likewise.
8306 (tdesc_create_flags): Likewise.
8307 (tdesc_create_enum): Likewise.
8308 (tdesc_free_feature): Delete.
8309 (free_target_description): Use delete.
8310
8311 2017-06-19 John Baldwin <jhb@FreeBSD.org>
8312
8313 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
8314 registers.
8315
8316 2017-06-19 Pedro Alves <palves@redhat.com>
8317
8318 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
8319 after gdb::unlinker.
8320
8321 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
8322
8323 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
8324 gdb_environ to access an environment variable.
8325
8326 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8327
8328 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
8329 gdb_byte*.
8330
8331 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8332
8333 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
8334
8335 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8336
8337 * configure: Re-generate.
8338 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
8339
8340 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8341
8342 * configure: Re-generate.
8343 * warning.m4: Pass -Werror to compiler when checking for
8344 supported warning flags.
8345
8346 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8347
8348 * Makefile.in (COMPILE.pre): Add "-x c++".
8349
8350 2017-06-16 Alan Hayward <alan.hayward@arm.com>
8351 Pedro Alves <palves@redhat.com>
8352 Yao Qi <yao.qi@linaro.org>
8353
8354 * defs.h (RequireLongest): New.
8355 (extract_integer): Declare function template.
8356 (extract_signed_integer): Remove the declaration, but define it
8357 static inline.
8358 (extract_unsigned_integer): Likewise.
8359 (store_integer): Declare function template.
8360 (store_signed_integer): Remove the declaration, but define it
8361 static inline.
8362 (store_unsigned_integer): Likewise.
8363 * findvar.c (extract_integer): New function template.
8364 (extract_signed_integer): Remove.
8365 (extract_unsigned_integer): Remove.
8366 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
8367 instantiations.
8368 (store_integer): New function template.
8369 (store_signed_integer): Remove.
8370 (store_unsigned_integer): Remove.
8371 (store_integer): Explicit instantiations.
8372 * regcache.c (regcache_raw_read_signed): Update.
8373 (regcache::raw_read): New function.
8374 (regcache::raw_read_signed): Remove.
8375 (regcache::raw_read_unsigned): Remove.
8376 (regcache_raw_read_unsigned): Update.
8377 (regcache_raw_write_unsigned): Update.
8378 (regcache::raw_write_signed): Remove.
8379 (regcache::raw_write): New function.
8380 (regcache_cooked_read_signed): Update.
8381 (regcache::raw_write_unsigned): Remove.
8382 (regcache::cooked_read_signed): Remove.
8383 (regcache_cooked_read_unsigned): Update.
8384 (regcache::cooked_read_unsigned): Remove.
8385 (regcache_cooked_write_signed): Update.
8386 (regcache_cooked_write_unsigned): Update.
8387 * regcache.h (regcache) <raw_read_signed>: Remove.
8388 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
8389 <raw_read, raw_write>: New.
8390 <cooked_read_signed, cooked_write_signed>: Remove.
8391 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
8392 <cooked_read, cooked_write>: New.
8393 * sh64-tdep.c (sh64_pseudo_register_read): Update.
8394 (sh64_pseudo_register_write): Update.
8395
8396 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
8397
8398 * arc-tdep.c (arc_disassembler_options): New variable.
8399 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
8400 of default_print_insn.
8401 (arc_delayed_print_insn): Set info->section when needed,
8402 use default_print_insn to retrieve a disassembler.
8403
8404 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
8405
8406 PR gdb/21574
8407 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
8408 to mention $SHELL and startup-with-shell.
8409
8410 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
8411
8412 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
8413
8414 2017-06-14 Yao Qi <yao.qi@linaro.org>
8415
8416 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
8417 default_print_insn instead of print_insn_aarch64.
8418 * arm-tdep.c (gdb_print_insn_arm): Call
8419 default_print_insn instead of print_insn_big_arm
8420 and print_insn_little_arm.
8421 * i386-tdep.c (i386_print_insn): Call default_print_insn
8422 instead of print_insn_i386.
8423 * ia64-tdep.c (ia64_print_insn): Call
8424 default_print_insn instead of print_insn_ia64.
8425 * mips-tdep.c (gdb_print_insn_mips): Call
8426 default_print_insn instead of print_insn_big_mips
8427 and print_insn_little_mips.
8428 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
8429 instead of print_insn_spu.
8430
8431 2017-06-14 Pedro Alves <palves@redhat.com>
8432
8433 * ada-lang.c: Include "common/byte-vector.h".
8434 (ada_value_primitive_packed_val): Use gdb::byte_vector.
8435 * charset.c (wchar_iterator::iterate): Resize the vector instead
8436 of reserving it.
8437 * common/byte-vector.h: Include "common/def-vector.h".
8438 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
8439 * cli/cli-dump.c: Include "common/byte-vector.h".
8440 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
8441 * common/byte-vector.h: New file.
8442 * common/def-vector.h: New file.
8443 * common/default-init-alloc.h: New file.
8444 * dwarf2loc.c: Include "common/byte-vector.h".
8445 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
8446 instead of reserving it.
8447 * dwarf2read.c: Include "common/byte-vector.h".
8448 (data_buf::m_vec): Now a gdb::byte_vector.
8449 * gdb_regex.c: Include "common/def-vector.h".
8450 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
8451 * mi/mi-main.c: Include "common/byte-vector.h".
8452 (mi_cmd_data_read_memory): Use gdb::byte_vector.
8453 * printcmd.c: Include "common/byte-vector.h".
8454 (print_scalar_formatted): Use gdb::byte_vector.
8455 * valprint.c: Include "common/byte-vector.h".
8456 (maybe_negate_by_bytes, print_decimal_chars): Use
8457 gdb::byte_vector.
8458
8459 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8460
8461 * darwin-nat.c: Include "nat/fork-inferior.h".
8462
8463 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8464
8465 * configure.nat: Factor out Darwin bits that are not
8466 architecture-specific. Add fork-inferior.o.
8467
8468 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8469
8470 * configure.nat: Factor out AIX bits that are not
8471 architecture-specific. Add fork-inferior.o.
8472
8473 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8474
8475 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
8476 (read_pieced_value, write_pieced_value): ...here. Reduce to
8477 wrappers that just call rw_pieced_value.
8478
8479 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8480
8481 * dwarf2loc.c (write_pieced_value): When writing the data for a
8482 memory piece, use write_memory_with_notification instead of
8483 write_memory.
8484
8485 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8486
8487 * valops.c (read_value_memory): Change embedded_offset to
8488 represent a bit offset instead of a byte offset.
8489 * value.h (read_value_memory): Adjust comment.
8490
8491 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8492
8493 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
8494 dest_offset_bits and source_offset_bits.
8495 (write_pieced_value): Likewise.
8496
8497 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8498
8499 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
8500 given by DW_OP_bit_piece.
8501 (write_pieced_value): Likewise.
8502
8503 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8504
8505 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
8506 some other preparations to the places where sufficient information
8507 is available.
8508 (write_pieced_value): Likewise.
8509
8510 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8511
8512 * dwarf2loc.c (bits_to_bytes): New function.
8513 (read_pieced_value): Fix offset calculations for register pieces
8514 on big-endian targets.
8515 (write_pieced_value): Likewise.
8516
8517 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8518
8519 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
8520 (write_pieced_value): Likewise.
8521
8522 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8523
8524 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
8525 transfer the source value's least significant bits, instead of its
8526 lowest-addressed ones. Rename type_len to max_offset.
8527 (read_pieced_value): Mirror above changes to write_pieced_value as
8528 applicable.
8529
8530 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8531
8532 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
8533 truncate full bytes from dest_offset_bits before using it as an
8534 offset into the buffer.
8535
8536 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8537
8538 * dwarf2loc.c (write_pieced_value): Include transfer size in
8539 byte-wise check.
8540
8541 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8542
8543 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
8544 calculation of this_size.
8545
8546 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8547
8548 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
8549 when targeting a bit-field.
8550 (write_pieced_value): Likewise.
8551
8552 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8553
8554 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
8555 (allocate_piece_closure): Drop addr_size parameter.
8556 (dwarf2_evaluate_loc_desc_full): Adjust call to
8557 allocate_piece_closure.
8558
8559 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8560
8561 PR gdb/21226
8562 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
8563 the LSB end, independent of endianness.
8564
8565 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8566
8567 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
8568 size capping.
8569
8570 2017-06-13 Yao Qi <yao.qi@linaro.org>
8571
8572 * mips-linux-nat.c: Move include features/mips*-linux.c to
8573 mips-linux-tdep.c.
8574 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
8575 to mips-linux-tdep.c.
8576 * mips-linux-tdep.c: Include features/mips*-linux.c
8577 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
8578 functions.
8579 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
8580 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
8581 (tdesc_mips64_dsp_linux): Declare.
8582
8583 2017-06-12 Tom Tromey <tom@tromey.com>
8584
8585 * valprint.h (val_print_type_code_int): Remove.
8586 * valprint.c (generic_val_print_int): Always call
8587 val_print_scalar_formatted.
8588 (val_print_type_code_int): Remove.
8589 * printcmd.c (print_scalar_formatted): Handle options->format==0.
8590 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
8591 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
8592 * ada-valprint.c (ada_val_print_num): Use
8593 val_print_scalar_formatted.
8594
8595 2017-06-12 Tom Tromey <tom@tromey.com>
8596
8597 * printcmd.c (print_scalar_formatted): Unify the two switches.
8598 Don't convert scalars to LONGEST.
8599
8600 2017-06-12 Tom Tromey <tom@tromey.com>
8601
8602 PR exp/16225:
8603 * valprint.h (print_decimal_chars): Update.
8604 * valprint.c (maybe_negate_by_bytes): New function.
8605 (print_decimal_chars): Add "is_signed" argument.
8606 * printcmd.c (print_scalar_formatted): Update.
8607
8608 2017-06-12 Tom Tromey <tom@tromey.com>
8609
8610 PR exp/16225:
8611 * valprint.h (print_binary_chars, print_hex_chars): Update.
8612 * valprint.c (val_print_type_code_int): Update.
8613 (print_binary_chars): Add "zero_pad" argument.
8614 (emit_octal_digit): New function.
8615 (print_octal_chars): Don't zero-pad.
8616 (print_decimal_chars): Likewise.
8617 (print_hex_chars): Add "zero_pad" argument.
8618 * sh64-tdep.c (sh64_do_fp_register): Update.
8619 * regcache.c (regcache::dump): Update.
8620 * printcmd.c (print_scalar_formatted): Update.
8621 * infcmd.c (default_print_one_register_info): Update.
8622
8623 2017-06-12 Pedro Alves <palves@redhat.com>
8624 Alan Hayward <alan.hayward@arm.com>
8625
8626 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
8627 (mips_eabi_push_dummy_call): Rename local 'regsize' to
8628 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
8629 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
8630 Assert that abi_regsize bytes fit in 'ref_valbuf'.
8631
8632 2017-06-12 Pedro Alves <palves@redhat.com>
8633
8634 * dwarf2read.c (mapped_symtab::data): Now a vector of
8635 symtab_index_entry instead of vector of
8636 std::unique_ptr<symtab_index_entry>. All users adjusted to check
8637 whether an element's name is NULL instead of checking whether the
8638 element itself is NULL.
8639 (find_slot): Change return type. Adjust.
8640 (hash_expand, , add_index_entry, uniquify_cu_indices)
8641 (write_hash_table): Adjust.
8642
8643 2017-06-12 Pedro Alves <palves@redhat.com>
8644
8645 * dwarf2read.c (recursively_count_psymbols): New function.
8646 (write_psymtabs_to_index): Call it to compute number of psyms and
8647 pass estimate size of psyms_seen to unordered_set's ctor.
8648
8649 2017-06-12 Pedro Alves <palves@redhat.com>
8650
8651 * dwarf2read.c (write_hash_table): Check if key already exists
8652 before emplacing.
8653
8654 2017-06-12 Pedro Alves <palves@redhat.com>
8655
8656 * dwarf2read.c (data_buf::append_space): Rename to...
8657 (data_buf::grow): ... this, and make private. Adjust all callers.
8658 (data_buf::append_uint): New method.
8659 (add_address_entry, write_one_signatured_type)
8660 (write_psymtabs_to_index): Use it.
8661
8662 2017-06-12 Pedro Alves <palves@redhat.com>
8663
8664 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
8665 (file_write (FILE *, const std::vector<Elem>&)): Delete.
8666 (data_buf::file_write): Call ::fwrite directly.
8667
8668 2017-06-12 Pedro Alves <palves@redhat.com>
8669
8670 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
8671 std::vector::erase.
8672
8673 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8674
8675 Code cleanup: C++ify .gdb_index producer.
8676 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
8677 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
8678 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
8679 (create_strtab, add_string): Remove.
8680 (file_write, data_buf): New.
8681 (struct symtab_index_entry): Use std::vector for cu_indices.
8682 (struct mapped_symtab): Use std::vector for data.
8683 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
8684 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
8685 Remove.
8686 (find_slot): Change return type. Update it to the new data structures.
8687 (hash_expand, add_index_entry): Update it to the new data structures.
8688 (offset_type_compare): Remove.
8689 (uniquify_cu_indices): Update it to the new data structures.
8690 (c_str_view, c_str_view_hasher, vector_hasher): New.
8691 (add_indices_to_cpool): Remove.
8692 (write_hash_table): Update it to the new data structures.
8693 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
8694 (eq_psymtab_cu_index): Remove.
8695 (psym_index_map): New typedef.
8696 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
8697 reference and std::unordered_map for cu_index_htab.
8698 (add_address_entry, add_address_entry_worker, write_address_map)
8699 (write_psymbols): Update it to the new data structures.
8700 (write_obstack): Remove.
8701 (struct signatured_type_index_data): Change types_list to a data_buf
8702 reference and psyms_seen to a std::unordered_set reference.
8703 (write_one_signatured_type, recursively_write_psymbols)
8704 (write_psymtabs_to_index): Update it to the new data structures.
8705
8706 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
8707
8708 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
8709 separate-debug-file commands.
8710 * symfile.h (separate_debug_file_debug): New global.
8711 * symfile.c (separate_debug_file_debug): New global.
8712 (separate_debug_file_exists, find_separate_debug_file): Add
8713 debug output.
8714 (_initialize_symfile): Add "set debug separate-debug-file"
8715 command.
8716 * build-id.c (build_id_to_debug_bfd,
8717 find_separate_debug_file_by_buildid): Add debug output.
8718
8719 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8720
8721 * gdbarch.sh (displaced_step_free_closure): Remove.
8722 * gdbarch.h, gdbarch.c: Re-generate.
8723 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
8724 displaced_step_free_closure.
8725 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8726 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8727 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8728 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8729 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8730 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8731 * arch-utils.h (simple_displaced_step_free_closure): Remove.
8732 * arch-utils.c (simple_displaced_step_free_closure): Remove.
8733 * infrun.c (displaced_step_clear): Call xfree instead of
8734 gdbarch_displaced_step_free_closure.
8735
8736 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
8737
8738 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
8739 NULL".
8740
8741 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8742
8743 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
8744 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
8745 (mn10300_push_dummy_call): Likewise.
8746
8747 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8748
8749 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
8750
8751 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8752
8753 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
8754
8755 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8756
8757 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
8758 able to start inferiors using a shell.
8759 (New remote packets): Announce new packet "QStartupWithShell".
8760 * remote.c: Add PACKET_QStartupWithShell.
8761 (extended_remote_create_inferior): Handle new
8762 PACKET_QStartupWithShell.
8763 (remote_protocol_features) <QStartupWithShell>: New entry for
8764 PACKET_QStartupWithShell.
8765 (_initialize_remote): Call "add_packet_config_cmd" for
8766 QStartupShell.
8767
8768 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8769 Pedro Alves <palves@redhat.com>
8770
8771 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
8772 and "nat/fork-inferior.h".
8773 * common/common-inferior.h: New file, with contents from
8774 "gdb/inferior.h".
8775 * commom/common-utils.c: Include "common-utils.h".
8776 (stringify_argv): New function.
8777 * common/common-utils.h (stringify_argv): New prototype.
8778 * configure.nat: Add "fork-inferior.o" as a dependency for
8779 "*linux*", "fbsd*" and "nbsd*" hosts.
8780 * corefile.c (get_exec_file): Update comment.
8781 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
8782 instead of "startup_inferior".
8783 (darwin_create_inferior): Call "add_thread_silent" after
8784 "fork_inferior".
8785 * fork-child.c: Cleanup unnecessary includes.
8786 (SHELL_FILE): Move to "common/common-fork-child.c".
8787 (environ): Likewise.
8788 (exec_wrapper): Initialize.
8789 (get_exec_wrapper): New function.
8790 (breakup_args): Move to "common/common-fork-child.c"; rename to
8791 "breakup_args_for_exec".
8792 (escape_bang_in_quoted_argument): Move to
8793 "common/common-fork-child.c".
8794 (saved_ui): New variable.
8795 (prefork_hook): New function.
8796 (postfork_hook): Likewise.
8797 (postfork_child_hook): Likewise.
8798 (gdb_startup_inferior): Likewise.
8799 (fork_inferior): Move to "common/common-fork-child.c". Update
8800 function to support gdbserver.
8801 (startup_inferior): Likewise.
8802 * gdbcore.h (get_exec_file): Remove declaration.
8803 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
8804 instead of "startup_inferior". Call "add_thread_silent" after
8805 "fork_inferior".
8806 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
8807 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
8808 instead of "startup_inferior". Call "add_thread_silent" after
8809 "fork_inferior".
8810 * inferior.h: Include "common-inferior.h".
8811 (trace_start_error): Move to "common/common-utils.h".
8812 (trace_start_error_with_name): Likewise.
8813 (fork_inferior): Move prototype to "nat/fork-inferior.h".
8814 (startup_inferior): Likewise.
8815 (gdb_startup_inferior): New prototype.
8816 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
8817 * nat/fork-inferior.h: New file.
8818 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
8819 instead of "startup_inferior". Call "add_thread_silent" after
8820 "fork_inferior".
8821 * target.h (target_terminal_init): Move prototype to
8822 "target/target.h".
8823 (target_terminal_inferior): Likewise.
8824 (target_terminal_ours): Likewise.
8825 * target/target.h (target_terminal_init): New prototype, moved
8826 from "target.h".
8827 (target_terminal_inferior): Likewise.
8828 (target_terminal_ours): Likewise.
8829 * utils.c (gdb_flush_out_err): New function.
8830
8831 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8832
8833 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
8834 * common/common-gdbthread.h: New file, with parts from
8835 "gdb/gdbthread.h".
8836 * gdbthread.h: Include "common-gdbthread.h".
8837 (switch_to_thread): Moved to "common/common-gdbthread.h".
8838
8839 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8840
8841 * Makefile.in (SFILES): Add "common/job-control.c".
8842 (HFILES_NO_SRCDIR): Add "common/job-control.h".
8843 (COMMON_OBS): Add "job-control.o".
8844 * common/job-control.c: New file, with contents from
8845 "gdb/inflow.c".
8846 * common/job-control.h: New file, with contents from "terminal.h".
8847 * fork-child.c: Include "job-control.h".
8848 * inflow.c: Include "job-control.h".
8849 (gdb_setpgid): Move to "common/common-inflow.c".
8850 (_initialize_inflow): Move setting of "job_control" to
8851 "handle_job_control".
8852 * terminal.h (job_control): Moved to "common/common-terminal.h".
8853 (gdb_setpgid): Likewise.
8854 * top.c: Include "job_control.h".
8855 * utils.c: Likewise.
8856 (job_control): Moved to "job-control.c".
8857
8858 2017-06-07 Pedro Alves <palves@redhat.com>
8859
8860 * Makefile.in (SFILES): Add gdb_regex.c.
8861 (COMMON_OBS): Add gdb_regex.o.
8862 * ada-lang.c (ada_add_standard_exceptions)
8863 (ada_add_exceptions_from_frame, name_matches_regex)
8864 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
8865 parameter type to compiled_regex. Adjust.
8866 (ada_exceptions_list): Use compiled_regex.
8867 * break-catch-throw.c (exception_catchpoint::pattern): Now a
8868 std::unique_ptr<compiled_regex>.
8869 (exception_catchpoint::~exception_catchpoint): Remove regfree
8870 call.
8871 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8872 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8873 * breakpoint.c (solib_catchpoint::compiled): Now a
8874 std::unique_ptr<compiled_regex>.
8875 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8876 (check_status_catch_solib): Adjust to use compiled_regex.
8877 (add_solib_catchpoint): Adjust to use compiled_regex.
8878 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8879 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8880 compiled_regex reference. Adjust to use it.
8881 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8882 declaration. Include "gdb_regex.h".
8883 (apropos_cmd): Change regex parameter to compiled_regex reference.
8884 * gdb_regex.c: New file.
8885 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8886 declarations.
8887 (class compiled_regex): New.
8888 * linux-tdep.c: Include "common/gdb_optional.h".
8889 (struct mapping_regexes): New, factored out from
8890 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8891 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8892 gdb::optional and remove cleanups. Adjust to compiled_regex.
8893 * probe.c: Include "common/gdb_optional.h".
8894 (collect_probes): Use compiled_regex and gdb::optional and remove
8895 cleanups.
8896 * skip.c: Include "common/gdb_optional.h".
8897 (skiplist_entry::compiled_function_regexp): Now a
8898 gdb::optional<compiled_regex>.
8899 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8900 (free_skiplist_entry): Remove regfree call.
8901 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8902 compiled_regex and gdb::optional.
8903 * symtab.c: Include "common/gdb_optional.h".
8904 (search_symbols): Use compiled_regex and gdb::optional.
8905 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8906 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8907 to gdb_regex.c.
8908
8909 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8910
8911 * regcache.c (regcache::save): Avoid buffer use.
8912 (regcache::dump): Likewise.
8913
8914 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8915
8916 * sh-tdep.c (sh_pseudo_register_read): Remove
8917 MAX_REGISTER_SIZE.
8918 (sh_pseudo_register_write): Likewise.
8919 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8920 (sh64_pseudo_register_write): Likewise
8921
8922 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8923
8924 * aarch64-tdep.c (aarch64_store_return_value): Use
8925 V_REGISTER_SIZE.
8926 (aarch64_pseudo_read_value): Likewise.
8927 (aarch64_pseudo_write): Likewise.
8928
8929 2017-06-06 Yao Qi <yao.qi@linaro.org>
8930
8931 * regformats/regdef.h (set_register_cache): Remove the
8932 declaration.
8933
8934 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8935
8936 * frame.c (frame_unwind_register_signed): Use
8937 frame_unwind_register_value.
8938
8939 2017-06-06 Pedro Alves <palves@redhat.com>
8940
8941 PR breakpoints/21553
8942 * breakpoint.c (create_breakpoints_sal_default)
8943 (init_breakpoint_sal, create_breakpoint_sal): Use
8944 gdb::unique_xmalloc_ptr for string parameters.
8945 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8946 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8947 (base_breakpoint_create_breakpoints_sal)
8948 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8949 (strace_marker_create_breakpoints_sal)
8950 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8951 string parameters.
8952 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8953 gdb::unique_xmalloc_ptr for string parameters.
8954 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8955 parameters.
8956
8957 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8958
8959 * alpha-tdep.c (alpha_register_to_value): Use
8960 get_frame_register_value.
8961 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8962
8963 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8964
8965 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8966 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8967 (ia64_value_to_register): Likewise.
8968 (ia64_extract_return_value): Likewise.
8969 (ia64_store_return_value): Likewise.
8970 (ia64_push_dummy_call): Likewise.
8971
8972 2017-06-04 Joel Brobecker <brobecker@adacore.com>
8973
8974 GDB 8.0 released.
8975
8976 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8977
8978 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8979
8980 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8981
8982 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8983 parameter.
8984 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8985
8986 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8987
8988 * event-loop.c (poll_timers): Unallocate timer using delete
8989 instead of xfree.
8990
8991 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8992
8993 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8994 (struct breakpoint) <~breakpoint>: New.
8995 (struct watchpoint): Inherit from breakpoint.
8996 <~watchpoint>: New.
8997 <base>: Remove.
8998 (struct tracepoint): Inherit from breakpoint.
8999 <base>: Remove.
9000 * breakpoint.c (longjmp_breakpoint_ops): Remove.
9001 (struct longjmp_breakpoint): Inherit from breakpoint.
9002 <~longjmp_breakpoint>: New.
9003 <base>: Remove.
9004 (new_breakpoint_from_type): Remove casts.
9005 (watchpoint_in_thread_scope): Remove reference to base field.
9006 (watchpoint_del_at_next_stop): Likewise.
9007 (update_watchpoint): Likewise.
9008 (watchpoint_check): Likewise.
9009 (bpstat_check_watchpoint): Likewise.
9010 (set_longjmp_breakpoint): Likewise.
9011 (struct fork_catchpoint): Inherit from breakpoint.
9012 <base>: Remove.
9013 (struct solib_catchpoint): Inherit from breakpoint.
9014 <~solib_catchpoint>: New.
9015 <base>: Remove.
9016 (dtor_catch_solib): Change to ...
9017 (solib_catchpoint::~solib_catchpoint): ... this.
9018 (breakpoint_hit_catch_solib): Remove reference to base field.
9019 (add_solib_catchpoint): Likewise.
9020 (create_fork_vfork_event_catchpoint): Likewise.
9021 (struct exec_catchpoint): Inherit from breakpoint.
9022 <~exec_catchpoint>: New.
9023 <base>: Remove.
9024 (dtor_catch_exec): Change to ...
9025 (exec_catchpoint::~exec_catchpoint): ... this.
9026 (dtor_watchpoint): Change to ...
9027 (watchpoint::~watchpoint): ... this.
9028 (watch_command_1): Remove reference to base field.
9029 (catch_exec_command_1): Likewise.
9030 (base_breakpoint_dtor): Change to ...
9031 (breakpoint::~breakpoint): ... this.
9032 (base_breakpoint_ops): Remove dtor field value.
9033 (longjmp_bkpt_dtor): Change to ...
9034 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
9035 (strace_marker_create_breakpoints_sal): Remove reference to base
9036 field.
9037 (delete_breakpoint): Don't manually call breakpoint destructor.
9038 (create_tracepoint_from_upload): Remove reference to base field.
9039 (trace_pass_set_count): Likewise.
9040 (initialize_breakpoint_ops): Don't initialize
9041 momentary_breakpoint_ops, don't set dtors.
9042 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
9043 <~ada_catchpoint>: New.
9044 <base>: Remove.
9045 (create_excep_cond_exprs): Remove reference to base field.
9046 (dtor_exception): Change to ...
9047 (ada_catchpoint::~ada_catchpoint): ... this.
9048 (dtor_catch_exception): Remove.
9049 (dtor_catch_exception_unhandled): Remove.
9050 (dtor_catch_assert): Remove.
9051 (create_ada_exception_catchpoint): Remove reference to base
9052 field.
9053 (initialize_ada_catchpoint_ops): Don't set dtors.
9054 * break-catch-sig.c (struct signal_catchpoint): Inherit from
9055 breakpoint.
9056 <~signal_catchpoint>: New.
9057 <base>: Remove.
9058 (signal_catchpoint_dtor): Change to ...
9059 (signal_catchpoint::~signal_catchpoint): ... this.
9060 (create_signal_catchpoint): Remove reference to base field.
9061 (initialize_signal_catchpoint_ops): Don't set dtor.
9062 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
9063 from breakpoint.
9064 <~syscall_catchpoint>: New.
9065 <base>: Remove.
9066 (dtor_catch_syscall): Change to ...
9067 (syscall_catchpoint::~syscall_catchpoint): ... this.
9068 (create_syscall_event_catchpoint): Remove reference to base
9069 field.
9070 (initialize_syscall_catchpoint_ops): Don't set dtor.
9071 * break-catch-throw.c (struct exception_catchpoint): Inherit
9072 from breakpoint.
9073 <~exception_catchpoint>: New.
9074 <base>: Remove.
9075 (dtor_exception_catchpoint): Change to ...
9076 (exception_catchpoint::~exception_catchpoint): ... this.
9077 (handle_gnu_v3_exceptions): Remove reference to base field.
9078 (initialize_throw_catchpoint_ops): Don't set dtor.
9079 * ctf.c (ctf_get_traceframe_address): Remove reference to base
9080 field.
9081 * remote.c (remote_get_tracepoint_status): Likewise.
9082 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
9083 * tracefile.c (tracefile_fetch_registers): Likewise.
9084 * tracepoint.c (actions_command): Likewise.
9085 (validate_actionline): Likewise.
9086 (tfind_1): Likewise.
9087 (get_traceframe_location): Likewise.
9088 (find_matching_tracepoint_location): Likewise.
9089 (parse_tracepoint_status): Likewise.
9090 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
9091
9092 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9093
9094 * breakpoint.c (struct longjmp_breakpoint): New struct.
9095 (is_tracepoint_type): Change return type to bool.
9096 (is_longjmp_type): New function.
9097 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
9098 (set_raw_breakpoint_without_location): Use
9099 new_breakpoint_from_type.
9100 (set_raw_breakpoint): Likewise.
9101
9102 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
9103
9104 * breakpoint.c (new_breakpoint_from_type): New function.
9105 (create_breakpoint_sal): Use new_breakpoint_from_type and
9106 unique_ptr.
9107 (create_breakpoint): Likewise.
9108
9109 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
9110
9111 * memattr.c (mem_info_command): Rename to ...
9112 (info_mem_command): ... this.
9113 (mem_enable_command): Rename to ...
9114 (enable_mem_command): ... this.
9115 (mem_disable_command): Rename to ...
9116 (disable_mem_command): ... this.
9117 (mem_delete_command): Rename to ...
9118 (delete_mem_command): ... this.
9119 (_initialize_mem): Adjust function names.
9120
9121 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
9122
9123 * btrace.c (handle_pt_insn_events): New.
9124 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
9125 STATUS. Split into this and ...
9126 (handle_pt_insn_event_flags): ... this.
9127
9128 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
9129
9130 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
9131 and struct pt_insn.resynced.
9132 * configure: Regenerated.
9133 * config.in: Regenerated.
9134
9135 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9136
9137 * btrace.c (ftrace_find_call_by_number): New function.
9138 (ftrace_new_function): Store objects, not pointers.
9139 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
9140 ftrace_new_gap, ftrace_update_function,
9141 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
9142 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
9143 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
9144 btrace_ends_with_single_insn, btrace_call_get): Account for
9145 btrace_thread_info::functions now storing objects.
9146 * btrace.h (struct btrace_thread_info): Add constructor.
9147 (struct btrace_thread_info) <functions>: Make std::vector.
9148 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
9149 Initialize with default values.
9150 * record-btrace.c (record_btrace_frame_sniffer): Account for
9151 btrace_thread_info::functions now storing objects.
9152
9153 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9154
9155 * btrace.c: Remove typedef bfun_s.
9156 (ftrace_new_gap): Directly add gaps to the list of gaps.
9157 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
9158 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
9159 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
9160 instead of gdb VEC.
9161
9162 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9163
9164 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
9165 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
9166 with btrace_thread_info::next_segment and
9167 btrace_thread_info::prev_segment.
9168 * btrace.h: Remove struct btrace_func_link.
9169 (struct btrace_function): Replace pair of function segment pointers
9170 with pair of indices.
9171 * python/py-record-btrace.c (btpy_call_prev_sibling,
9172 btpy_call_next_sibling): Replace references to
9173 btrace_thread_info::segment with btrace_thread_info::next_segment and
9174 btrace_thread_info::prev_segment.
9175 * record-btrace.c (record_btrace_frame_this_id): Use
9176 btrace_find_call_by_number.
9177
9178 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9179
9180 * btrace.c (ftrace_new_function, ftrace_fixup_level,
9181 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
9182 btrace_insn_next, btrace_insn_prev): Remove references to
9183 btrace_thread_info::flow.
9184 * btrace.h (struct btrace_function): Remove FLOW.
9185
9186 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9187
9188 * btrace.c (ftrace_find_call_by_number): New function.
9189 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
9190 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
9191 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
9192 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
9193 index.
9194 * btrace.h (struct btrace_function): Turn UP into an index.
9195 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
9196 as an index.
9197 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
9198 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
9199 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
9200
9201 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9202
9203 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9204 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9205 ftrace_update_function, ftrace_compute_global_level_offset,
9206 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
9207 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
9208 btrace_insn_end, btrace_is_empty): Remove references to
9209 btrace_thread_info::begin and btrace_thread_info::end.
9210 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
9211 (struct btrace_thread_info) <functions>: Adjust comment.
9212 * record-btrace.c (record_btrace_start_replaying): Remove reference to
9213 btrace_thread_info::begin.
9214
9215 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9216
9217 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9218 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9219 ftrace_update_function): Remove arguments that implicitly were always
9220 BTINFO->END.
9221 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
9222 Don't pass BTINFO->END.
9223
9224 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9225
9226 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
9227 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
9228 btrace_find_insn_by_number): Replace function segment pointer with
9229 index.
9230 (btrace_insn_cmp): Simplify.
9231 * btrace.h: (struct btrace_insn_iterator) Rename index to
9232 insn_index. Replace function segment pointer with index into function
9233 segment vector.
9234 * record-btrace.c (record_btrace_call_history): Replace function
9235 segment pointer use with index.
9236 (record_btrace_frame_sniffer): Retrieve function call segment through
9237 vector.
9238 (record_btrace_set_replay): Remove defunc't safety check.
9239
9240 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9241
9242 * btrace.c (btrace_ends_with_single_insn): New function.
9243 (btrace_call_get, btrace_call_number, btrace_call_begin,
9244 btrace_call_end, btrace_call_next, btrace_call_prev,
9245 btrace_find_call_by_number): Use index into call segment vector
9246 instead of pointer.
9247 (btrace_call_cmp): Simplify.
9248 * btrace.h (struct btrace_call_iterator): Replace function call segment
9249 pointer with index into vector.
9250 * record-btrace.c (record_btrace_call_history): Use index instead of
9251 pointer.
9252
9253 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9254
9255 * btrace.c (btrace_insn_begin, btrace_insn_end,
9256 btrace_find_insn_by_number): Add btinfo to iterator.
9257 * btrace.h (struct btrace_insn_iterator): Add btinfo.
9258
9259 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9260
9261 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
9262 and save pointers directly.
9263 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
9264 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
9265 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
9266 changed signature of functions.
9267 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
9268 (btrace_fetch): Remove code that adds btrace_function pointers to
9269 vector of btrace_functions.
9270 (btrace_clear): Simplify freeing vector of btrace_functions.
9271
9272 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9273
9274 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
9275 Replace VEC_* with std::vector functions.
9276 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
9277 (struct btrace_thread_info)<functions>: Change type to std::vector.
9278
9279 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
9280
9281 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
9282 "Removed targets and native configurations" up. Merge duplicate
9283 "New commands" sub-sections. Add "New options" sub-sections.
9284
9285 2017-05-26 Alan Hayward <alan.hayward@arm.com>
9286
9287 * defs.h (copy_integer_to_size): New declaration.
9288 * findvar.c (copy_integer_to_size): New function.
9289 (do_cint_test): New selftest function.
9290 (copy_integer_to_size_test): Likewise.
9291 (_initialize_findvar): Likewise.
9292 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
9293 (mips_fbsd_collect_reg): Use raw_collect_integer.
9294 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
9295 (mips64_fill_gregset): Use raw_collect_integer
9296 (mips64_fill_fpregset): Use raw_supply_integer.
9297 * regcache.c (regcache::raw_supply_integer): New function.
9298 (regcache::raw_collect_integer): Likewise.
9299 * regcache.h: (regcache::raw_supply_integer): New declaration.
9300 (regcache::raw_collect_integer): Likewise.
9301
9302 2017-05-24 Yao Qi <yao.qi@linaro.org>
9303
9304 * Makefile.in (SFILES): Add gdbarch-selftests.c.
9305 (COMMON_OBS): Add gdbarch-selftests.o.
9306 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
9307 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
9308 * gdbarch-selftests.c: New file.
9309 * regcache.h (regcache) <~regcache>: Mark it virtual if
9310 GDB_SELF_TEST.
9311 <raw_write>: Likewise.
9312
9313 2017-05-24 Yao Qi <yao.qi@linaro.org>
9314
9315 * regcache.c (current_regcache): Change it to
9316 regcache::current_regcache.
9317 (regcache_observer_target_changed): Update.
9318 (regcache_thread_ptid_changed): Make it a regcache static
9319 method.
9320 (regcache_thread_ptid_changed): Update.
9321 (class regcache_access): New.
9322 (current_regcache_test): Update.
9323 (_initialize_regcache): Update.
9324 * regcache.h: Include forward_list.
9325 (regcache): Declare regcache_thread_ptid_changed and declare
9326 registers_changed_ptid as friend.
9327
9328 2017-05-24 Yao Qi <yao.qi@linaro.org>
9329
9330 * i387-tdep.c (i387_register_to_value): Use register_size
9331 instead of TYPE_LENGTH.
9332 * m68k-tdep.c (m68k_register_to_value): Likewise.
9333
9334 2017-05-24 Yao Qi <yao.qi@linaro.org>
9335
9336 * i387-tdep.c (i387_convert_register_p): Return false if type
9337 code isn't TYPE_CODE_FLT.
9338
9339 2017-05-24 Yao Qi <yao.qi@linaro.org>
9340
9341 * alpha-tdep.c (alpha_convert_register_p): Return true if type
9342 length is 4.
9343 (alpha_register_to_value): Remove type length check.
9344 (alpha_value_to_register): Likewise.
9345
9346 2017-05-24 Yao Qi <yao.qi@linaro.org>
9347
9348 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
9349 TYPE_CODE_FLT.
9350
9351 2017-05-24 Yao Qi <yao.qi@linaro.org>
9352
9353 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
9354 TYPE_CODE_FLT or not.
9355
9356 2017-05-24 Yao Qi <yao.qi@linaro.org>
9357
9358 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
9359 * avr-tdep.c (avr_gdbarch_init): Likewise.
9360 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9361 * cris-tdep.c (cris_gdbarch_init): Likewise.
9362 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
9363 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9364 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9365 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9366 * mep-tdep.c (mep_gdbarch_init): Likewise.
9367 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9368 * mips-tdep.c (mips_gdbarch_init): Likewise.
9369 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9370 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9371 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
9372 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9373 * v850-tdep.c (v850_gdbarch_init): Likewise.
9374
9375 2017-05-24 Yao Qi <yao.qi@linaro.org>
9376
9377 * selftest-arch.c (tests_with_arch): Call registers_changed
9378 and reinit_frame_cache.
9379 * selftest.c (run_self_tests): Likewise.
9380
9381 2017-05-24 Yao Qi <yao.qi@linaro.org>
9382
9383 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
9384 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
9385
9386 2017-05-24 Yao Qi <yao.qi@linaro.org>
9387
9388 * rl78-tdep.c (rl78_gdbarch_init): Don't call
9389 set_gdbarch_print_insn.
9390
9391 2017-05-24 Yao Qi <yao.qi@linaro.org>
9392
9393 * h8300-tdep.c (h8300_gdbarch_init): Don't call
9394 set_gdbarch_print_insn.
9395
9396 2017-05-24 Yao Qi <yao.qi@linaro.org>
9397
9398 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9399 set_gdbarch_print_insn.
9400 * arc-tdep.c (arc_gdbarch_init): Likewise.
9401 * arch-utils.c: include dis-asm.h.
9402 (default_print_insn): New function.
9403 * arch-utils.h (default_print_insn): Declare.
9404 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
9405 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9406 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
9407 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
9408 * frv-tdep.c (frv_gdbarch_init): Likewise.
9409 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
9410 * gdbarch.sh (print_insn): Use default_print_insn.
9411 * gdbarch.c: Regenerated.
9412 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9413 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
9414 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9415 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
9416 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9417 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
9418 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
9419 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9420 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
9421 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9422 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9423 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9424 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
9425 * mt-tdep.c (mt_gdbarch_init): Likewise.
9426 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9427 * nios2-tdep.c (nios2_print_insn): Remove.
9428 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
9429 * rx-tdep.c (rx_gdbarch_init): Likewise.
9430 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9431 * score-tdep.c (score_print_insn): Remove.
9432 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
9433 * sh-tdep.c (sh_gdbarch_init): Likewise.
9434 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9435 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9436 * tic6x-tdep.c (tic6x_print_insn): Remove.
9437 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
9438 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
9439 * v850-tdep.c (v850_gdbarch_init): Likewise.
9440 * vax-tdep.c (vax_gdbarch_init): Likewise.
9441 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9442 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
9443
9444 2017-05-23 John Baldwin <jhb@FreeBSD.org>
9445
9446 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
9447 (MIPS_FP0_REGNUM): Remove.
9448 (MIPS_FSR_REGNUM): Remove.
9449 (mips_fbsd_supply_fpregs): Use mips_regnum.
9450 (mips_fbsd_supply_gregs): Likewise.
9451 (mips_fbsd_collect_fpregs): Likewise.
9452 (mips_fbsd_collect_gregs): Likewise.
9453
9454 2017-05-23 John Baldwin <jhb@FreeBSD.org>
9455
9456 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
9457 (getpfpregs_supplies): New function.
9458 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
9459 getfpregs_supplies.
9460 (mips_fbsd_store_inferior_registers): Likewise.
9461
9462 2017-05-22 Pedro Alves <palves@redhat.com>
9463
9464 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
9465 maintainer.
9466
9467 2017-05-22 Alan Hayward <alan.hayward@arm.com>
9468
9469 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
9470 (store_register): Likewise.
9471 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
9472 (get_decimal_float_return_value): Likewise.
9473 (do_ppc_sysv_return_value): Likewise.
9474 (ppc64_sysv_abi_push_integer): Likewise.
9475 (ppc64_sysv_abi_push_freg): Likewise.
9476 (ppc64_sysv_abi_return_value_base): Likewise.
9477 (ppc64_sysv_abi_return_value): Likewise.
9478 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
9479 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
9480 * rs6000-nat.c: Likewise.
9481 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
9482 (rs6000_value_to_register): Likewise.
9483 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
9484
9485 2017-05-21 Tom Tromey <tom@tromey.com>
9486
9487 PR rust/21466:
9488 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
9489 arrays as "[T]", not "[T; ]".
9490
9491 2017-05-19 Tom Tromey <tom@tromey.com>
9492
9493 PR rust/21484:
9494 * rust-lang.c (exp_descriptor_rust): New function.
9495 (rust_language_defn): Use it.
9496 * p-lang.c (pascal_language_defn): Update.
9497 * opencl-lang.c (opencl_language_defn): Update.
9498 * objc-lang.c (objc_language_defn): Update.
9499 * m2-lang.c (m2_language_defn): Update.
9500 * language.h (struct language_defn)
9501 <la_watch_location_expression>: New member.
9502 * language.c (unknown_language_defn, auto_language_defn)
9503 (local_language_defn): Update.
9504 * go-lang.c (go_language_defn): Update.
9505 * f-lang.c (f_language_defn): Update.
9506 * d-lang.c (d_language_defn): Update.
9507 * c-lang.h (c_watch_location_expression): Declare.
9508 * c-lang.c (c_watch_location_expression): New function.
9509 (c_language_defn, cplus_language_defn, asm_language_defn)
9510 (minimal_language_defn): Use it.
9511 * breakpoint.c (watch_command_1): Call
9512 la_watch_location_expression.
9513 * ada-lang.c (ada_language_defn): Update.
9514
9515 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9516
9517 PR tui/21482
9518 * gdb_curses.h (NOMACROS): Define.
9519 (NCURSES_NOMACROS): Define.
9520
9521 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9522
9523 PR tui/21482
9524 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
9525 arg to char *.
9526 * tui/tui-wingeneral.c (box_win): Likewise.
9527 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
9528 (tui_show_source_line): Likewise.
9529 (tui_show_exec_info_content): Likewise.
9530
9531 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
9532
9533 * sparc-tdep.c (sparc_structure_return_p)
9534 (sparc_arg_on_registers_p): New functions.
9535 (sparc32_store_arguments): Use them.
9536 * sparc64-tdep.c (sparc64_16_byte_align_p)
9537 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
9538 Handle TYPE_CODE_ARRAY.
9539
9540 2017-05-17 Yao Qi <yao.qi@linaro.org>
9541
9542 * cli/cli-decode.c (add_alias_cmd): New function.
9543 * command.h (add_alias_cmd): Declare.
9544 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
9545 instead call add_alias_cmd.
9546
9547 2017-05-17 Pedro Alves <palves@redhat.com>
9548
9549 * Makefile.in (nat_extra_makefile_frag): Rename to ...
9550 (nat_makefile_frag): ... this. All references updated.
9551 * configure.ac: Likewise.
9552 * configure.nat: Likewise. Enhance comments.
9553 * configure: Regenerate.
9554
9555 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9556
9557 * procfs.c (procfs_create_inferior): Change prototype to match
9558 definition.
9559
9560 2017-05-13 Eli Zaretskii <eliz@gnu.org>
9561
9562 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
9563 C++ compiler warning.
9564
9565 2017-05-12 Tom Tromey <tom@tromey.com>
9566
9567 PR rust/21483:
9568 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
9569 recurse, just call value_struct_elt directly.
9570
9571 2017-05-12 Tom Tromey <tom@tromey.com>
9572
9573 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
9574 OP_RUST_ARRAY>: Fix.
9575
9576 2017-05-12 Tom Tromey <tom@tromey.com>
9577
9578 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
9579
9580 2017-05-09 Yao Qi <yao.qi@linaro.org>
9581
9582 * regcache.c: Include <forward_list>.
9583 (struct regcache_list): Remove.
9584 (current_regcache): Update.
9585 (get_thread_arch_aspace_regcache): Update for std::forward_list.
9586 (regcache_thread_ptid_changed): Likewise.
9587 (registers_changed_ptid): Likewise.
9588 (current_regcache_size): Likewise.
9589
9590 2017-05-09 Yao Qi <yao.qi@linaro.org>
9591
9592 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
9593 (current_regcache_size): New function.
9594 (current_regcache_test): New function.
9595 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
9596
9597 2017-05-08 Alan Hayward <alan.hayward@arm.com>
9598
9599 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
9600 (print_gp_register_row): Use get_frame_register_value.
9601
9602 2017-05-08 Alan Hayward <alan.hayward@arm.com>
9603
9604 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
9605 (mips_supply_fpregset): Likewise.
9606 (mips64_supply_gregset): Likewise.
9607
9608 2017-05-08 Alan Hayward <alan.hayward@arm.com>
9609
9610 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
9611 regcache->raw_supply_zeroed.
9612
9613 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9614
9615 * configure.nat: Rearrange 'case' statements to match
9616 host before cpu.
9617
9618 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9619
9620 * Makefile.in: Remove "@host_makefile_frag@". Add variables
9621 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
9622 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
9623 "@nat_extra_makefile_frag@".
9624 (Makefile): Remove dependency on "@frags@".
9625 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
9626 (data-directory/Makefile): Likewise.
9627 * config/aarch64/linux.mh: Deleted; moved contents to
9628 "gdb/configure.nat".
9629 * config/alpha/alpha-linux.mh: Likewise.
9630 * config/alpha/nbsd.mh: Likewise.
9631 * config/arm/linux.mh: Likewise.
9632 * config/arm/nbsdelf.mh: Likewise.
9633 * config/i386/cygwin.mh: Likewise.
9634 * config/i386/cygwin64.mh: Likewise.
9635 * config/i386/darwin.mh: Likewise.
9636 * config/i386/fbsd.mh: Likewise.
9637 * config/i386/fbsd64.mh: Likewise.
9638 * config/i386/go32.mh: Likewise.
9639 * config/i386/i386gnu.mh: Likewise.
9640 * config/i386/i386sol2.mh: Likewise.
9641 * config/i386/linux.mh: Likewise.
9642 * config/i386/linux64.mh: Likewise.
9643 * config/i386/mingw.mh: Likewise.
9644 * config/i386/mingw64.mh: Likewise.
9645 * config/i386/nbsd64.mh: Likewise.
9646 * config/i386/nbsdelf.mh: Likewise.
9647 * config/i386/nto.mh: Likewise.
9648 * config/i386/obsd.mh: Likewise.
9649 * config/i386/obsd64.mh: Likewise.
9650 * config/i386/sol2-64.mh: Likewise.
9651 * config/ia64/linux.mh: Likewise.
9652 * config/m32r/linux.mh: Likewise.
9653 * config/m68k/linux.mh: Likewise.
9654 * config/m68k/nbsdelf.mh: Likewise.
9655 * config/m68k/obsd.mh: Likewise.
9656 * config/m88k/obsd.mh: Likewise.
9657 * config/mips/fbsd.mh: Likewise.
9658 * config/mips/linux.mh: Likewise.
9659 * config/mips/nbsd.mh: Likewise.
9660 * config/mips/obsd64.mh: Likewise.
9661 * config/pa/linux.mh: Likewise.
9662 * config/pa/nbsd.mh: Likewise.
9663 * config/pa/obsd.mh: Likewise.
9664 * config/powerpc/aix.mh: Likewise.
9665 * config/powerpc/fbsd.mh: Likewise.
9666 * config/powerpc/linux.mh: Likewise.
9667 * config/powerpc/nbsd.mh: Likewise.
9668 * config/powerpc/obsd.mh: Likewise.
9669 * config/powerpc/ppc64-linux.mh: Likewise.
9670 * config/powerpc/spu-linux.mh: Likewise.
9671 * config/s390/linux.mh: Likewise.
9672 * config/sh/nbsd.mh: Likewise.
9673 * config/sparc/fbsd.mh: Likewise.
9674 * config/sparc/linux.mh: Likewise.
9675 * config/sparc/linux64.mh: Likewise.
9676 * config/sparc/nbsd64.mh: Likewise.
9677 * config/sparc/nbsdelf.mh: Likewise.
9678 * config/sparc/obsd64.mh: Likewise.
9679 * config/sparc/sol2.mh: Likewise.
9680 * config/tilegx/linux.mh: Likewise.
9681 * config/vax/nbsdelf.mh: Likewise.
9682 * config/vax/obsd.mh: Likewise.
9683 * config/xtensa/linux.mh: Likewise.
9684 * config/i386/i386gnu.mn: New file, with excerpts from
9685 "config/i386/i386gnu.mh".
9686 * configure: Regenerate.
9687 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
9688 *.mh files under "gdb/config".
9689 * configure.nat: New file, with contents from the
9690 "gdb/config/*/*.mh" files.
9691
9692 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
9693
9694 * btrace.c (btrace_clear): Free insn vector.
9695
9696 2017-05-05 Pedro Alves <palves@redhat.com>
9697
9698 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
9699 * configure: Regenerate.
9700
9701 2017-05-04 Pedro Alves <palves@redhat.com>
9702
9703 * Makefile.in (SFILES): Add progspace-and-thread.c.
9704 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
9705 (COMMON_OBS): Add progspace-and-thread.o.
9706 * breakpoint.c: Include "progspace-and-thread.h".
9707 (update_inserted_breakpoint_locations)
9708 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
9709 Use scoped_restore_current_pspace_and_thread.
9710 (create_std_terminate_master_breakpoint): Use
9711 scoped_restore_current_program_space.
9712 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
9713 (print_breakpoint_location): Use
9714 scoped_restore_current_program_space.
9715 (bp_loc_is_permanent): Use
9716 scoped_restore_current_pspace_and_thread.
9717 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
9718 (download_tracepoint_locations): Use
9719 scoped_restore_current_pspace_and_thread.
9720 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
9721 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
9722 (enum step_over_calls_kind): Moved from inferior.h.
9723 (class scoped_restore_current_thread): New class.
9724 * gdbthread.h (make_cleanup_restore_current_thread): Delete
9725 declaration.
9726 (scoped_restore_current_thread): New class.
9727 * infcmd.c: Include "common/gdb_optional.h".
9728 (continue_1, proceed_after_attach): Use
9729 scoped_restore_current_thread.
9730 (notice_new_inferior): Use scoped_restore_current_thread.
9731 * inferior.c: Include "progspace-and-thread.h".
9732 (restore_inferior, save_current_inferior): Delete.
9733 (add_inferior_command, clone_inferior_command): Use
9734 scoped_restore_current_pspace_and_thread.
9735 * inferior.h (scoped_restore_current_inferior): New class.
9736 * infrun.c: Include "progspace-and-thread.h" and
9737 "common/gdb_optional.h".
9738 (follow_fork_inferior): Use
9739 scoped_restore_current_pspace_and_thread.
9740 (scoped_restore_exited_inferior): New class.
9741 (handle_vfork_child_exec_or_exit): Use
9742 scoped_restore_exited_inferior,
9743 scoped_restore_current_pspace_and_thread,
9744 scoped_restore_current_thread and scoped_restore.
9745 (fetch_inferior_event): Use scoped_restore_current_thread.
9746 * linespec.c (decode_line_full, decode_line_1): Use
9747 scoped_restore_current_program_space.
9748 * mi/mi-main.c: Include "progspace-and-thread.h".
9749 (exec_continue): Use scoped_restore_current_thread.
9750 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
9751 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
9752 * proc-service.c (ps_pglobal_lookup): Use
9753 scoped_restore_current_program_space.
9754 * progspace-and-thread.c: New file.
9755 * progspace-and-thread.h: New file.
9756 * progspace.c (release_program_space, clone_program_space): Use
9757 scoped_restore_current_program_space.
9758 (restore_program_space, save_current_program_space)
9759 (save_current_space_and_thread): Delete.
9760 (switch_to_program_space_and_thread): Moved to
9761 progspace-and-thread.c.
9762 * progspace.h (save_current_program_space)
9763 (save_current_space_and_thread): Delete declarations.
9764 (scoped_restore_current_program_space): New class.
9765 * remote.c (remote_btrace_maybe_reopen): Use
9766 scoped_restore_current_thread.
9767 * symtab.c: Include "progspace-and-thread.h".
9768 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
9769 * thread.c (print_thread_info_1): Use
9770 scoped_restore_current_thread.
9771 (struct current_thread_cleanup): Delete.
9772 (do_restore_current_thread_cleanup)
9773 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
9774 (scoped_restore_current_thread::~scoped_restore_current_thread):
9775 ... this new dtor.
9776 (make_cleanup_restore_current_thread): Rename/convert to ...
9777 (scoped_restore_current_thread::scoped_restore_current_thread):
9778 ... this new ctor.
9779 (thread_apply_all_command): Use scoped_restore_current_thread.
9780 (thread_apply_command): Use scoped_restore_current_thread.
9781 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
9782 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
9783
9784 2017-05-04 Pedro Alves <palves@redhat.com>
9785
9786 * thread.c (make_cleanup_restore_current_thread): Move
9787 find_thread_ptid call before the is_stopped call. Assert that the
9788 thread is found. Replace is_stopped call by checking the thread's
9789 state directly. Remove unnecessary NULL-thread check.
9790
9791 2017-05-04 Pedro Alves <palves@redhat.com>
9792
9793 * corelow.c (thread_section_name): New class.
9794 (get_core_register_section, get_core_siginfo): Use it.
9795
9796 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9797
9798 * corelow.c (sniff_core_bfd): Remove extra semicolon.
9799 (get_core_register_section): Remove xfree of NULL pointer.
9800
9801 2017-05-03 Alan Hayward <alan.hayward@arm.com>
9802
9803 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
9804 * regcache.c (regcache::raw_supply_zeroed): New function.
9805 * regcache.h (regcache::raw_supply_zeroed): New declaration.
9806
9807 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
9808
9809 * gdbarch.sh: Remove commented out definition of
9810 TARGET_CHAR_BIT.
9811 * gdbarch.h: Re-generate.
9812
9813 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
9814
9815 * configure: Regenerate.
9816
9817 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
9818
9819 * solib-target.c (solib_target_relocate_section_addresses):
9820 Remove num_section_bases, num_bases, segment_bases variables.
9821
9822 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9823
9824 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
9825
9826 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9827
9828 * solib-target.c: Include <vector>
9829 (struct lm_info_target) <~lm_info_target>: Remove.
9830 <segment_bases, section_bases>: Change type to
9831 std::vector<CORE_ADDR>.
9832 (library_list_start_segment, library_list_start_section,
9833 library_list_end_library,
9834 solib_target_relocate_section_addresses): Adjust.
9835
9836 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9837
9838 * gdbarch.sh (software_single_step): Change return type to
9839 std::vector<CORE_ADDR>.
9840 * gdbarch.c, gdbarch.h: Re-generate.
9841 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9842 Adjust.
9843 (arm_deal_with_atomic_sequence_raw): Adjust.
9844 (thumb_get_next_pcs_raw): Adjust.
9845 (arm_get_next_pcs_raw): Adjust.
9846 (arm_get_next_pcs): Adjust.
9847 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
9848 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
9849 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
9850 (alpha_software_single_step): Adjust.
9851 * alpha-tdep.h (alpha_software_single_step): Adjust.
9852 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
9853 * arm-tdep.c (arm_software_single_step): Adjust.
9854 (arm_breakpoint_kind_from_current_state): Adjust.
9855 * arm-tdep.h (arm_software_single_step): Adjust.
9856 * breakpoint.c (insert_single_step_breakpoint): Adjust.
9857 * cris-tdep.c (cris_software_single_step): Adjust.
9858 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
9859 (micromips_deal_with_atomic_sequence): Adjust.
9860 (deal_with_atomic_sequence): Adjust.
9861 (mips_software_single_step): Adjust.
9862 * mips-tdep.h (mips_software_single_step): Adjust.
9863 * moxie-tdep.c (moxie_software_single_step): Adjust.
9864 * nios2-tdep.c (nios2_software_single_step): Adjust.
9865 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
9866 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
9867 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
9868 * s390-linux-tdep.c (s390_software_single_step): Adjust.
9869 * sparc-tdep.c (sparc_software_single_step): Adjust.
9870 * spu-tdep.c (spu_software_single_step): Adjust.
9871 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9872
9873 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9874
9875 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9876 * gdbarch.h: Re-generate.
9877
9878 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9879
9880 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9881 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9882 * python/py-instruction.c, python/py-instruction.h: New file.
9883 * python/py-record.c: Add py-instruction.h include.
9884 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9885 gdb.RecordInstruction.
9886 * python/python-internal.h: Add gdbpy_initialize_instruction
9887 declaration.
9888 * python/python.c (do_start_initialization): Add
9889 gdbpy_initialize_instruction.
9890
9891 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9892
9893 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9894 Remove.
9895 (btrace_func_from_recpy_func): New function.
9896 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9897 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9898 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9899 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9900 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9901 Also, use new helper functions.
9902 (btpy_list_item): Use new helper functions.
9903 (recpy_bt_function_call_history): Use new type name.
9904 (btpy_call_getset): Remove.
9905 (gdbpy_initialize_btrace): Remove code to initialize
9906 gdb.BtraceFunctionCall.
9907 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9908 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9909 recpy_bt_func_prev, recpy_bt_func_next): New export.
9910 * python/py-record.c (recpy_func_type): New static object.
9911 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9912 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9913 recpy_func_next): New function.
9914 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9915 (recpy_func_getset): New static object.
9916 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9917 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9918
9919 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9920
9921 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9922 (btpy_object, btpy_insn_type, btpy_new): Remove.
9923 (btpy_list_object): Use gdb.RecordInstruction type instead of
9924 gdb.BtraceInstruction type.
9925 (btrace_insn_from_recpy_insn): New function.
9926 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9927 btpy_new.
9928 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9929 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9930 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9931 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9932 instead of btpy_object.
9933 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9934 btpy_insn_data, btpy_insn_decode): Rename to ...
9935 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9936 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9937 recpy_bt_insn_decode): This. Also, use new helper functions.
9938 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9939 recpy_insn_type.
9940 (btpy_insn_getset): Remove.
9941 (gdbpy_initialize_btrace): Remove code to initialize
9942 gdb.BtraceInstruction. Use recpy_element_object.
9943 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9944 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9945 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9946 * python/py-record.c (recpy_insn_type): New static object.
9947 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9948 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9949 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9950 New function.
9951 (recpy_insn_getset): New static object.
9952 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9953 * python/py-record.h (recpy_element_object): New typedef.
9954 (recpy_insn_type, recpy_insn_new): New export.
9955
9956 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9957
9958 * py-record-btrace.c (btpy_insn_new): Removed.
9959 (btpy_insn_or_gap_new): New function.
9960 (btpy_insn_error): Removed.
9961 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9962 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9963 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9964 btpy_insn_or_gap_new instead of btpy_insn_new.
9965 (btpy_insn_getset): Remove btpy_insn_error.
9966 * py-record.c (recpy_gap_type): New static object.
9967 (recpy_gap_object): New typedef.
9968 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9969 recpy_gap_reason_string): New function.
9970 (recpy_gap_getset): New static object.
9971 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9972 * py-record.h (recpy_gap_new): New export.
9973
9974 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9975
9976 * python/py-record.c (recpy_ptid): Remove.
9977 (recpy_record_getset): Remove recpy_ptid.
9978
9979 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9980
9981 * btrace.c (btrace_fetch): Set inferior_ptid.
9982 * python/py-record-btrace.c: Add "py-record.h" include.
9983 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9984 recpy_bt_end, recpy_bt_instruction_history,
9985 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9986 in gdb.Record object instead of current ptid.
9987 * python/py-record.c: Include new "py-record.h" file.
9988 (recpy_record_object): Moved to py-record.h.
9989 * python/py-record.h: New file.
9990
9991 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9992
9993 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9994 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9995 indentation.
9996
9997 2017-05-01 Joel Brobecker <brobecker@adacore.com>
9998
9999 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
10000 the past maintainers section.
10001
10002 2017-04-28 Yao Qi <yao.qi@linaro.org>
10003
10004 * infcmd.c (get_return_value): Use regcache ctor, and remove
10005 cleanup.
10006
10007 2017-04-28 Yao Qi <yao.qi@linaro.org>
10008 Pedro Alves <palves@redhat.com>
10009
10010 * regcache.c (regcache::regcache): New tag dispatch ctor.
10011 (do_cooked_read): Moved above.
10012 (regcache_dup): Use the tag dispatch ctor..
10013 * regcache.h (regcache): Declare ctor, delete copy ctor and
10014 assignment operator, remove friend regcache_dup.
10015
10016 2017-04-28 Yao Qi <yao.qi@linaro.org>
10017
10018 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
10019 call method save instead of regcache_cpy.
10020 * regcache.h (struct regcache): Make regcache_dup a friend.
10021
10022 2017-04-28 Yao Qi <yao.qi@linaro.org>
10023
10024 * regcache.c (struct regcache): Move to regcache.h
10025 (regcache::arch): New method.
10026 (regcache_get_ptid): Update.
10027 (get_regcache_arch): Call arch method.
10028 (get_regcache_aspace): Call method aspace.
10029 (register_buffer): Change it to method.
10030 (regcache_save): Change it to regcache::save.
10031 (regcache_restore): Likewise.
10032 (regcache_cpy_no_passthrough): Remove the declaration.
10033 (regcache_cpy): Call methods restore and cpy_no_passthrough.
10034 (regcache_cpy_no_passthrough): Change it to method
10035 cpy_no_passthrough.
10036 (regcache_register_status): Change it to method
10037 get_register_status.
10038 (regcache_invalidate): Change it to method invalidate.
10039 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
10040 (regcache_raw_update): Change it to method raw_update.
10041 (regcache_raw_read): Likewise.
10042 (regcache_raw_read_signed): Likewise.
10043 (regcache_raw_read_unsigned): Likewise.
10044 (regcache_raw_write_signed): Likewise.
10045 (regcache_raw_write_unsigned): Likewise.
10046 (regcache_cooked_read): Likewise.
10047 (regcache_cooked_read_value): Likewise.
10048 (regcache_cooked_read_signed): Likewise.
10049 (regcache_cooked_read_unsigned): Likewise.
10050 (regcache_cooked_write_signed): Likewise.
10051 (regcache_cooked_write_unsigned): Likewise.
10052 (regcache_raw_set_cached_value): Likewise.
10053 (regcache_raw_write): Likewise.
10054 (regcache_cooked_write): Likewise.
10055 (regcache_xfer_part): Likewise.
10056 (regcache_raw_read_part): Likewise.
10057 (regcache_raw_write_part): Likewise.
10058 (regcache_cooked_read_part): Likewise.
10059 (regcache_cooked_write_part): Likewise.
10060 (regcache_raw_supply): Likewise.
10061 (regcache_raw_collect): Likewise.
10062 (regcache_transfer_regset): Likewise.
10063 (regcache_supply_regset): Likewise.
10064 (regcache_collect_regset): Likewise.
10065 (regcache_debug_print_register): Likewise.
10066 (enum regcache_dump_what): Move it to regcache.h.
10067 (regcache_dump): Change it to method dump.
10068 * regcache.h (enum regcache_dump_what): New.
10069 (class regcache): New.
10070 * target.c (target_fetch_registers): Call method
10071 debug_print_register.
10072 (target_store_registers): Likewise.
10073
10074 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10075
10076 * windows-nat.c (struct lm_info_windows): Initialize field.
10077 (windows_make_so): Allocate lm_info_windows with new.
10078 (windows_free_so): Free lm_info_windows with delete.
10079
10080 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10081
10082 * solib-darwin.c (struct lm_info_darwin): Initialize field.
10083 (darwin_current_sos): Allocate lm_info_darwin with new, remove
10084 cleanup.
10085 (darwin_free_so): Free lm_info_darwin with delete.
10086
10087 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10088
10089 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
10090 <l_addr_p>: Change type to bool.
10091 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
10092 (svr4_free_so): Free lm_info_svr4 with delete.
10093 (svr4_copy_library_list): Replace memcpy with call to copy
10094 constructor.
10095 (library_list_start_library, svr4_default_sos): Allocate
10096 lm_info_svr4 with new.
10097
10098 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10099
10100 * solib-target.c (struct lm_info_target): Add destructor,
10101 initialize fields.
10102 <name>: Change type to std::string.
10103 (library_list_start_library): Allocate lm_info_target with new.
10104 (solib_target_free_library_list): Free lm_info_target with
10105 delete.
10106 (solib_target_current_sos): Adapt to std::string.
10107 (solib_target_free_so): Free lm_info_target with delete.
10108
10109 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10110
10111 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
10112 fields.
10113 (frv_current_sos): Allocate lm_info_frv with new.
10114 (frv_relocate_main_executable): Free lm_info_frv with delete,
10115 allocate with new.
10116 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
10117
10118 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10119
10120 * solib-frv.c (struct lm_info_frv): Fix indentation.
10121
10122 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10123
10124 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
10125 map field.
10126 (dsbt_current_sos): Allocate lm_info_dsbt with new.
10127 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
10128 and allocate with new.
10129 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
10130
10131 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10132
10133 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
10134 <filename, member_name>: Change type to std::string.
10135 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
10136 (library_list_start_library): Allocate lm_info_aix with new.
10137 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
10138 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
10139 with copy constructor.
10140
10141 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10142
10143 * solist.h (struct lm_info): Remove.
10144 (struct lm_info_base): New class.
10145 (struct so_list) <lm_info>: Change type to lm_info_base *.
10146 * nto-tdep.c (struct lm_info): Remove.
10147 (lm_addr): Adjust.
10148 * solib-aix.c (struct lm_info): Rename to ...
10149 (struct lm_info_aix): ... this. Extend lm_info_base.
10150 (lm_info_p): Rename to ...
10151 (lm_info_aix_p): ... this, and adjust.
10152 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
10153 solib_aix_parse_libraries, library_list_start_library,
10154 solib_aix_free_library_list, solib_aix_parse_libraries,
10155 solib_aix_get_library_list,
10156 solib_aix_relocate_section_addresses, solib_aix_free_so,
10157 solib_aix_get_section_offsets,
10158 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
10159 Adjust.
10160 (struct solib_aix_inferior_data) <library_list>: Adjust.
10161 * solib-darwin.c (struct lm_info): Rename to ...
10162 (struct lm_info_darwin): ... this. Extend lm_info_base.
10163 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
10164 * solib-dsbt.c (struct lm_info): Rename to ...
10165 (struct lm_info_dsbt): ... this. Extend lm_info_base.
10166 (struct dsbt_info) <main_executable_lm_info): Adjust.
10167 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
10168 dsbt_relocate_section_addresses): Adjust.
10169 * solib-frv.c (struct lm_info): Rename to ...
10170 (struct lm_info_frv): ... this. Extend lm_info_base.
10171 (main_executable_lm_info): Adjust.
10172 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
10173 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
10174 find_canonical_descriptor_in_load_object,
10175 frv_fdpic_find_canonical_descriptor): Adjust.
10176 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
10177 to lm_info_svr4.
10178 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
10179 svr4_clear_so, svr4_copy_library_list,
10180 library_list_start_library, svr4_default_sos, svr4_read_so_list,
10181 svr4_current_sos, svr4_fetch_objfile_link_map,
10182 solist_update_incremental): Adjust.
10183 * solib-svr4.h (struct lm_info_svr4): Move here from
10184 solib-svr4.c.
10185 * solib-target.c (struct lm_info): Rename to ...
10186 (struct lm_info_target): ... this. Extend lm_info_base.
10187 (lm_info_p): Rename to ...
10188 (lm_info_target_p): ... this.
10189 (solib_target_parse_libraries, library_list_start_segment,
10190 library_list_start_section, library_list_start_library,
10191 library_list_end_library, solib_target_free_library_list,
10192 solib_target_current_sos, solib_target_free_so,
10193 solib_target_relocate_section_addresses): Adjust.
10194 * windows-nat.c (struct lm_info): Rename to ...
10195 (struct lm_info_windows): ... this. Extend lm_info_base.
10196 (windows_make_so, handle_load_dll, handle_unload_dll,
10197 windows_xfer_shared_libraries): Adjust.
10198
10199 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10200
10201 * solib-darwin.c (struct darwin_so_list): Remove.
10202 (darwin_current_sos): Allocate an so_list object instead of a
10203 darwin_so_list, separately allocate an lm_info object.
10204 (darwin_free_so): Free lm_info.
10205
10206 2017-04-28 John Baldwin <jhb@FreeBSD.org>
10207
10208 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
10209 with fprintf_filtered.
10210
10211 2017-04-28 Yao Qi <yao.qi@linaro.org>
10212
10213 * regcache.c (regcache::regcache): New function.
10214 (regcache::~regcache): New function.
10215 (regcache_xmalloc_1): Remove.
10216 (regcache_xmalloc): Call new regcache.
10217 (regcache_xfree): Call delete regcache.
10218 (get_thread_arch_aspace_regcache): Call new regcache.
10219
10220 2017-04-28 Yao Qi <yao.qi@linaro.org>
10221
10222 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
10223 lwp instead of ptid_get_lwp.
10224
10225 2017-04-28 Yao Qi <yao.qi@linaro.org>
10226
10227 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
10228 lwp_info instead of getting from inferior_ptid.
10229
10230 2017-04-27 Keith Seitz <keiths@redhat.com>
10231
10232 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
10233 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
10234 (CV_CONVERSION_BADNESS): Define.
10235 (rank_one_type): Remove overly restrictive rvalue reference
10236 rank checks.
10237 Add cv-qualifier checks and subranks for type equality.
10238 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
10239 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
10240 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
10241
10242 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
10243
10244 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
10245 count when creating the object.
10246
10247 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
10248 Ulrich Weigand <uweigand@de.ibm.com>
10249
10250 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
10251 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
10252 is used in AIX.
10253 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
10254 (process_xcoff_symbol): Likewise.
10255 (scan_xcoff_symtab): Likewise.
10256
10257 2017-04-26 Alan Hayward <alan.hayward@arm.com>
10258
10259 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
10260 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
10261 (ia64_access_reg): Use get_frame_register_unsigned.
10262 (ia64_access_rse_reg): Likewise.
10263 (ia64_libunwind_frame_prev_register): Likewise.
10264
10265 2017-04-26 Jiong Wang <jiong.wang@arm.com>
10266
10267 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
10268 * gdbarch.c: Regenerated.
10269 * gdbarch.h: Regenerated.
10270 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
10271 visibility external.
10272 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
10273 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
10274 (enum cfa_how_kind): Move to ...
10275 (struct dwarf2_frame_state_reg_info): Likewise.
10276 (struct dwarf2_frame_state): Likewise.
10277 * dwarf2-frame.h: ... here.
10278 (dwarf2_frame_state_alloc_regs): New declaration.
10279 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
10280 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
10281
10282 2017-04-26 Alan Hayward <alan.hayward@arm.com>
10283
10284 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
10285 regcache_raw_read_unsigned.
10286 (xtensa_pseudo_register_write): Likewise.
10287
10288 2017-04-26 Alan Hayward <alan.hayward@arm.com>
10289
10290 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
10291 (nds32_pseudo_register_write): Likewise.
10292
10293 2017-04-25 Yao Qi <yao.qi@linaro.org>
10294
10295 * regcache.c (struct regcache) <readonly_p>: Change its type
10296 to bool.
10297 (regcache_xmalloc_1): Update parameter type and callers update.
10298
10299 2017-04-25 Yao Qi <yao.qi@linaro.org>
10300
10301 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10302 set_gdbarch_wchar_bit.
10303 * arm-tdep.c (arm_gdbarch_init): Likewise.
10304
10305 2017-04-25 Pedro Alves <palves@redhat.com>
10306
10307 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
10308 (BothAreRelocatable, memcopy, memmove): Don't define.
10309 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
10310 macros.
10311
10312 2017-04-25 Pedro Alves <palves@redhat.com>
10313
10314 * common/common-defs.h: Include "common/poison.h".
10315 * common/function-view.h: (Not, Or, Requires): Move to traits.h
10316 and adjust.
10317 * common/poison.h: New file.
10318 * common/traits.h: Include <type_traits>.
10319 (Not, Or, Requires): New, moved from common/function-view.h.
10320
10321 2017-04-25 Pedro Alves <palves@redhat.com>
10322
10323 * breakpoint.h (struct breakpoint): In-class initialize all
10324 fields. Make boolean fields "bool".
10325 * breakpoint.c (init_raw_breakpoint_without_location): Remove
10326 memset call and initializations no longer necessary.
10327
10328 2017-04-25 Pedro Alves <palves@redhat.com>
10329
10330 * btrace.c (pt_btrace_insn_flags): Change parameter type to
10331 reference.
10332 (pt_btrace_insn): New function.
10333 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
10334
10335 2017-04-25 Pedro Alves <palves@redhat.com>
10336
10337 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
10338 "base" field and inherit from "bp_location" instead. Add
10339 non-default ctor.
10340 (allocate_location_exception): Use new non-default ctor.
10341 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
10342 (init_bp_location): Convert to ...
10343 (bp_location::bp_location): ... this new ctor, and remove memset
10344 call.
10345 (base_breakpoint_allocate_location): Use the new non-default ctor.
10346 * breakpoint.h (bp_location): Now a class. Declare default and
10347 non-default ctors. In-class initialize all members.
10348 (init_bp_location): Remove declaration.
10349
10350 2017-04-25 Pedro Alves <palves@redhat.com>
10351
10352 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
10353 assignment operator.
10354
10355 2017-04-24 Yao Qi <yao.qi@linaro.org>
10356
10357 * doublest.c (convert_doublest_to_floatformat): Call
10358 floatformat_totalsize_bytes.
10359
10360 2017-04-22 Tom Tromey <tom@tromey.com>
10361
10362 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
10363 ui_out_emit_list.
10364 * stack.c (print_frame): Use ui_out_emit_list.
10365 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
10366 ui_out_emit_list.
10367 * mi/mi-main.c (print_one_inferior)
10368 (mi_cmd_data_list_register_names)
10369 (mi_cmd_data_list_register_values, mi_cmd_list_features)
10370 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
10371 ui_out_emit_list.
10372 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
10373 (mi_output_solib_attribs): Use ui_out_emit_list,
10374 ui_out_emit_tuple.
10375 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
10376 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
10377 (mi_cmd_stack_list_args, list_args_or_locals): Use
10378 ui_out_emit_list.
10379 * disasm.c (do_assembly_only): Use ui_out_emit_list.
10380 * breakpoint.c (print_solib_event, output_thread_groups): Use
10381 ui_out_emit_list.
10382
10383 2017-04-22 Tom Tromey <tom@tromey.com>
10384
10385 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
10386 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
10387 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
10388
10389 2017-04-22 Tom Tromey <tom@tromey.com>
10390
10391 * tracepoint.c (tvariables_info_1)
10392 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
10393
10394 2017-04-22 Tom Tromey <tom@tromey.com>
10395
10396 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
10397 annotate_arg_emitter.
10398 * breakpoint.c (print_mention_watchpoint)
10399 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
10400 * annotate.h (struct annotate_arg_emitter): New.
10401
10402 2017-04-22 Tom Tromey <tom@tromey.com>
10403
10404 * record-btrace.c (record_btrace_insn_history)
10405 (record_btrace_insn_history_range, record_btrace_call_history)
10406 (record_btrace_call_history_range): Use ui_out_emit_tuple.
10407 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
10408 ui_out_emit_tuple.
10409 * stack.c (print_frame_info): Use ui_out_emit_tuple.
10410 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
10411 * skip.c (skip_info): Use ui_out_emit_tuple.
10412 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
10413 * progspace.c (print_program_space): Use ui_out_emit_tuple.
10414 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
10415 * osdata.c (info_osdata): Use ui_out_emit_tuple.
10416 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
10417 ui_out_emit_tuple.
10418 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
10419 (output_register, mi_cmd_data_read_memory)
10420 (mi_cmd_data_read_memory_bytes, mi_load_progress)
10421 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
10422 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
10423 Use ui_out_emit_tuple.
10424 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
10425 ui_out_emit_tuple.
10426 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
10427 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
10428 * linux-thread-db.c (info_auto_load_libthread_db): Use
10429 ui_out_emit_tuple.
10430 * inferior.c (print_inferior): Use ui_out_emit_tuple.
10431 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
10432 * disasm.c (do_mixed_source_and_assembly_deprecated)
10433 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
10434 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
10435 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
10436 * breakpoint.c (print_one_breakpoint_location)
10437 (print_one_breakpoint): Use ui_out_emit_tuple.
10438 * auto-load.c (print_script, info_auto_load_cmd): Use
10439 ui_out_emit_tuple.
10440 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
10441
10442 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
10443
10444 * thread.c (print_thread_info_1): Remove dead code.
10445
10446 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10447
10448 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
10449 GDB_SELF_TEST.
10450 * arm-tdep.c (selftests::arm_record_test): Likewise.
10451
10452 2017-04-21 Yao Qi <yao.qi@linaro.org>
10453
10454 * regcache.c (regcache_restore): Remove argument 2. Replace
10455 argument 3 with regcache. Get register status from
10456 src->register_status and get register contents from
10457 register_buffer (src, regnum).
10458 (regcache_cpy): Update.
10459
10460 2017-04-19 Pedro Alves <palves@redhat.com>
10461
10462 * gdbthread.h (thread): Add missing closing parenthesis in
10463 comment.
10464
10465 2017-04-19 Pedro Alves <palves@redhat.com>
10466
10467 * common/refcounted-object.h: New file.
10468 * gdbthread.h: Include "common/refcounted-object.h".
10469 (thread_info): Inherit from refcounted_object and add comments.
10470 (thread_info::incref, thread_info::decref)
10471 (thread_info::m_refcount): Delete.
10472 (thread_info::deletable): Use the refcounted_object::refcount()
10473 method.
10474 * inferior.c (current_inferior_): Add comment.
10475 (set_current_inferior): Increment/decrement refcounts.
10476 (prune_inferiors, remove_inferior_command): Skip inferiors marked
10477 not-deletable instead of comparing with the current inferior.
10478 (initialize_inferiors): Increment the initial inferior's refcount.
10479 * inferior.h (struct inferior): Forward declare.
10480 Include "common/refcounted-object.h".
10481 (current_inferior, set_current_inferior): Move declaration to
10482 before struct inferior's definition, and fix comment.
10483 (inferior): Inherit from refcounted_object. Add comments.
10484 * thread.c (switch_to_thread_no_regs): Reference the thread's
10485 inferior pointer directly instead of doing a ptid lookup.
10486 (switch_to_no_thread): New function.
10487 (switch_to_thread(thread_info *)): New function, factored out
10488 from ...
10489 (switch_to_thread(ptid_t)): ... this.
10490 (restore_current_thread): Delete.
10491 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
10492 fields, and add 'inf' field.
10493 (do_restore_current_thread_cleanup): Check whether old->inf is
10494 alive instead of looking up an inferior by ptid. Use
10495 switch_to_thread and switch_to_no_thread.
10496 (restore_current_thread_cleanup_dtor): Use old->inf directly
10497 instead of lookup up an inferior by id. Decref the inferior.
10498 Don't restore 'removable'.
10499 (make_cleanup_restore_current_thread): Same the inferior pointer
10500 in old, instead of the inferior number. Incref the inferior.
10501 Don't save/clear 'removable'.
10502
10503 2017-04-19 Pedro Alves <palves@redhat.com>
10504
10505 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10506 unittests/scoped_restore-selftests.c.
10507 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
10508 * common/scoped_restore.h (scoped_restore_base): Make "class".
10509 (scoped_restore_base::release): New public method.
10510 (scoped_restore_base::scoped_restore_base): New protected ctor.
10511 (scoped_restore_base::m_saved_var): New protected field.
10512 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
10513 scoped_restore_base base class instead of m_saved_var directly.
10514 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
10515 (scoped_restore_tmpl::scoped_restore_tmpl(const
10516 scoped_restore_tmpl<T>&)): Likewise.
10517 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
10518 method.
10519 (scoped_restore_tmpl::saved_var): New method.
10520 (scoped_restore_tmpl::m_saved_var): Delete.
10521 * inferior.h (inferior::detaching): Now a bool.
10522 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
10523 cleanup.
10524 * unittests/scoped_restore-selftests.c: New file.
10525
10526 2017-04-19 Pedro Alves <palves@redhat.com>
10527
10528 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
10529 Re-sort in alphabetic order.
10530
10531 2017-04-18 Pedro Alves <palves@redhat.com>
10532
10533 * xml-support.c (obstack_xml_printf): Delete.
10534 * xml-support.h (obstack_xml_printf): Delete.
10535
10536 2017-04-18 Pedro Alves <palves@redhat.com>
10537
10538 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
10539 vdebug, verror, body_text, start_element, end_element, name,
10540 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
10541 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
10542 is_xinclude>: Make private and add m_ prefix.
10543 (gdb_xml_parser::body_text): New method, based on ...
10544 (gdb_xml_body_text): ... this. Adjust.
10545 (gdb_xml_parser::vdebug): New method, based on ...
10546 (gdb_xml_debug): ... this. Adjust.
10547 (gdb_xml_parser::verror): New method, based on ...
10548 (gdb_xml_error): ... this. Adjust.
10549 (gdb_xml_parser::start_element): New method, based on ...
10550 (gdb_xml_start_element): ... this. Adjust.
10551 (gdb_xml_start_element_wrapper): Defer to
10552 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
10553 (gdb_xml_parser::end_element): New method, based on ...
10554 (gdb_xml_end_element_wrapper): ... this. Adjust.
10555 (gdb_xml_parser::~gdb_xml_parser): Adjust.
10556 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
10557 (gdb_xml_parser::use_dtd): New method, based on ...
10558 (gdb_xml_use_dtd): ... this. Adjust.
10559 (gdb_xml_parser::parse): New method, based on ...
10560 (gdb_xml_parse): ... this. Adjust.
10561 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
10562 (xinclude_start_include): Adjust to call the parser's name method.
10563 (xml_xinclude_default, xml_xinclude_start_doctype)
10564 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
10565 method.
10566 (xml_process_xincludes): Adjust to call parser methods.
10567 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
10568 declarations.
10569
10570 2017-04-18 Pedro Alves <palves@redhat.com>
10571
10572 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
10573 gdb::optional<std::string>.
10574 * xml-support.c: Include <string>.
10575 (scope_level::scope_level(scope_level &&))
10576 (scope_level::~scope_level): Delete.
10577 (scope_level::body): Now a std::string.
10578 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
10579 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
10580 parameter.
10581 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
10582 (xinclude_parsing_data::output): Now a std::string reference.
10583 (xinclude_start_include): Adjust.
10584 (xml_xinclude_default): Adjust.
10585 (xml_process_xincludes): Add 'output' parameter, and return bool.
10586 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
10587 and return bool.
10588 * xml-tdesc.c: Include <unordered_map> and <string>.
10589 (tdesc_xml_cache): Delete.
10590 (tdesc_xml_cache_s): Delete.
10591 (xml_cache): Now an std::unordered_map.
10592 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
10593 (target_fetch_description_xml): Change return type to
10594 gdb::optional<std::string>, and adjust.
10595 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
10596 (target_fetch_description_xml): Change return type to
10597 gdb::optional<std::string>.
10598
10599 2017-04-18 Pedro Alves <palves@redhat.com>
10600
10601 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10602 unittests/optional-selftests.c.
10603 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
10604 * unittests/optional-selftests.c: New file.
10605 * unittests/optional/assignment/1.cc: New file.
10606 * unittests/optional/assignment/2.cc: New file.
10607 * unittests/optional/assignment/3.cc: New file.
10608 * unittests/optional/assignment/4.cc: New file.
10609 * unittests/optional/assignment/5.cc: New file.
10610 * unittests/optional/assignment/6.cc: New file.
10611 * unittests/optional/assignment/7.cc: New file.
10612 * unittests/optional/cons/copy.cc: New file.
10613 * unittests/optional/cons/default.cc: New file.
10614 * unittests/optional/cons/move.cc: New file.
10615 * unittests/optional/cons/value.cc: New file.
10616 * unittests/optional/in_place.cc: New file.
10617 * unittests/optional/observers/1.cc: New file.
10618 * unittests/optional/observers/2.cc: New file.
10619
10620 2017-04-18 Pedro Alves <palves@redhat.com>
10621
10622 * common/gdb_optional.h: Include common/traits.h.
10623 (in_place_t): New type.
10624 (in_place): New constexpr variable.
10625 (optional::optional): Remove member initialization of
10626 m_instantiated.
10627 (optional::optional(in_place_t...)): New constructor.
10628 (optional::~optional): Use reset.
10629 (optional::optional(const optional&)): New.
10630 (optional::optional(const optional&&)): New.
10631 (optional::optional(T &)): New.
10632 (optional::optional(T &&)): New.
10633 (operator::operator=(const optional &)): New.
10634 (operator::operator=(optional &&)): New.
10635 (operator::operator= (const T &))
10636 (operator::operator= (T &&))
10637 (operator::emplace (Args &&... args)): Return a T&. Use reset.
10638 (operator::reset): New.
10639 (operator::m_instantiated):: Add in-class initializer.
10640 * common/traits.h: Include <type_traits>.
10641 (struct And): New types.
10642
10643 2017-04-18 Pedro Alves <palves@redhat.com>
10644
10645 * xml-support.c: Include <vector>.
10646 (scope_level::scope_level(const gdb_xml_element *))
10647 (scope_level::scope_level(scope_level&&)): New.
10648 (scope_level::~scope_level): New.
10649 (scope_level_s): Delete.
10650 (gdb_xml_parser::scopes): Now a std::vector.
10651 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
10652 Use std::vector.
10653 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
10654 scope cleanup code.
10655 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
10656 of the scopes member. Use std::vector::emplace_back.
10657
10658 2017-04-18 Pedro Alves <palves@redhat.com>
10659
10660 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
10661 a bool.
10662 (gdb_xml_end_element): Change type of first parameter.
10663 (gdb_xml_cleanup): Rename to ...
10664 (gdb_xml_parser::~gdb_xml_parser): ... this.
10665 (gdb_xml_create_parser_and_cleanup): Delete with ...
10666 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
10667 to this new ctor.
10668 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
10669 using gdb_xml_create_parser_and_cleanup.
10670 (xinclude_parsing_data): Add ctor/dtor.
10671 (xml_xinclude_cleanup): Delete.
10672 (xml_process_xincludes): Create a local xinclude_parsing_data
10673 instead of heap-allocating one. Create a local gdb_xml_parser
10674 instead of heap-allocating one with
10675 gdb_xml_create_parser_and_cleanup.
10676
10677 2017-04-18 John Baldwin <jhb@FreeBSD.org>
10678
10679 PR threads/20743
10680 * fbsd-nat.c (resume_one_thread_cb): Remove.
10681 (resume_all_threads_cb): Remove.
10682 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
10683 iterate_over_threads.
10684
10685 2017-04-17 Joel Brobecker <brobecker@adacore.com>
10686
10687 * NEWS: Create a new section for the next release branch.
10688 Rename the section of the current branch, now that it has
10689 been cut.
10690
10691 2017-04-17 Joel Brobecker <brobecker@adacore.com>
10692
10693 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
10694 * version.in: Bump version to 8.0.50.DATE-git.
10695
10696 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
10697
10698 PR gdb/21385
10699 * windows-nat.c (windows_create_inferior): Declare 'allargs'
10700 independently of the host, and fix build breakage on Cygwin.
10701
10702 2017-04-13 Pedro Alves <palves@redhat.com>
10703
10704 * inferior.c (free_inferior): Convert to ...
10705 (inferior::~inferior): ... this dtor.
10706 (inferior::inferior): New ctor, factored out from ...
10707 (add_inferior_silent): ... here. Allocate the inferior with a new
10708 expression.
10709 (delete_inferior): Call delete instead of free_inferior.
10710 * inferior.h (gdb_environ, continuation): Forward declare.
10711 (inferior): Now a class. Add in-class initialization to all
10712 members. Make boolean fields bool, except 'detaching'.
10713 (inferior::inferior): New explicit ctor.
10714 (inferior::~inferior): New.
10715
10716 2017-04-13 Pedro Alves <palves@redhat.com>
10717
10718 * inferior.c (init_inferior_list): Delete.
10719 * inferior.h (init_inferior_list): Delete.
10720
10721 2017-04-13 Pedro Alves <palves@redhat.com>
10722
10723 PR threads/13217
10724 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
10725 (top level): Call it twice, with different thread sets.
10726
10727 2017-04-13 Pedro Alves <palves@redhat.com>
10728
10729 * thread.c: Include <algorithm>.
10730 (thread_array_cleanup): Delete.
10731 (scoped_inc_dec_ref): New class.
10732 (live_threads_count): New function.
10733 (set_thread_refcount): Delete.
10734 (tp_array_compar_ascending): Now a bool.
10735 (tp_array_compar): Convert to a std::sort comparison function.
10736 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
10737 and live_threads_count.
10738
10739 2017-04-13 Pedro Alves <palves@redhat.com>
10740
10741 * infrun.c (follow_fork_inferior): Also switch the current
10742 inferior.
10743
10744 2017-04-13 Pedro Alves <palves@redhat.com>
10745
10746 * breakpoint.c (watch_command_1): Save watchpoint-frame info
10747 before calling create_internal_breakpoint.
10748
10749 2017-04-13 Pedro Alves <palves@redhat.com>
10750
10751 * fork-child.c (execv_argv): New class.
10752 (breakup_args): Refactored as ...
10753 (execv_argv::init_for_no_shell): .. this method of execv_argv.
10754 Copy arguments to storage and replace separators with NULL
10755 terminators in place.
10756 (escape_bang_in_quoted_argument): Adjust to return bool.
10757 (execv_argv::execv_argv): New ctor.
10758 (execv_argv::init_for_shell): New method, factored out from
10759 fork_inferior. Don't strdup strings into the vector.
10760 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
10761 Remove free_vector_argv call.
10762
10763 2017-04-13 Yao Qi <yao.qi@linaro.org>
10764
10765 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
10766 tdep->rx_psw_type.
10767
10768 2017-04-13 Yao Qi <yao.qi@linaro.org>
10769
10770 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
10771 * rx-tdep.c (rx_gdbarch_init): Likewise.
10772
10773 2017-04-13 Pedro Alves <palves@redhat.com>
10774
10775 * breakpoint.h (struct breakpoint): Reindent.
10776
10777 2017-04-13 Pedro Alves <palves@redhat.com>
10778
10779 * breakpoint.c (bp_location): Rename to ...
10780 (bp_locations): ... this. All references updated.
10781 (bp_location_count): Rename to ...
10782 (bp_locations_count): ... this. All references updated.
10783 (bp_location_placed_address_before_address_max): Rename to ...
10784 (bp_locations_placed_address_before_address_max): ... this. All
10785 references updated.
10786 (bp_location_shadow_len_after_address_max): Rename to ...
10787 (bp_locations_shadow_len_after_address_max): ... this. All
10788 references updated.
10789 (bp_location_compare_addrs): Rename to ...
10790 (bp_locations_compare_addrs): ... this. All references updated.
10791 (bp_location_compare):Rename to ...
10792 (bp_locations_compare): ... this. All references updated.
10793 (bp_location_target_extensions_update): Rename to ...
10794 (bp_locations_target_extensions_update): ... this. All references
10795 updated.
10796
10797 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10798
10799 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
10800 * common/common.m4: Check headers 'termios.h', 'termio.h' and
10801 'sgtty.h'.
10802 * common/gdb_termios.h: New file, with parts of "terminal.h".
10803 * inflow.c: Include "gdb_termios.h".
10804 * ser-unix.c: Include "gdb_termios.h".
10805 * terminal.h: Move terminal-related defines to
10806 "common/gdb_termios.h".
10807
10808 2017-04-12 Tom Tromey <tom@tromey.com>
10809
10810 * probe.c (parse_probes): Update.
10811 * location.h (delete_event_location): Don't declare.
10812 (event_location_deleter::operator()): Update.
10813 * location.c (event_location_deleter::operator()): Rename from
10814 delete_event_location.
10815 * linespec.h (linespec_result) <location>: Change type to
10816 event_location_up.
10817 * linespec.c (canonicalize_linespec, event_location_to_sals)
10818 (decode_objc): Update.
10819 (linespec_result): Don't call delete_event_location.
10820 * breakpoint.c (create_breakpoints_sal)
10821 (bkpt_probe_create_sals_from_location)
10822 (strace_marker_create_sals_from_location): Update.
10823
10824 2017-04-12 Tom Tromey <tom@tromey.com>
10825
10826 * linespec.h (struct linespec_result): Add constructor and
10827 destructor.
10828 (init_linespec_result, destroy_linespec_result)
10829 (make_cleanup_destroy_linespec_result): Don't declare.
10830 * linespec.c (init_linespec_result): Remove.
10831 (linespec_result::~linespec_result): Rename from
10832 destroy_linespec_result. Update.
10833 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
10834 Remove.
10835 * breakpoint.c (create_breakpoint, break_range_command)
10836 (decode_location_default): Update.
10837 * ax-gdb.c (agent_command_1): Update.
10838
10839 2017-04-12 Tom Tromey <tom@tromey.com>
10840
10841 * remote.c (remote_download_tracepoint): Update.
10842 * python/py-breakpoint.c (bppy_get_location): Update.
10843 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
10844 (gdbscm_breakpoint_location): Update.
10845 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
10846 * breakpoint.h (struct breakpoint) <location, location_range_end>:
10847 Change type to event_location_up.
10848 * breakpoint.c (create_overlay_event_breakpoint)
10849 (create_longjmp_master_breakpoint)
10850 (create_std_terminate_master_breakpoint)
10851 (create_exception_master_breakpoint)
10852 (breakpoint_event_location_empty_p, print_breakpoint_location)
10853 (print_one_breakpoint_location, create_thread_event_breakpoint)
10854 (init_breakpoint_sal, create_breakpoint)
10855 (print_recreate_ranged_breakpoint, break_range_command)
10856 (init_ada_exception_breakpoint, say_where): Update.
10857 (base_breakpoint_dtor): Don't call delete_event_location.
10858 (bkpt_print_recreate, tracepoint_print_recreate)
10859 (dprintf_print_recreate, update_static_tracepoint)
10860 (breakpoint_re_set_default): Update.
10861
10862 2017-04-12 Tom Tromey <tom@tromey.com>
10863
10864 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10865 type of "to_do". Update.
10866 (compute_stack_depth): Use std::vector.
10867
10868 2017-04-12 Tom Tromey <tom@tromey.com>
10869
10870 * printcmd.c (find_instruction_backward): Use std::vector.
10871
10872 2017-04-12 Tom Tromey <tom@tromey.com>
10873
10874 * symfile.c (objfilep): Remove typedef.
10875 (reread_symbols): Use a std::vector.
10876
10877 2017-04-12 Tom Tromey <tom@tromey.com>
10878
10879 * mi/mi-main.c (exec_direction_forward): Remove.
10880 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10881 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10882 scoped_restore.
10883 * guile/guile.c (guile_repl_command, guile_command)
10884 (gdbscm_execute_gdb_command): Use scoped_restore.
10885 * go-exp.y (go_parse): Use scoped_restore.
10886 * d-exp.y (d_parse): Use scoped_restore.
10887 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10888 * c-exp.y (c_parse): Use scoped_restore.
10889
10890 2017-04-12 Tom Tromey <tom@tromey.com>
10891
10892 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10893 (mi_parse): Update return type.
10894 (mi_parse_free): Remove.
10895 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10896 (mi_parse::~mi_parse): Rename from mi_parse_free.
10897 (mi_parse_cleanup): Remove.
10898 (mi_parse): Return a unique_ptr. Use new.
10899 * mi/mi-main.c (mi_execute_command): Update.
10900
10901 2017-04-12 Tom Tromey <tom@tromey.com>
10902
10903 * location.c (explicit_location_lex_one): Return a
10904 unique_xmalloc_ptr.
10905 (string_to_explicit_location): Update. Remove cleanups.
10906
10907 2017-04-12 Tom Tromey <tom@tromey.com>
10908
10909 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10910 (compare_value_and_voffset): Change type. Update.
10911 (compute_vtable_size): Change type of "offset_vec".
10912 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10913 (gnuv3_get_typeid): Remove extraneous declaration.
10914
10915 2017-04-12 Tom Tromey <tom@tromey.com>
10916
10917 * charset.h (wchar_iterator): Fix comment.
10918
10919 2017-04-12 Tom Tromey <tom@tromey.com>
10920
10921 * charset.c (iconv_wrapper): New class.
10922 (cleanup_iconv): Remove.
10923 (convert_between_encodings): Use it.
10924
10925 2017-04-12 Tom Tromey <tom@tromey.com>
10926
10927 * symfile.h (increment_reading_symtab): Update type.
10928 * symfile.c (decrement_reading_symtab): Remove.
10929 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10930 * psymtab.c (psymtab_to_symtab): Update.
10931 * dwarf2read.c (dw2_instantiate_symtab): Update.
10932
10933 2017-04-12 Tom Tromey <tom@tromey.com>
10934
10935 * jit.c (struct jit_reader): Declare separately. Add constructor
10936 and destructor. Change type of "handle".
10937 (loaded_jit_reader): Define separately.
10938 (jit_reader_load): Update. New "new".
10939 (jit_reader_unload_command): Use "delete".
10940 * gdb-dlfcn.h (struct dlclose_deleter): New.
10941 (gdb_dlhandle_up): New typedef.
10942 (gdb_dlopen, gdb_dlsym): Update types.
10943 (gdb_dlclose): Remove.
10944 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10945 (gdb_dlsym): Change type of "handle".
10946 (make_cleanup_dlclose): Remove.
10947 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10948 * compile/compile-c-support.c (load_libcc): Update.
10949
10950 2017-04-12 Tom Tromey <tom@tromey.com>
10951
10952 * symtab.h (find_pcs_for_symtab_line): Change return type.
10953 * symtab.c (find_pcs_for_symtab_line): Change return type.
10954 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10955 type of "vec". Update.
10956 (ltpy_get_pcs_for_line): Update.
10957 * linespec.c (decode_digits_ordinary): Update.
10958
10959 2017-04-12 Tom Tromey <tom@tromey.com>
10960
10961 * tracepoint.c (actions_command): Update.
10962 * python/python.c (python_command, python_interactive_command):
10963 Update.
10964 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10965 * guile/guile.c (guile_command): Update.
10966 * defs.h (read_command_lines, read_command_lines_1): Return
10967 command_line_up.
10968 (command_lines_deleter): New struct.
10969 (command_line_up): New typedef.
10970 * compile/compile.c (compile_code_command)
10971 (compile_print_command): Update.
10972 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10973 command_line_up.
10974 (make_cleanup_free_command_lines): Remove.
10975 * cli/cli-script.c (get_command_line, read_command_lines_1)
10976 (copy_command_lines): Return command_line_up.
10977 (while_command, if_command, read_command_lines, define_command)
10978 (document_command): Update.
10979 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10980 Remove.
10981 * breakpoint.h (breakpoint_set_commands): Change type of
10982 "commands".
10983 * breakpoint.c (breakpoint_set_commands): Change type of
10984 "commands". Update.
10985 (do_map_commands_command, update_dprintf_command_list)
10986 (create_tracepoint_from_upload): Update.
10987
10988 2017-04-12 Tom Tromey <tom@tromey.com>
10989
10990 * tracepoint.c (scope_info): Update.
10991 * spu-tdep.c (spu_catch_start): Update.
10992 * python/python.c (gdbpy_decode_line): Update.
10993 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10994 * python/py-breakpoint.c (bppy_init): Update.
10995 * probe.c (parse_probes): Update.
10996 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10997 * location.h (event_location_deleter): New struct.
10998 (event_location_up): New typedef.
10999 (new_linespec_location, new_address_location, new_probe_location)
11000 (new_explicit_location, copy_event_location)
11001 (string_to_event_location, string_to_event_location_basic)
11002 (string_to_explicit_location): Update return type.
11003 (make_cleanup_delete_event_location): Remove.
11004 * location.c (new_linespec_location, new_address_location)
11005 (new_probe_location, new_explicit_location, copy_event_location):
11006 Return event_location_up.
11007 (delete_event_location_cleanup)
11008 (make_cleanup_delete_event_location): Remove.
11009 (string_to_explicit_location, string_to_event_location_basic)
11010 (string_to_event_location): Return event_location_up.
11011 * linespec.c (canonicalize_linespec, event_location_to_sals)
11012 (decode_line_with_current_source)
11013 (decode_line_with_last_displayed, decode_objc): Update.
11014 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11015 * completer.c (location_completer): Update.
11016 * cli/cli-cmds.c (edit_command, list_command): Update.
11017 * breakpoint.c (create_overlay_event_breakpoint)
11018 (create_longjmp_master_breakpoint)
11019 (create_std_terminate_master_breakpoint)
11020 (create_exception_master_breakpoint)
11021 (create_thread_event_breakpoint): Update.
11022 (init_breakpoint_sal): Update. Remove some dead code.
11023 (create_breakpoint_sal): Change type of "location". Update.
11024 (create_breakpoints_sal, create_breakpoint, break_command_1)
11025 (dprintf_command, break_range_command, until_break_command)
11026 (init_ada_exception_breakpoint)
11027 (strace_marker_create_sals_from_location)
11028 (update_static_tracepoint, trace_command, ftrace_command)
11029 (strace_command, create_tracepoint_from_upload): Update.
11030 * break-catch-throw.c (re_set_exception_catchpoint): Update.
11031 * ax-gdb.c (agent_command_1): Update.
11032
11033 2017-04-12 Pedro Alves <palves@redhat.com>
11034
11035 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
11036 * configure.tgt: Handle i[34567]86-*-go32* and
11037 i[34567]86-*-msdosdjgpp*.
11038 * i386-tdep.c (i386_svr4_reg_to_regnum):
11039 Make extern.
11040 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
11041 i386-go32-tdep.c.
11042 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
11043 * i386-go32-tdep.c: New file.
11044 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
11045 declarations.
11046
11047 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
11048
11049 * aix-thread.c (pd_status2str): Change return type to const char *.
11050
11051 2017-04-12 Pedro Alves <palves@redhat.com>
11052
11053 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
11054 calls to set_gdbarch_gnu_triplet_regexp.
11055
11056 2017-04-12 Pedro Alves <palves@redhat.com>
11057
11058 PR gdb/21323
11059 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
11060 New enum value.
11061 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
11062 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
11063 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
11064 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
11065 * gdbarch.h, gdbarch.c: Regenerate.
11066 * aarch64-tdep.c (aarch64_gdbarch_init): Override
11067 gdbarch_wchar_bit and gdbarch_wchar_signed.
11068 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
11069 * arm-tdep.c (arm_gdbarch_init): Likewise.
11070 * avr-tdep.c (avr_gdbarch_init): Likewise.
11071 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11072 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
11073 * i386-tdep.c (i386_go32_init_abi): Likewise.
11074 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11075 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11076 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
11077 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11078 * sh-tdep.c (sh_gdbarch_init): Likewise.
11079 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11080 * sparc64-tdep.c (sparc64_init_abi): Likewise.
11081 * windows-tdep.c (windows_init_abi): Likewise.
11082 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11083
11084 2017-04-12 Pedro Alves <palves@redhat.com>
11085
11086 PR c++/21323
11087 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
11088 cplus_primitive_type_char32_t>: New enum values.
11089 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
11090 and cplus_primitive_type_char32_t.
11091 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
11092 32, use the archtecture's built-in type for char16_t and char32_t,
11093 respectively. Otherwise, fallback to init_integer_type as before,
11094 but make the type unsigned, and issue a complaint.
11095 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
11096
11097 2017-04-12 Alan Hayward <alan.hayward@arm.com>
11098
11099 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
11100 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
11101
11102 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11103
11104 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
11105 'const char *'.
11106
11107 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
11108
11109 * common/common-utils.c (free_vector_argv): New function.
11110 * common/common-utils.h: Include <vector>.
11111 (free_vector_argv): New prototype.
11112 * darwin-nat.c (darwin_create_inferior): Rewrite function
11113 prototype in order to constify "exec_file" and accept a
11114 "std::string" for "allargs".
11115 * fork-child.c: Include <vector>.
11116 (breakup_args): Rewrite function, using C++.
11117 (fork_inferior): Rewrite function header, constify "exec_file_arg"
11118 and accept "std::string" for "allargs". Update the code to
11119 calculate "argv" based on "allargs". Update calls to "exec_fun"
11120 and "execvp".
11121 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
11122 order to constify "exec_file" and accept a "std::string" for
11123 "allargs".
11124 * go32-nat.c (go32_create_inferior): Likewise.
11125 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
11126 * infcmd.c (run_command_1): Constify "exec_file". Use
11127 "std::string" for inferior arguments.
11128 * inferior.h (fork_inferior): Update prototype.
11129 * linux-nat.c (linux_nat_create_inferior): Rewrite function
11130 prototype in order to constify "exec_file" and accept a
11131 "std::string" for "allargs".
11132 * nto-procfs.c (procfs_create_inferior): Likewise.
11133 * procfs.c (procfs_create_inferior): Likewise.
11134 * remote-sim.c (gdbsim_create_inferior): Likewise.
11135 * remote.c (extended_remote_run): Update code to accept
11136 "std::string" as argument.
11137 (extended_remote_create_inferior): Rewrite function prototype in
11138 order to constify "exec_file" and accept a "std::string" for
11139 "allargs".
11140 * rs6000-nat.c (super_create_inferior): Likewise.
11141 (rs6000_create_inferior): Likewise.
11142 * target.h (struct target_ops) <to_create_inferior>: Likewise.
11143 * windows-nat.c (windows_create_inferior): Likewise.
11144
11145 2017-04-11 Pedro Alves <palves@redhat.com>
11146
11147 * thread.c: Fix whitespace throughout.
11148
11149 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
11150
11151 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
11152
11153 2017-04-11 Alan Hayward <alan.hayward@arm.com>
11154
11155 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
11156
11157 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
11158
11159 PR gdb/21364
11160 * osdata.c (info_osdata): Check if 'type' is an empty string
11161 instead of NULL.
11162
11163 2017-04-10 Pedro Alves <palves@redhat.com>
11164
11165 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
11166 (ptid_to_global_thread_id, in_thread_list)
11167 (do_captured_list_thread_ids, set_resumed, set_running)
11168 (set_executing, set_stop_requested, finish_thread_state)
11169 (validate_registers_access, can_access_registers_ptid)
11170 (print_thread_info_1, switch_to_thread)
11171 (do_restore_current_thread_cleanup)
11172 (make_cleanup_restore_current_thread, thread_command)
11173 (thread_name_command): Use operator== instead of ptid_equal.
11174
11175 2017-04-10 Pedro Alves <palves@redhat.com>
11176
11177 * thread.c (struct current_thread_cleanup) <next>: Delete field.
11178 (current_thread_cleanup_chain): Delete.
11179 (restore_current_thread_cleanup_dtor)
11180 (make_cleanup_restore_current_thread): Remove references to
11181 current_thread_cleanup_chain.
11182
11183 2017-04-10 Alan Hayward <alan.hayward@arm.com>
11184
11185 * msp430-tdep.c (msp430_pseudo_register_read): Never return
11186 REG_UNKNOWN.
11187
11188 2017-04-10 Yao Qi <yao.qi@linaro.org>
11189
11190 PR gdb/19942
11191 * gdbthread.h (thread_info::deletable): New method.
11192 (thread_info::incref): New method.
11193 (thread_info::decref): New method.
11194 (thread_info::refcount): Move it to private.
11195 * infrun.c (save_stop_context): Call inc_refcount.
11196 (release_stop_context_cleanup): Likewise.
11197 * thread.c (set_thread_exited): New function.
11198 (init_thread_list): Delete "tp" only it is deletable, otherwise
11199 call set_thread_exited.
11200 (delete_thread_1): Call set_thread_exited.
11201 (current_thread_cleanup) <inferior_pid>: Remove.
11202 <thread>: New field.
11203 (restore_current_thread_ptid_changed): Removed.
11204 (do_restore_current_thread_cleanup): Adjust.
11205 (restore_current_thread_cleanup_dtor): Don't call
11206 find_thread_ptid.
11207 (set_thread_refcount): Use dec_refcount.
11208 (make_cleanup_restore_current_thread): Adjust.
11209 (thread_apply_all_command): Call inc_refcount.
11210 (_initialize_thread): Don't call
11211 observer_attach_thread_ptid_changed.
11212
11213 2017-04-10 Yao Qi <yao.qi@linaro.org>
11214
11215 * thread.c (delete_thread_1): Hoist code on marking thread as
11216 exited.
11217
11218 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11219
11220 * windows-nat.c (windows_detach): Initialize ptid with
11221 minus_one_ptid.
11222
11223 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
11224
11225 * unittests/ptid-selftests.c: Fix erroneous assert messages.
11226
11227 2017-04-07 Alan Hayward <alan.hayward@arm.com>
11228
11229 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
11230 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
11231 (bfin_pseudo_register_write): Likewise
11232
11233 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
11234
11235 * common/ptid.h (struct ptid): Change to...
11236 (class ptid_t): ... this.
11237 <ptid_t>: New constructors.
11238 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
11239 matches>: New methods.
11240 <make_null, make_minus_one>: New static methods.
11241 <pid>: Rename to...
11242 <m_pid>: ...this.
11243 <lwp>: Rename to...
11244 <m_lwp>: ...this.
11245 <tid>: Rename to...
11246 <m_tid>: ...this.
11247 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
11248 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
11249 as references, move comment to class ptid_t.
11250 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
11251 ptid_t static methods.
11252 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
11253 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
11254 Take ptid arguments as references, implement using ptid_t methods.
11255 * unittests/ptid-selftests.c: New file.
11256 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11257 unittests/ptid-selftests.c.
11258 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
11259
11260 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
11261
11262 * python/python.c (python_run_simple_file): Cast mode literal to
11263 non-const char pointer as expected by PyFile_FromString.
11264
11265 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
11266
11267 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
11268 minus_one_ptid and null_ptid.
11269
11270 2017-04-05 Pedro Alves <palves@redhat.com>
11271
11272 * warning.m4 (build_warnings): Remove -Wno-write-strings.
11273 * configure: Regenerate.
11274
11275 2017-04-05 Pedro Alves <palves@redhat.com>
11276
11277 * ada-exp.y (yyerror): Constify.
11278 * ada-lang.c (bound_name, get_selections)
11279 (ada_variant_discrim_type)
11280 (ada_variant_discrim_name, ada_value_struct_elt)
11281 (ada_lookup_struct_elt_type, is_unchecked_variant)
11282 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
11283 (catch_ada_exception_command_split)
11284 (catch_ada_assert_command_split, catch_assert_command)
11285 (ada_op_name): Constify.
11286 * ada-lang.h (ada_yyerror, get_selections)
11287 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
11288 * arc-tdep.c (arc_print_frame_cache): Constify.
11289 * arm-tdep.c (arm_skip_stub): Constify.
11290 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
11291 (gen_aggregate_elt_ref): Constify.
11292 * bcache.c (print_bcache_statistics): Constify.
11293 * bcache.h (print_bcache_statistics): Constify.
11294 * break-catch-throw.c (catch_exception_command_1):
11295 * breakpoint.c (struct ep_type_description::description):
11296 Constify.
11297 (add_solib_catchpoint): Constify.
11298 (catch_fork_command_1): Add cast.
11299 (add_catch_command): Constify.
11300 * breakpoint.h (add_catch_command, add_solib_catchpoint):
11301 Constify.
11302 * bsd-uthread.c (bsd_uthread_state): Constify.
11303 * buildsym.c (patch_subfile_names): Constify.
11304 * buildsym.h (next_symbol_text_func, patch_subfile_names):
11305 Constify.
11306 * c-exp.y (yyerror): Constify.
11307 (token::oper): Constify.
11308 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
11309 * c-varobj.c (cplus_describe_child): Constify.
11310 * charset.c (find_charset_names): Add cast.
11311 (find_charset_names): Constify array and add const_cast.
11312 * cli/cli-cmds.c (complete_command, cd_command): Constify.
11313 (edit_command): Constify.
11314 * cli/cli-decode.c (lookup_cmd): Constify.
11315 * cli/cli-dump.c (dump_memory_command, dump_value_command):
11316 Constify.
11317 (struct dump_context): Constify.
11318 (add_dump_command, restore_command): Constify.
11319 * cli/cli-script.c (get_command_line): Constify.
11320 * cli/cli-script.h (get_command_line): Constify.
11321 * cli/cli-utils.c (check_for_argument): Constify.
11322 * cli/cli-utils.h (check_for_argument): Constify.
11323 * coff-pe-read.c (struct read_pe_section_data): Constify.
11324 * command.h (lookup_cmd): Constify.
11325 * common/print-utils.c (decimal2str): Constify.
11326 * completer.c (gdb_print_filename): Constify.
11327 * corefile.c (set_gnutarget): Constify.
11328 * cp-name-parser.y (yyerror): Constify.
11329 * cp-valprint.c (cp_print_class_member): Constify.
11330 * cris-tdep.c (cris_register_name, crisv32_register_name):
11331 Constify.
11332 * d-exp.y (yyerror): Constify.
11333 (struct token::oper): Constify.
11334 * d-lang.h (d_yyerror): Constify.
11335 * dbxread.c (struct header_file_location::name): Constify.
11336 (add_old_header_file, add_new_header_file, last_function_name)
11337 (dbx_next_symbol_text, add_bincl_to_list)
11338 (find_corresponding_bincl_psymtab, set_namestring)
11339 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
11340 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
11341 * defs.h (command_line_input, print_address_symbolic)
11342 (deprecated_readline_begin_hook): Constify.
11343 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
11344 Constify.
11345 * event-top.c (handle_line_of_input): Constify and add cast.
11346 * exceptions.c (catch_errors): Constify.
11347 * exceptions.h (catch_errors): Constify.
11348 * expprint.c (print_subexp_standard, op_string, op_name)
11349 (op_name_standard, dump_raw_expression, dump_raw_expression):
11350 * expression.h (op_name, op_string, dump_raw_expression):
11351 Constify.
11352 * f-exp.y (yyerror): Constify.
11353 (struct token::oper): Constify.
11354 (struct f77_boolean_val::name): Constify.
11355 * f-lang.c (f_word_break_characters): Constify.
11356 * f-lang.h (f_yyerror): Constify.
11357 * fork-child.c (fork_inferior): Add cast.
11358 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
11359 (new_variant): Constify.
11360 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
11361 * gdbarch.c: Regenerate.
11362 * gdbcore.h (set_gnutarget): Constify.
11363 * go-exp.y (yyerror): Constify.
11364 (token::oper): Constify.
11365 * go-lang.h (go_yyerror): Constify.
11366 * go32-nat.c (go32_sysinfo): Constify.
11367 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
11368 * guile/scm-cmd.c (cmdscm_function): Constify.
11369 * guile/scm-param.c (pascm_param_value): Constify.
11370 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
11371 (h8300sx_register_name): Constify.
11372 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
11373 Constify.
11374 * ia64-tdep.c (ia64_register_names): Constify.
11375 * infcmd.c (construct_inferior_arguments): Constify.
11376 (path_command, attach_post_wait): Constify.
11377 * language.c (show_range_command, show_case_command)
11378 (unk_lang_error): Constify.
11379 * language.h (language_defn::la_error)
11380 (language_defn::la_name_of_this): Constify.
11381 * linespec.c (decode_line_2): Constify.
11382 * linux-thread-db.c (thread_db_err_str): Constify.
11383 * lm32-tdep.c (lm32_register_name): Constify.
11384 * m2-exp.y (yyerror): Constify.
11385 * m2-lang.h (m2_yyerror): Constify.
11386 * m32r-tdep.c (m32r_register_names): Constify and make static.
11387 * m68hc11-tdep.c (m68hc11_register_names): Constify.
11388 * m88k-tdep.c (m88k_register_name): Constify.
11389 * macroexp.c (appendmem): Constify.
11390 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
11391 (upgrade_type, parse_external, parse_partial_symbols)
11392 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
11393 (new_symbol): Constify.
11394 * memattr.c (mem_info_command): Constify.
11395 * mep-tdep.c (register_name_from_keyword): Constify.
11396 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
11397 Constify.
11398 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
11399 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
11400 * mi/mi-main.c (captured_mi_execute_command): Constify and add
11401 cast.
11402 (mi_execute_async_cli_command): Constify.
11403 * mips-tdep.c (mips_register_name): Constify.
11404 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
11405 (am33_register_name, am33_2_register_name)
11406 * moxie-tdep.c (moxie_register_names): Constify.
11407 * nat/linux-osdata.c (osdata_type): Constify fields.
11408 * nto-tdep.c (nto_parse_redirection): Constify.
11409 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
11410 (lookup_child_selector): Constify.
11411 (objc_methcall::name): Constify.
11412 * objc-lang.h (lookup_objc_class, lookup_child_selector)
11413 (lookup_struct_typedef): Constify.
11414 * objfiles.c (pc_in_section): Constify.
11415 * objfiles.h (pc_in_section): Constify.
11416 * p-exp.y (struct token::oper): Constify.
11417 (yyerror): Constify.
11418 * p-lang.h (pascal_yyerror): Constify.
11419 * parser-defs.h (op_name_standard): Constify.
11420 (op_print::string): Constify.
11421 (exp_descriptor::op_name): Constify.
11422 * printcmd.c (print_address_symbolic): Constify.
11423 * psymtab.c (print_partial_symbols): Constify.
11424 * python/py-breakpoint.c (stop_func): Constify.
11425 (bppy_get_expression): Constify.
11426 * python/py-cmd.c (cmdpy_completer::name): Constify.
11427 (cmdpy_function): Constify.
11428 * python/py-event.c (evpy_add_attribute)
11429 (gdbpy_initialize_event_generic): Constify.
11430 * python/py-event.h (evpy_add_attribute)
11431 (gdbpy_initialize_event_generic): Constify.
11432 * python/py-evts.c (add_new_registry): Constify.
11433 * python/py-finishbreakpoint.c (outofscope_func): Constify.
11434 * python/py-framefilter.c (get_py_iter_from_func): Constify.
11435 * python/py-inferior.c (get_buffer): Add cast.
11436 * python/py-param.c (parm_constant::name): Constify.
11437 * python/py-unwind.c (fprint_frame_id): Constify.
11438 * python/python.c (gdbpy_parameter_value): Constify.
11439 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
11440 * remote.c (memory_packet_config::name): Constify.
11441 (show_packet_config_cmd, remote_write_bytes)
11442 (remote_buffer_add_string):
11443 * reverse.c (exec_reverse_once): Constify.
11444 * rs6000-tdep.c (variant::name, variant::description): Constify.
11445 * rust-exp.y (rustyyerror): Constify.
11446 * rust-lang.c (rust_op_name): Constify.
11447 * rust-lang.h (rustyyerror): Constify.
11448 * serial.h (serial_ops::name): Constify.
11449 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
11450 (sh_sh3e_register_name, sh_sh2e_register_name)
11451 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
11452 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
11453 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
11454 (sh_sh4al_dsp_register_name): Constify.
11455 * sh64-tdep.c (sh64_register_name): Constify.
11456 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
11457 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
11458 * stabsread.c (patch_block_stabs, read_type_number)
11459 (ref_map::stabs, ref_add, process_reference)
11460 (symbol_reference_defined, define_symbol, define_symbol)
11461 (error_type, read_type, read_member_functions, read_cpp_abbrev)
11462 (read_one_struct_field, read_struct_fields, read_baseclasses)
11463 (read_tilde_fields, read_struct_type, read_array_type)
11464 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
11465 (read_huge_number, read_range_type, read_args, common_block_start)
11466 (find_name_end): Constify.
11467 * stabsread.h (common_block_start, define_symbol)
11468 (process_one_symbol, symbol_reference_defined, ref_add):
11469 * symfile.c (get_section_index, add_symbol_file_command):
11470 * symfile.h (get_section_index): Constify.
11471 * target-descriptions.c (tdesc_type::name): Constify.
11472 (tdesc_free_type): Add cast.
11473 * target.c (find_default_run_target):
11474 (add_deprecated_target_alias, find_default_run_target)
11475 (target_announce_detach): Constify.
11476 (do_option): Constify.
11477 * target.h (add_deprecated_target_alias): Constify.
11478 * thread.c (print_thread_info_1): Constify.
11479 * top.c (deprecated_readline_begin_hook, command_line_input):
11480 Constify.
11481 (init_main): Add casts.
11482 * top.h (handle_line_of_input): Constify.
11483 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
11484 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
11485 (tfind_command): Rename to ...
11486 (tfind_command_1): ... this and constify.
11487 (tfind_command): New function.
11488 (tfind_end_command, tfind_start_command): Adjust.
11489 (encode_source_string): Constify.
11490 * tracepoint.h (encode_source_string): Constify.
11491 * tui/tui-data.c (tui_partial_win_by_name): Constify.
11492 * tui/tui-data.h (tui_partial_win_by_name): Constify.
11493 * tui/tui-source.c (tui_set_source_content_nil): Constify.
11494 * tui/tui-source.h (tui_set_source_content_nil): Constify.
11495 * tui/tui-win.c (parse_scrolling_args): Constify.
11496 * tui/tui-windata.c (tui_erase_data_content): Constify.
11497 * tui/tui-windata.h (tui_erase_data_content): Constify.
11498 * tui/tui-winsource.c (tui_erase_source_content): Constify.
11499 * tui/tui.c (tui_enable): Add cast.
11500 * utils.c (defaulted_query): Constify.
11501 (init_page_info): Add cast.
11502 (puts_debug, subset_compare): Constify.
11503 * utils.h (subset_compare): Constify.
11504 * varobj.c (varobj_format_string): Constify.
11505 * varobj.h (varobj_format_string): Constify.
11506 * vax-tdep.c (vax_register_name): Constify.
11507 * windows-nat.c (windows_detach): Constify.
11508 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
11509 * xml-support.c (gdb_xml_end_element): Constify.
11510 * xml-tdesc.c (tdesc_start_reg): Constify.
11511 * xstormy16-tdep.c (xstormy16_register_name): Constify.
11512 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
11513 * xtensa-tdep.h (xtensa_register_t::name): Constify.
11514
11515 2017-04-05 Pedro Alves <palves@redhat.com>
11516
11517 * proc-api.c (struct trans): Constify.
11518 (procfs_note): Constify.
11519 * proc-events.c (struct trans, syscall_table):
11520 * proc-flags.c (struct trans): Constify.
11521 * proc-utils.h (procfs_note): Constify.
11522 * proc-why.c (struct trans): Constify.
11523 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
11524 (procfs_detach): Constify.
11525 * sol-thread.c (struct string_map): Constify.
11526 (td_err_string, td_state_string): Constify.
11527
11528 2017-04-05 Pedro Alves <palves@redhat.com>
11529
11530 * proc-api.c (procfs_filename): Don't initialize
11531 procfs_filename.
11532 (prepare_to_trace): Assume procfs_filename is non-NULL.
11533 (_initialize_proc_api): Give procfs_filename a default value here.
11534
11535 2017-04-05 Pedro Alves <palves@redhat.com>
11536
11537 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
11538 'cond_string' parameter.
11539 (extract_exception_regexp): Constify 'string' parameter.
11540 (catch_exception_command_1): Constify.
11541 * breakpoint.c (init_catchpoint)
11542 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
11543 parameter.
11544 (ep_parse_optional_if_clause, catch_fork_command_1)
11545 (catch_exec_command_1): Constify.
11546 * breakpoint.h (init_catchpoint): Constify 'cond_string'
11547 parameter.
11548 (ep_parse_optional_if_clause): Constify.
11549 * cli/cli-utils.c (remove_trailing_whitespace)
11550 (check_for_argument): Constify.
11551 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
11552 non-const overload.
11553 (check_for_argument): Likewise.
11554
11555 2017-04-05 Pedro Alves <palves@redhat.com>
11556
11557 * event-top.c (command_line_handler): Add cast to execute_command
11558 call.
11559 * record-btrace.c (cmd_record_btrace_bts_start)
11560 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
11561 (cmd_record_btrace_start): Add cast to execute_command call.
11562 * record-full.c (record_full_goto_insn):
11563 * record.c (record_start, record_stop): Add cast to
11564 execute_command_to_string calls.
11565 (cmd_record_start): Add cast to execute_command calls.
11566
11567 2017-04-05 Pedro Alves <palves@redhat.com>
11568
11569 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
11570 static inline function.
11571 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
11572 array and use gdb_PyArg_ParseTupleAndKeywords.
11573 * python/py-cmd.c (cmdpy_init): Likewise.
11574 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
11575 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
11576 (infpy_search_memory): Likewise.
11577 * python/py-objfile.c (objfpy_add_separate_debug_file)
11578 (gdbpy_lookup_objfile): Likewise.
11579 * python/py-symbol.c (gdbpy_lookup_symbol)
11580 (gdbpy_lookup_global_symbol): Likewise.
11581 * python/py-type.c (gdbpy_lookup_type): Likewise.
11582 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
11583 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
11584 Likewise.
11585
11586 2017-04-05 Pedro Alves <palves@redhat.com>
11587
11588 * python/python-internal.h (gdb_PyGetSetDef): New type.
11589 * python/py-block.c (block_object_getset)
11590 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
11591 * python/py-event.c (event_object_getset)
11592 (finish_breakpoint_object_getset): Likewise.
11593 * python/py-inferior.c (inferior_object_getset): Likewise.
11594 * python/py-infthread.c (thread_object_getset): Likewise.
11595 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
11596 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
11597 * python/py-objfile.c (objfile_getset): Likewise.
11598 * python/py-progspace.c (pspace_getset): Likewise.
11599 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
11600 Likewise.
11601 * python/py-record.c (recpy_record_getset): Likewise.
11602 * python/py-symbol.c (symbol_object_getset): Likewise.
11603 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
11604 Likewise.
11605 * python/py-type.c (type_object_getset, field_object_getset):
11606 Likewise.
11607 * python/py-value.c (value_object_getset): Likewise.
11608
11609 2017-04-05 Pedro Alves <palves@redhat.com>
11610
11611 * python/python-internal.h (gdb_PyObject_CallMethod)
11612 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
11613 New functions.
11614 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
11615 (PySys_GetObject, PySys_SetPath): New macros.
11616
11617 2017-04-05 Pedro Alves <palves@redhat.com>
11618
11619 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
11620 info_osdata_command.
11621 * osdata.c (info_osdata_command): Rename to ...
11622 (info_osdata): ... this. Constify 'type' parameter, and remove
11623 the 'from_tty' parameter. Accept NULL TYPE.
11624 (info_osdata_command): New function.
11625 * osdata.h (info_osdata_command): Remove declaration.
11626 (info_osdata): New declaration.
11627
11628 2017-04-05 Pedro Alves <palves@redhat.com>
11629
11630 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
11631 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
11632 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
11633 parameter.
11634 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
11635 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
11636 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
11637 parameter.
11638 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
11639 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
11640 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11641 (mi_cmd_file_list_exec_source_files)
11642 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
11643 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
11644 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
11645 parameter.
11646 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
11647 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
11648 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11649 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
11650 (mi_cmd_stack_info_frame): Constify 'command' parameter.
11651 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
11652 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
11653 'command' parameter.
11654 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
11655 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
11656 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
11657 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
11658 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
11659 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
11660 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
11661 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
11662 (mi_cmd_var_set_update_range): Constify 'command' parameter.
11663 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
11664 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
11665 parameter.
11666 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
11667 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
11668 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
11669 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
11670 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
11671 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
11672 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
11673 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
11674 (mi_cmd_data_list_changed_registers)
11675 (mi_cmd_data_write_register_values)
11676 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
11677 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
11678 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
11679 (mi_cmd_list_features, mi_cmd_list_target_features)
11680 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
11681 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
11682 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
11683 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
11684 (mi_cmd_trace_frame_collected): Constify 'command'
11685 parameter.
11686 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
11687 'command' parameter.
11688
11689 2017-04-05 Pedro Alves <palves@redhat.com>
11690
11691 * ada-lang.c (ada_completer_word_break_characters): Now a const
11692 array.
11693 (ada_get_gdb_completer_word_break_characters): Constify.
11694 * completer.c (gdb_completer_command_word_break_characters)
11695 (gdb_completer_file_name_break_characters)
11696 (gdb_completer_quote_characters): Now const arrays.
11697 (get_gdb_completer_quote_characters): Constify.
11698 (set_rl_completer_word_break_characters): New function.
11699 (set_gdb_completion_word_break_characters)
11700 (complete_line_internal): Use it.
11701 * completer.h (get_gdb_completer_quote_characters): Constify.
11702 (set_rl_completer_word_break_characters): Declare.
11703 * f-lang.c (f_word_break_characters): Constify.
11704 * language.c (default_word_break_characters): Constify.
11705 * language.h (language_defn::la_word_break_characters): Constify.
11706 (default_word_break_characters): Constify.
11707 * top.c (init_main): Use set_rl_completer_word_break_characters.
11708
11709 2017-04-05 Pedro Alves <palves@redhat.com>
11710
11711 * aix-thread.c (aix_thread_pid_to_str)
11712 (aix_thread_extra_thread_info): Constify.
11713 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
11714 * bsd-uthread.c (bsd_uthread_extra_thread_info)
11715 (bsd_uthread_pid_to_str): Constify.
11716 * corelow.c (core_pid_to_str): Constify.
11717 * darwin-nat.c (darwin_pid_to_str): Constify.
11718 * fbsd-nat.c (fbsd_pid_to_str): Constify.
11719 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
11720 Constify.
11721 * gnu-nat.c (gnu_pid_to_str): Constify.
11722 * go32-nat.c (go32_pid_to_str): Constify.
11723 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
11724 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
11725 * inferior.c (inferior_pid_to_str): Constify.
11726 * linux-nat.c (linux_nat_pid_to_str): Constify.
11727 * linux-tdep.c (linux_core_pid_to_str): Constify.
11728 * linux-thread-db.c (thread_db_pid_to_str)
11729 (thread_db_extra_thread_info): Constify.
11730 * nto-tdep.c (nto_extra_thread_info): Constify.
11731 * nto-tdep.h (nto_extra_thread_info): Constify.
11732 * obsd-nat.c (obsd_pid_to_str): Constify.
11733 * procfs.c (procfs_pid_to_str): Constify.
11734 * ravenscar-thread.c (ravenscar_extra_thread_info)
11735 (ravenscar_pid_to_str): Constify.
11736 * remote-sim.c (gdbsim_pid_to_str): Constify.
11737 * remote.c (remote_threads_extra_info, remote_pid_to_str):
11738 Constify.
11739 * sol-thread.c (solaris_pid_to_str): Constify.
11740 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
11741 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
11742 * target.c (default_pid_to_str, target_pid_to_str)
11743 (normal_pid_to_str, default_pid_to_str): Constify.
11744 * target.h (target_ops::to_pid_to_str)
11745 (target_ops::to_extra_thread_info): Constify.
11746 (target_pid_to_str, normal_pid_to_str): Constify.
11747 * windows-nat.c (windows_pid_to_str): Constify.
11748 * gdbarch.sh (core_pid_to_str): Constify.
11749 * target-delegates.c: Regenerate.
11750 * gdbarch.h, gdbarch.c: Regenerate.
11751
11752 2017-04-05 Pedro Alves <palves@redhat.com>
11753
11754 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
11755 the memory of the temporary warning_pre_print override.
11756 * utils.c (warning_pre_print): Constify.
11757 * utils.h (warning_pre_print): Constify.
11758
11759 2017-04-05 Pedro Alves <palves@redhat.com>
11760
11761 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
11762 (shell_command): New function.
11763 (make_command): Use std::string.
11764 (init_cli_cmds): Register shell_command instead of shell_escape.
11765
11766 2017-04-05 Pedro Alves <palves@redhat.com>
11767
11768 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
11769 * tracepoint.c (default_collect): Don't initialize.
11770
11771 2017-04-05 Pedro Alves <palves@redhat.com>
11772
11773 * macroexp.c (macro_buffer::shared): Now a bool.
11774 (init_buffer): Update.
11775 (init_shared_buffer): Constify 'addr' parameter.
11776 (substitute_args, expand, macro_expand, macro_expand_next): Remove
11777 casts.
11778
11779 2017-04-05 Pedro Alves <palves@redhat.com>
11780
11781 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
11782 * disasm.c (set_disassembler_options): Constify local.
11783 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
11784
11785 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
11786
11787 PR gdb/21352
11788 * tracefile.c (tsave_command): Fix argument parsing for '-r'
11789 option.
11790
11791 2017-04-05 Yao Qi <yao.qi@linaro.org>
11792
11793 * frame.c (frame_unwind_register_unsigned): Call
11794 frame_unwind_register_value.
11795
11796 2017-04-05 Yao Qi <yao.qi@linaro.org>
11797
11798 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
11799 Use gdb_test_multiple, and don't match anchor.
11800
11801 2017-04-05 Pedro Alves <palves@redhat.com>
11802
11803 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
11804 (Write After Approval): Remove Simon Marchi.
11805
11806 2017-04-05 Pedro Alves <palves@redhat.com>
11807
11808 * common/gdb_optional.h (optional::optional): Make constexpr and
11809 initialize m_dummy.
11810
11811 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11812
11813 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11814 (amd64fbsd_jmp_buf_reg_offset): Remove.
11815 (amd64fbsd_supply_uthread): Remove function.
11816 (amd64fbsd_collect_uthread): Remove function.
11817 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
11818 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
11819 (x86_64-*-freebsd*): Remove bsd-uthread.o.
11820 (fbsd-nat.c): Update comment.
11821 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11822 (i386fbsd_jmp_buf_reg_offset): Remove.
11823 (i386fbsd_supply_uthread): Remove function.
11824 (i386fbsd_collect_uthread): Remove function.
11825 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
11826
11827 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11828
11829 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
11830 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
11831 * NEWS: Mention that support for FreeBSD/alpha was removed.
11832 * alpha-fbsd-tdep.c: Delete file.
11833 * config/alpha/fbsd.mh: Delete file.
11834 * configure.host: Delete alpha*-*-freebsd* and
11835 alpha*-*-kfreebsd*-gnu.
11836 * configure.tgt: Delete alpha*-*-freebsd* and
11837 alpha*-*-kfreebsd*-gnu.
11838
11839 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11840
11841 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
11842 amd64bsd_store_inferior_registers): Use ptid from regcache.
11843
11844 2017-04-04 Pedro Alves <palves@redhat.com>
11845
11846 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
11847 data fields, make them private and add "m_" prefixes.
11848 (lnp_state_machine::lnp_state_machine): New ctor.
11849 (record_line, check_line_address, handle_set_discriminator)
11850 (handle_set_address, handle_advance_pc, handle_special_opcode)
11851 (handle_advance_line, handle_set_file, handle_negate_stmt)
11852 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
11853 (end_sequence, advance_line): New methods.
11854 (m_gdbarch, m_record_lines_p): New fields.
11855 (lnp_reader_state): Delete.
11856 (dwarf_record_line): Rename to ...
11857 (lnp_state_machine::record_line): ... adjust.
11858 (init_lnp_state_machine): Delete.
11859 (lnp_state_machine::lnp_state_machine): New.
11860 (check_line_address): Rename to ...
11861 (lnp_state_machine::check_line_address): This.
11862 (dwarf_decode_lines_1): Remove reference to "reader_state".
11863 Adjust lnp_state_machine having a non-default ctor. Use bool.
11864 State machine internal state manipulation moved to
11865 lnp_state_machine methods.
11866
11867 2017-04-04 Pedro Alves <palves@redhat.com>
11868
11869 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11870 unittests/offset-type-selftests.c.
11871 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11872 * common/offset-type.h: New file.
11873 * common/preprocessor.h: New file.
11874 * common/traits.h: New file.
11875 * common/valid-expr.h: New file.
11876 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11877 sect_offset and cu_offset strong typedefs throughout.
11878 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11879 typedefs throughout.
11880 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11881 sect_offset and cu_offset strong typedefs throughout.
11882 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11883 typedefs throughout.
11884 * gdbtypes.h: Include "common/offset-type.h".
11885 (cu_offset): Now an offset type (strong typedef) instead of a
11886 struct.
11887 (sect_offset): Likewise.
11888 (union call_site_parameter_u): Rename "param_offset" field to
11889 "param_cu_off".
11890 * unittests/offset-type-selftests.c: New file.
11891
11892 2017-04-04 Pedro Alves <palves@redhat.com>
11893
11894 * common/underlying.h: New file.
11895 * dwarf2read.c: Include "common/gdb_optional.h" and
11896 "common/underlying.h".
11897 (dir_index, file_name_index): New types.
11898 (file_entry): Use them.
11899 (file_entry::include): Use to_underlying.
11900 (line_header::add_file_name): Use dir_index.
11901 (read_formatted_entries): Use gdb::optional. Read form before
11902 writting to file_entry.
11903 (dwarf_decode_line_header): Use dir_index.
11904 (lnp_state_machine::current_file): Use to_underlying.
11905 (lnp_state_machine::file): Change type to file_name_index.
11906 (dwarf_record_line): Use to_underlying.
11907 (init_lnp_state_machine): Use file_name_index.
11908 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11909
11910 2017-04-04 Pedro Alves <palves@redhat.com>
11911
11912 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11913 operator bool, has_value and get methods.
11914
11915 2017-04-04 Pedro Alves <palves@redhat.com>
11916
11917 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11918 fields.
11919 (line_header): Initialize all data fields. Change type of
11920 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11921 Change type of include_dirs to std::vector<const char *>. Remove
11922 num_include_dirs, include_dirs_size. Change type of file_names to
11923 std::vector<file_entry>. Remove num_file_names, file_names_size.
11924 (line_header::line_header): New.
11925 (line_header::add_include_dir, line_header::add_file_name): New
11926 methods.
11927 (line_header::include_dir_at): Remove NULL check.
11928 (line_header::file_name_at): Add const overload.
11929 (line_header_up): New unique_ptr typedef.
11930 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11931 std::vector. Remove free_line_header call.
11932 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11933 free_line_header call.
11934 (free_cu_line_header): Delete.
11935 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11936 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11937 Adjust to use std::vector.
11938 (free_line_header): Delete.
11939 (free_line_header_voidp): Use delete.
11940 (add_include_dir): Replace with ...
11941 (line_header::add_include_dir): ... this method. Use std::vector.
11942 (add_file_name): Replace with ...
11943 (line_header::add_file_name): ... this method. Use std::vector.
11944 (add_include_dir_stub): Delete.
11945 (read_formatted_entries): Remove memset.
11946 (dwarf_decode_line_header): Return a line_header_up instead of a
11947 raw pointer. Remove cleanup handling. Pass lambdas to
11948 read_formatted_entries. Adjust to use line_header methods.
11949 (dwarf_decode_lines_1): Adjust to use line_header methods.
11950 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11951 use std::vector.
11952
11953 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11954
11955 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11956 instead of struct ptid.
11957
11958 2017-05-04 Alan Hayward <alan.hayward@arm.com>
11959
11960 * frame.c (get_frame_register_bytes): Unwind using value.
11961 (put_frame_register_bytes): Likewise.
11962
11963 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11964
11965 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11966 aggregate-like.
11967
11968 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11969
11970 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11971
11972 2017-03-29 Yao Qi <yao.qi@linaro.org>
11973
11974 * gdbthread.h (struct thread_info): Declare constructor and
11975 destructor. Add some in-class member initializers.
11976 * thread.c (free_thread): Remove.
11977 (init_thread_list): Call delete instead of free_thread.
11978 (new_thread): Call thread_info constructor.
11979 (thread_info::thread_info): New function.
11980 (thread_info::~thread_info): New function.
11981 (delete_thread_1): Call delete instead of free_thread.
11982 (make_cleanup_restore_current_thread): Move tp and frame to
11983 inner block.
11984
11985 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11986
11987 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11988 (arc_skip_prologue): Likewise.
11989 (arc_make_frame_cache): Likewise.
11990 (arc_pv_get_operand): New function.
11991 (arc_is_in_prologue): Likewise.
11992 (arc_analyze_prologue): Likewise.
11993 (arc_print_frame_cache): Likewise.
11994 (MAX_PROLOGUE_LENGTH): New constant.
11995
11996 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11997
11998 * configure.tgt: Add arc-insn.o.
11999 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
12000 (dump_arc_instruction_command): New function.
12001 (arc_fprintf_disasm): Likewise.
12002 (arc_disassemble_info): Likewise.
12003 (arc_insn_get_operand_value): Likewise.
12004 (arc_insn_get_operand_value_signed): Likewise.
12005 (arc_insn_get_memory_base_reg): Likewise.
12006 (arc_insn_get_memory_offset): Likewise.
12007 (arc_insn_get_branch_target): Likewise.
12008 (arc_insn_dump): Likewise.
12009 (arc_insn_get_linear_next_pc): Likewise.
12010 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
12011 (arc_disassemble_info): Likewise.
12012 (arc_insn_get_branch_target): Likewise.
12013 (arc_insn_get_linear_next_pc): Likewise.
12014 * NEWS: Mention new "maint print arc arc-instruction".
12015
12016 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12017
12018 * arc-tdep (maintenance_print_arc_list): New variable.
12019 (maintenance_print_arc_command): New function.
12020
12021 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
12022
12023 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
12024 Add "limm" and "reserved".
12025 (arc_cannot_fetch_register, arc_cannot_store_register): Add
12026 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
12027 * arc-tdep.h (arc_regnum): Likewise.
12028
12029 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12030
12031 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
12032 for THREADPTR register.
12033 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
12034 register.
12035 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
12036 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
12037 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
12038
12039 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12040
12041 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
12042 registers above gdbarch_num_regs (gdbarch) as privileged in
12043 call0 ABI.
12044
12045 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12046
12047 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
12048 for a single specified register or for all registers in
12049 a0_base..a0_base + C0_NREGS range.
12050 (supply_gregset_reg): Call regcache_raw_supply for a single
12051 specified register or for all registers in a0_base..a0_base +
12052 C0_NREGS range.
12053
12054 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12055
12056 * arch/xtensa.h (C0_NREGS): Add definition.
12057 * xtensa-tdep.c (C0_NREGS): Remove definition.
12058
12059 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
12060
12061 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
12062 Drop xtensa_default_isa initialization.
12063 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
12064
12065 2017-03-27 Pedro Alves <palves@redhat.com>
12066
12067 * dwarf2read.c (file_entry) <dir_index>: Add comment.
12068 (file_entry::include_dir): New method.
12069 (line_header::include_dir_at, line_header::file_name_at): New
12070 methods.
12071 (setup_type_unit_groups, setup_type_unit_groups)
12072 (psymtab_include_file_name): Simplify using the new methods.
12073 (lnp_state_machine) <the_line_header>: New field.
12074 <file>: Add comment.
12075 (lnp_state_machine::current_file): New method.
12076 (dwarf_record_line): Simplify using the new methods.
12077 (init_lnp_state_machine): Initialize the "the_line_header" field.
12078 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
12079 Simplify using the new methods.
12080
12081 2017-03-27 Pedro Alves <palves@redhat.com>
12082
12083 * cp-name-parser.y (make_empty): Delete.
12084 (demangler_special, nested_name, ptr_operator, array_indicator)
12085 (direct_declarator, declarator_1): Use fill_comp instead of
12086 make_empty.
12087
12088 2017-03-27 Pedro Alves <palves@redhat.com>
12089
12090 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
12091 to ATTRIBUTE_PRINTF.
12092 * solib-target.c (library_list_start_list): Print "string" not
12093 "version".
12094 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
12095 gdb_xml_error call.
12096
12097 2017-03-27 Pedro Alves <palves@redhat.com>
12098
12099 * dwarf2read.c (struct file_and_directory): New.
12100 (dwarf2_get_dwz_file): Adjust to use std::string.
12101 (dw2_get_file_names_reader): Adjust to use file_and_directory.
12102 (find_file_and_directory): Adjust to return a file_and_directory
12103 object.
12104 (read_file_scope): Adjust to use file_and_directory. Remove
12105 make_cleanup/do_cleanups calls.
12106 (open_and_init_dwp_file): Adjust to use std::string. Remove
12107 make_cleanup/do_cleanups calls.
12108 * python/python.c (do_start_initialization): Adjust to ldirname
12109 returning a std::string.
12110 * utils.c (ldirname): Now returns a std::string.
12111 * utils.h (ldirname): Change return type to std::string.
12112 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
12113 returning a std::string.
12114 * xml-tdesc.c (file_read_description_xml): Likewise.
12115
12116 2017-03-24 Alan Hayward <alan.hayward@arm.com>
12117
12118 * regcache.c (regcache_debug_print_register): New function.
12119 * regcache.h (regcache_debug_print_register): New declaration.
12120 * target.c (debug_print_register): Remove.
12121 (target_fetch_registers): Call regcache_debug_print_register.
12122 (target_store_registers): Likewise.
12123
12124 2017-03-24 Pádraig Brady <pbrady@fb.com>
12125
12126 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
12127 reference beyond the 'lh->include_dirs' array before accessing to
12128 it.
12129 (psymtab_include_file_name): Likewise.
12130 (dwarf_decode_lines_1): Likewise.
12131 (dwarf_decode_lines): Likewise.
12132 (file_file_name): Likewise.
12133
12134 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
12135
12136 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
12137 inferior_ptid.
12138 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
12139 ps_lsetfpregs): Likewise.
12140 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
12141 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
12142 ps_lsetfpregs): Likewise.
12143 * target.c (target_fetch_registers, target_store_registers):
12144 Remove asserts.
12145
12146 2017-03-23 Alan Hayward <alan.hayward@arm.com>
12147
12148 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
12149
12150 2017-03-23 Yao Qi <yao.qi@linaro.org>
12151
12152 * aarch64-tdep.c (aarch64_process_record_test): Declare.
12153 (_initialize_aarch64_tdep): Register it.
12154 (aarch64_record_load_store): Handle PRFM instruction.
12155 (aarch64_process_record_test): New function.
12156
12157 2017-03-23 Yao Qi <yao.qi@linaro.org>
12158
12159 * aarch64-tdep.c (aarch64_record_load_store): Fix code
12160 indentation.
12161
12162 2017-03-23 Yao Qi <yao.qi@linaro.org>
12163
12164 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
12165
12166 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12167
12168 python/python.c (do_start_initialization): Fix memory leak.
12169
12170 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12171
12172 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
12173 using get_ptrace_pid.
12174 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
12175 inferior_ptid.
12176 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
12177 inferior_ptid instead of pid.
12178
12179 2017-03-22 Yao Qi <yao.qi@linaro.org>
12180
12181 * aarch64-tdep.c: Wrap locally used classes in anonymous
12182 namespace.
12183 * arm-tdep.c: Likewise.
12184 * linespec.c: Likewise.
12185 * ui-out.c: Likewise.
12186
12187 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
12188
12189 PR gdb/19637
12190 * python/lib/gdb/printer/bound_registers.py: Import sys.
12191
12192 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
12193
12194 * windows-nat.c (do_windows_fetch_inferior_registers): Add
12195 windows_thread_info parameter and use it instead of
12196 current_thread.
12197 (windows_fetch_inferior_registers): Don't set current_thread,
12198 pass the thread to do_windows_fetch_inferior_registers. Use
12199 ptid from regcache instead of inferior_ptid.
12200 (do_windows_store_inferior_registers): Add windows_thread_info
12201 parameter and use it instead of current_thread.
12202 (windows_store_inferior_registers): Don't set current_thread,
12203 pass the thread to do_windows_store_inferior_registers. Use
12204 ptid from regcache instead of inferior_ptid.
12205
12206 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
12207
12208 * ser-mingw.c (ser_windows_raw): Remove reference to
12209 struct serial::current_timeout.
12210
12211 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
12212
12213 PR tdep/20928
12214 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
12215 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
12216 (sparc64_fsr_type): Fix %fsr decoding.
12217
12218 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
12219
12220 * python/py-record-btrace.c (btpy_insn_data): Change return type
12221 for Python 2.
12222
12223 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12224
12225 * spu-linux-nat.c (spu_fetch_inferior_registers,
12226 spu_store_inferior_registers): Use ptid from regcache, set and
12227 restore inferior_ptid.
12228 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
12229 Likewise.
12230
12231 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12232
12233 * i386-linux-nat.c (fetch_register, store_register,
12234 i386_linux_fetch_inferior_registers,
12235 i386_linux_store_inferior_registers): Use ptid from regcache.
12236 * ia64-linux-nat.c (ia64_linux_fetch_register,
12237 ia64_linux_store_register): Likewise.
12238 * inf-ptrace.c (inf_ptrace_fetch_register,
12239 inf_ptrace_store_register): Likewise.
12240 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
12241 m32r_linux_store_inferior_registers): Likewise.
12242 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
12243 m68kbsd_store_inferior_registers): Likewise.
12244 * m68k-linux-nat.c (fetch_register, store_register,
12245 m68k_linux_fetch_inferior_registers,
12246 m68k_linux_store_inferior_registers): Likewise.
12247 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
12248 m88kbsd_store_inferior_registers): Likewise.
12249 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
12250 mips_fbsd_store_inferior_registers): Likewise.
12251 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
12252 mips64_linux_regsets_store_registers): Likewise.
12253 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
12254 mipsnbsd_store_inferior_registers): Likewise.
12255 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
12256 mips64obsd_store_inferior_registers): Likewise.
12257 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
12258 Likewise.
12259 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
12260 ppcfbsd_store_inferior_registers): Likewise.
12261 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
12262 ppc_linux_store_inferior_registers): Likewise.
12263 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
12264 ppcnbsd_store_inferior_registers): Likewise.
12265 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
12266 ppcobsd_store_registers): Likewise.
12267 * procfs.c (procfs_fetch_registers, procfs_store_registers):
12268 Likewise.
12269 * ravenscar-thread.c (ravenscar_fetch_registers,
12270 ravenscar_store_registers, ravenscar_prepare_to_store):
12271 Likewise.
12272 * record-btrace.c (record_btrace_fetch_registers,
12273 record_btrace_store_registers, record_btrace_prepare_to_store):
12274 Likewise.
12275 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
12276 Lookup inferior using ptid from regcache, instead of
12277 current_inferior.
12278 * remote.c (remote_fetch_registers, remote_store_registers): Use
12279 ptid from regcache.
12280 * rs6000-nat.c (fetch_register, store_register): Likewise.
12281 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
12282 s390_linux_store_inferior_registers): Likewise.
12283 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
12284 shnbsd_store_inferior_registers): Likewise.
12285 * sol-thread.c (sol_thread_fetch_registers,
12286 sol_thread_store_registers): Likewise.
12287 * sparc-nat.c (sparc_fetch_inferior_registers,
12288 sparc_store_inferior_registers): Likewise.
12289 * tilegx-linux-nat.c (fetch_inferior_registers,
12290 store_inferior_registers): Likewise.
12291 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
12292 vaxbsd_store_inferior_registers): Likewise.
12293 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
12294 store_xtregs): Likewise.
12295
12296 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12297
12298 PR gdb/14441
12299 * NEWS: Mention support for rvalue references in GDB and python.
12300 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
12301 supports both lvalue and rvalue references.
12302
12303 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12304
12305 PR gdb/14441
12306 * gdbtypes.c (rank_one_type): Implement overloading
12307 resolution rules regarding rvalue references.
12308
12309 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12310
12311 PR gdb/14441
12312 * aarch64-tdep.c (aarch64_type_align)
12313 (aarch64_extract_return_value, aarch64_store_return_value): Change
12314 lvalue reference type checks to general reference type checks.
12315 * amd64-tdep.c (amd64_classify): Likewise.
12316 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
12317 Likewise.
12318 * arm-tdep.c (arm_type_align, arm_extract_return_value)
12319 (arm_store_return_value): Likewise.
12320 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
12321 * c-typeprint.c (c_print_type): Likewise.
12322 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
12323 (cplus_number_of_children, cplus_describe_child): Likewise.
12324 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
12325 * completer.c (expression_completer): Likewise.
12326 * cp-support.c (make_symbol_overload_list_adl_namespace):
12327 Likewise.
12328 * darwin-nat-info.c (info_mach_region_command): Likewise.
12329 * dwarf2loc.c (entry_data_value_coerce_ref)
12330 (value_of_dwarf_reg_entry): Likewise.
12331 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
12332 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
12333 Likewise.
12334 * findvar.c (extract_typed_address, store_typed_address):
12335 Likewise.
12336 * gdbtypes.c (rank_one_type): Likewise.
12337 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
12338 * infcall.c (value_arg_coerce): Likewise.
12339 * language.c (pointer_type): Likewise.
12340 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
12341 Likewise.
12342 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
12343 * mn10300-tdep.c (mn10300_type_align): Likewise.
12344 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
12345 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
12346 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
12347 Likewise.
12348 * printcmd.c (print_formatted, x_command): Likewise.
12349 * python/py-type.c (typy_get_composite, typy_template_argument):
12350 Likewise.
12351 * python/py-value.c (valpy_referenced_value)
12352 (valpy_get_dynamic_type, value_has_field): Likewise.
12353 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
12354 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
12355 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
12356 * spu-tdep.c (spu_scalar_value_p): Likewise.
12357 * symtab.c (lookup_symbol_aux): Likewise.
12358 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
12359 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
12360 Likewise.
12361 * valops.c (value_cast_pointers, value_cast)
12362 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
12363 (value_struct_elt, value_struct_elt_bitpos)
12364 (value_find_oload_method_list, find_overload_match)
12365 (value_rtti_indirect_type): Likewise.
12366 * valprint.c (val_print_scalar_type_p, generic_val_print):
12367 Likewise.
12368 * value.c (value_actual_type, value_as_address, unpack_long)
12369 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
12370 (coerce_ref): Likewise.
12371 * varobj.c (varobj_get_value_type): Likewise.
12372
12373 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12374
12375 PR gdb/14441
12376 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
12377 table of constants.
12378 * python/lib/gdb/command/explore.py: Support exploring values
12379 of rvalue reference types.
12380 * python/lib/gdb/types.py: Implement get_basic_type() for
12381 rvalue reference types.
12382 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
12383 constant.
12384 * python/py-value.c (valpy_getitem): Add an rvalue reference
12385 check.
12386 (valpy_reference_value): Add new parameter "refcode".
12387 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
12388 New wrappers for valpy_reference_value().
12389 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
12390 (gdbpy_invoke_xmethod): Likewise.
12391
12392 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12393
12394 PR gdb/14441
12395 * dwarf2read.c (process_die, read_type_die_1): Handle the
12396 DW_TAG_rvalue_reference_type DIE.
12397 (read_tag_reference_type): Add new parameter "refcode".
12398
12399 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12400
12401 PR gdb/14441
12402 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
12403 (c_type_print_modifier, c_type_print_varspec_suffix)
12404 (c_type_print_base): Support printing rvalue reference types.
12405 * c-valprint.c (c_val_print, c_value_print): Support printing
12406 rvalue reference values.
12407
12408 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12409
12410 PR gdb/14441
12411 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
12412 typename.
12413 * cp-support.c (replace_typedefs): Handle
12414 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
12415 * python/py-type.c (typy_lookup_type): Likewise.
12416
12417 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12418
12419 PR gdb/14441
12420 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
12421 * parse.c (insert_type): Change assert statement.
12422 (follow_types): Handle rvalue reference types.
12423 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
12424 constant.
12425
12426 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12427
12428 PR gdb/14441
12429 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
12430 value_ref() interface.
12431 * c-valprint.c (c_value_print): Likewise.
12432 * infcall.c (value_arg_coerce): Likewise.
12433 * python/py-value.c (valpy_reference_value): Likewise.
12434 * valops.c (value_cast, value_reinterpret_cast)
12435 (value_dynamic_cast, typecmp): Likewise.
12436 (value_ref): Parameterize by kind of return value reference type.
12437 * value.h (value_ref): Add new parameter "refcode".
12438
12439 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12440
12441 PR gdb/14441
12442 * dwarf2read.c (read_tag_reference_type): Use
12443 lookup_lvalue_reference_type() instead of lookup_reference_type().
12444 * eval.c (evaluate_subexp_standard): Likewise.
12445 * f-exp.y: Likewise.
12446 * gdbtypes.c (make_reference_type, lookup_reference_type):
12447 Generalize with rvalue reference types.
12448 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
12449 convenience wrappers for lookup_reference_type().
12450 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
12451 reference kind parameter.
12452 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
12453 wrappers for lookup_reference_type().
12454 * guile/scm-type.c (gdbscm_type_reference): Use
12455 lookup_lvalue_reference_type() instead of lookup_reference_type().
12456 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
12457 * parse.c (follow_types): Likewise.
12458 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
12459 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
12460 Likewise.
12461 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
12462 (gdbpy_invoke_xmethod): Likewise.
12463 * stabsread.c: Provide extra argument to make_reference_type()
12464 call.
12465 * valops.c (value_ref, value_rtti_indirect_type): Use
12466 lookup_lvalue_reference_type() instead of lookup_reference_type().
12467
12468 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12469
12470 PR gdb/14441
12471 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
12472 (TYPE_IS_REFERENCE): New macro.
12473 (struct type): Add rvalue_reference_type field.
12474 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
12475
12476 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
12477
12478 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
12479 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
12480 New function definition.
12481 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
12482 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
12483 New function declaration.
12484 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
12485 * mi/mi-interp.h: New file.
12486 * solib.c (info_sharedlibrary_command): Replace for loop with
12487 ALL_SO_LIBS macro
12488 * solib.h (update_solib_list): New function declaration.
12489 (so_list_head): Move macro.
12490 * solist.h (ALL_SO_LIBS): New macro.
12491
12492 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
12493
12494 * infcmd.c (post_create_inferior): Remove unused argument in
12495 call to solib_add.
12496 * remote.c (remote_start_remote): Likewise.
12497 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
12498 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
12499 (enable_break): Likewise.
12500 * solib.c (update_solib_list): Remove unused target argument
12501 and its documentation.
12502 (solib_add): Remove unused target argument. Remove unused
12503 argument in call to update_solib_list.
12504 (info_sharedlibrary_command): Remove unused argument in call
12505 to update_solib_list.
12506 (sharedlibrary_command): Remove unused argument in call to
12507 solib_add.
12508 (handle_solib_event): Likewise.
12509 (reload_shared_libraries): Likewise.
12510 * solib.h (solib_add): Remove unused target argument.
12511
12512 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
12513
12514 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
12515 (s390_displaced_step_fixup): Cover relative branches with the
12516 default fixup handling. This fixes lack of support for some
12517 relative branch instructions.
12518
12519 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12520
12521 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
12522 ptid from regcache.
12523
12524 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12525
12526 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
12527 i386_darwin_store_inferior_registers): Use ptid from regcache.
12528
12529 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12530
12531 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
12532 i386bsd_store_inferior_registers): Use ptid from regcache.
12533
12534 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12535
12536 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
12537 hppaobsd_store_registers): Use ptid from regcache.
12538
12539 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12540
12541 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
12542 hppanbsd_store_registers): Use ptid from regcache.
12543
12544 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12545
12546 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
12547 from regcache. Use get_ptrace_pid.
12548
12549 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12550
12551 * corelow.c (get_core_register_section): Use ptid from regcache,
12552 update doc.
12553
12554 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12555
12556 * bsd-uthread.c (bsd_uthread_fetch_registers,
12557 bsd_uthread_store_registers): Use ptid from regcache, set and
12558 restore inferior_ptid.
12559
12560 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12561
12562 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
12563 fetch_fp_regs, store_register, store_regs, store_fp_register,
12564 store_fp_regs): Use ptid from regcache.
12565
12566 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12567
12568 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
12569 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
12570 store_vfp_regs): Use ptid from regcache.
12571
12572 2017-03-17 Pedro Alves <palves@redhat.com>
12573
12574 PR remote/21188
12575 * ser-base.c (ser_base_wait_for): Add comment.
12576 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
12577 version.
12578 * ser-unix.c (hardwire_raw): Remove reference to
12579 scb->current_timeout.
12580 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
12581 (hardwire_ops): Install ser_base_readchar instead of
12582 hardwire_readchar.
12583 * serial.h (struct serial) <current_timeout, timeout_remaining>:
12584 Remove fields.
12585
12586 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
12587
12588 PR gdb/19637
12589 * python/lib/gdb/printer/bound_registers.py: Add support for
12590 Python 3.
12591
12592 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
12593
12594 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
12595 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
12596 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
12597 byte_offset to subobj_byte_offset. Fix the handling of
12598 DWARF_VALUE_STACK on big-endian targets when coming via an
12599 implicit pointer.
12600 (dwarf2_evaluate_loc_desc): Adjust call to
12601 dwarf2_evaluate_loc_desc_full.
12602 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
12603 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
12604
12605 2017-03-16 Yao Qi <yao.qi@linaro.org>
12606
12607 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
12608 and REVSH instructions.
12609
12610 2017-03-16 Yao Qi <yao.qi@linaro.org>
12611
12612 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
12613 (arm_record_test): Declare.
12614 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
12615 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
12616 align with the manual.
12617 (thumb_record_misc): Adjust the code order to align with the
12618 manual.
12619 (thumb2_record_decode_insn_handler): Fix instruction matching.
12620 (instruction_reader_thumb): New class.
12621 (arm_record_test): New function.
12622
12623 2017-03-16 Yao Qi <yao.qi@linaro.org>
12624
12625 * arm-tdep.c (abstract_memory_reader): New class.
12626 (instruction_reader): New class.
12627 (extract_arm_insn): Add argument 'reader'. Callers updated.
12628 (decode_insn): Likewise.
12629
12630 2017-03-16 Doug Evans <dje@google.com>
12631
12632 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
12633 member. Change type of TYPE member to SCM. All uses updated.
12634 (lsscm_make_lazy_string_smob): Add assert.
12635 (lsscm_make_lazy_string): Flag bad length values.
12636 (lsscm_elt_type): New function.
12637 (gdbscm_lazy_string_to_value): Rewrite to use
12638 lsscm_safe_lazy_string_to_value.
12639 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
12640 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
12641 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
12642 in incoming type.
12643 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12644 * guile/scm-type.c (tyscm_scm_to_type): New function.
12645
12646 2017-03-15 Doug Evans <dje@google.com>
12647
12648 PR python/17728, python/18439, python/18779
12649 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
12650 member. Change type of TYPE member to PyObject *. All uses updated.
12651 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
12652 (gdbpy_create_lazy_string_object): Flag bad length values.
12653 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
12654 Handle typedefs in incoming type.
12655 (stpy_lazy_string_elt_type): New function.
12656 (gdbpy_extract_lazy_string): Call it.
12657 * python/py-value.c (valpy_lazy_string): Flag bad length values.
12658 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
12659 typedefs in incoming type.
12660
12661 2017-03-16 Doug Evans <dje@google.com>
12662
12663 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12664 * guile/scm-type.c (tyscm_scm_to_type): New function.
12665
12666 2017-03-16 Jiong Wang <jiong.wang@arm.com>
12667
12668 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
12669 "ULONGEST" for "skip".
12670
12671 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12672
12673 PR gdb/21220
12674 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
12675 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
12676 (inf_ptrace_peek_poke): ...here. New function. Now also loop
12677 over ptrace peek/poke until end of buffer or error.
12678
12679 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
12680
12681 * parse.c (length_of_subexp): Make static.
12682 * parser-defs.h (length_of_subexp): Remove.
12683
12684 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12685
12686 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
12687 as well.
12688
12689 2017-03-14 Pedro Alves <palves@redhat.com>
12690
12691 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
12692 (main): Use std::unique_ptr. Remove calls to
12693 cp_demangled_name_parse_free.
12694
12695 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12696
12697 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
12698 alphabsd_store_inferior_registers): Use regcache->ptid instead
12699 of inferior_ptid.
12700
12701 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12702
12703 * aix-thread.c (aix_thread_fetch_registers,
12704 aix_thread_store_registers): Use regcache->ptid instead of
12705 inferior_ptid.
12706
12707 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12708
12709 * aarch64-linux-nat.c (fetch_gregs_from_thread,
12710 store_gregs_to_thread, fetch_fpregs_from_thread,
12711 store_fpregs_to_thread): Use regcache->ptid instead of
12712 inferior_ptid.
12713
12714 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12715
12716 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
12717 amd64_linux_fetch_inferior_registers): Use regcache->ptid
12718 instead of inferior_ptid.
12719
12720 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12721
12722 * target.c (target_fetch_registers, target_store_registers): Add
12723 assert.
12724
12725 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12726
12727 * regcache.h (regcache_get_ptid): New function.
12728 * regcache.c (regcache_get_ptid): New function.
12729
12730 2017-03-13 Mark Wielaard <mark@klomp.org>
12731
12732 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
12733
12734 2017-03-10 Keith Seitz <keiths@redhat.com>
12735
12736 PR c++/8218
12737 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
12738
12739 2017-03-08 Pedro Alves <palves@redhat.com>
12740
12741 PR gdb/18360
12742 * infrun.c (start_step_over, do_target_resume, resume)
12743 (restart_threads): Assert we're not resuming a thread that is
12744 meant to be stopped.
12745 (infrun_thread_stop_requested_callback): Delete.
12746 (infrun_thread_stop_requested): If the thread is internally
12747 stopped, queue a pending stop event and clear the thread's
12748 inline-frame state.
12749 (handle_stop_requested): New function.
12750 (handle_syscall_event, handle_inferior_event_1): Use
12751 handle_stop_requested.
12752 (handle_stop_requested): New function.
12753 (handle_signal_stop): Set the thread's stop_signal here instead of
12754 at caller.
12755 (finish_step_over): Clear step over info unconditionally.
12756 (handle_signal_stop): If the user had interrupted the event
12757 thread, consider the stop a random signal.
12758 (handle_signal_stop) <signal arrived while stepping over
12759 breakpoint>: Don't restart threads here.
12760 (stop_waiting): Don't clear step-over info here.
12761
12762 2017-03-08 Pedro Alves <palves@redhat.com>
12763
12764 PR 21206
12765 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
12766 goes to argument 2, not 1.
12767
12768 2017-03-08 Pedro Alves <palves@redhat.com>
12769
12770 PR cli/21218
12771 * top.c (gdb_readline_wrapper): Avoid passing NULL to
12772 display_gdb_prompt.
12773 (command_line_input): Add comment.
12774
12775 2017-03-08 Pedro Alves <palves@redhat.com>
12776
12777 PR tui/21216
12778 * tui/tui-file.c (tui_file::write): New.
12779 * tui/tui-file.h (tui_file): Override "write".
12780 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
12781 factored out from ...
12782 (tui_puts): ... here.
12783 (tui_putc): Use them.
12784 (tui_write): New function.
12785 * tui/tui-io.h (tui_write): Declare.
12786
12787 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
12788
12789 * Makefile.in (SFILES): Replace "environ.c" with
12790 "common/environ.c".
12791 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
12792 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
12793 to...
12794 * common/environ.c: ... here.
12795 * environ.h: Moved to...
12796 * common/environ.h: ... here.
12797
12798 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12799
12800 * gdbarch.sh (pstring_ptr): New static function.
12801 (gdbarch_disassembler_options): Use it.
12802 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
12803 not valid_disassembler_option->name.
12804 * gdbarch.c: Regenerate.
12805
12806 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12807
12808 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
12809
12810 2017-03-07 Pedro Alves <palves@redhat.com>
12811
12812 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
12813
12814 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
12815
12816 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12817 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
12818 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
12819 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
12820
12821 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
12822
12823 * xtensa-linux-nat.c (fetch_gregs): Remove const.
12824
12825 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
12826
12827 * remote.c (remote_add_target_side_commands): Use range-based
12828 for loop.
12829
12830 2017-03-03 Yao Qi <yao.qi@linaro.org>
12831
12832 PR gdb/21165
12833 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
12834 value is lazy.
12835 * valprint.c (common_val_print): Likewise.
12836
12837 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
12838
12839 * NEWS: Mention new set/show disassembler-options commands.
12840 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
12841 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
12842 (prospective_options): New static variable.
12843 (gdb_disassembler::gdb_disassembler): Initialize
12844 m_di.disassembler_options.
12845 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
12846 (get_disassembler_options): New function.
12847 (set_disassembler_options): Likewise.
12848 (set_disassembler_options_sfunc): Likewise.
12849 (show_disassembler_options_sfunc): Likewise.
12850 (disassembler_options_completer): Likewise.
12851 (_initialize_disasm): Likewise.
12852 * disasm.h (get_disassembler_options): New prototype.
12853 (set_disassembler_options): Likewise.
12854 * gdbarch.sh (gdbarch_disassembler_options): New variable.
12855 (gdbarch_verify_disassembler_options): Likewise.
12856 * gdbarch.c: Regenerate.
12857 * gdbarch.h: Likewise.
12858 * arm-tdep.c (num_disassembly_options): Delete.
12859 (set_disassembly_style): Likewise.
12860 (arm_disassembler_options): New static variable.
12861 (set_disassembly_style_sfunc): Convert short style name into long
12862 option name. Call set_disassembler_options.
12863 (show_disassembly_style_sfunc): New function.
12864 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
12865 set_gdbarch_verify_disassembler_options.
12866 (_initialize_arm_tdep): Delete regnames variable and update callers.
12867 (arm_disassembler_options): Initialize.
12868 (disasm_options): New variable.
12869 (num_disassembly_options): Rename from this...
12870 (num_disassembly_styles): ...to this. Compute by scanning through
12871 disasm_options.
12872 (valid_disassembly_styles): Initialize using disasm_options.
12873 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12874 set_arm_regname_option.
12875 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12876 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12877 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12878 set_gdbarch_verify_disassembler_options.
12879 * s390-tdep.c (s390_disassembler_options): New static variable.
12880 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12881 set_gdbarch_verify_disassembler_options.
12882
12883 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12884
12885 * remote.c (remote_add_target_side_condition): Remove "struct"
12886 keyword from range-based for loop.
12887
12888 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12889
12890 * remote.c (remote_add_target_side_condition): Use range-based
12891 for loop. Update comment.
12892
12893 2017-02-27 Yao Qi <yao.qi@linaro.org>
12894
12895 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12896
12897 2017-02-26 Alan Hayward <alan.hayward@arm.com>
12898
12899 * regcache.c (regcache_raw_update): New function.
12900 (regcache_raw_read): Move code to regcache_raw_update.
12901 * regcache.h (regcache_raw_update): New declaration.
12902 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12903
12904 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12905
12906 * dwarf2read.c (create_debug_type_hash_table): Initialize
12907 header.signature and header.type_offset_in_tu.
12908
12909 2017-02-24 Pedro Alves <palves@redhat.com>
12910
12911 * symtab.c (make_file_symbol_completion_list_1): Use
12912 add_symtab_completions.
12913
12914 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12915
12916 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12917
12918 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12919
12920 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12921 I386_MAX_REGISTER_SIZE.
12922 (i386_pseudo_register_write): Likewise.
12923 (i386_process_record): Likewise.
12924 * i387-tdep.c (i387_supply_xsave): Likewise.
12925 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12926 (store_register): Likewise.
12927
12928 2017-02-23 Pedro Alves <palves@redhat.com>
12929
12930 * ada-lang.c: Include "common/function-view.h".
12931 (ada_iterate_over_symbols): Adjust to use function_view as
12932 callback type.
12933 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12934 (ada_make_symbol_completion_list): Use a lambda.
12935 (ada_exc_search_name_matches): Delete.
12936 (name_matches_regex): New.
12937 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12938 * compile/compile-c-support.c: Include "common/function-view.h".
12939 (print_one_macro): Change prototype to accept a ui_file pointer.
12940 (write_macro_definitions): Use a lambda.
12941 * dwarf2read.c: Include "common/function-view.h".
12942 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12943 (dw2_expand_symtabs_matching): Adjust to use function_view as
12944 callback type.
12945 * language.h: Include "common/function-view.h".
12946 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12947 function_view as callback type.
12948 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12949 * linespec.c: Include "common/function-view.h".
12950 (collect_info::add_symbol): New method.
12951 (struct symbol_and_data_callback, iterate_inline_only, struct
12952 symbol_matcher_data, iterate_name_matcher): Delete.
12953 (iterate_over_all_matching_symtabs): Adjust to use function_view
12954 as callback type and lambdas.
12955 (iterate_over_file_blocks): Adjust to use function_view as
12956 callback type.
12957 (decode_compound_collector): Now a class with private fields.
12958 (decode_compound_collector::release_symbols): New method.
12959 (collect_one_symbol): Rename to...
12960 (decode_compound_collector::operator()): ... this and adjust.
12961 (lookup_prefix_sym): decode_compound_collector construction bits
12962 move to decode_compound_collector ctor. Pass the
12963 decode_compound_collector object directly as callback. Remove
12964 cleanups and use decode_compound_collector::release_symbols
12965 instead.
12966 (symtab_collector): Now a class with private fields.
12967 (symtab_collector::release_symtabs): New method.
12968 (add_symtabs_to_list): Rename to...
12969 (symtab_collector::operator()): ... this and adjust.
12970 (collect_symtabs_from_filename): symtab_collector construction
12971 bits move to symtab_collector ctor. Pass the symtab_collector
12972 object directly as callback. Remove cleanups and use
12973 symtab_collector::release_symtabs instead.
12974 (collect_symbols): Delete.
12975 (add_matching_symbols_to_info): Use lambdas.
12976 * macrocmd.c (print_macro_callback): Delete.
12977 (info_macro_command): Use a lambda.
12978 (info_macros_command): Pass print_macro_definition as callable
12979 directly.
12980 (print_one_macro): Remove 'ignore' parameter.
12981 (macro_list_command): Adjust.
12982 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12983 (macro_for_each_data::user_data): Delete field.
12984 (foreach_macro): Adjust to call the function_view.
12985 (macro_for_each): Adjust to use function_view as callback type.
12986 (foreach_macro_in_scope): Adjust to call the function_view.
12987 (macro_for_each_in_scope): Adjust to use function_view as callback
12988 type.
12989 * macrotab.h: Include "common/function-view.h".
12990 (macro_callback_fn): Declare a prototype instead of a pointer.
12991 Remove "user_data" parameter.
12992 (macro_for_each, macro_for_each_in_scope): Adjust to use
12993 function_view as callback type.
12994 * psymtab.c (partial_map_expand_apply)
12995 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12996 Adjust to use function_view as callback type and to return bool.
12997 (psym_expand_symtabs_matching): Adjust to use function_view as
12998 callback types.
12999 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
13000 to use function_view as callback type and to return bool.
13001 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
13002 callback types.
13003 * symfile.c (expand_symtabs_matching): Adjust to use function_view
13004 as callback types.
13005 * symfile.h: Include "common/function-view.h".
13006 (expand_symtabs_file_matcher_ftype)
13007 (expand_symtabs_symbol_matcher_ftype)
13008 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
13009 return bool.
13010 (quick_symbol_functions::map_symtabs_matching_filename)
13011 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
13012 function_view as callback type and return bool.
13013 (expand_symtabs_matching): Adjust to use function_view as callback
13014 type.
13015 (maintenance_expand_name_matcher)
13016 (maintenance_expand_file_matcher): Delete.
13017 (maintenance_expand_symtabs): Use lambdas.
13018 * symtab.c (iterate_over_some_symtabs): Adjust to use
13019 function_view as callback types and return bool.
13020 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
13021 of a cleanup.
13022 (lookup_symtab_callback): Delete.
13023 (lookup_symtab): Use a lambda.
13024 (iterate_over_symbols): Adjust to use function_view as callback
13025 type.
13026 (struct search_symbols_data, search_symbols_file_matches)
13027 (search_symbols_name_matches): Delete.
13028 (search_symbols): Use a pair of lambdas.
13029 (struct add_name_data, add_macro_name, symbol_completion_matcher)
13030 (symtab_expansion_callback): Delete.
13031 (default_make_symbol_completion_list_break_on_1): Use lambdas.
13032 * symtab.h: Include "common/function-view.h".
13033 (iterate_over_some_symtabs): Adjust to use function_view as
13034 callback type and return bool.
13035 (iterate_over_symtabs): Adjust to use function_view as callback
13036 type.
13037 (symbol_found_callback_ftype): Remove 'data' parameter and return
13038 bool.
13039 (iterate_over_symbols): Adjust to use function_view as callback
13040 type.
13041
13042 2017-02-23 Pedro Alves <palves@redhat.com>
13043
13044 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
13045 (%.o) <unittests/%.c>: New pattern.
13046 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
13047 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
13048 * common/function-view.h: New file.
13049 * unittests/function-view-selftests.c: New file.
13050 * configure: Regenerate.
13051
13052 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
13053
13054 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
13055 inferior_ptid.
13056 * go32-nat.c (go32_thread_alive): Likewise.
13057
13058 2017-02-23 Yao Qi <yao.qi@linaro.org>
13059
13060 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
13061 delete.
13062
13063 2017-02-23 Yao Qi <yao.qi@linaro.org>
13064
13065 * varobj.c (varobj_clear_saved_item): Use delete instead of
13066 xfree.
13067 (update_dynamic_varobj_children): Likewise.
13068
13069 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13070
13071 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
13072
13073 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
13074
13075 * common/enum-flags.h (enum_flags::enum_flags): Initialize
13076 m_enum_value to 0 in default constructor.
13077
13078 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13079
13080 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
13081 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
13082 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
13083 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
13084 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
13085 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
13086 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
13087 IS_STORE_CONDITIONAL_INSN.
13088
13089 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13090
13091 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
13092
13093 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13094
13095 * NEWS (Changes since GDB 7.12): Add DWARF-5.
13096
13097 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13098
13099 * dwarf2read.c (skip_one_die, read_attribute_value)
13100 (dwarf2_const_value_attr, dump_die_shallow)
13101 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
13102 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
13103
13104 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13105
13106 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
13107 (dwarf_parse_macro_header): Accept DWARF version 5.
13108 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
13109
13110 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13111
13112 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
13113 DW_AT_GNU_*.
13114 * common/common-exceptions.h (enum errors): Likewise.
13115 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
13116 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
13117 (dwarf_expr_context::execute_stack_op): Likewise.
13118 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
13119 Likewise.
13120 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
13121 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13122 (show_entry_values_debug, call_site_to_target_addr)
13123 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
13124 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
13125 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
13126 (value_of_dwarf_block_entry, indirect_pieced_value)
13127 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
13128 (disassemble_dwarf_expression): Likewise.
13129 * dwarf2read.c (process_die, inherit_abstract_dies)
13130 (read_call_site_scope): Likewise.
13131 * gdbtypes.h (struct func_type, struct call_site_parameter)
13132 (struct call_site): Likewise.
13133 * stack.c (read_frame_arg): Likewise.
13134 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
13135
13136 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13137
13138 * defs.h (read_unsigned_leb128): New declaration.
13139 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
13140 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
13141 (dwarf2_find_location_expression): Call also
13142 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
13143 * dwarf2loc.h (dwarf2_version): New declaration.
13144 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
13145 rnglists.
13146 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
13147 .debug_rnglists.
13148 (struct dwop_section_names): Add loclists_dwo.
13149 (dwop_section_names): Add .debug_loclists.dwo.
13150 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
13151 (struct dwarf2_per_cu_data): Add dwarf_version.
13152 (struct dwo_sections): Add loclists.
13153 (struct attr_abbrev): Add implicit_const.
13154 (read_indirect_line_string): New declaration.
13155 (read_unsigned_leb128): Delete declaration.
13156 (rcuh_kind): New definition.
13157 (read_and_check_comp_unit_head): Change parameter
13158 is_debug_types_section to section_kind.
13159 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
13160 (read_comp_unit_head): Change parameter abfd to section, add parameter
13161 section_kind. Handle DWARF-5.
13162 (error_check_comp_unit_head): Accept also DWARF version 5.
13163 (read_and_check_comp_unit_head): Change parameter
13164 is_debug_types_section to section_kind.
13165 (read_and_check_type_unit_head): Delete function.
13166 (read_abbrev_offset): Handle DWARF-5.
13167 (create_debug_type_hash_table): Add parameter section_kind. Process
13168 only DW_UT_type. Use signature and type_offset_in_tu from struct
13169 comp_unit_head.
13170 (create_debug_types_hash_table): Update create_debug_type_hash_table
13171 caller.
13172 (create_all_type_units): Call create_debug_type_hash_table.
13173 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
13174 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
13175 caller.
13176 (skip_one_die): Handle DW_FORM_implicit_const.
13177 (dwarf2_rnglists_process): New function.
13178 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
13179 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
13180 (read_attribute_value): Handle DW_FORM_implicit_const,
13181 DW_FORM_line_strp.
13182 (read_attribute): Handle DW_FORM_implicit_const.
13183 (read_indirect_string_at_offset_from): New function from
13184 read_indirect_string_at_offset.
13185 (read_indirect_string_at_offset): Call
13186 read_indirect_string_at_offset_from.
13187 (read_indirect_line_string_at_offset): New function.
13188 (read_indirect_string): New function comment.
13189 (read_indirect_line_string): New function.
13190 (read_unsigned_leb128): Make it global.
13191 (dwarf2_string_attr): Handle DWARF-5.
13192 (add_include_dir_stub, read_formatted_entries): New functions.
13193 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
13194 Handle DWARF-5.
13195 (per_cu_header_read_in): Update read_comp_unit_head caller.
13196 (dwarf2_version): New function.
13197 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
13198 rnglists.
13199 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
13200 fields.
13201
13202 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13203
13204 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
13205
13206 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13207
13208 * dwarf2read.c (dwarf2_ranges_process): New function from
13209 dwarf2_ranges_read.
13210 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
13211 dwarf2_ranges_process.
13212
13213 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13214
13215 * dwarf2read.c (create_debug_type_hash_table): New function from
13216 create_debug_types_hash_table.
13217 (create_debug_types_hash_table): Call create_debug_type_hash_table.
13218 (create_all_type_units, open_and_init_dwo_file): Update
13219 create_debug_types_hash_table callers.
13220
13221 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13222
13223 PR gdb/16188
13224 * fork-child.c (trace_start_error): Fix thinko. va_end should
13225 refer to 'ap', not 'args'.
13226
13227 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13228 Pedro Alves <palves@redhat.com>
13229
13230 PR gdb/16188
13231 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
13232 calls succeeded.
13233 * fork-child.c (trace_start_error): New function.
13234 (trace_start_error_with_name): Likewise.
13235 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
13236 * inf-ptrace.c (inf_ptrace_me): Likewise.
13237 * inferior.h (trace_start_error): New prototype.
13238 (trace_start_error_with_name): Likewise.
13239
13240 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
13241
13242 PR gdb/21164
13243 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
13244 NULL before using it.
13245 * symmisc.c (maintenance_print_symbols): Likewise.
13246 (maintenance_print_msymbols): Likewise.
13247
13248 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13249
13250 * NEWS: Add record Python bindings entry.
13251
13252 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13253
13254 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
13255 py-record-full.o.
13256 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
13257 * python/py-record-btrace.c, python/py-record-btrace.h,
13258 python/py-record-full.c, python/py-record-full.h: New file.
13259 * python/py-record.c: Add include for py-record-btrace.h and
13260 py-record-full.h.
13261 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
13262 recpy_instruction_history, recpy_function_call_history, recpy_begin,
13263 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
13264 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
13265 New definition.
13266 (gdbpy_initialize_btrace): New export.
13267 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
13268
13269 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13270
13271 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
13272 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
13273 * python/py-record.c: New file.
13274 * python/python-internal.h (gdbpy_start_recording,
13275 gdbpy_current_recording, gdpy_stop_recording,
13276 gdbpy_initialize_record): New export.
13277 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
13278 (python_GdbMethods): Add gdbpy_start_recording,
13279 gdbpy_current_recording and gdbpy_stop_recording.
13280
13281 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13282
13283 * record-btrace.c (record_btrace_record_method): New function.
13284 (init_record_btrace_ops): Initialize to_record_method.
13285 * record-full.c (record_full_record_method): New function.
13286 (init_record_full_ops, init_record_full_core_ops): Add
13287 record_full_record_method.
13288 * record.h (enum record_method): New enum.
13289 * target-debug.h (target_debug_print_enum_record_method: New define.
13290 * target-delegates.c: Regenerate.
13291 * target.c (target_record_method): New function.
13292 * target.h: Include record.h.
13293 (struct target_ops) <to_record_method>: New field.
13294 (target_record_method): New export.
13295
13296 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13297
13298 * record.h (record_start, record_stop): New export.
13299 * record.c (record_start, record_stop): New function.
13300
13301 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13302
13303 * btrace.c (btrace_fetch): Copy function call segments pointer
13304 into a vector.
13305 (btrace_clear): Clear the vector.
13306 (btrace_find_insn_by_number): Use binary search to find the correct
13307 function call segment.
13308 * btrace.h (brace_fun_p): New typedef.
13309 (struct btrace_thread_info) <functions>: New field.
13310
13311 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13312
13313 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
13314 * btrace.c (btrace_decode_error): ... here. New function.
13315 * btrace.h (btrace_decode_error): New export.
13316
13317 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13318
13319 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
13320 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
13321 btrace_find_insn_by_number): Remove special case for gaps.
13322 * btrace.h (btrace_insn_get_error): New export.
13323 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
13324 * record-btrace.c (btrace_insn_history): Print number for gaps.
13325 (record_btrace_info, record_btrace_goto): Handle gaps.
13326
13327 2017-02-14 Tom Tromey <tom@tromey.com>
13328
13329 PR python/13598:
13330 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
13331 event.
13332 * python/py-evts.c (gdbpy_initialize_py_events): Add
13333 before_prompt registry.
13334 * python/py-events.h (events_object) <before_prompt>: New field.
13335
13336 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
13337
13338 * btrace.c (ftrace_new_switch): Preserve up link and flags.
13339
13340 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
13341
13342 * symfile (_initialize_symfile): Add usage text to the load command's
13343 help text.
13344
13345 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
13346
13347 * utils.c (defaulted_query): Don't query on secondary UIs.
13348
13349 2017-02-10 Tom Tromey <tom@tromey.com>
13350
13351 * rust-lang.c (rust_get_disr_info): Remove unused variable.
13352
13353 2017-02-10 Tom Tromey <tom@tromey.com>
13354
13355 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
13356 "cleanup" local.
13357 * python/py-type.c (typy_legacy_template_argument): Remove
13358 unnecessary "cleanup" local.
13359
13360 2017-02-10 Tom Tromey <tom@tromey.com>
13361
13362 * python/python.c (do_start_initialization): New function, from
13363 _initialize_python.
13364 (_initialize_python): Call do_start_initialization.
13365 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
13366 goto.
13367
13368 2017-02-10 Tom Tromey <tom@tromey.com>
13369
13370 * python/py-prettyprint.c (pretty_print_one_value): Use
13371 gdbpy_ref.
13372
13373 2017-02-10 Tom Tromey <tom@tromey.com>
13374
13375 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
13376 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
13377 gdbpy_ref.
13378 * python/py-type.c (field_new): Use gdbpy_ref.
13379 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
13380 gdbpy_ref.
13381 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
13382 (py_free_pspace): Likewise.
13383 (pspace_to_pspace_object): Likewise.
13384 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
13385 (py_free_objfile): Likewise.
13386 (objfile_to_objfile_object): Likewise.
13387 * python/py-inferior.c (delete_thread_object): Use
13388 gdbpy_ref.
13389 (infpy_read_memory): Likewise.
13390 (py_free_inferior): Likewise.
13391 * python/py-evtregistry.c (create_eventregistry_object): Use
13392 gdbpy_ref.
13393 * python/py-event.c (create_event_object): Use gdbpy_ref.
13394
13395 2017-02-10 Tom Tromey <tom@tromey.com>
13396
13397 * python/py-ref.h (gdbpy_ref_policy): Now a template.
13398 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
13399 used.
13400 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
13401 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
13402 python/py-exitedevent.c, python/py-finishbreakpoint.c,
13403 python/py-framefilter.c, python/py-function.c,
13404 python/py-inferior.c, python/py-infevents.c,
13405 python/py-linetable.c, python/py-newobjfileevent.c,
13406 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
13407 python/py-signalevent.c, python/py-stopevent.c,
13408 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
13409 python/py-unwind.c, python/py-utils.c, python/py-value.c,
13410 python/py-varobj.c, python/py-xmethods.c, python/python.c,
13411 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
13412
13413 2017-02-10 Tom Tromey <tom@tromey.com>
13414
13415 * ui-out.h (ui_out_emit_type): New class.
13416 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
13417 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
13418 and ui_out_emit_tuple.
13419 (enumerate_locals): Likewise.
13420 (py_mi_print_variables, py_print_locals, py_print_args): Use
13421 ui_out_emit_list.
13422 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
13423 ui_out_emit_list.
13424 * common/gdb_optional.h: New file.
13425
13426 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
13427
13428 * MAINTAINERS (Write After Approval): Update my e-mail address.
13429
13430 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
13431
13432 PR gdb/21122
13433 * breakpoint.c (_initialize_breakpoint): Update the help description
13434 of the 'commands' command to indicate that it takes a list argument.
13435
13436 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
13437
13438 * interps.c (current_interp_set_logging): Remove "return".
13439
13440 2017-02-09 Gary Benson <gbenson@redhat.com>
13441
13442 * symtab.c (add_symtab_completions): Prevent NULL pointer
13443 dereference.
13444
13445 2017-02-08 Pedro Alves <palves@redhat.com>
13446
13447 * interps.c (interp::interp): Remove reference to quiet_p.
13448 (interp_set): Make static. Remove dead "Switching to" output
13449 code.
13450 (interp_quiet_p, interp_set_quiet): Delete.
13451 (interpreter_exec_cmd): Don't set the interpreter quiet.
13452 * interps.h (interp_quiet_p): Make static.
13453 (class interp) <quiet_p>: Remove field
13454
13455 2017-02-08 Jerome Guitton <guitton@adacore.com>
13456
13457 * cli/cli-decode.c (find_command_name_length): Make it extern.
13458 * cli/cli-decode.h (find_command_name_length): Declare.
13459 * cli/cli-script.c (command_name_equals, line_first_arg):
13460 New functions.
13461 (process_next_line): Use cli-decode to parse command names.
13462 (build_command_line): Make args a constant pointer.
13463
13464 2017-02-08 Jerome Guitton <guitton@adacore.com>
13465
13466 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
13467 Remove case-insensitive search.
13468
13469 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
13470
13471 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
13472 at the end of the line. Avoids an ARI warning.
13473
13474 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
13475
13476 * NEWS: Mention support for record/replay of Intel 64 rdrand and
13477 rdseed instructions.
13478 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
13479
13480 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
13481
13482 PR tdep/20936
13483 Provide and use sparc32 and sparc64 target description XML files.
13484 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
13485 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
13486 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
13487 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
13488 * features/sparc/sparc32-solaris.xml: New file.
13489 * features/sparc/sparc64-solaris.xml: New file.
13490 * features/sparc/sparc32-solaris.c: Generated.
13491 * features/sparc/sparc64-solaris.c: Generated.
13492 * sparc-tdep.h: Account for differences in target descriptions.
13493 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
13494 (sparc32_register_type): Use target provided registers.
13495 (validate_tdesc_registers): New function.
13496 (sparc32_gdbarch_init): Use tdesc_has_registers.
13497 Set pseudoregister functions.
13498 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
13499 (sparc64_register_type): Use target provided registers.
13500 (sparc64_init_abi): Set pseudoregister functions.
13501
13502 2017-02-03 Tom Tromey <tom@tromey.com>
13503
13504 PR rust/21097:
13505 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
13506 with a single member.
13507
13508 2017-02-03 Pedro Alves <palves@redhat.com>
13509
13510 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
13511 (cli_interp_base::~cli_interp_base): New.
13512 (cli_interp): New struct.
13513 (as_cli_interp): Cast the interp itself to cli_interp.
13514 (cli_interpreter_pre_command_loop): Rename to ...
13515 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
13516 parameter.
13517 (cli_interpreter_init): Rename to ...
13518 (cli_interp::init): ... this. Remove 'self' parameter. Use
13519 boolean. Make extern.
13520 (cli_interpreter_resume): Rename to ...
13521 (cli_interp::resume): ... this. Remove 'data' parameter. Make
13522 extern.
13523 (cli_interpreter_suspend): Rename to ...
13524 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
13525 extern.
13526 (cli_interpreter_exec): Rename to ...
13527 (cli_interp::exec): ... this. Remove 'data' parameter. Make
13528 extern.
13529 (cli_interpreter_supports_command_editing): Rename to ...
13530 (cli_interp_base::supports_command_editing): ... this. Remove
13531 'interp' parameter. Make extern.
13532 (cli_ui_out): Rename to ...
13533 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
13534 Make extern.
13535 (cli_set_logging): Rename to ...
13536 (cli_interp_base::set_logging): ... this. Remove 'interp'
13537 parameter. Make extern.
13538 (cli_interp_procs): Delete.
13539 (cli_interp_factory): Adjust to use "new".
13540 * cli/cli-interp.h: Include "interps.h".
13541 (struct cli_interp_base): New struct.
13542 * interps.c (struct interp): Delete. Fields moved to interps.h.
13543 (interp_new): Delete.
13544 (interp::interp, interp::~interp): New.
13545 (interp_set): Use bool, and return void. Assume the interpreter
13546 has suspend, init and resume methods, and that the all return
13547 void.
13548 (set_top_level_interpreter): interp_set returns void.
13549 (interp_ui_out): Adapt.
13550 (current_interp_set_logging): Adapt.
13551 (interp_data): Delete.
13552 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
13553 (interp_exec): Adapt.
13554 (top_level_interpreter_data): Delete.
13555 * interps.h (interp_init_ftype, interp_resume_ftype)
13556 (interp_suspend_ftype, interp_exec_ftype)
13557 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
13558 (class interp): New.
13559 (interp_new): Delete.
13560 (interp_set): Now returns void. Use bool.
13561 (interp_data, top_level_interpreter_data): Delete.
13562 * mi/mi-common.h: Include interps.h.
13563 (class mi_interp): Inherit from interp. Define a ctor. Declare
13564 init, resume, suspect, exec, interp_ui_out, set_logging and
13565 pre_command_loop methods.
13566 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
13567 (mi_interpreter_init): Rename to ...
13568 (mi_interp::init): ... this. Remove the 'interp' parameter, use
13569 bool, return void and make extern. Adjust.
13570 (mi_interpreter_resume): ... Rename to ...
13571 (mi_interp::resume): ... this. Remove the 'data' parameter,
13572 return void and make extern. Adjust.
13573 (mi_interpreter_suspend): ... Rename to ...
13574 (mi_interp::suspend): ... this. Remove the 'data' parameter,
13575 return void and make extern. Adjust.
13576 (mi_interpreter_exec): ... Rename to ...
13577 (mi_interp::exec): ... this. Remove the 'data' parameter and make
13578 extern. Adjust.
13579 (mi_interpreter_pre_command_loop): ... Rename to ...
13580 (mi_interp::pre_command_loop): ... this. Remove the 'self'
13581 parameter and make extern.
13582 (mi_on_normal_stop_1): Adjust.
13583 (mi_ui_out): Rename to ...
13584 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
13585 parameter and make extern. Adjust.
13586 (mi_set_logging): Rename to ...
13587 (mi_interp::set_logging): ... this. Remove the 'interp'
13588 parameter and make extern. Adjust.
13589 (mi_interp_procs): Delete.
13590 (mi_interp_factory): Adjust to use 'new'.
13591 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
13592 (mi_print_exception, mi_execute_command, mi_load_progress):
13593 Adjust.
13594 * tui/tui-interp.c (tui_interp): New class.
13595 (as_tui_interp): Return a tui_interp pointer.
13596 (tui_on_normal_stop, tui_on_signal_received)
13597 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
13598 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
13599 to use interp::interp_ui_out.
13600 (tui_init): Rename to ...
13601 (tui_interp::init): ... this. Remove the 'self' parameter, use
13602 bool, return void and make extern. Adjust.
13603 (tui_resume): Rename to ...
13604 (tui_interp::resume): ... this. Remove the 'data' parameter,
13605 return void and make extern. Adjust.
13606 (tui_suspend): Rename to ...
13607 (tui_interp::suspend): ... this. Remove the 'data' parameter,
13608 return void and make extern. Adjust.
13609 (tui_ui_out): Rename to ...
13610 (tui_interp::interp_ui_out): ... this. Remove the 'self'
13611 parameter, and make extern. Adjust.
13612 (tui_exec): Rename to ...
13613 (tui_interp::exec): ... this. Remove the 'data' parameter and
13614 make extern.
13615 (tui_interp_procs): Delete.
13616 (tui_interp_factory): Use "new".
13617
13618 2017-02-02 Tom Tromey <tom@tromey.com>
13619
13620 * rust-exp.y (ends_raw_string, space_then_number)
13621 (rust_identifier_start_p): Return bool.
13622 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
13623 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
13624 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
13625 (rust_chartype_p): Return bool.
13626 (val_print_struct, rust_print_struct_def, rust_print_type):
13627 Update.
13628 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
13629 Return bool.
13630
13631 2017-02-02 Tom Tromey <tom@tromey.com>
13632
13633 * rust-lang.c: Reindent.
13634
13635 2017-02-02 Tom Tromey <tom@tromey.com>
13636
13637 * rust-lang.h (rust_crate_for_block): Update.
13638 * rust-lang.c (rust_crate_for_block): Return std::string.
13639 (rust_get_disr_info): Use std:;string, not
13640 gdb::unique_xmalloc_ptr.
13641 * rust-exp.y (crate_name): Update.
13642
13643 2017-02-02 Pedro Alves <palves@redhat.com>
13644
13645 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
13646 field out of gdb_disassembler_test and make it static.
13647
13648 2017-02-02 Pedro Alves <palves@redhat.com>
13649
13650 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
13651 mi1_interp and mi_interp fields.
13652
13653 2017-02-02 Pedro Alves <palves@redhat.com>
13654
13655 * cli/cli-interp.c (struct saved_output_files, saved_output):
13656 Moved from cli/cli-logging.c.
13657 (cli_set_logging): New function.
13658 (cli_interp_procs): Install cli_set_logging.
13659 * cli/cli-interp.h (make_logging_output, cli_set_logging):
13660 Declare.
13661 * cli/cli-logging.c (struct saved_output_files, saved_output):
13662 Moved to cli/cli-interp.c.
13663 (pop_output_files): Don't save outputs here.
13664 (make_logging_output): New function.
13665 (handle_redirections): Don't build tee nor save previous outputs
13666 here.
13667 * interps.c (current_interp_set_logging): Change prototype.
13668 Assume there's always a set_logging_proc method installed.
13669 * interps.h (interp_set_logging_ftype): Change prototype.
13670 (current_interp_set_logging): Change prototype and adjust comment.
13671 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
13672 use make_logging_output.
13673 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
13674 2017-02-02 Pedro Alves <palves@redhat.com>
13675
13676 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
13677 from ...
13678 (set_logging_overwrite): ... here.
13679 (logging_no_redirect_file): Delete.
13680 (set_logging_redirect): Don't handle redirection on the fly.
13681 Instead warn that "logging off" / "logging on" is necessary.
13682 (pop_output_files): Delete references to logging_no_redirect_file.
13683 (show_logging_command): Always speak in terms of what will happen
13684 once logging is reenabled.
13685
13686 2017-02-02 Pedro Alves <palves@redhat.com>
13687
13688 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
13689
13690 2017-02-02 Pedro Alves <palves@redhat.com>
13691
13692 * disasm.c (gdb_pretty_print_insn): Rename to ...
13693 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
13694 Remove gdbarch parameter. Adapt to clear the object's buffers
13695 instead of allocating new buffers, and to print using the object's
13696 gdb_disassembler instead of calling gdb_print_insn.
13697 (dump_insns): Use gdb_pretty_print_disassembler.
13698 * disasm.h (gdb_pretty_print_insn): Delete declaration.
13699 (gdb_pretty_print_disassembler): New class.
13700 * record-btrace.c (btrace_insn_history): Use
13701 gdb_pretty_print_disassembler.
13702
13703 2017-02-02 Pedro Alves <palves@redhat.com>
13704
13705 * ada-lang.c (type_as_string): Use string_file.
13706 * ada-valprint.c (ada_print_floating): Use string_file.
13707 * ada-varobj.c (ada_varobj_scalar_image)
13708 (ada_varobj_get_value_image): Use string_file.
13709 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
13710 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
13711 * breakpoint.c (update_inserted_breakpoint_locations)
13712 (insert_breakpoint_locations, reattach_breakpoints)
13713 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
13714 (print_it_watchpoint): Use string_file.
13715 (save_breakpoints): Use stdio_file.
13716 * c-exp.y (oper): Use string_file.
13717 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
13718 tee_file.
13719 (pop_output_files): Use delete.
13720 (handle_redirections): Use stdio_file and tee_file.
13721 * cli/cli-setshow.c (do_show_command): Use string_file.
13722 * compile/compile-c-support.c (c_compute_program): Use
13723 string_file.
13724 * compile/compile-c-symbols.c (generate_vla_size): Take a
13725 'string_file &' instead of a 'ui_file *'.
13726 (generate_c_for_for_one_variable): Take a 'string_file &' instead
13727 of a 'ui_file *'. Use string_file.
13728 (generate_c_for_variable_locations): Take a 'string_file &'
13729 instead of a 'ui_file *'.
13730 * compile/compile-internal.h (generate_c_for_for_one_variable):
13731 Take a 'string_file &' instead of a 'ui_file *'.
13732 * compile/compile-loc2c.c (push, pushf, unary, binary)
13733 (print_label, pushf_register_address, pushf_register)
13734 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
13735 'ui_file *'. Adjust.
13736 * compile/compile.c (compile_to_object): Use string_file.
13737 * compile/compile.h (compile_dwarf_expr_to_c)
13738 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
13739 'ui_file *'.
13740 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
13741 (replace_typedefs_qualified_name): Use string_file and
13742 obstack_copy0.
13743 * disasm.c (gdb_pretty_print_insn): Use string_file.
13744 (gdb_disassembly): Adjust reference the null_stream global.
13745 (do_ui_file_delete): Delete.
13746 (gdb_insn_length): Use null_stream.
13747 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
13748 * dwarf2loc.c (dwarf2_compile_property_to_c)
13749 (locexpr_generate_c_location, loclist_generate_c_location): Take a
13750 'string_file &' instead of a 'ui_file *'.
13751 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
13752 * dwarf2read.c (do_ui_file_peek_last): Delete.
13753 (dwarf2_compute_name): Use string_file.
13754 * event-top.c (gdb_setup_readline): Use stdio_file.
13755 * gdbarch.sh (verify_gdbarch): Use string_file.
13756 * gdbtypes.c (safe_parse_type): Use null_stream.
13757 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
13758 string_file.
13759 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
13760 'string_file *' instead of a 'ui_file *'.
13761 (gdbscm_arch_disassemble): Use string_file.
13762 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
13763 * guile/scm-ports.c (class ioscm_file_port): Now a class that
13764 inherits from ui_file.
13765 (ioscm_file_port_delete, ioscm_file_port_rewind)
13766 (ioscm_file_port_put): Delete.
13767 (ioscm_file_port_write): Rename to ...
13768 (ioscm_file_port::write): ... this. Remove file_port_magic
13769 checks.
13770 (ioscm_file_port_new): Delete.
13771 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
13772 ui_file_up.
13773 * guile/scm-type.c (tyscm_type_name): Use string_file.
13774 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
13775 Use string_file.
13776 * infcmd.c (print_return_value_1): Use string_file.
13777 * infrun.c (print_target_wait_results): Use string_file.
13778 * language.c (add_language): Use string_file.
13779 * location.c (explicit_to_string_internal): Use string_file.
13780 * main.c (captured_main_1): Use null_file.
13781 * maint.c (maintenance_print_architecture): Use stdio_file.
13782 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
13783 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
13784 event_channel>: Change type to mi_console_file pointer.
13785 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
13786 (mi_console_file_delete): Delete.
13787 (struct mi_console_file): Delete.
13788 (mi_console_file_magic): Delete.
13789 (mi_console_file_new): Delete.
13790 (mi_console_file::mi_console_file): New.
13791 (mi_console_file_delete): Delete.
13792 (mi_console_file_fputs): Delete.
13793 (mi_console_file::write): New.
13794 (mi_console_raw_packet): Delete.
13795 (mi_console_file::flush): New.
13796 (mi_console_file_flush): Delete.
13797 (mi_console_set_raw): Rename to ...
13798 (mi_console_file::set_raw): ... this.
13799 * mi/mi-console.h (class mi_console_file): New class.
13800 (mi_console_file_new, mi_console_set_raw): Delete.
13801 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
13802 (mi_set_logging): Use delete and tee_file. Adjust.
13803 * mi/mi-main.c (output_register): Use string_file.
13804 (mi_cmd_data_evaluate_expression): Use string_file.
13805 (mi_cmd_data_read_memory): Use string_file.
13806 (mi_cmd_execute, print_variable_or_computed): Use string_file.
13807 * mi/mi-out.c (mi_ui_out::main_stream): New.
13808 (mi_ui_out::rewind): Use main_stream and
13809 string_file.
13810 (mi_ui_out::put): Use main_stream and string_file.
13811 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13812 Allocate a 'string_file' instead.
13813 (mi_out_new): Don't allocate a mem_fileopen stream here.
13814 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13815 (mi_ui_out::main_stream): Declare method.
13816 * printcmd.c (eval_command): Use string_file.
13817 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
13818 * python/py-arch.c (archpy_disassemble): Use string_file.
13819 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
13820 * python/py-frame.c (frapy_str): Use string_file.
13821 * python/py-framefilter.c (py_print_type, py_print_single_arg):
13822 Use string_file.
13823 * python/py-type.c (typy_str): Use string_file.
13824 * python/py-unwind.c (unwind_infopy_str): Use string_file.
13825 * python/py-value.c (valpy_str): Use string_file.
13826 * record-btrace.c (btrace_insn_history): Use string_file.
13827 * regcache.c (regcache_print): Use stdio_file.
13828 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
13829 * remote.c (escape_buffer): Use string_file.
13830 * rust-lang.c (rust_get_disr_info): Use string_file.
13831 * serial.c (serial_open_ops_1): Use stdio_file.
13832 (do_serial_close): Use delete.
13833 * stack.c (print_frame_arg): Use string_file.
13834 (print_frame_args): Remove local mem_fileopen stream, not used.
13835 (print_frame): Use string_file.
13836 * symmisc.c (maintenance_print_symbols): Use stdio_file.
13837 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
13838 Take a 'string_file *' instead of a 'ui_file *'.
13839 * top.c (new_ui): Use stdio_file and stderr_file.
13840 (free_ui): Use delete.
13841 (execute_command_to_string): Use string_file.
13842 (quit_confirm): Use string_file.
13843 * tracepoint.c (collection_list::append_exp): Use string_file.
13844 * tui/tui-disasm.c (tui_disassemble): Use string_file.
13845 * tui/tui-file.c: Don't include "ui-file.h".
13846 (enum streamtype, struct tui_stream): Delete.
13847 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
13848 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
13849 (tui_file::tui_file): New method.
13850 (tui_file_fputs): Delete.
13851 (tui_file_get_strbuf): Delete.
13852 (tui_file::puts): New method.
13853 (tui_file_adjust_strbuf): Delete.
13854 (tui_file_flush): Delete.
13855 (tui_file::flush): New method.
13856 * tui/tui-file.h: Tweak intro comment.
13857 Include ui-file.h.
13858 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
13859 (tui_file_adjust_strbuf): Delete declarations.
13860 (class tui_file): New class.
13861 * tui/tui-io.c (tui_initialize_io): Use tui_file.
13862 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
13863 (tui_register_format): Use string_stream.
13864 * tui/tui-stack.c (tui_make_status_line): Use string_file.
13865 (tui_get_function_from_frame): Use string_file.
13866 * typeprint.c (type_to_string): Use string_file.
13867 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
13868 (null_stream): New global.
13869 (ui_file_delete): Delete.
13870 (ui_file::ui_file): New.
13871 (null_file_isatty): Delete.
13872 (ui_file::~ui_file): New.
13873 (null_file_rewind): Delete.
13874 (ui_file::printf): New.
13875 (null_file_put): Delete.
13876 (null_file_flush): Delete.
13877 (ui_file::putstr): New.
13878 (null_file_write): Delete.
13879 (ui_file::putstrn): New.
13880 (null_file_read): Delete.
13881 (ui_file::putc): New.
13882 (null_file_fputs): Delete.
13883 (null_file_write_async_safe): Delete.
13884 (ui_file::vprintf): New.
13885 (null_file_delete): Delete.
13886 (null_file::write): New.
13887 (null_file_fseek): Delete.
13888 (null_file::puts): New.
13889 (ui_file_data): Delete.
13890 (null_file::write_async_safe): New.
13891 (gdb_flush, ui_file_isatty): Adjust.
13892 (ui_file_put, ui_file_rewind): Delete.
13893 (ui_file_write): Adjust.
13894 (ui_file_write_for_put): Delete.
13895 (ui_file_write_async_safe, ui_file_read): Adjust.
13896 (ui_file_fseek): Delete.
13897 (fputs_unfiltered): Adjust.
13898 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13899 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13900 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13901 (set_ui_file_data): Delete.
13902 (string_file::~string_file, string_file::write)
13903 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13904 (do_ui_file_as_string, ui_file_as_string): Delete.
13905 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13906 (struct mem_file): Delete.
13907 (mem_file_new): Delete.
13908 (stdio_file::stdio_file): New.
13909 (mem_file_delete): Delete.
13910 (stdio_file::stdio_file): New.
13911 (mem_fileopen): Delete.
13912 (stdio_file::~stdio_file): New.
13913 (mem_file_rewind): Delete.
13914 (stdio_file::set_stream): New.
13915 (mem_file_put): Delete.
13916 (stdio_file::open): New.
13917 (mem_file_write): Delete.
13918 (stdio_file_magic, struct stdio_file): Delete.
13919 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13920 (stdio_file::flush): New.
13921 (stdio_file_read): Rename to ...
13922 (stdio_file::read): ... this. Adjust.
13923 (stdio_file_write): Rename to ...
13924 (stdio_file::write): ... this. Adjust.
13925 (stdio_file_write_async_safe): Rename to ...
13926 (stdio_file::write_async_safe) ... this. Adjust.
13927 (stdio_file_fputs): Rename to ...
13928 (stdio_file::puts) ... this. Adjust.
13929 (stdio_file_isatty): Delete.
13930 (stdio_file_fseek): Delete.
13931 (stdio_file::isatty): New.
13932 (stderr_file_write): Rename to ...
13933 (stderr_file::write) ... this. Adjust.
13934 (stderr_file_fputs): Rename to ...
13935 (stderr_file::puts) ... this. Adjust.
13936 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13937 (stderr_file::stderr_file): New.
13938 (tee_file_magic): Delete.
13939 (struct tee_file): Delete.
13940 (tee_file::tee_file): New.
13941 (tee_file_new): Delete.
13942 (tee_file::~tee_file): New.
13943 (tee_file_delete): Delete.
13944 (tee_file_flush): Rename to ...
13945 (tee_file::flush): ... this. Adjust.
13946 (tee_file_write): Rename to ...
13947 (tee_file::write): ... this. Adjust.
13948 (tee_file::write_async_safe): New.
13949 (tee_file_fputs): Rename to ...
13950 (tee_file::puts): ... this. Adjust.
13951 (tee_file_isatty): Rename to ...
13952 (tee_file::isatty): ... this. Adjust.
13953 * ui-file.h (struct obstack, struct ui_file): Don't
13954 forward-declare.
13955 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13956 (ui_file_write_ftype)
13957 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13958 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13959 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13960 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13961 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13962 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13963 (set_ui_file_fseek): Delete.
13964 (ui_file_data, ui_file_delete, ui_file_rewind)
13965 (struct ui_file): New.
13966 (ui_file_up): New.
13967 (class null_file): New.
13968 (null_stream): Declare.
13969 (ui_file_write_for_put, ui_file_put): Delete.
13970 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13971 Delete.
13972 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13973 (gdb_fopen, tee_file_new): Delete.
13974 (struct string_file): New.
13975 (struct stdio_file): New.
13976 (stdio_file_up): New.
13977 (struct stderr_file): New.
13978 (class tee_file): New.
13979 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13980 of a 'ui_file *'. Adjust.
13981 * ui-out.h (class ui_out) <field_stream>: Likewise.
13982 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13983 (null_stream): Delete.
13984 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13985 Adjust.
13986 * utils.h (struct ui_file): Delete forward declaration..
13987 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13988 (error_stream): Take a 'string_file &' instead of a
13989 'ui_file *'.
13990 * varobj.c (varobj_value_get_print_value): Use string_file.
13991 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13992 * gdbarch.c: Regenerate.
13993
13994 2017-02-02 Pedro Alves <palves@redhat.com>
13995
13996 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13997 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13998 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13999 Adjust to call gdb_print_insn instead of
14000 gdb_disassembler::print_insn.
14001 (dump_insns, do_mixed_source_and_assembly_deprecated)
14002 (do_mixed_source_and_assembly, do_assembly_only): Add back a
14003 'gdbarch' parameter. Remove gdb_disassembler parameter.
14004 (gdb_disassembly): Don't allocate a gdb_disassembler here.
14005 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
14006 declaration.
14007 (gdb_pretty_print_insn): Re-add declaration.
14008 * record-btrace.c (btrace_insn_history): Don't allocate a
14009 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
14010
14011 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
14012
14013 * disasm.h (gdb_disassembly): Remove file_string parameter.
14014 * disasm.c (gdb_disassembly): Likewise.
14015 * cli/cli-cmds.c (print_disassembly): Adapt.
14016 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
14017 * stack.c (do_gdb_disassembly): Likewise.
14018
14019 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
14020
14021 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
14022 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
14023 targets. And if the implicit value is longer than needed, extract
14024 the first bytes instead of the "least significant" ones.
14025
14026 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
14027
14028 * btrace.c (btrace_enable): Do not call btrace_add_pc for
14029 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
14030 (btrace_fetch): Assert can_access_registers_ptid.
14031 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
14032 validate_registers_access.
14033
14034 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
14035
14036 * gdbthread.h (can_access_registers_ptid): New.
14037 * thread.c (can_access_registers_ptid): New.
14038
14039 2017-02-01 Pedro Alves <palves@redhat.com>
14040
14041 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
14042
14043 2017-01-31 Pedro Alves <palves@redhat.com>
14044
14045 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
14046 Fix typos.
14047
14048 2017-01-31 Pedro Alves <palves@redhat.com>
14049
14050 * stack.c (print_frame_args): Remove local mem_fileopen stream,
14051 not used.
14052
14053 2017-01-31 Pedro Alves <palves@redhat.com>
14054
14055 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
14056
14057 2017-01-31 Pedro Alves <palves@redhat.com>
14058
14059 * common/scoped_restore.h
14060 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
14061 change the value's parameter type to T2.
14062 (make_scoped_restore): Likewise.
14063
14064 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14065 Richard Henderson <rth@redhat.com>
14066
14067 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
14068 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
14069 GS_BASE for older kernels.
14070 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
14071 GS_BASE for older kernels.
14072 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
14073 and GS_BASE to the offset table.
14074 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
14075 system register group.
14076 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
14077 for older kernels.
14078 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
14079 amd64 ABI.
14080 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
14081 AMD64_GSBASE_REGNUM.
14082 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
14083 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
14084 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
14085 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
14086 i386/64bit-segments.xml in those rules.
14087 * features/i386/64bit-segments.xml: New file.
14088 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
14089 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
14090 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
14091 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
14092 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
14093 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
14094 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
14095 * features/i386/amd64-avx-linux.c: Regenerated.
14096 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
14097 * features/i386/amd64-avx-mpx.c: Regenerated.
14098 * features/i386/amd64-avx512-linux.c: Regenerated.
14099 * features/i386/amd64-linux.c: Regenerated.
14100 * features/i386/amd64-mpx-linux.c: Regenerated.
14101 * features/i386/i386-avx-mpx-linux.c: Regenerated.
14102 * features/i386/i386-avx-mpx.c: Regenerated.
14103 * features/i386/x32-avx-linux.c: Regenerated.
14104 * features/i386/x32-avx512-linux.c: Regenerated.
14105 * regformats/i386/amd64-avx-linux.dat: Regenerated.
14106 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
14107 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
14108 * regformats/i386/amd64-linux.dat: Regenerated.
14109 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
14110 * regformats/i386/x32-avx-linux.dat: Regenerated.
14111 * regformats/i386/x32-avx512-linux.dat: Regenerated.
14112 * regformats/i386/x32-linux.dat: Regenerated.
14113
14114 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14115
14116 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
14117 Set to AMD64_NUM_REGS.
14118
14119 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
14120
14121 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
14122 that checks validity of a register number.
14123
14124 2017-01-27 Kees Cook <keescook@google.com>
14125
14126 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
14127 fetch_fpregs if target has fpa registers.
14128 (arm_linux_store_inferior_registers): Call store_fpregs if target
14129 has fpa registers.
14130
14131 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
14132
14133 * cris-tdep.c (cris_gdbarch_init): Remove check for
14134 info.byte_order and force it to BFD_ENDIAN_LITTLE.
14135
14136 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
14137
14138 * corelow.c (get_core_register_section): Check for regset
14139 existence before checking for REGSET_VARIABLE_SIZE.
14140
14141 2017-01-26 Yao Qi <yao.qi@linaro.org>
14142 Pedro Alves <palves@redhat.com>
14143
14144 PR gdb/20939
14145 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
14146 call memory_error, save memaddr instead.
14147 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
14148 negative, cal memory_error.
14149 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
14150
14151 2017-01-26 Yao Qi <yao.qi@linaro.org>
14152
14153 * disasm-selftests.c (memory_error_test): New function.
14154 (_initialize_disasm_selftests): Register memory_error_test.
14155
14156 2017-01-26 Yao Qi <yao.qi@linaro.org>
14157
14158 * Makefile.in (SFILES): Add disasm-selftests.c and
14159 selftest-arch.c.
14160 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
14161 * disasm-selftests.c: New file.
14162 * selftest-arch.c: New file.
14163 * selftest-arch.h: New file.
14164
14165 2017-01-26 Yao Qi <yao.qi@linaro.org>
14166
14167 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
14168 to bfd_arch_mep. Don't return 0 if section is not
14169 found. Call print_insn_mep.
14170
14171 2017-01-26 Pedro Alves <palves@redhat.com>
14172 Yao Qi <yao.qi@linaro.org>
14173
14174 * arm-tdep.c: Include "disasm.h".
14175 (gdb_print_insn_arm): Update code to get gdbarch.
14176 * disasm.c (dis_asm_read_memory): Change it to
14177 gdb_disassembler::dis_asm_read_memory.
14178 (dis_asm_memory_error): Likewise.
14179 (dis_asm_print_address): Likewise.
14180 (gdb_pretty_print_insn): Change it to
14181 gdb_disassembler::pretty_print_insn.
14182 (dump_insns): Add one argument gdb_disassemlber. All
14183 callers updated.
14184 (do_mixed_source_and_assembly_deprecated): Likewise.
14185 (do_mixed_source_and_assembly): Likewise.
14186 (do_assembly_only): Likewise.
14187 (gdb_disassembler::gdb_disassembler): New.
14188 (gdb_disassembler::print_insn): New.
14189 * disasm.h (class gdb_disassembler): New.
14190 (gdb_pretty_print_insn): Remove declaration.
14191 (gdb_disassemble_info): Likewise.
14192 * guile/scm-disasm.c (class gdbscm_disassembler): New.
14193 (gdbscm_disasm_read_memory_worker): Update.
14194 (gdbscm_disasm_read_memory): Update.
14195 (gdbscm_disasm_memory_error): Remove.
14196 (gdbscm_disasm_print_address): Remove.
14197 (gdbscm_disassembler::gdbscm_disassembler): New.
14198 (gdbscm_print_insn_from_port): Update.
14199 * mips-tdep.c: Include disasm.h.
14200 (gdb_print_insn_mips): Update code to get gdbarch.
14201 * record-btrace.c (btrace_insn_history): Update.
14202 * spu-tdep.c: Include disasm.h.
14203 (struct spu_dis_asm_data): Remove.
14204 (struct spu_dis_asm_info): New.
14205 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
14206 SPU id.
14207 (gdb_print_insn_spu): Cast disassemble_info to
14208 spu_dis_asm_info.
14209
14210 2017-01-26 Yao Qi <yao.qi@linaro.org>
14211
14212 * disasm.c (do_ui_file_delete): Delete.
14213 (gdb_insn_length): Move code creating stream to ...
14214 * utils.c (null_stream): ... here. New function.
14215 * utils.h (null_stream): Declare.
14216
14217 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14218
14219 * python/py-inferior.c (find_thread_object): Return directly
14220 from the loop. Remove "found" variable.
14221
14222 2017-01-21 Joel Brobecker <brobecker@adacore.com>
14223
14224 GDB 7.12.1 released.
14225
14226 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14227
14228 * python/py-function.c (fnpy_call): Reorder declarations to have
14229 the gdbpy_enter object declared first.
14230 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
14231
14232 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14233
14234 PR python/21068
14235 * python/python-internal.h (PyMem_RawMalloc): Define for
14236 Python < 3.4.
14237 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
14238 PyMem_RawMalloc instead of PyMem_Malloc.
14239
14240 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
14241 Luis Machado <lgustavo@codesourcery.com>
14242
14243 * NEWS (New commands): Mention flash-erase.
14244 (New MI commands): Mention target-flash-erase.
14245 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
14246 command.
14247 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
14248 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
14249 * target.c (flash_erase_command): New function.
14250 (initialize_targets): Add new flash-erase command.
14251 * target.h (flash_erase_command): New declaration.
14252
14253 2017-01-20 Joel Brobecker <brobecker@adacore.com>
14254
14255 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
14256 HAVE_SYS_PROCFS_H is defined.
14257
14258 2017-01-18 Alan Hayward <alan.hayward@arm.com>
14259
14260 * remote.c (struct cached_reg): Change data into a pointer.
14261 * (stop_reply_dtr): Free data pointers before deleting vector.
14262 (process_stop_reply): Likewise.
14263 (remote_parse_stop_reply): Allocate space for data
14264
14265 2017-01-18 Alan Hayward <alan.hayward@arm.com>
14266
14267 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
14268 MAX_REGISTER_SIZE.
14269 (amd64_pseudo_register_read_value): Likewise.
14270 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
14271 (store_register_using_P): Likewise.
14272 * regcache.c (regcache_xfer_part): Likewise.
14273
14274 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
14275
14276 Split real and pseudo registers.
14277 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
14278 (sparc32_pseudo_regnum): New enum.
14279 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
14280 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
14281 (SPARC32_CP0_REGISTERS): New macro.
14282 (sparc32_pseudo_register_name): New function.
14283 (sparc32_register_name): Use sparc32_pseudo_register_name.
14284 (sparc32_pseudo_register_type): New function.
14285 (sparc32_register_type): Use sparc32_pseudo_register_type.
14286 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
14287 pseudo register numbers.
14288 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
14289 (SPARC64_CP0_REGISTERS): New macro.
14290 (sparc64_pseudo_register_name): New function.
14291 (sparc64_register_name): Use sparc64_pseudo_register_name.
14292 (sparc64_pseudo_register_type): New function.
14293 (sparc64_register_type): Use sparc64_pseudo_register_type.
14294 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
14295 pseudo register numbers.
14296 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
14297 sparc64_store_arguments): Handle pseudo register numbers.
14298
14299 2017-01-13 Yao Qi <yao.qi@linaro.org>
14300
14301 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
14302 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
14303 output.
14304 (getpkt_or_notif_sane_1): Likewise.
14305
14306 2017-01-13 Yao Qi <yao.qi@linaro.org>
14307
14308 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
14309 of CC. Pass "-x c++-header" instead of "-x c".
14310
14311 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14312
14313 * remote.c (remote_can_async_p): Update comment.
14314
14315 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14316
14317 * linux-nat.c (linux_nat_can_async_p): Update comment.
14318
14319 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14320
14321 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
14322
14323 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
14324
14325 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
14326
14327 2017-01-10 Tom Tromey <tom@tromey.com>
14328
14329 * python/py-type.c (typy_legacy_template_argument): Update.
14330 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
14331 ~demangle_parse_info): Declare new members.
14332 (cp_demangled_name_to_comp): Return unique_ptr.
14333 (cp_demangled_name_parse_free)
14334 (make_cleanup_cp_demangled_name_parse_free)
14335 (cp_new_demangle_parse_info): Remove.
14336 * cp-support.c (do_demangled_name_parse_free_cleanup)
14337 (make_cleanup_cp_demangled_name_parse_free): Remove.
14338 (inspect_type, cp_canonicalize_string_full)
14339 (cp_canonicalize_string): Update.
14340 (mangled_name_to_comp): Change return type.
14341 (cp_class_name_from_physname, method_name_from_physname)
14342 (cp_func_name, cp_remove_params): Update.
14343 * cp-name-parser.y (demangle_parse_info): New constructor, from
14344 cp_new_demangle_parse_info.
14345 (~demangle_parse_info): New destructor, from
14346 cp_demangled_name_parse_free.
14347 (cp_merge_demangle_parse_infos): Update.
14348 (cp_demangled_name_to_comp): Change return type.
14349
14350 2017-01-10 Tom Tromey <tom@tromey.com>
14351
14352 * top.c (prevent_dont_repeat): Change return type.
14353 * python/python.c (execute_gdb_command): Use std::string.
14354 Update.
14355 * guile/guile.c (gdbscm_execute_gdb_command): Update.
14356 * command.h (prevent_dont_repeat): Change return type.
14357 * breakpoint.c (bpstat_do_actions_1): Update.
14358
14359 2017-01-10 Tom Tromey <tom@tromey.com>
14360
14361 * value.h (scoped_value_mark::~scoped_value_mark): Call
14362 free_to_mark.
14363 (scoped_value_mark::free_to_mark): New method.
14364 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
14365 scoped_value_mark.
14366
14367 2017-01-10 Tom Tromey <tom@tromey.com>
14368
14369 * python/py-value.c (valpy_dereference, valpy_referenced_value)
14370 (valpy_reference_value, valpy_const_value, valpy_get_address)
14371 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
14372 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
14373 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
14374 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
14375 scoped_value_mark.
14376 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
14377 * value.h (scoped_value_mark): New class.
14378
14379 2017-01-10 Tom Tromey <tom@tromey.com>
14380
14381 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
14382 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
14383 * psymtab.c (discard_psymtabs_upto): Remove.
14384 (make_cleanup_discard_psymtabs): Remove.
14385 (struct psymtab_state): Remove.
14386
14387 2017-01-10 Tom Tromey <tom@tromey.com>
14388
14389 * record-full.c (record_full_save_cleanups): Remove.
14390 (record_full_save): Use gdb::unlinker.
14391 * gcore.c (do_bfd_delete_cleanup): Remove.
14392 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
14393 cleanups.
14394 * dwarf2read.c (unlink_if_set): Remove.
14395 (write_psymtabs_to_index): Use gdb::unlinker.
14396 * common/gdb_unlinker.h: New file.
14397
14398 2017-01-10 Tom Tromey <tom@tromey.com>
14399
14400 * windows-tdep.c (windows_xfer_shared_library): Update.
14401 * windows-nat.c (windows_make_so): Update.
14402 * utils.h (make_cleanup_bfd_unref): Remove.
14403 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
14404 * symfile.h (symfile_bfd_open)
14405 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
14406 * symfile.c (read_symbols, symbol_file_add)
14407 (separate_debug_file_exists): Update.
14408 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
14409 (generic_load, reread_symbols): Update.
14410 * symfile-mem.c (symbol_file_add_from_memory): Update.
14411 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
14412 (spu_symbol_file_add_from_memory): Update.
14413 * solist.h (struct target_so_ops) <bfd_open>: Return
14414 gdb_bfd_ref_ptr.
14415 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
14416 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
14417 gdb_bfd_ref_ptr.
14418 (solib_map_sections, reload_shared_libraries_1): Update.
14419 * solib-svr4.c (enable_break): Update.
14420 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
14421 * solib-frv.c (enable_break2): Update.
14422 * solib-dsbt.c (enable_break): Update.
14423 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
14424 gdb_bfd_ref_ptr.
14425 (darwin_solib_get_all_image_info_addr_at_init): Update.
14426 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
14427 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
14428 * record-full.c (record_full_save): Update.
14429 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
14430 * procfs.c (insert_dbx_link_bpt_in_file): Update.
14431 * minidebug.c (find_separate_debug_file_in_section): Return
14432 gdb_bfd_ref_ptr.
14433 * machoread.c (macho_add_oso_symfile): Change abfd to
14434 gdb_bfd_ref_ptr.
14435 (macho_symfile_read_all_oso): Update.
14436 (macho_check_dsym): Return gdb_bfd_ref_ptr.
14437 (macho_symfile_read): Update.
14438 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
14439 (jit_bfd_try_read_symtab): Update.
14440 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
14441 (gdb_bfd_openw, gdb_bfd_openr_iovec)
14442 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
14443 gdb_bfd_ref_ptr.
14444 (gdb_bfd_ref_policy): New struct.
14445 (gdb_bfd_ref_ptr): New typedef.
14446 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
14447 (gdb_bfd_openw, gdb_bfd_openr_iovec)
14448 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
14449 gdb_bfd_ref_ptr.
14450 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
14451 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
14452 (gcore_command): Update.
14453 * exec.c (exec_file_attach): Update.
14454 * elfread.c (elf_symfile_read): Update.
14455 * dwarf2read.c (dwarf2_get_dwz_file): Update.
14456 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
14457 (open_and_init_dwo_file): Update.
14458 (open_dwp_file): Return gdb_bfd_ref_ptr.
14459 (open_and_init_dwp_file): Update.
14460 * corelow.c (core_open): Update.
14461 * compile/compile-object-load.c (compile_object_load): Update.
14462 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
14463 * coffread.c (coff_symfile_read): Update.
14464 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
14465 gdb_bfd_ref_ptr. Rename.
14466 (dump_bfd_file, restore_command): Update.
14467 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
14468 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
14469 (find_separate_debug_file_by_buildid): Update.
14470
14471 2017-01-10 Tom Tromey <tom@tromey.com>
14472
14473 * common/gdb_ref_ptr.h: New file.
14474 * python/py-ref.h (struct gdbpy_ref_policy): New.
14475 (gdbpy_ref): Now a typedef.
14476
14477 2017-01-10 Tom Tromey <tom@tromey.com>
14478
14479 * utils.h (make_cleanup_htab_delete): Don't declare.
14480 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
14481 Remove.
14482 * linespec.c (decode_compound_collector): Add constructor,
14483 destructor.
14484 (lookup_prefix_sym): Remove cleanup.
14485 (symtab_collector): Add constructor, destructor.
14486 (collect_symtabs_from_filename): Remove cleanup.
14487 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
14488 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
14489 Use htab_up.
14490 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
14491 * dwarf2read.c (dw2_expand_symtabs_matching)
14492 (dw2_map_symbol_filenames, dwarf_decode_macros)
14493 (write_psymtabs_to_index): Use htab_up.
14494 * dwarf2loc.c (func_verify_no_selftailcall)
14495 (call_site_find_chain_1, func_verify_no_selftailcall)
14496 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
14497 std::vector, gdb::unique_xmalloc_ptr.
14498 (call_sitep): Remove typedef.
14499 (dwarf2_locexpr_baton_eval): Remove unused variable.
14500
14501 2017-01-10 Tom Tromey <tom@tromey.com>
14502
14503 * python/python-internal.h (make_cleanup_py_decref)
14504 (make_cleanup_py_xdecref): Don't declare.
14505 * python/py-utils.c (py_decref, make_cleanup_py_decref)
14506 (py_xdecref, make_cleanup_py_xdecref): Remove.
14507
14508 2017-01-10 Tom Tromey <tom@tromey.com>
14509
14510 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
14511 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
14512
14513 2017-01-10 Tom Tromey <tom@tromey.com>
14514
14515 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
14516
14517 2017-01-10 Tom Tromey <tom@tromey.com>
14518
14519 * python/py-utils.c (unicode_to_encoded_string)
14520 (python_string_to_target_string)
14521 (python_string_to_target_python_string)
14522 (python_string_to_host_string, gdbpy_obj_to_string)
14523 (get_addr_from_python): Use gdbpy_ref.
14524
14525 2017-01-10 Tom Tromey <tom@tromey.com>
14526
14527 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
14528 gdbpy_ref.
14529
14530 2017-01-10 Tom Tromey <tom@tromey.com>
14531
14532 * python/python.c (eval_python_command, gdbpy_decode_line)
14533 (gdbpy_run_events, gdbpy_start_type_printers)
14534 (gdbpy_apply_type_printers): Use gdbpy_ref.
14535
14536 2017-01-10 Tom Tromey <tom@tromey.com>
14537
14538 * python/py-param.c (get_doc_string, compute_enum_values): Use
14539 gdbpy_ref.
14540
14541 2017-01-10 Tom Tromey <tom@tromey.com>
14542
14543 * python/py-inferior.c (find_thread_object, build_inferior_list):
14544 Use gdbpy_ref.
14545
14546 2017-01-10 Tom Tromey <tom@tromey.com>
14547
14548 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14549
14550 2017-01-10 Tom Tromey <tom@tromey.com>
14551
14552 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
14553 gdbpy_ref.
14554
14555 2017-01-10 Tom Tromey <tom@tromey.com>
14556
14557 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
14558 extra incref.
14559 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
14560 Use gdbpy_ref.
14561
14562 2017-01-10 Tom Tromey <tom@tromey.com>
14563
14564 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14565 gdbpy_ref.
14566
14567 2017-01-10 Tom Tromey <tom@tromey.com>
14568
14569 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
14570 decref results of PyArg_ParseTupleAndKeywords.
14571
14572 2017-01-10 Tom Tromey <tom@tromey.com>
14573
14574 * python/python.c (python_run_simple_file): Use
14575 unique_xmalloc_ptr, gdbpy_ref.
14576
14577 2017-01-10 Tom Tromey <tom@tromey.com>
14578
14579 * python/py-prettyprint.c (print_stack_unless_memory_error)
14580 (print_string_repr, print_children): Use gdbpy_ref.
14581 (dummy_python_frame): New class.
14582 (dummy_python_frame::dummy_python_frame): Rename from
14583 push_dummy_python_frame.
14584 (py_restore_tstate): Remove.
14585
14586 2017-01-10 Tom Tromey <tom@tromey.com>
14587
14588 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14589
14590 2017-01-10 Tom Tromey <tom@tromey.com>
14591
14592 * python/python.c (ensure_python_env, restore_python_env):
14593 Remove.
14594 * python/python-internal.h (ensure_python_env): Don't declare.
14595 * varobj.h (varobj_ensure_python_env): Don't declare.
14596 * varobj.c (varobj_ensure_python_env): Remove.
14597
14598 2017-01-10 Tom Tromey <tom@tromey.com>
14599
14600 * varobj.c (varobj_value_get_print_value): Use
14601 gdbpy_enter_varobj.
14602
14603 2017-01-10 Tom Tromey <tom@tromey.com>
14604
14605 * python/py-prettyprint.c (print_string_repr, print_children):
14606 Update.
14607 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
14608 of "encoding".
14609 * varobj.c (varobj_value_get_print_value): Update.
14610 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
14611
14612 2017-01-10 Tom Tromey <tom@tromey.com>
14613
14614 * varobj.c (varobj_get_display_hint)
14615 (dynamic_varobj_has_child_method, install_new_value_visualizer)
14616 (varobj_set_visualizer, free_variable): Use
14617 gdbpy_enter_varobj.
14618
14619 2017-01-10 Tom Tromey <tom@tromey.com>
14620
14621 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
14622 (do_finish_initialization): New function. Use gdbpy_ref.
14623 (gdbpy_finish_initialization): Use gdbpy_enter. Call
14624 do_finish_initialization.
14625
14626 2017-01-10 Tom Tromey <tom@tromey.com>
14627
14628 * python/py-param.c (get_set_value, get_show_value): Use
14629 gdbpy_enter, gdbpy_ref.
14630
14631 2017-01-10 Tom Tromey <tom@tromey.com>
14632
14633 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
14634
14635 2017-01-10 Tom Tromey <tom@tromey.com>
14636
14637 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
14638
14639 2017-01-10 Tom Tromey <tom@tromey.com>
14640
14641 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
14642 Use gdbpy_enter_varobj.
14643
14644 2017-01-10 Tom Tromey <tom@tromey.com>
14645
14646 * varobj.c (gdbpy_enter_varobj): New constructor.
14647 * python/python-internal.h (gdbpy_enter_varobj): New class.
14648 * python/py-varobj.c (py_varobj_get_iterator): Use
14649 gdbpy_enter_varobj.
14650
14651 2017-01-10 Tom Tromey <tom@tromey.com>
14652
14653 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
14654 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14655 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
14656 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
14657 unique_xmalloc_ptr.
14658 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
14659
14660 2017-01-10 Tom Tromey <tom@tromey.com>
14661
14662 * python/py-xmethods.c (invoke_match_method): Use
14663 gdbpy_ref.
14664
14665 2017-01-10 Tom Tromey <tom@tromey.com>
14666
14667 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
14668 gdbpy_enter, gdbpy_ref.
14669
14670 2017-01-10 Tom Tromey <tom@tromey.com>
14671
14672 * python/python.c (python_interactive_command): Use gdbpy_enter.
14673
14674 2017-01-10 Tom Tromey <tom@tromey.com>
14675
14676 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
14677 gdbpy_ref.
14678
14679 2017-01-10 Tom Tromey <tom@tromey.com>
14680
14681 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
14682 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14683
14684 2017-01-10 Tom Tromey <tom@tromey.com>
14685
14686 * utils.h (htab_deleter): New struct.
14687 (htab_up): New typedef.
14688 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
14689 gdbpy_enter, gdbpy_ref, htab_up.
14690
14691 2017-01-10 Tom Tromey <tom@tromey.com>
14692
14693 * python/py-unwind.c (pending_frame_invalidate): Remove.
14694 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
14695
14696 2017-01-10 Tom Tromey <tom@tromey.com>
14697
14698 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
14699 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
14700
14701 2017-01-10 Tom Tromey <tom@tromey.com>
14702
14703 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
14704
14705 2017-01-10 Tom Tromey <tom@tromey.com>
14706
14707 * python/python.c (gdbpy_eval_from_control_command)
14708 (gdbpy_source_script, gdbpy_run_events)
14709 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
14710 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
14711 gdbpy_enter.
14712
14713 2017-01-10 Tom Tromey <tom@tromey.com>
14714
14715 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
14716
14717 2017-01-10 Tom Tromey <tom@tromey.com>
14718
14719 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
14720
14721 2017-01-10 Tom Tromey <tom@tromey.com>
14722
14723 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
14724 (python_on_inferior_call_pre, python_on_inferior_call_post)
14725 (python_on_memory_change, python_on_register_change)
14726 (python_inferior_exit, python_new_objfile, add_thread_object)
14727 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
14728
14729 2017-01-10 Tom Tromey <tom@tromey.com>
14730
14731 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
14732 (bpfinishpy_handle_exit): Use gdbpy_enter.
14733
14734 2017-01-10 Tom Tromey <tom@tromey.com>
14735
14736 * python/py-cmd.c (cmdpy_destroyer)
14737 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
14738 gdbpy_enter.
14739
14740 2017-01-10 Tom Tromey <tom@tromey.com>
14741
14742 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14743 gdbpy_enter.
14744 (gdbpy_breakpoint_has_cond): Likewise.
14745
14746 2017-01-10 Tom Tromey <tom@tromey.com>
14747
14748 * python/python.c (gdbpy_enter): New constructor.
14749 (~gdbpy_enter): New destructor.
14750 (restore_python_env, ensure_python_env): Rewrite.
14751 * python/python-internal.h (gdbpy_enter): New class.
14752
14753 2017-01-10 Tom Tromey <tom@tromey.com>
14754
14755 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
14756
14757 2017-01-10 Tom Tromey <tom@tromey.com>
14758
14759 * python/py-value.c (value_has_field, get_field_flag)
14760 (get_field_type, valpy_getitem, convert_value_from_python): Use
14761 gdbpy_ref.
14762
14763 2017-01-10 Tom Tromey <tom@tromey.com>
14764
14765 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
14766 gdbpy_ref.
14767
14768 2017-01-10 Tom Tromey <tom@tromey.com>
14769
14770 * python/py-prettyprint.c (search_pp_list)
14771 (find_pretty_printer_from_objfiles)
14772 (find_pretty_printer_from_progspace)
14773 (find_pretty_printer_from_gdb, find_pretty_printer)
14774 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
14775 gdbpy_ref.
14776
14777 2017-01-10 Tom Tromey <tom@tromey.com>
14778
14779 * python/py-param.c (call_doc_function): Use gdbpy_ref.
14780
14781 2017-01-10 Tom Tromey <tom@tromey.com>
14782
14783 * python/py-linetable.c (build_line_table_tuple_from_pcs)
14784 (ltpy_get_all_source_lines): Use gdbpy_ref.
14785
14786 2017-01-10 Tom Tromey <tom@tromey.com>
14787
14788 * python/py-framefilter.c (extract_sym, extract_value)
14789 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
14790 gdbpy_ref.
14791
14792 2017-01-10 Tom Tromey <tom@tromey.com>
14793
14794 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
14795
14796 2017-01-10 Tom Tromey <tom@tromey.com>
14797
14798 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
14799
14800 2017-01-10 Tom Tromey <tom@tromey.com>
14801
14802 * python/py-function.c (convert_values_to_python, fnpy_init): Use
14803 gdbpy_ref.
14804
14805 2017-01-10 Tom Tromey <tom@tromey.com>
14806
14807 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
14808
14809 2017-01-10 Tom Tromey <tom@tromey.com>
14810
14811 * python/py-type.c (convert_field, make_fielditem, typy_fields)
14812 (typy_range): Use gdbpy_ref.
14813
14814 2017-01-10 Tom Tromey <tom@tromey.com>
14815
14816 * python/py-threadevent.c (create_thread_event_object): Use
14817 gdbpy_ref.
14818 * python/py-stopevent.c (create_stop_event_object): Simplify.
14819 (emit_stop_event): Use gdbpy_ref.
14820 * python/py-signalevent.c (create_signal_event_object): Use
14821 gdbpy_ref.
14822 * python/py-newobjfileevent.c (create_new_objfile_event_object)
14823 (emit_new_objfile_event, create_clear_objfiles_event_object)
14824 (emit_clear_objfiles_event): Use gdbpy_ref.
14825 * python/py-infevents.c (create_inferior_call_event_object)
14826 (create_register_changed_event_object)
14827 (create_memory_changed_event_object, emit_inferior_call_event)
14828 (emit_memory_changed_event, emit_register_changed_event): Use
14829 gdbpy_ref.
14830 * python/py-exitedevent.c (create_exited_event_object)
14831 (emit_exited_event): Use gdbpy_ref.
14832 * python/py-event.h (evpy_emit_event): Remove
14833 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
14834 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
14835 * python/py-continueevent.c (emit_continue_event): Use
14836 gdbpy_ref.
14837 * python/py-breakpoint.c (gdbpy_breakpoint_created)
14838 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
14839 gdbpy_ref.
14840 * python/py-bpevent.c (create_breakpoint_event_object): Use
14841 gdbpy_ref.
14842
14843 2017-01-10 Tom Tromey <tom@tromey.com>
14844
14845 * python/py-ref.h: New file.
14846
14847 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14848
14849 * cli-out.c (cli_ui_out::do_redirect): Change return type to
14850 void.
14851 * cli-out.h (cli_ui_out::do_redirect): Likewise.
14852 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
14853 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
14854 * ui-out.c (ui_out::redirect): Likewise.
14855 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
14856 * cli/cli-logging.c (set_logging_redirect): Update call site of
14857 ui_out::redirect.
14858 (handle_redirections): Likewise.
14859 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
14860 * top.c (execute_command_to_string): Likewise.
14861 * utils.c (do_ui_out_redirect_pop): Likewise.
14862
14863 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14864
14865 * stack.c (_initialize_stack): Update "frame" command help message.
14866
14867 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
14868
14869 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14870
14871 2017-01-06 Yao Qi <yao.qi@linaro.org>
14872
14873 * x86-linux-nat.h: Include gdb_proc_service.h.
14874
14875 2017-01-06 Yao Qi <yao.qi@linaro.org>
14876
14877 * ser-base.h: Include serial.h.
14878
14879 2017-01-06 Yao Qi <yao.qi@linaro.org>
14880
14881 * ppc-linux-tdep.h: Include ppc-tdep.h.
14882
14883 2017-01-06 Yao Qi <yao.qi@linaro.org>
14884
14885 * nat/amd64-linux-siginfo.h: Include signal.h.
14886
14887 2017-01-06 Yao Qi <yao.qi@linaro.org>
14888
14889 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14890
14891 2017-01-06 Yao Qi <yao.qi@linaro.org>
14892
14893 * mi/mi-parse.h: Include mi-cmds.h.
14894
14895 2017-01-06 Yao Qi <yao.qi@linaro.org>
14896
14897 * inf-loop.c: Don't include "target.h".
14898 * inf-loop.h: Include it here.
14899
14900 2017-01-06 Yao Qi <yao.qi@linaro.org>
14901
14902 * dfp.h: Include "dboulest.h" and "expression.h".
14903
14904 2017-01-06 Yao Qi <yao.qi@linaro.org>
14905
14906 * ax-gdb.h: Include "ax.h".
14907
14908 2017-01-06 Yao Qi <yao.qi@linaro.org>
14909
14910 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14911 with nat/gdb_ptrace.h.
14912
14913 2017-01-05 Yao Qi <yao.qi@linaro.org>
14914
14915 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14916 new line.
14917 (mips64_fbsd_sigframe_init): Likewise.
14918
14919 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14920
14921 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14922 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14923
14924 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14925
14926 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14927 * NEWS: Mention new FreeBSD/mips native configuration.
14928 * config/mips/fbsd.mh: New file.
14929 * configure.host: Add mips*-*-freebsd*.
14930 * mips-fbsd-nat.c: New file.
14931
14932 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14933
14934 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14935 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14936 * NEWS: Mention new FreeBSD/mips target.
14937 * configure.tgt: Add mips*-*-freebsd*.
14938 * mips-fbsd-tdep.c: New file.
14939 * mips-fbsd-tdep.h: New file.
14940
14941 2017-01-04 Yao Qi <yao.qi@linaro.org>
14942
14943 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14944 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14945
14946 2017-01-01 Joel Brobecker <brobecker@adacore.com>
14947
14948 Update copyright year range in all GDB files.
14949
14950 2017-01-01 Joel Brobecker <brobecker@adacore.com>
14951
14952 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
14953
14954 For older changes see ChangeLog-2016.
14955 \f
14956 Local Variables:
14957 mode: change-log
14958 left-margin: 8
14959 fill-column: 74
14960 version-control: never
14961 coding: utf-8
14962 End:
This page took 0.448583 seconds and 4 git commands to generate.