Make strip_bg_char return a unique_xmalloc_ptr
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6be9a197
TT
12017-11-07 Tom Tromey <tom@tromey.com>
2
3 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
4 (run_command_1, continue_command, step_1, jump_command)
5 (signal_command, until_command, advance_command, finish_command)
6 (attach_command): Update.
7
c2252c0d
TT
82017-11-07 Tom Tromey <tom@tromey.com>
9
10 * command.h (set_cmd_cfunc): Don't declare.
11 * cli/cli-decode.c (set_cmd_cfunc): Now static.
12
1ee870c5
TT
132017-11-07 Tom Tromey <tom@tromey.com>
14
15 * stack.c (select_frame_command): Constify.
16 * cli/cli-decode.c (add_com_suppress_notification): Constify.
17 * command.h (add_com_suppress_notification): Constify.
18
ee7ddd71
TT
192017-11-07 Tom Tromey <tom@tromey.com>
20
21 * breakpoint.c (stop_command): Constify.
22 * cli/cli-decode.c (struct cmd_list_element): Constify.
23 * command.h (add_abbrev_prefix_cmd): Constify.
24
95e95a6d
PA
252017-11-07 Pedro Alves <palves@redhat.com>
26
27 * breakpoint.c (extract_bp_kind): New enum.
28 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
29 factored out from ...
30 (extract_bp_number_and_location): ... here.
31 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
32
cc638e86
PA
332017-11-07 Pedro Alves <palves@redhat.com>
34
35 * breakpoint.c (extract_bp_number_and_location): Change return
36 type to void. Throw error instead of warning.
37 (enable_disable_command): Adjust.
38
d0fe4701
XR
392017-11-07 Xavier Roirand <roirand@adacore.com>
40 Pedro Alves <palves@redhat.com>
41
42 * breakpoint.c (map_breakpoint_number_range): New, factored out
43 from ...
44 (map_breakpoint_numbers): ... here.
45 (find_location_by_number): Change parameters from string to
46 breakpoint number and location.
47 (extract_bp_number_and_location): New function.
48 (enable_disable_bp_num_loc)
49 (enable_disable_breakpoint_location_range)
50 (enable_disable_command): New functions, factored out ...
51 (enable_command, disable_command): ... these functions, and
52 adjusted to support ranges.
53 * NEWS: Document enable/disable breakpoint location range feature.
54
635dc5b2
LM
552017-11-06 Luis Machado <luis.machado@linaro.org>
56
57 * MAINTAINERS (Write After Approval): Update my e-mail address.
58
556e5da5
PA
592017-11-06 Pedro Alves <palves@redhat.com>
60
61 * gnu-nat.c (gnu_terminal_init): Delete.
62 (gnu_target): Don't install gnu_terminal_init.
63 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
64 (child_terminal_init): ... this function.
65
d1928160
PA
662017-11-06 Pedro Alves <palves@redhat.com>
67
68 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
69 sgtty.h.
70 * config.in, configure: Regenerate.
71
6aa899ce
PA
722017-11-06 Pedro Alves <palves@redhat.com>
73
74 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
75 (async_init_signals): Adjust.
76 (handle_stop_sig): Rename to ...
77 (handle_sigtstp): ... this.
78 (async_stop_sig): Rename to ...
79 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
80 SIGTSTP path.
81 * event-top.h: Move signal.h include to the top. Check SIGTSTP
82 instead of STOP_SIGNAL thoughout.
83 (handle_stop_sig): Rename to ...
84 (handle_sigtstp): ... this.
85 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
86
a94799ac
PA
872017-11-06 Pedro Alves <palves@redhat.com>
88
89 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
90 longer set flags twice in row.
91
726e1356
PA
922017-11-06 Pedro Alves <palves@redhat.com>
93
94 * Makefile.in (SER_HARDWIRE): Update comment.
95 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
96 * common/gdb_termios.h: Delete file.
97 * common/job-control.c: Include termios.h and unistd.h instead of
98 gdb_termios.h.
99 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
100 check.
101 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
102 Remove sgtty code.
103 * configure.ac: No longer check for termio.h and sgtty.h.
104 * configure: Regenerate.
105 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
106 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
107 Replace PROCESS_GROUP_TYPE references with pid_t references
108 throughout.
109 (gdb_getpgrp): Delete.
110 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
111 (child_terminal_inferior): Remove comment. Remove sgtty code.
112 (child_terminal_ours_1): Use tcgetpgrp directly instead of
113 gdb_getpgrp. Use serial_set_tty_state instead aof
114 serial_noflush_set_tty_state. Remove sgtty code.
115 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
116 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
117 (inferior_process_group): Now returns pid_t.
118 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
119 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
120 * ser-event.c (serial_event_ops): Update.
121 * ser-go32.c (dos_noflush_set_tty_state): Delete.
122 (dos_ops): Update.
123 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
124 * ser-pipe.c (pipe_ops): Update.
125 * ser-tcp.c (tcp_ops): Update.
126 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
127 HAVE_TERMIOS checks.
128 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
129 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
130 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
131 assume termios.
132 (hardwire_noflush_set_tty_state): Delete.
133 (hardwire_print_tty_state, hardwire_drain_output)
134 (hardwire_flush_output, hardwire_flush_input)
135 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
136 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
137 code, and assume termios.
138 (hardwire_ops): Update.
139 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
140 * serial.c (serial_noflush_set_tty_state): Delete.
141 * serial.h (serial_noflush_set_tty_state): Delete.
142 (serial_ops::noflush_set_tty_state): Delete.
143
1cfb73db
UW
1442017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
145
146 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
147 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
148 (COMMON_OBS): Remove doublest.o and dfp.o.
149 Do not build target-float.c (instead of doublest.c)
150 with -Wformat-nonliteral.
151
152 * doublest.c: Remove file.
153 * doublest.h: Remove file.
154 * dfp.c: Remove file.
155 * dfp.h: Remove file.
156
157 * target-float.c: Do not include "doublest.h" and "dfp.h".
158 (DOUBLEST): Move here from doublest.h.
159 (enum float_kind): Likewise.
160 (FLOATFORMAT_CHAR_BIT): Likewise.
161 (FLOATFORMAT_LARGEST_BYTES): Likewise.
162 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
163 (floatformat_precision): Likewise.
164 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
165 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
166 Likewise.
167 (host_float_format, host_double_format, host_long_double_format):
168 Likewise.
169 (floatformat_to_string, floatformat_from_string): Likewise.
170 (floatformat_to_doublest): Likewise. Also, inline the original
171 convert_floatformat_to_doublest.
172 (floatformat_from_doublest): Likewise. Also, inline the original
173 convert_floatformat_from_doublest.
174
175 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
176 (MAX_DECIMAL_STRING): Move here from dfp.c.
177 (match_endianness): Likewise.
178 (set_decnumber_context, decimal_check_errors): Likewise.
179 (decimal_from_number, decimal_to_number): Likewise.
180 (decimal_to_string, decimal_from_string): Likewise. Make static.
181 (decimal_from_longest, decimal_from_ulongest): Likewise.
182 (decimal_to_longest): Likewise.
183 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
184 (decimal_convert): Likewise.
185
b07e9c46
UW
1862017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
187
188 * doublest.c: Do not include "gdbtypes.h".
189 (extract_typed_floating): Remove.
190 (store_typed_floating): Remove.
191 (convert_typed_floating): Remove.
192 * doublest.h (struct type): Remove.
193 (DOUBLEST_PRINT_FORMAT): Remove.
194 (DOUBLEST_SCAN_FORMAT): Remove.
195 (extract_typed_floating): Remove.
196 (store_typed_floating): Remove.
197 (convert_typed_floating): Remove.
198
199 * dfp.c (decimal_from_doublest): Remove.
200 (decimal_to_doublest): Remove.
201 * dfp.h: Do not include "doublest.h".
202 (decimal_from_doublest): Remove.
203 (decimal_to_doublest): Remove.
204
205 * value.c: Do not include "doublest.h" and "dfp.h".
206 (value_as_double): Remove.
207 (unpack_double): Remove.
208 (value_from_double): Remove.
209 (value_from_decfloat): Remove.
210 * value.h: Do not include "doublest.h".
211 (value_as_double): Remove.
212 (unpack_double): Remove.
213 (value_from_double): Remove.
214 (value_from_decfloat): Remove.
215
3b2ca824
UW
2162017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
217
218 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
219 (i386_extract_return_value): Use target_float_convert.
220 (i386_store_return_value): Likewise.
221 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
222 (i387_value_to_register): Likewise.
223 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
224 (ia64_register_to_value): Use target_float_convert.
225 (ia64_value_to_register): Likewise.
226 (ia64_extract_return_value): Likewise.
227 (ia64_store_return_value): Likewise.
228 (ia64_push_dummy_call): Likewise.
229 * m68k-tdep.c: Include "target-float.h".
230 (m68k_register_to_value): Use target_float_convert.
231 (m68k_value_to_register): Likewise.
232 (m68k_svr4_extract_return_value): Likewise.
233 (m68k_svr4_store_return_value): Likewise.
234 * ppc-sysv-tdep.c: Include "target-float.h".
235 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
236 (do_ppc_sysv_return_value): Likewise.
237 (ppc64_sysv_abi_push_freg): Likewise.
238 (ppc64_sysv_abi_return_value_base): Likewise.
239 * rs6000-aix-tdep.c: Include "target-float.h".
240 (rs6000_push_dummy_call): Use target_float_convert.
241 (rs6000_return_value): Likewise.
242 * rs6000-lynx178-tdep.c: Include "target-float.h".
243 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
244 (rs6000_lynx178_return_value): Likewise.
245 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
246 (rs6000_register_to_value): Use target_float_convert.
247 (rs6000_value_to_register): Likewise.
248 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
249 (arm_extract_return_value): Use target_float_convert.
250 (arm_store_return_value): Likewise.
251 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
252 (sh_register_convert_to_virtual): Use target_float_convert.
253 (sh_register_convert_to_raw): Likewise.
254 * sh64-tdep.c: Include "target-float.h".
255 (sh64_extract_return_value): Use target_float_convert.
256 (sh64_register_convert_to_virtual): Likewise.
257 (sh64_register_convert_to_raw): Likewise. Fix argument types.
258
14ad9311
UW
2592017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
260
261 * target-float.c (floatformat_to_host_double): New function.
262 (floatformat_from_host_double): Likewise.
263 (target_float_to_host_double): Likewise.
264 (target_float_from_host_double): Likewise.
265 * target-float.h (target_float_to_host_double): Add prototype.
266 (target_float_from_host_double): Likewise.
267
268 * guile/scm-value.c: Include "target-float.h".
269 (gdbscm_value_to_real): Use target_float_to_host_double.
270 Handle integer source values via value_as_long.
271 * guile/scm-math.c: Include "target-float.h". Do not include
272 "doublest.h", "dfp.h", and "expression.h".
273 (vlscm_convert_typed_number): Use target_float_from_host_double.
274 (vlscm_convert_number): Likewise.
275
276 * python/py-value.c (valpy_float): Use target_float_to_host_double.
277 (convert_value_from_python): Use target_float_from_host_double.
278
50eff16b
UW
2792017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
280
281 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
282 (cast_from_fixed): Likewise.
283 (ada_scaling_type): New function.
284 (ada_delta): Return value instead of DOUBLEST. Perform target
285 arithmetic instead of host arithmetic.
286 (scaling_factor): Rename to ...
287 (ada_scaling_factor) ... this. Make non-static. Return value instead
288 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
289 (ada_fixed_to_float): Remove.
290 (ada_float_to_fixed): Remove.
291 * ada-lang.h (ada_fixed_to_float): Remove.
292 (ada_float_to_fixed): Remove.
293 (ada_delta): Return value instead of DOUBLEST.
294 (ada_scaling_factor): Add prototype.
295
296 * ada-typeprint.c: Include "target-float.h".
297 (print_fixed_point_type): Perform target arithmetic instead of
298 host arithmetic.
299 * ada-valprint.c: Include "target-float.h".
300 (ada_val_print_num): Perform target arithmetic instead of
301 host arithmetic for fixed-point types.
302
66c02b9e
UW
3032017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
304
305 * target-float.c: Include <math.h>.
306 (floatformat_binop): New function.
307 (floatformat_compare): Likewise.
308 (target_float_binop): Likewise.
309 (target_float_compare): Likewise.
310 * target-float.h: Include "expression.h".
311 (target_float_binop): Add prototype.
312 (target_float_compare): Likewise.
313
314 * valarith.c: Do not include "doublest.h" and "dfp.h".
315 Include "common/byte-vector.h".
316 (value_args_as_decimal): Remove, replace by ...
317 (value_args_as_target_float): ... this function. Handle both
318 binary and decimal target floating-point formats.
319 (scalar_binop): Handle both binary and decimal FP using
320 value_args_as_target_float and target_float_binop.
321 (value_equal): Handle both binary and decimal FP using
322 value_args_as_target_float and target_float_compare.
323 (value_less): Likewise.
324 (value_pos): Handle all scalar types as simple copy.
325 (value_neg): Handle all scalar types via BINOP_SUB from 0.
326 * dfp.c (decimal_binop): Throw error instead of internal_error
327 when called with an unsupported operation code.
328
f69fdf9b
UW
3292017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
330
331 * target-float.c (target_float_to_string): New function.
332 (target_float_from_string): New function.
333 * target-float.h (target_float_to_string): Add prototype.
334 (target_float_from_string): Add prototype.
335
336 * valprint.c: Include "target-float.h". Do not include
337 "doublest.h" and "dfp.h".
338 (print_floating): Use target_float_to_string.
339 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
340 (printf_floating): Use target_float_to_string.
341 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
342 (print_i387_value): Use target_float_to_string.
343 * mips-tdep.c: Include "target-float.h".
344 (mips_print_fp_register): Use target_float_to_string.
345 * sh64-tdep.c: Include "target-float.h".
346 (sh64_do_fp_register): Use target_float_to_string.
347
348 * parse.c: Include "target-float.h". Do not include
349 "doublest.h" and "dfp.h".
350 (parse_float): Use target_float_from_string.
351 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
352 (define_symbol): Use target_float_from_string.
353 * gdbarch-selftests.c: Include "target-float.h".
354 (register_to_value_test): Use target_float_from_string.
355
70100014
UW
3562017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
357
358 * Makefile.c (SFILES): Add target-float.c.
359 (HFILES_NO_SRCDIR): Add target-float.h.
360 (COMMON_OBS): Add target-float.o.
361 * target-float.h: New file.
362 * target-float.c: New file.
363
364 * doublest.c (floatformat_classify): Fix detection of float_zero.
365
366 * gdbtypes.c (is_floating_type): New function.
367 * gdbtypes.h (is_floating_type): Add prototype.
368
369 * value.c: Do not include "floatformat.h".
370 (unpack_double): Use target_float_is_valid.
371 (is_floating_value): New function.
372 * value.h (is_floating_value): Add prototype-
373
374 * valarith.c: Include "target-float.h".
375 (value_logical_not): Use target_float_is_zero.
376
377 * python/py-value.c: Include "target-float.h".
378 (valpy_nonzero): Use target_float_is_zero.
379
ab4b1c46
TT
3802017-11-04 Tom Tromey <tom@tromey.com>
381
382 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
383
454dafbd
TT
3842017-11-04 Tom Tromey <tom@tromey.com>
385
386 * breakpoint.c (set_momentary_breakpoint): Return
387 breakpoint_up.
388 (until_break_command): Update.
389 (new_until_break_fsm): Change argument types to
390 breakpoint_up.
391 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
392 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
393 Remove.
394 * infcmd.c (finish_forward): Update.
395 * breakpoint.h (set_momentary_breakpoint)
396 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
397 (make_cleanup_delete_breakpoint): Remove.
398 (struct breakpoint_deleter): New.
399 (breakpoint_up): New typedef.
400 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
401 (insert_exception_resume_breakpoint): Update.
402 (insert_exception_resume_from_probe): Update.
403 (insert_longjmp_resume_breakpoint): Update.
404 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
405 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
406 * infcall.c (call_function_by_hand_dummy): Update
407
331b71e5
TT
4082017-11-04 Tom Tromey <tom@tromey.com>
409
410 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
411
9f584b37
TT
4122017-11-04 Tom Tromey <tom@tromey.com>
413
414 * linux-tdep.c (linux_core_info_proc_mappings): Use
415 gdb::def_vector.
416 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
417 "size" argument.
418 (linux_corefile_thread): Update.
419 (linux_make_corefile_notes): Remove unused variable.
420
779bc38e
TT
4212017-11-04 Tom Tromey <tom@tromey.com>
422
423 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
424 gdb::byte_vector.
425
ed2b3126
TT
4262017-11-04 Tom Tromey <tom@tromey.com>
427
428 * objfiles.c (do_free_objfile_cleanup): Remove.
429 * compile/compile-object-load.c (compile_object_load): Update.
430 * objfiles.h (make_cleanup_free_objfile): Remove.
431
7f6743fd
TT
4322017-11-04 Tom Tromey <tom@tromey.com>
433
434 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
435 (adi_read_versions): Change "tags" to "gdb_byte *".
436 (adi_print_versions): Likewise.
437
c80049d3
TT
4382017-11-04 Tom Tromey <tom@tromey.com>
439
440 * breakpoint.c
441 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
442 from start_rbreak_breakpoints.
443 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
444 * breakpoint.h (class scoped_rbreak_breakpoints): New.
445 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
446 * symtab.c (do_end_rbreak_breakpoints): Remove.
447 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
448
167b0be1
TT
4492017-11-04 Tom Tromey <tom@tromey.com>
450
451 * cp-namespace.c (reset_directive_searched): Remove.
452 (cp_lookup_symbol_via_imports): Use scoped_restore.
453 * cp-support.c (reset_directive_searched): Remove.
454 (make_symbol_overload_list_using): Use scoped_restore.
455 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
456 (reset_directive_searched): Remove.
457
5eae7aea
TT
4582017-11-04 Tom Tromey <tom@tromey.com>
459
460 * symfile.c (find_separate_debug_file_by_debuglink): Use
461 unique_xmalloc_ptr.
462
c6bcad5f
TT
4632017-11-04 Tom Tromey <tom@tromey.com>
464
465 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
466 type of "info".
467 (compute_stack_depth): Likewise.
468 (do_compile_dwarf_expr_to_c): Use std::vector.
469
20dcd8ca
TT
4702017-11-04 Tom Tromey <tom@tromey.com>
471
472 * compile/compile-object-load.c (link_callbacks_einfo): Use
473 std::string.
474
33c7c59d
TT
4752017-11-04 Tom Tromey <tom@tromey.com>
476
477 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
478 Use scoped_free_pendings.
479 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
480 scoped_free_pendings.
481 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
482 (xcoff_initial_scan): Likewise.
483 * buildsym.c (reset_symtab_globals): Update comment.
484 (scoped_free_pendings): Rename from really_free_pendings.
485 (prepare_for_building): Update comment.
486 (buildsym_init): Likewise.
487 * buildsym.h (class scoped_free_pendings): New class.
488 (really_free_pendings): Don't declare.
489
67fa57cf
UW
4902017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
491
492 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
493 output when converting a zero value to a special byteorder format.
494
f26ae15b
YQ
4952017-11-02 Yao Qi <yao.qi@linaro.org>
496
497 * frame.c (do_frame_register_read): Remove aspace.
498 * jit.c (jit_frame_sniffer): Likwise.
499 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
500 * regcache.c (regcache::regcache): Pass nullptr.
501 (regcache_print): Caller updated.
502 * regcache.h (regcache::regcache): Remove one constructor
503 parameter aspace.
504
6c6e9412
YQ
5052017-11-02 Yao Qi <yao.qi@linaro.org>
506
507 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
508
8b86c959
YQ
5092017-11-02 Yao Qi <yao.qi@linaro.org>
510
511 * breakpoint.c (insert_single_step_breakpoints): Update.
512 * frame.c (struct frame_info) <aspace>: Add const.
513 (frame_save_as_regcache): Add const.
514 (get_frame_address_space): Return const address_space *.
515 * frame.h (get_frame_address_space): Update declaration.
516 * infrun.c (struct step_over_info) <aspace>: Add const.
517 (set_step_over_info): Make aspace const.
518 (displaced_step_prepare_throw): Change variable const.
519 (resume): Likewise.
520 (proceed): Likewise.
521 (adjust_pc_after_break): Likewise.
522 (save_waitstatus): Likewise.
523 (handle_signal_stop): Likewise.
524 (keep_going_pass_signal): Likewise.
525 * jit.c (jit_frame_sniffer): Add const.
526 * mips-tdep.c (mips_single_step_through_delay): Likewise.
527 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
528 * record-full.c (record_full_wait_1): Likewise.
529 * regcache.c (regcache::regcache): Change parameter to const.
530 * regcache.h (regcache::regcache): Likewise.
531 (regcache::aspace): Return const address_space *.
532 (regcache) <m_aspace>: Add const.
533
a01bda52
YQ
5342017-11-02 Yao Qi <yao.qi@linaro.org>
535
536 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
537 * frame.c (create_sentinel_frame): Likewise.
538 * infrun.c (displaced_step_prepare_throw): Likewise.
539 (resume): Likewise.
540 (thread_still_needs_step_over_bp): Likewise.
541 (proceed): Likewise.
542 (do_target_wait): Likewise.
543 (adjust_pc_after_break): Likewise.
544 (handle_syscall_event): Likewise.
545 (save_waitstatus): Likewise.
546 (handle_inferior_event_1): Likewise.
547 (handle_signal_stop): Likewise.
548 (keep_going_pass_signal): Likewise.
549 * linux-nat.c (status_callback): Likewise.
550 (save_stop_reason): Likewise.
551 (resume_stopped_resumed_lwps): Likewise.
552 * record-full.c (record_full_exec_insn): Likewise.
553 (record_full_wait_1): Likewise.
554 * regcache.c (get_regcache_aspace): Remove.
555 * regcache.h (get_regcache_aspace): Remove.
556
d999647b
YQ
5572017-11-02 Yao Qi <yao.qi@linaro.org>
558
559 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
560 (init_regcache_descr): Use gdbarch_num_regs.
561 (regcache::regcache): Likewise.
562 (regcache::get_register_status): Likewise.
563 (regcache::assert_raw_regnum): Likewise.
564 (regcache::cooked_read): Likewise.
565 (regcache::cooked_read_value): Likewise.
566 (regcache::cooked_write): Likewise.
567 (regcache::dump): Likewise.
568 (regcache::num_raw_registers): New method.
569 * regcache.h (class regcache) <num_raw_registers>: New.
570
4e888c28
YQ
5712017-11-02 Yao Qi <yao.qi@linaro.org>
572
573 * regcache.c (regcache::assert_regnum): New method.
574 (regcache::invalidate): Call assert_regnum.
575 (regcache::raw_update): Likewise.
576 (regcache::raw_write): Likewise.
577 (regcache::raw_read_part): Likewise.
578 (regcache::raw_write_part): Likewise.
579 (regcache::raw_supply): Likewise.
580 (regcache::raw_supply_integer): Likewise.
581 (regcache::raw_supply_zeroed): Likewise.
582 (regcache::raw_collect): Likewise.
583 (regcache::raw_collect_integer): Likewise.
584 * regcache.h (regcache::assert_regnum): Declare.
585
2e1b49b3
YQ
5862017-11-02 Yao Qi <yao.qi@linaro.org>
587
588 * regcache.c (regcache::dump): Remove code.
589
6c5218df
YQ
5902017-11-02 Yao Qi <yao.qi@linaro.org>
591
592 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
593 Remove.
594 <sizeof_cooked_register_status>: Remove.
595 (init_regcache_descr): Update.
596 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
597 (regcache::save): Likewise.
598 (regcache::dump): Likewise.
599
dcc31d28
JB
6002017-11-01 James Bowman <james.bowman@ftdichip.com>
601
602 * ft32-tdep.c (ft32_fetch_instruction): New function.
603 (ft32_analyze_prologue): Use ft32_fetch_instruction().
604
3a87ae65
SM
6052017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
606
607 * cli/cli-script.c (execute_control_command): Rename to ...
608 (execute_control_command_1): ... this.
609 (execute_control_command): New function.
610
09b847f3
SM
6112017-10-31 Simon Marchi <simon.marchi@ericsson.com>
612
613 * tracepoint.c (tfind_command): Remove const_cast.
614
f871c485
MG
6152017-10-30 Mike Gulick <mgulick@mathworks.com>
616
617 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
618
b020ff80
SM
6192017-10-30 Simon Marchi <simon.marchi@ericsson.com>
620
621 * common/common-utils.h (in_inclusive_range): New function.
622 * arm-tdep.c (arm_record_extension_space): Use
623 in_inclusive_range.
624 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
625 * cris-tdep.c (cris_spec_reg_applicable): Use
626 in_inclusive_range.
627
1b81856f
PA
6282017-10-30 Pedro Alves <palves@redhat.com>
629 Simon Marchi <simon.marchi@ericsson.com>
630
631 * remote.c (remote_set_syscall_catchpoint): Build a std::string
632 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
633
31b833b3
PA
6342017-10-30 Pedro Alves <palves@redhat.com>
635
636 * common/common-utils.c (string_appendf, string_vappendf): New
637 functions.
638 * common/common-utils.h (string_appendf, string_vappendf): New
639 declarations.
640 * unittests/common-utils-selftests.c (string_appendf_func)
641 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
642 (string_vappendf_tests): New functions.
643 (_initialize_common_utils_selftests): Register "string_appendf" and
644 "string_vappendf tests".
645
4a250334
PA
6462017-10-30 Pedro Alves <palves@redhat.com>
647
648 * unittests/common-utils-selftests.c (format_func): New typedef.
649 (string_printf_tests, string_vprintf_tests): Tests factored out
650 and merged to ...
651 (test_format_func): ... this new function.
652 (string_printf_tests, string_vprintf_tests): Reimplement on top of
653 test_format_func.
654
16c5c17e
SM
6552017-10-29 Simon Marchi <simon.marchi@ericsson.com>
656
657 * darwin-nat.c: Remove include of gdb.h.
658
7ca51576
SM
6592017-10-29 Simon Marchi <simon.marchi@ericsson.com>
660
661 * xtensa-xtregs.c: Fix formatting issues.
662
c1342859
SM
6632017-10-29 Simon Marchi <simon.marchi@ericsson.com>
664
665 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
666
484d8d36
MD
6672017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
668
669 PR python/21213
670 * python/py-infthread.c (thpy_get_inferior): Increment reference
671 of inferior before returning it.
672
b5540b5f
SM
6732017-10-27 Simon Marchi <simon.marchi@ericsson.com>
674
675 * unittests/common-utils-selftests.c (format): Add
676 ATTRIBUTE_PRINTF.
677
5a9dcda1
SM
6782017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
679
680 * xml-syscall.c (struct syscall_desc): Add constructor.
681 <name>: Change type to std::string.
682 (syscall_desc_up): New typedef.
683 (syscall_desc_p): Remove typeder.
684 (DEF_VEC_P(syscall_desc_p)): Remove.
685 (struct syscall_group_desc): Add constructor.
686 <name>: Change type to std::string.
687 <syscalls>: Change type to std::vector.
688 (syscall_group_desc_up): New typedef.
689 (syscall_group_desc_p): Remove typedef.
690 (DEF_VEC_P(syscall_group_desc_p)): Remove.
691 (struct syscalls_info) <syscalls>: Change type to std::vector of
692 unique_ptr.
693 <groups>: Likewise.
694 <my_gdb_datadir>: Change type to std::string.
695 (syscalls_info_up): New typedef.
696 (allocate_syscalls_info): Remove.
697 (syscalls_info_free_syscalls_desc): Remove.
698 (syscalls_info_free_syscall_group_desc): Remove.
699 (free_syscalls_info): Remove.
700 (make_cleanup_free_syscalls_info): Remove.
701 (syscall_group_create_syscall_group_desc): Adjust.
702 (syscall_group_add_syscall): Adjust.
703 (syscall_create_syscall_desc): Adjust.
704 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
705 (init_syscalls_info): Adjust.
706 (syscall_group_get_group_by_name): Adjust.
707 (xml_get_syscall_number): Adjust.
708 (xml_get_syscall_name): Adjust.
709 (xml_list_of_syscalls): Adjust.
710 (xml_list_syscalls_by_group): Adjust.
711 (xml_list_of_groups): Adjust.
712
45461e0d
SM
7132017-10-27 Simon Marchi <simon.marchi@ericsson.com>
714
715 * probe.h: Don't include gdb_vecs.h.
716 (DEF_VEC_P (probe_p)): Remove.
717 (find_probes_in_objfile): Return an std::vector.
718 * probe.c (find_probes_in_objfile): Likewise.
719 * breakpoint.c (breakpoint_objfile_data)
720 <longjmp_probes>: Change type to std::vector.
721 <exception_probes>: Likewise.
722 (free_breakpoint_probes): Don't manually free vectors.
723 (create_longjmp_master_breakpoint): Adjust.
724 (create_exception_master_breakpoint): Adjust.
725 * solib-svr4.c (svr4_create_probe_breakpoints): Change
726 parameter type, adjust.
727 (svr4_create_solib_event_breakpoints): Adjust.
728
43dce439
SM
7292017-10-27 Simon Marchi <simon.marchi@ericsson.com>
730
731 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
732 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
733 with new.
734 (free_breakpoint_probes): Rename to ...
735 (free_breakpoint_objfile_data): ... this, and call delete on
736 bp_objfile_data..
737
6a1b9516
SM
7382017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
739
740 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
741 (loaded_script_ptr): Remove typedef.
742 (DEF_VEC_P (loaded_script_ptr)): Remove.
743 (struct collect_matching_scripts_data): Add constructor.
744 <scripts_p>: Change type to (pointer to) std::vector.
745 (collect_matching_scripts_data): Adjust.
746 (sort_scripts_by_name): Make suitable for std::sort.
747 (print_scripts): Don't sort vector, adjust to std::vector.
748 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
749
593e3209
SM
7502017-10-27 Simon Marchi <simon.marchi@ericsson.com>
751
752 * symfile.c (filename_language): Make struct, not typedef. Add
753 constructor.
754 <ext>: Change type to std::string.
755 (DEF_VEC_O (filename_language)): Remove.
756 (filename_language_table): Change type to std::vector.
757 (add_filename_language): Adjust.
758 (set_ext_lang_command): Adjust.
759 (info_ext_lang_command): Adjust.
760 (deduce_language_from_filename): Adjust.
761 (class scoped_restore_filename_language_table): Remove.
762 (test_filename_language): Use scoped_restore.
763 (test_set_ext_lang_command): Use scoped_restore, adjust to
764 std::vector change.
765
32fa66eb
SM
7662017-10-27 Simon Marchi <simon.marchi@ericsson.com>
767
768 * symfile.c: Include selftest.h.
769 (class scoped_restore_filename_language_table): New.
770 (test_filename_language): New test.
771 (test_set_ext_lang_command): New test.
772 (_initialize_symfile): Register tests.
773
4a27f119
KS
7742017-10-27 Keith Seitz <keiths@redhat.com>
775
776 * breakpoint.c (print_breakpoint_location): Use the symbol saved
777 in the bp_location, falling back to find_pc_sect_function when
778 needed.
779 (add_location_to_breakpoint): Save sal->symbol.
780 * breakpoint.h (struct bp_location) <symbol>: New field.
781 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
782 * symtab.h (struct symtab_and_line) <symbol>: New field.
783
a43f3893
PF
7842017-10-26 Patrick Frants <osscontribute@gmail.com>
785
7453e6b2 786 PR gdb/13669
a43f3893
PF
787 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
788 to rewind obstack.
789
23cc4e1b
PA
7902017-10-26 Pedro Alves <palves@redhat.com>
791
792 * remote.c (remote_async_terminal_ours_p): Delete.
793 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
794 Remove references to 'remote_async_terminal_ours_p'.
795
6abc18bb
YQ
7962017-10-26 Yao Qi <yao.qi@linaro.org>
797
798 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
799
bd522513
YQ
8002017-10-26 Yao Qi <yao.qi@linaro.org>
801
802 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
803 aspace const.
804 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
805 Likewise.
806 * breakpoint.c (bpstat_check_location): Remove cast.
807 (breakpoint_hit_catch_fork): Make aspce const.
808 (breakpoint_hit_catch_solib): Likewise.
809 (breakpoint_hit_catch_exec): Likewise.
810 (breakpoint_hit_ranged_breakpoint): Likewise.
811 (breakpoint_hit_watchpoint): Likewise.
812 (base_breakpoint_breakpoint_hit): Likewise.
813 (bkpt_breakpoint_hit): Likewise.
814 (dprintf_breakpoint_hit): Likewise.
815 (tracepoint_breakpoint_hit): Likewise.
816 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
817
accd0bcd
YQ
8182017-10-26 Yao Qi <yao.qi@linaro.org>
819
820 * breakpoint.c (breakpoint_location_address_match): Change
821 "struct address_space *" to "const address_space".
822 (breakpoint_location_address_range_overlap): Likewise.
823 (breakpoint_here_p): Likewise.
824 (breakpoint_in_range_p): Likewise.
825 (moribund_breakpoint_here_p): Likewise.
826 (bp_location_inserted_here_p): Likewise.
827 (software_breakpoint_inserted_here_p): Likewise.
828 (hardware_breakpoint_inserted_here_p): Likewise.
829 (hardware_watchpoint_inserted_in_range): Likewise.
830 (bpstat_check_location): Likewise.
831 (bpstat_stop_status): Likewise.
832 (breakpoint_address_match): Likewise.
833 (breakpoint_address_match_range): Likewise.
834 (breakpoint_location_address_match): Likewise.
835 (breakpoint_location_address_range_overlap): Likewise.
836 (insert_single_step_breakpoint): Likewise.
837 (breakpoint_has_location_inserted_here): Likewise.
838 (single_step_breakpoint_inserted_here_p): Likewise.
839 (pc_at_non_inline_function): Likewise.
840 * breakpoint.h (bpstat_stop_status): Update declaration.
841 (breakpoint_here_p): Likewise.
842 (breakpoint_in_range_p): Likewise.
843 (moribund_breakpoint_here_p): Likewise.
844 (breakpoint_inserted_here_p): Likewise.
845 (software_breakpoint_inserted_here_p): Likewise.
846 (hardware_breakpoint_inserted_here_p): Likewise.
847 (breakpoint_has_location_inserted_here): Likewise.
848 (single_step_breakpoint_inserted_here_p): Likewise.
849 (hardware_watchpoint_inserted_in_range): Likewise.
850 (breakpoint_address_match): Likewise.
851 (insert_single_step_breakpoint): Likewise.
852 (pc_at_non_inline_function): Likewise.
853 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
854 * record.c (record_check_stopped_by_breakpoint): Likewise.
855 * record.h (record_check_stopped_by_breakpoint): Likewise.
856 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
857
ac7936df
YQ
8582017-10-25 Yao Qi <yao.qi@linaro.org>
859
860 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
861 regcache->arch () instead get_regcache_arch.
862 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
863 Likewise.
864 (aarch64_fbsd_store_inferior_registers): Likewise.
865 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
866 (store_gregs_to_thread): Likewise.
867 (fetch_fpregs_from_thread): Likewise.
868 (store_fpregs_to_thread): Likewise.
869 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
870 (aarch64_store_return_value): Likewise.
871 (aarch64_software_single_step): Likewise.
872 * aix-thread.c (aix_thread_wait): Likewise.
873 (supply_reg32): Likewise.
874 (supply_sprs64): Likewise.
875 (supply_sprs32): Likewise.
876 (fill_gprs64): Likewise.
877 (fill_gprs32): Likewise.
878 (fill_sprs64): Likewise.
879 (fill_sprs32): Likewise.
880 (store_regs_user_thread): Likewise.
881 (store_regs_kernel_thread): Likewise.
882 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
883 (alphabsd_store_inferior_registers): Likewise.
884 * alpha-tdep.c (alpha_extract_return_value): Likewise.
885 (alpha_store_return_value): Likewise.
886 (alpha_deal_with_atomic_sequence): Likewise.
887 (alpha_next_pc): Likewise.
888 (alpha_software_single_step): Likewise.
889 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
890 (amd64bsd_store_inferior_registers): Likewise.
891 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
892 Likewise.
893 (amd64_linux_store_inferior_registers): Likewise.
894 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
895 (amd64_collect_native_gregset): Likewise.
896 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
897 (amd64obsd_collect_uthread): Likewise.
898 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
899 (amd64_collect_fpregset): Likewise.
900 (amd64_supply_fxsave): Likewise.
901 (amd64_supply_xsave): Likewise.
902 (amd64_collect_fxsave): Likewise.
903 (amd64_collect_xsave): Likewise.
904 * arc-tdep.c (arc_write_pc): Likewise.
905 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
906 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
907 (arm_fbsd_store_inferior_registers): Likewise.
908 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
909 (store_vfp_regs): Likewise.
910 (arm_linux_fetch_inferior_registers): Likewise.
911 (arm_linux_store_inferior_registers): Likewise.
912 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
913 (arm_linux_sigreturn_next_pc): Likewise.
914 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
915 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
916 (fetch_register): Likewise.
917 (store_register): Likewise.
918 * arm-tdep.c (arm_is_thumb): Likewise.
919 (displaced_in_arm_mode): Likewise.
920 (bx_write_pc): Likewise.
921 (arm_get_next_pcs_addr_bits_remove): Likewise.
922 (arm_software_single_step): Likewise.
923 (arm_extract_return_value): Likewise.
924 (arm_store_return_value): Likewise.
925 (arm_write_pc): Likewise.
926 * bfin-tdep.c (bfin_extract_return_value): Likewise.
927 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
928 (bsd_uthread_store_registers): Likewise.
929 * core-regset.c (fetch_core_registers): Likewise.
930 * corelow.c (get_core_registers): Likewise.
931 * cris-tdep.c (cris_store_return_value): Likewise.
932 (cris_extract_return_value): Likewise.
933 (find_step_target): Likewise.
934 (find_step_target): Likewise.
935 (cris_software_single_step): Likewise.
936 * ctf.c (ctf_fetch_registers): Likewise.
937 * darwin-nat.c (cancel_breakpoint): Likewise.
938 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
939 * frv-tdep.c (frv_extract_return_value): Likewise.
940 * ft32-tdep.c (ft32_store_return_value): Likewise.
941 (ft32_extract_return_value): Likewise.
942 * go32-nat.c (fetch_register): Likewise.
943 (go32_fetch_registers): Likewise.
944 (go32_store_registers): Likewise.
945 (store_register): Likewise.
946 * h8300-tdep.c (h8300_extract_return_value): Likewise.
947 (h8300_store_return_value): Likewise.
948 * hppa-linux-nat.c (fetch_register): Likewise.
949 (store_register): Likewise.
950 (hppa_linux_fetch_inferior_registers): Likewise.
951 (hppa_linux_store_inferior_registers): Likewise.
952 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
953 (i386_darwin_store_inferior_registers): Likewise.
954 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
955 (gnu_store_registers): Likewise.
956 * i386-linux-nat.c (fetch_register): Likewise.
957 (store_register): Likewise.
958 (supply_gregset): Likewise.
959 (fill_gregset): Likewise.
960 (i386_linux_fetch_inferior_registers): Likewise.
961 (i386_linux_store_inferior_registers): Likewise.
962 (i386_linux_resume): Likewise.
963 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
964 Likewise.
965 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
966 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
967 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
968 (i386obsd_collect_uthread): Likewise.
969 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
970 (i386_supply_gregset): Likewise.
971 (i386_collect_gregset): Likewise.
972 (i386_supply_fpregset): Likewise.
973 (i386_collect_fpregset): Likewise.
974 (i386_mpx_bd_base): Likewise.
975 * i386-v4-nat.c (supply_fpregset): Likewise.
976 (fill_fpregset): Likewise.
977 * i387-tdep.c (i387_supply_fsave): Likewise.
978 (i387_collect_fsave): Likewise.
979 (i387_supply_fxsave): Likewise.
980 (i387_collect_fxsave): Likewise.
981 (i387_supply_xsave): Likewise.
982 (i387_collect_xsave): Likewise.
983 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
984 (ia64_linux_store_registers): Likewise.
985 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
986 (ia64_extract_return_value): Likewise.
987 (ia64_store_return_value): Likewise.
988 (find_func_descr): Likewise.
989 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
990 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
991 (inf_ptrace_store_registers): Likewise.
992 * infrun.c (use_displaced_stepping): Likewise.
993 (displaced_step_prepare_throw): Likewise.
994 (resume): Likewise.
995 (proceed): Likewise.
996 (do_target_wait): Likewise.
997 (adjust_pc_after_break): Likewise.
998 (handle_inferior_event_1): Likewise.
999 (handle_signal_stop): Likewise.
1000 (save_infcall_suspend_state): Likewise.
1001 (restore_infcall_suspend_state): Likewise.
1002 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
1003 * jit.c (jit_frame_prev_register): Likewise.
1004 * linux-nat.c (save_stop_reason): Likewise.
1005 (linux_nat_wait_1): Likewise.
1006 (resume_stopped_resumed_lwps): Likewise.
1007 * linux-record.c (record_linux_sockaddr): Likewise.
1008 (record_linux_msghdr): Likewise.
1009 (record_linux_system_call): Likewise.
1010 * linux-tdep.c (linux_collect_thread_registers): Likewise.
1011 * lm32-tdep.c (lm32_extract_return_value): Likewise.
1012 (lm32_store_return_value): Likewise.
1013 * m32c-tdep.c (m32c_read_flg): Likewise.
1014 (m32c_pseudo_register_read): Likewise.
1015 (m32c_pseudo_register_write): Likewise.
1016 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
1017 (m32r_linux_collect_gregset): Likewise.
1018 * m32r-tdep.c (m32r_store_return_value): Likewise.
1019 (m32r_extract_return_value): Likewise.
1020 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
1021 (m68kbsd_collect_fpregset): Likewise.
1022 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1023 * m68k-linux-nat.c (fetch_register): Likewise.
1024 (old_fetch_inferior_registers): Likewise.
1025 (old_store_inferior_registers): Likewise.
1026 (store_regs): Likewise.
1027 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
1028 (m68k_svr4_store_return_value): Likewise.
1029 * m88k-tdep.c (m88k_store_arguments): Likewise.
1030 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
1031 (mi_cmd_data_write_register_values): Likewise.
1032 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
1033 (mips_fbsd_store_inferior_registers): Likewise.
1034 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
1035 (mips_fbsd_supply_gregs): Likewise.
1036 (mips_fbsd_collect_fpregs): Likewise.
1037 (mips_fbsd_collect_gregs): Likewise.
1038 (mips_fbsd_supply_fpregset): Likewise.
1039 (mips_fbsd_collect_fpregset): Likewise.
1040 (mips_fbsd_supply_gregset): Likewise.
1041 (mips_fbsd_collect_gregset): Likewise.
1042 * mips-linux-nat.c (supply_gregset): Likewise.
1043 (fill_gregset): Likewise.
1044 (supply_fpregset): Likewise.
1045 (fill_fpregset): Likewise.
1046 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
1047 (mips_fill_gregset): Likewise.
1048 (mips_supply_fpregset): Likewise.
1049 (mips_fill_fpregset): Likewise.
1050 (mips64_supply_gregset): Likewise.
1051 (micromips_linux_sigframe_validate): Likewise.
1052 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
1053 (mipsnbsd_fetch_inferior_registers): Likewise.
1054 (mipsnbsd_store_inferior_registers): Likewise.
1055 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1056 (mipsnbsd_supply_gregset): Likewise.
1057 (mipsnbsd_iterate_over_regset_sections): Likewise.
1058 (mipsnbsd_supply_reg): Likewise.
1059 (mipsnbsd_supply_fpreg): Likewise.
1060 * mips-tdep.c (mips_in_frame_stub): Likewise.
1061 (mips_dummy_id): Likewise.
1062 (is_octeon_bbit_op): Likewise.
1063 (micromips_bc1_pc): Likewise.
1064 (extended_mips16_next_pc): Likewise.
1065 (mips16_next_pc): Likewise.
1066 (deal_with_atomic_sequence): Likewise.
1067 * moxie-tdep.c (moxie_process_readu): Likewise.
1068 * nios2-tdep.c (nios2_get_next_pc): Likewise.
1069 * nto-procfs.c (procfs_store_registers): Likewise.
1070 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
1071 (ppcfbsd_store_inferior_registers): Likewise.
1072 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
1073 (fetch_altivec_register): Likewise.
1074 (get_spe_registers): Likewise.
1075 (fetch_spe_register): Likewise.
1076 (fetch_altivec_registers): Likewise.
1077 (fetch_all_gp_regs): Likewise.
1078 (fetch_all_fp_regs): Likewise.
1079 (store_vsx_register): Likewise.
1080 (store_altivec_register): Likewise.
1081 (set_spe_registers): Likewise.
1082 (store_spe_register): Likewise.
1083 (store_altivec_registers): Likewise.
1084 (store_all_gp_regs): Likewise.
1085 (store_all_fp_regs): Likewise.
1086 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1087 (ppc_linux_collect_gregset): Likewise.
1088 (ppc_canonicalize_syscall): Likewise.
1089 (ppc_linux_record_signal): Likewise.
1090 (ppu2spu_prev_register): Likewise.
1091 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1092 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
1093 (ppcobsd_store_registers): Likewise.
1094 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
1095 Likewise.
1096 (ppc_ravenscar_generic_store_registers): Likewise.
1097 * procfs.c (procfs_fetch_registers): Likewise.
1098 (procfs_store_registers): Likewise.
1099 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
1100 (ravenscar_store_registers): Likewise.
1101 (ravenscar_prepare_to_store): Likewise.
1102 * record-btrace.c (record_btrace_fetch_registers): Likewise.
1103 * record-full.c (record_full_wait_1): Likewise.
1104 (record_full_registers_change): Likewise.
1105 (record_full_store_registers): Likewise.
1106 (record_full_core_fetch_registers): Likewise.
1107 (record_full_save): Likewise.
1108 (record_full_goto_insn): Likewise.
1109 * regcache.c (regcache_register_size): Likewise.
1110 (get_regcache_arch): Remove.
1111 (regcache_read_pc): Likewise.
1112 * regcache.h (get_regcache_arch): Remove.
1113 * remote-sim.c (gdbsim_fetch_register): Likewise.
1114 (gdbsim_store_register): Likewise.
1115 * remote.c (fetch_register_using_p): Likewise.
1116 (send_g_packet): Likewise.
1117 (remote_prepare_to_store): Likewise.
1118 (store_registers_using_G): Likewise.
1119 * reverse.c (save_bookmark_command): Likewise.
1120 (goto_bookmark_command): Likewise.
1121 * rs6000-aix-tdep.c (branch_dest): Likewise.
1122 * rs6000-nat.c (rs6000_ptrace64): Likewise.
1123 (fetch_register): Likewise.
1124 * rs6000-tdep.c (ppc_supply_reg): Likewise.
1125 (ppc_collect_reg): Likewise.
1126 (ppc_collect_gregset): Likewise.
1127 (ppc_collect_fpregset): Likewise.
1128 (ppc_collect_vsxregset): Likewise.
1129 (ppc_collect_vrregset): Likewise.
1130 (ppc_displaced_step_hw_singlestep): Likewise.
1131 (rs6000_pseudo_register_read): Likewise.
1132 (rs6000_pseudo_register_write): Likewise.
1133 * s390-linux-nat.c (supply_gregset): Likewise.
1134 (fill_gregset): Likewise.
1135 (s390_linux_fetch_inferior_registers): Likewise.
1136 * s390-linux-tdep.c (s390_write_pc): Likewise.
1137 (s390_software_single_step): Likewise.
1138 (s390_all_but_pc_registers_record): Likewise.
1139 (s390_linux_syscall_record): Likewise.
1140 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
1141 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
1142 (shnbsd_store_inferior_registers): Likewise.
1143 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
1144 (sh_extract_return_value_fpu): Likewise.
1145 (sh_store_return_value_nofpu): Likewise.
1146 (sh_corefile_supply_regset): Likewise.
1147 (sh_corefile_collect_regset): Likewise.
1148 * sh64-tdep.c (sh64_extract_return_value): Likewise.
1149 (sh64_store_return_value): Likewise.
1150 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
1151 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
1152 (sparc_store_inferior_registers): Likewise.
1153 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
1154 (sparc_ravenscar_prepare_to_store): Likewise.
1155 * sparc-tdep.c (sparc32_store_arguments): Likewise.
1156 (sparc_analyze_control_transfer): Likewise.
1157 (sparc_step_trap): Likewise.
1158 (sparc_software_single_step): Likewise.
1159 (sparc32_gdbarch_init): Likewise.
1160 (sparc_supply_rwindow): Likewise.
1161 (sparc_collect_rwindow): Likewise.
1162 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
1163 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
1164 (sparc64nbsd_collect_gregset): Likewise.
1165 (sparc64nbsd_supply_fpregset): Likewise.
1166 (sparc64nbsd_collect_fpregset): Likewise.
1167 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
1168 (sparc64_supply_gregset): Likewise.
1169 (sparc64_collect_gregset): Likewise.
1170 (sparc64_supply_fpregset): Likewise.
1171 (sparc64_collect_fpregset): Likewise.
1172 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
1173 * spu-tdep.c (spu_unwind_sp): Likewise.
1174 (spu2ppu_prev_register): Likewise.
1175 (spu_memory_remove_breakpoint): Likewise.
1176 * stack.c (return_command): Likewise.
1177 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
1178 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1179 * tracefile.c (trace_save_ctf): Likewise.
1180 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
1181 (do_windows_store_inferior_registers): Likewise.
1182 (windows_resume): Likewise.
1183 * xtensa-linux-nat.c (fill_gregset): Likewise.
1184 (supply_gregset_reg): Likewise.
1185 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
1186 (xtensa_register_read_masked): Likewise.
1187 (xtensa_supply_gregset): Likewise.
1188 (xtensa_extract_return_value): Likewise.
1189 (xtensa_store_return_value): Likewise.
1190
edd079d9
UW
11912017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
1192
1193 * doublest.c (floatformat_from_string): New function.
1194 * doublest.h (floatformat_from_string): Add prototype.
1195
1196 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
1197 (OP_FLOAT): ... this.
1198 * expression.h: Do not include "doublest.h".
1199 (union exp_element): Replace doubleconst and decfloatconst by
1200 new element floatconst.
1201 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
1202 (ada_evaluate_subexp): Likewise.
1203 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
1204 OP_DOUBLE and OP_DECFLOAT.
1205 * expprint.c (print_subexp_standard): Likewise.
1206 (dump_subexp_body_standard): Likewise.
1207 * breakpoint.c (watchpoint_exp_is_const): Likewise.
1208
1209 * parse.c: Include "dfp.h".
1210 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
1211 (write_exp_elt_floatcst): New function.
1212 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
1213 and OP_DECFLOAT.
1214 (operator_check_standard): Likewise.
1215 (parse_float): Do not accept suffix. Take type as input. Return bool.
1216 Return target format buffer instead of host DOUBLEST.
1217 Use floatformat_from_string and decimal_from_string to parse
1218 either binary or decimal floating-point types.
1219 (parse_c_float): Remove.
1220 * parser-defs.h: Do not include "doublest.h".
1221 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
1222 (write_exp_elt_floatcst): Add prototype.
1223 (parse_float): Update prototype.
1224 (parse_c_float): Remove.
1225
1226 * c-exp.y: Do not include "dfp.h".
1227 (typed_val_float): Use byte buffer instead of DOUBLEST.
1228 (typed_val_decfloat): Remove.
1229 (DECFLOAT): Remove.
1230 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1231 (parse_number): Update to new parse_float interface.
1232 Parse suffixes and determine type before calling parse_float.
1233 Handle decimal and binary FP types the same way.
1234
1235 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1236 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
1237 (parse_number): Update to new parse_float interface.
1238 Parse suffixes and determine type before calling parse_float.
1239
1240 * f-exp.y: Replace dval by typed_val_float.
1241 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1242 (parse_number): Use parse_float instead of atof.
1243
1244 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1245 (parse_go_float): Remove.
1246 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1247 (parse_number): Call parse_float instead of parse_go_float.
1248 Parse suffixes and determine type before calling parse_float.
1249
1250 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1251 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1252 (parse_number): Update to new parse_float interface.
1253 Parse suffixes and determine type before calling parse_float.
1254
1255 * m2-exp.y: Replace dval by byte buffer val.
1256 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1257 (parse_number): Call parse_float instead of atof.
1258
1259 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1260 (lex_number): Call parse_float instead of strtod.
1261 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
1262 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
1263 Use write_exp_elt_floatcst.
1264 (unit_testing): Remove static variable.
1265 (rust_type): Do not check unit_testing.
1266 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
1267
1268 * ada-exp.y (type_float, type_double): Remove.
1269 (typed_val_float): Use byte buffer instead of DOUBLEST.
1270 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1271 * ada-lex.l (processReal): Use parse_float instead of sscanf.
1272
cc628f3d
AH
12732017-10-25 Alan Hayward <alan.hayward@arm.com>
1274
1275 * aarch64-tdep.h (enum aarch64_regnum): Remove.
1276 * arch/aarch64.h: New file.
1277
09a7c6aa
UW
12782017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1279
1280 * dfp.h (decimal_from_string): Use const reference for argument.
1281 * dfp.c (decimal_from_string): Likewise.
1282
8ba0dd51
UW
12832017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1284
1285 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
1286 * sh64-tdep.c (sh64_do_fp_register): Likewise.
1287 * mips-tdep.c (mips_print_fp_register): Likewise.
1288
16e812b2
UW
12892017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1290
1291 * common/format.h (enum argclass): Replace decfloat_arg by
1292 dec32float_arg, dec64float_arg, and dec128float_arg.
1293 * common/format.c (parse_format_string): Update to return
1294 new decimal float argument classes.
1295
1296 * printcmd.c (printf_decfloat): Rename to ...
1297 (printf_floating): ... this. Add argclass argument, and use it
1298 instead of parsing the format string again. Add support for
1299 binary floating-point values, using floatformat_to_string.
1300 Convert value to the target format if it doesn't already match.
1301 (ui_printf): Call printf_floating instead of printf_decfloat,
1302 also for double_arg / long_double_arg. Pass argclass.
1303
1304 * dfp.c (decimal_to_string): Add format string argument.
1305 * dfp.h (decimal_to_string): Likewise.
1306
1307 * doublest.c (floatformat_to_string): Add format string argument.
1308 * doublest.h (floatformat_to_string): Likewise.
1309
fdf0cbc2
UW
13102017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1311
1312 * doublest.c (floatformat_precision): New routine.
1313 (floatformat_to_string): Likewise.
1314 * doublest.c (floatformat_to_string): Add prototype.
1315
1316 * printcmd.c (print_scalar_formatted): Only call print_floating
1317 on floating-point types.
1318 * valprint.c: Do not include "floatformat.h".
1319 (generic_val_print_decfloat): Remove.
1320 (generic_val_print): Call generic_val_print_float for both
1321 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
1322 (print_floating): Use floatformat_to_string. Handle decimal float.
1323 (print_decimal_floating): Remove, merge into floatformat_to_string.
1324 * value.h (print_decimal_floating): Remove.
1325
1326 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
1327
5033013f
UW
13282017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1329
1330 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
1331
a664f67e
SM
13322017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1333
1334 * memattr.h: Don't include vec.h.
1335 (struct mem_attrib): Initialize fields.
1336 <unknown>: New static method.
1337 (struct mem_region): Add constructors, operator<, initialize
1338 fields.
1339 * memattr.c: Include algorithm.
1340 (default_mem_attrib, unknown_mem_attrib): Remove.
1341 (user_mem_region_list): New global.
1342 (target_mem_region_list, mem_region_list): Change type to
1343 std::vector<mem_region>.
1344 (mem_use_target): Now a function.
1345 (target_mem_regions_valid): Change type to bool.
1346 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
1347 (require_user_regions): Adjust.
1348 (require_target_regions): Adjust.
1349 (create_mem_region): Adjust.
1350 (lookup_mem_region): Adjust.
1351 (invalidate_target_mem_regions): Adjust.
1352 (mem_clear): Rename to...
1353 (user_mem_clear): ... this, and adjust.
1354 (mem_command): Adjust.
1355 (info_mem_command): Adjust.
1356 (mem_enable, enable_mem_command, mem_disable,
1357 disable_mem_command): Adjust.
1358 (mem_delete): Adjust.
1359 (delete_mem_command): Adjust.
1360 * memory-map.h (parse_memory_map): Return an std::vector.
1361 * memory-map.c (parse_memory_map): Likewise.
1362 (struct memory_map_parsing_data): Add constructor.
1363 <memory_map>: Point to std::vector.
1364 (memory_map_start_memory): Adjust.
1365 (memory_map_end_memory): Adjust.
1366 (memory_map_end_property): Adjust.
1367 (clear_result): Remove.
1368 * remote.c (remote_memory_map): Return an std::vector.
1369 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
1370 Remove.
1371 (target_debug_print_mem_region_vector): New.
1372 * target-delegates.c: Regenerate.
1373 * target.h (mem_region_vector): New typedef.
1374 (to_memory_map): Return mem_region_vector.
1375 (target_memory_map): Return an std::vector.
1376 * target.c (target_memory_map): Return an std::vector.
1377 (flash_erase_command): Adjust.
1378
6e17c565
SM
13792017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1380
1381 * memory-map.c (struct memory_map_parsing_data) <property_name>:
1382 Change type to std::string.
1383 (memory_map_start_property): Adjust.
1384 (memory_map_end_property): Adjust.
1385
cfba9872
SM
13862017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1387
1388 * infrun.h: Include common/byte-vector.h.
1389 (struct displaced_step_closure): New struct.
1390 (struct buf_displaced_step_closure): New struct.
1391 * infrun.c (displaced_step_closure::~displaced_step_closure):
1392 Provide default implementation.
1393 (displaced_step_clear): Deallocate step closure with delete.
1394 * aarch64-tdep.c (displaced_step_closure): Rename to ...
1395 (aarch64_displaced_step_closure): ... this, extend
1396 displaced_step_closure.
1397 (aarch64_displaced_step_data) <dsc>: Change type to
1398 aarch64_displaced_step_closure.
1399 (aarch64_displaced_step_copy_insn): Adjust to type change, use
1400 unique_ptr.
1401 (aarch64_displaced_step_fixup): Add cast for displaced step
1402 closure.
1403 * amd64-tdep.c (displaced_step_closure): Rename to ...
1404 (amd64_displaced_step_closure): ... this, extend
1405 displaced_step_closure.
1406 <insn_buf>: Change type to std::vector<gdb_byte>.
1407 <max_len>: Remove.
1408 (fixup_riprel): Change type of DSC parameter, adjust to type
1409 change of insn_buf.
1410 (fixup_displaced_copy): Change type of DSC parameter.
1411 (amd64_displaced_step_copy_insn): Instantiate
1412 amd64_displaced_step_closure.
1413 (amd64_displaced_step_fixup): Add cast for closure type, adjust
1414 to type change of insn_buf.
1415 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
1416 parameter DSC.
1417 (arm_linux_copy_svc): Likewise.
1418 (cleanup_kernel_helper_return): Likewise.
1419 (arm_catch_kernel_helper_return): Likewise.
1420 (arm_linux_displaced_step_copy_insn): Instantiate
1421 arm_displaced_step_closure.
1422 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
1423 (displaced_read_reg): Change type of parameter DSC.
1424 (branch_write_pc): Likewise.
1425 (load_write_pc): Likewise.
1426 (alu_write_pc): Likewise.
1427 (displaced_write_reg): Likewise.
1428 (arm_copy_unmodified): Likewise.
1429 (thumb_copy_unmodified_32bit): Likewise.
1430 (thumb_copy_unmodified_16bit): Likewise.
1431 (cleanup_preload): Likewise.
1432 (install_preload): Likewise.
1433 (arm_copy_preload): Likewise.
1434 (thumb2_copy_preload): Likewise.
1435 (install_preload_reg): Likewise.
1436 (arm_copy_preload_reg): Likewise.
1437 (cleanup_copro_load_store): Likewise.
1438 (install_copro_load_store): Likewise.
1439 (arm_copy_copro_load_store) Likewise.
1440 (thumb2_copy_copro_load_store): Likewise.
1441 (cleanup_branch): Likewise.
1442 (install_b_bl_blx): Likewise.
1443 (arm_copy_b_bl_blx): Likewise.
1444 (thumb2_copy_b_bl_blx): Likewise.
1445 (thumb_copy_b): Likewise.
1446 (install_bx_blx_reg): Likewise.
1447 (arm_copy_bx_blx_reg): Likewise.
1448 (thumb_copy_bx_blx_reg): Likewise.
1449 (cleanup_alu_imm): Likewise.
1450 (arm_copy_alu_imm): Likewise.
1451 (thumb2_copy_alu_imm): Likewise.
1452 (cleanup_alu_reg): Likewise.
1453 (install_alu_reg): Likewise.
1454 (arm_copy_alu_reg): Likewise.
1455 (thumb_copy_alu_reg): Likewise.
1456 (cleanup_alu_shifted_reg): Likewise.
1457 (install_alu_shifted_reg): Likewise.
1458 (arm_copy_alu_shifted_reg): Likewise.
1459 (cleanup_load): Likewise.
1460 (cleanup_store): Likewise.
1461 (arm_copy_extra_ld_st): Likewise.
1462 (install_load_store): Likewise.
1463 (thumb2_copy_load_literal): Likewise.
1464 (thumb2_copy_load_reg_imm): Likewise.
1465 (arm_copy_ldr_str_ldrb_strb): Likewise.
1466 (cleanup_block_load_all): Likewise.
1467 (cleanup_block_store_pc): Likewise.
1468 (cleanup_block_load_pc): Likewise.
1469 (arm_copy_block_xfer): Likewise.
1470 (thumb2_copy_block_xfer): Likewise.
1471 (cleanup_svc): Likewise.
1472 (install_svc): Likewise.
1473 (arm_copy_svc): Likewise.
1474 (thumb_copy_svc): Likewise.
1475 (arm_copy_undef): Likewise.
1476 (thumb_32bit_copy_undef): Likewise.
1477 (arm_copy_unpred): Likewise.
1478 (arm_decode_misc_memhint_neon): Likewise.
1479 (arm_decode_unconditional): Likewise.
1480 (arm_decode_miscellaneous): Likewise.
1481 (arm_decode_dp_misc): Likewise.
1482 (arm_decode_ld_st_word_ubyte): Likewise.
1483 (arm_decode_media): Likewise.
1484 (arm_decode_b_bl_ldmstm): Likewise.
1485 (arm_decode_ext_reg_ld_st): Likewise.
1486 (thumb2_decode_dp_shift_reg): Likewise.
1487 (thumb2_decode_ext_reg_ld_st): Likewise.
1488 (arm_decode_svc_copro): Likewise.
1489 (thumb2_decode_svc_copro): Likewise.
1490 (install_pc_relative): Likewise.
1491 (thumb_copy_pc_relative_16bit): Likewise.
1492 (thumb_decode_pc_relative_16bit): Likewise.
1493 (thumb_copy_pc_relative_32bit): Likewise.
1494 (thumb_copy_16bit_ldr_literal): Likewise.
1495 (thumb_copy_cbnz_cbz): Likewise.
1496 (thumb2_copy_table_branch): Likewise.
1497 (cleanup_pop_pc_16bit_all): Likewise.
1498 (thumb_copy_pop_pc_16bit): Likewise.
1499 (thumb_process_displaced_16bit_insn): Likewise.
1500 (decode_thumb_32bit_ld_mem_hints): Likewise.
1501 (thumb_process_displaced_32bit_insn): Likewise.
1502 (thumb_process_displaced_insn): Likewise.
1503 (arm_process_displaced_insn): Likewise.
1504 (arm_displaced_init_closure): Likewise.
1505 (arm_displaced_step_fixup): Add cast for closure.
1506 * arm-tdep.h: Include infrun.h.
1507 (displaced_step_closure): Rename to ...
1508 (arm_displaced_step_closure): ... this, extend
1509 displaced_step_closure.
1510 <u::svc::copy_svc_os>: Change type of parameter DSC.
1511 <cleanup>: Likewise.
1512 (arm_process_displaced_insn): Likewise.
1513 (arm_displaced_init_closure): Likewise.
1514 (displaced_read_reg): Likewise.
1515 (displaced_write_reg): Likewise.
1516 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1517 Adjust.
1518 * i386-tdep.h: Include infrun.h.
1519 (i386_displaced_step_closure): New typedef.
1520 * i386-tdep.c (i386_displaced_step_copy_insn): Use
1521 i386_displaced_step_closure.
1522 (i386_displaced_step_fixup): Adjust.
1523 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
1524 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
1525 and unique_ptr.
1526 (ppc_displaced_step_fixup): Adjust.
1527 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
1528 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
1529 and unique_ptr.
1530 (s390_displaced_step_fixup): Adjust.
1531
b392b304
SM
15322017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1533
1534 * interps.h (interp_resume, interp_suspend, interp_set_temp):
1535 Remove declarations.
1536
d5833c62
TT
15372017-10-20 Tom Tromey <tom@tromey.com>
1538
1539 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
1540 std::vector.
1541 (gdb_bfd_record_inclusion): Update.
1542 (bfdp): Remove typedef.
1543
06d5bbc8
TT
15442017-10-20 Tom Tromey <tom@tromey.com>
1545
1546 * gdb_bfd.c (gdb_bfd_ref): Use new.
1547 (struct gdb_bfd_data): Add constructor, destructor, and member
1548 initializers.
1549 (gdb_bfd_unref): Use delete.
1550
2712ce2e
TT
15512017-10-20 Tom Tromey <tom@tromey.com>
1552
1553 * exec.c (exec_file_attach): Use new_bfd_ref.
1554 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
1555 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1556 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
1557 new_bfd_ref.
1558 * gdb_bfd.h (new_bfd_ref): New function.
1559
fcc8fb2f
PA
15602017-10-20 Pedro Alves <palves@redhat.com>
1561
1562 * main.c (captured_command_loop): Add attribute noinline.
1563
4c2287b0
SM
15642017-10-19 Simon Marchi <simon.marchi@ericsson.com>
1565
1566 * interps.c (struct interp_factory): Add constructor.
1567 (interp_factory_p): Remove typedef.
1568 (DEF_VEC_P(interp_factory_p)): Remove.
1569 (interpreter_factories): Change type to std::vector.
1570 (interp_factory_register): Adjust.
1571 (interp_lookup): Adjust.
1572 (interpreter_completer): Adjust.
1573
3d415c26
TT
15742017-10-19 Tom Tromey <tom@tromey.com>
1575
1576 * break-catch-syscall.c (catch_syscall_completer): Use
1577 std::string, gdb::unique_xmalloc_ptr.
1578
395423c4
TT
15792017-10-19 Tom Tromey <tom@tromey.com>
1580
1581 * infcall.c (call_function_by_hand_dummy): Use std::string.
1582
54f70bc1
TT
15832017-10-19 Tom Tromey <tom@tromey.com>
1584
1585 * mi/mi-main.c (mi_cmd_execute): Update.
1586 * top.h (prepare_execute_command): Return scoped_value_mark.
1587 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
1588 Add move constructor.
1589 * top.c (prepare_execute_command): Return scoped_value_mark.
1590 (execute_command): Update.
1591
63929e84
PA
15922017-10-19 Pedro Alves <palves@redhat.com>
1593
1594 * xml-support.c (xml_fetch_content_from_file): Check fread's
1595 return.
1596
a75868f5
PA
15972017-10-19 Pedro Alves <palves@redhat.com>
1598
1599 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
1600 async.
1601 (handle_error_fd): New function.
1602 (ser_base_async): Add/delete an event loop file handler for
1603 error_fd.
1604
2edf834e
PA
16052017-10-19 Pedro Alves <palves@redhat.com>
1606
1607 * xml-support.c (xml_fetch_content_from_file): Don't read in
1608 chunks. Instead use fseek to determine the file's size, and read
1609 it in one go.
1610
c8ba13ad
KS
16112017-11-18 Keith Seitz <keiths@redhat.com>
1612
1613 * c-exp.y (oper): Canonicalize conversion operators of user-defined
1614 types.
1615 Add whitespace to front of type name.
1616
37534686
KS
16172017-10-18 Keith Seitz <keiths@redhat.com>
1618
1619 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
1620 DW_AT_accessibility.
1621
28c7c158
YQ
16222017-10-18 Yao Qi <yao.qi@linaro.org>
1623
1624 * features/tic6x-c62x-linux.c: Remove.
1625
30f0b101
TT
16262017-10-17 Tom Tromey <tom@tromey.com>
1627
1628 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
1629 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
1630 (do_mixed_source_and_assembly): Likewise.
1631
57e12da9
TT
16322017-10-17 Tom Tromey <tom@tromey.com>
1633
1634 * regcache.c (regcache::xfer_part): Remove assertion.
1635
7b700999
PA
16362017-10-17 Pedro Alves <palves@redhat.com>
1637
1638 * xml-support.c (xml_fetch_content_from_file): Call
1639 unique_ptr::release() instead unique_ptr::get() when passing
1640 through xrealloc.
1641
d3037ba6
YQ
16422017-10-17 Yao Qi <yao.qi@linaro.org>
1643
1644 * regcache.c (regcache::xfer_part): Remove parameters read and
1645 write, add parameter is_raw. All callers are updated.
1646
83d5a34d
KS
16472017-10-16 Keith Seitz <keiths@redhat.com>
1648
1649 * c-typeprint.c (enum access_specifier): Moved here from
1650 c_type_print_base.
1651 (output_access_specifier): New function.
1652 (c_type_print_base): Consider typedefs when assessing
1653 whether access labels are needed.
1654 Use output_access_specifier as needed.
1655 Output access specifier for typedefs, if needed.
1656 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
1657 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
1658 fields.
1659 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
1660 accessor macros.
1661
87028b87
TT
16622017-10-16 Tom Tromey <tom@tromey.com>
1663
1664 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
1665 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
1666 * target.c (target_fileio_read_stralloc): Update.
1667 * sparc64-tdep.c (adi_is_addr_mapped): Update.
1668 * target.h (target_fileio_read_stralloc): Return
1669 unique_xmalloc_ptr.
1670
b7b030ad
TT
16712017-10-16 Tom Tromey <tom@tromey.com>
1672
1673 * xml-syscall.c (xml_init_syscalls_info): Update.
1674 * xml-support.c (xinclude_start_include): Update.
1675 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
1676 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
1677 (xml_fetch_content_from_file): Likewise.
1678 * osdata.c (get_osdata): Update.
1679 * target.h (target_read_stralloc, target_get_osdata): Return
1680 unique_xmalloc_ptr.
1681 * solib-aix.c (solib_aix_get_library_list): Update.
1682 * solib-target.c (solib_target_current_sos): Update.
1683 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
1684 * xml-tdesc.c (fetch_available_features_from_target): Update.
1685 (target_fetch_description_xml): Update.
1686 (file_read_description_xml): Update.
1687 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
1688 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
1689 (remote_pid_to_exec_file): Update.
1690 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
1691 (target_get_osdata): Likewise.
1692
b80406ac
TT
16932017-10-16 Tom Tromey <tom@tromey.com>
1694
1695 * remote.c (remote_register_number_and_offset): Use std::vector.
1696 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
1697 (putpkt_binary): Use gdb::def_vector.
1698 (compare_sections_command): Use gdb::byte_vector.
1699
a90ecff8
TT
17002017-10-16 Tom Tromey <tom@tromey.com>
1701
1702 * ppc-linux-nat.c (hwdebug_insert_point): Use
1703 gdb::unique_xmalloc_ptr, XDUP.
1704
2dc0e219
TT
17052017-10-16 Tom Tromey <tom@tromey.com>
1706
1707 * probe.c (parse_probes): Use std::string.
1708 (info_probes_for_ops, enable_probes_command)
1709 (disable_probes_command): Remove cleanups.
1710
b05628f0
TT
17112017-10-16 Tom Tromey <tom@tromey.com>
1712
1713 * buildsym.c (block_compar): Remove.
1714 (end_symtab_get_static_block): Use std::vector.
1715
a79b1bc6
SM
17162017-10-16 Simon Marchi <simon.marchi@ericsson.com>
1717
1718 * memrange.h (struct mem_range): Define operator< and operator==.
1719 (mem_range_s): Remove.
1720 (DEF_VEC_O (mem_range_s)): Remove.
1721 (normalize_mem_ranges): Change parameter type to std::vector.
1722 * memrange.c (compare_mem_ranges): Remove.
1723 (normalize_mem_ranges): Change parameter type to std::vector,
1724 adjust to vector change.
1725 * exec.c (section_table_available_memory): Return vector, remove
1726 parameter.
1727 (section_table_read_available_memory): Adjust to std::vector
1728 change.
1729 * remote.c (remote_read_bytes): Adjust to std::vector
1730 change.
1731 * tracepoint.h (traceframe_available_memory): Change parameter
1732 type to std::vector.
1733 * tracepoint.c (traceframe_available_memory): Change parameter
1734 type to std::vector, adjust.
1735 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
1736 std::vector change.
1737 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1738 unittests/memrange-selftests.c.
1739 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
1740 * gdb/unittests/memrange-selftests.c: New file.
1741
63f0e930
PA
17422017-10-16 Pedro Alves <palves@redhat.com>
1743
1744 * elfread.c (probe_key_free): Rename range-for variable.
1745 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
1746 (find_probe_by_pc, collect_probes): Rename range-for variable.
1747
c40c7bfc
YQ
17482017-10-16 Yao Qi <yao.qi@linaro.org>
1749
1750 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1751 * features/tic6x-c62x.c: Remove.
1752 * features/tic6x-c64x-linux.c: Remove.
1753 * features/tic6x-c64x.c: Remove.
1754 * features/tic6x-c64xp-linux.c: Remove.
1755 * features/tic6x-c64xp.c: Remove.
1756 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1757 initialize_tdesc_tic6x_*_linux functions.
1758 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1759 initialize_tdesc_tic6x_* functions.
1760
df27ae6a
YQ
17612017-10-16 Yao Qi <yao.qi@linaro.org>
1762
1763 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1764 tic6x-c62x.
1765 * regformats/tic6x-c62x.dat: Remove.
1766 * regformats/tic6x-c64x.dat: Remove.
1767 * regformats/tic6x-c64xp.dat: Remove.
1768
86766165
SM
17692017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1770
1771 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1772 (the !HAVE_LIBEXPAT version).
1773
824dfcc3
SM
17742017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1775
1776 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1777 const.
1778
2098b393
SM
17792017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1780
1781 * target.h: Include tracepoint.h.
1782 (enum trace_find_type): Move to tracepoint.h.
1783 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1784 * tracepoint.h: Don't include target.h
1785 (enum trace_find_type): Move from target.h.
1786 (parse_traceframe_info): Return a unique ptr.
1787 * tracepoint.c (current_traceframe_info): Change type to unique
1788 ptr.
1789 (free_traceframe_info): Remove.
1790 (clear_traceframe_info): Don't manually free
1791 current_traceframe_info.
1792 (free_result): Remove.
1793 (parse_traceframe_info): Return a unique ptr.
1794 (get_traceframe_info): Adjust to unique ptr.
1795 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1796 * remote.c (remote_traceframe_info): Return a unique ptr.
1797 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1798 ptr.
1799 * target-debug.h (target_debug_print_traceframe_info_up): New
1800 macro.
1801 * target-delegates.c: Regenerate.
1802
4cdd21a8
SM
18032017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1804
1805 * memrange.h (struct mem_range): Add constructors.
1806 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1807 std::vector<mem_range>.
1808 * tracepoint.c (free_traceframe_info): Don't manually free
1809 vector.
1810 (traceframe_info_start_memory): Adjust to vector change.
1811 (traceframe_available_memory): Likewise.
1812 * tracefile-tfile.c (build_traceframe_info): Likewise.
1813 * ctf.c (ctf_traceframe_info): Likewise.
1814
d0d292a2
SM
18152017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1816
1817 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1818 std::vector<int>.
1819 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1820 (traceframe_info_start_tvar): Adjust to vector change.
1821 (parse_traceframe_info): Allocate with new.
1822 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1823 vector change.
1824 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1825 change.
1826 tfile_traceframe_info): Allocate with new.
1827 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1828 change.
1829
8d3c73ef
SM
18302017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1831
1832 * tracepoint.c (traceframe_info): Rename to...
1833 (current_traceframe_info): ...this.
1834 (clear_traceframe_info): Adjust.
1835 (get_traceframe_info): Adjust.
1836
b129dcac
SM
18372017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1838
1839 * nat/linux-osdata.c: Include algorithm.
1840 (compare_processes): Remove.
1841 (struct pid_pgid_entry): New struct.
1842 (linux_xfer_osdata_processgroups): Use std::vector instead of
1843 XNEWVEC.
1844
af5bf4ad
SM
18452017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1846
1847 * objfiles.h: Don't include symfile.h.
1848 (struct partial_symbol): Remove forward-declaration.
1849 (struct objfile) <global_psymbols, static_psymbols>: Change type
1850 to std::vector<partial_symbol *>.
1851 * objfiles.c (objfile::objfile): Don't memset those fields.
1852 (objfile::~objfile): Don't free those fields.
1853 * psympriv.h (struct psymbol_allocation_list): Remove
1854 forward-declaration.
1855 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1856 to std::vector.
1857 (start_psymtab_common): Change parameters to std::vector.
1858 * psymtab.c: Include algorithm.
1859 (require_partial_symbols): Call shrink_to_fit.
1860 (find_pc_sect_psymbol): Adjust to vector change.
1861 (match_partial_symbol): Likewise.
1862 (lookup_partial_symbol): Likewise.
1863 (psym_relocate): Likewise.
1864 (dump_psymtab): Likewise.
1865 (recursively_search_psymtabs): Likewise.
1866 (compare_psymbols): Remove.
1867 (sort_pst_symbols): Adjust to vector change.
1868 (start_psymtab_common): Likewise.
1869 (end_psymtab_common): Likewise.
1870 (psymbol_bcache_full): De-constify return value.
1871 (add_psymbol_to_bcache): Likewise.
1872 (extend_psymbol_list): Remove.
1873 (append_psymbol_to_list): Adjust to vector change.
1874 (add_psymbol_to_list): Likewise.
1875 (init_psymbol_list): Likewise.
1876 (maintenance_info_psymtabs): Likewise.
1877 (maintenance_check_psymtabs): Likewise.
1878 * symfile.h (struct psymbol_allocation_list): Remove.
1879 * symfile.c (reread_symbols): Adjust to vector change.
1880 * dbxread.c (start_psymtab): Change type of parameters.
1881 (dbx_symfile_read): Adjust to vector change.
1882 (read_dbx_symtab): Likewise.
1883 (start_psymtab): Change type of parameters.
1884 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1885 (create_partial_symtab): Likewise.
1886 (add_partial_symbol): Likewise.
1887 (write_one_signatured_type): Likewise.
1888 (recursively_write_psymbols): Likewise.
1889 * mdebugread.c (parse_partial_symbols): Likewise.
1890 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1891 (scan_xcoff_symtab): Adjust to vector change.
1892 (xcoff_initial_scan): Likewise.
1893
3ec5942f
SM
18942017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1895
1896 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1897
2399fe6a
YQ
18982017-10-13 Yao Qi <yao.qi@linaro.org>
1899
1900 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1901 Remove s390x-*-expedite, add s390x-expedite.
1902
4bf3f4a8
YQ
19032017-10-13 Yao Qi <yao.qi@linaro.org>
1904
1905 * features/s390-gs-linux64.c: Regenerated.
1906 * features/s390x-gs-linux64.c: Regenerated.
1907
9e86da07
TT
19082017-10-13 Tom Tromey <tom@tromey.com>
1909
1910 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1911 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1912 delete.
1913 * symfile.c (symbol_file_add_with_addrs): Use new.
1914 (symbol_file_add_separate): Update comment.
1915 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1916 * jit.c (jit_object_close_impl): Use new.
1917 (jit_unregister_code): Use delete.
1918 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1919 (~objfile): Rename from free_objfile.
1920 (free_objfile_separate_debug, do_free_objfile_cleanup)
1921 (free_all_objfiles, objfile_purge_solibs): Use delete.
1922 * objfiles.h (struct objfile): Add constructor and destructor.
1923 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1924 (allocate_objfile, free_objfile): Don't declare.
1925 (struct objstats): Add initializers.
1926
c2508e90
SM
19272017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1928
1929 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1930 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1931 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1932 * gdbarch.h: Regenerate.
1933 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1934 Adjust comment.
1935 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1936 (i386_displaced_step_fixup): Adjust comment.
1937 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1938
a900ff72
TT
19392017-10-12 Tom Tromey <tom@tromey.com>
1940
1941 * prologue-value.h (pv_area::store_would_trash): Return bool.
1942 (pv_area::find_reg): Likewise.
1943 * prologue-value.c (pv_area::store_would_trash): Return bool.
1944 (pv_area::find_reg): Likewise.
1945
f7b7ed97
TT
19462017-10-12 Tom Tromey <tom@tromey.com>
1947
1948 * s390-linux-tdep.c (s390_store, s390_load)
1949 (s390_check_for_saved, s390_analyze_prologue): Update.
1950 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1951 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1952 * prologue-value.h (class pv_area): Move from prologue-value.c.
1953 Change names of members. Add constructor, destructor, member
1954 functions.
1955 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1956 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1957 (pv_area_fetch, pv_area_scan): Don't declare.
1958 * prologue-value.c (struct pv_area::area_entry): Now member of
1959 pv_area.
1960 (struct pv_area): Move to prologue-value.h.
1961 (pv_area::pv_area): Rename from make_pv_area.
1962 (pv_area::~pv_area): Rename from free_pv_area.
1963 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1964 (clear_entries, find_entry, overlaps, store_would_trash, store)
1965 (fetch, find_reg, scan): Now member of pv_area.
1966 Remove "area" argument. Update.
1967 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1968 Update.
1969 * mn10300-tdep.c (push_reg, check_for_saved)
1970 (mn10300_analyze_prologue): Update.
1971 * mep-tdep.c (is_arg_spill, check_for_saved)
1972 (mep_analyze_prologue): Update.
1973 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1974 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1975 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1976 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1977 Update.
1978 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1979 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1980
466eecee
SM
19812017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1982
1983 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1984 * linux-nat.c (linux_nat_delete_thread): New variable.
1985 (lwp_free): Invoke linux_nat_delete_thread if set.
1986 (linux_nat_set_delete_thread): New function.
1987 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1988 thread delete callback.
1989 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1990 (_initialize_arm_linux_nat): Assign thread delete callback.
1991 * s390-linux-nat.c (s390_delete_thread): New function.
1992 (_initialize_s390_nat): Assign thread delete callback.
1993 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1994 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1995 function.
1996 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1997 declaration.
1998 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1999 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
2000
f71c8822
TT
20012017-10-09 Tom Tromey <tom@tromey.com>
2002
2003 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
2004 std::string.
2005 * tui/tui-layout.c (enum tui_status): Use std::string.
2006
981a3fb3
TT
20072017-10-11 Tom Tromey <tom@tromey.com>
2008
2009 * gdbthread.h (thread_command): Constify.
2010 * inferior.h (detach_command): Constify.
2011 * top.h (set_history, show_history): Constify.
2012 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
2013 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
2014 * bsd-kvm.c (bsd_kvm_cmd): Constify.
2015 * printcmd.c (set_command): Constify.
2016 (non_const_set_command): New function.
2017 * dcache.c (set_dcache_command, show_dcache_command): Constify.
2018 * breakpoint.c (enable_command, disable_command, delete_command)
2019 (catch_command, tcatch_command, set_breakpoint_cmd)
2020 (show_breakpoint_cmd): Constify.
2021 * macrocmd.c (macro_command): Constify.
2022 * infcmd.c (unset_command, kill_command, detach_command)
2023 (info_proc_cmd): Constify.
2024 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
2025 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
2026 (info_auto_load_cmd): Constify.
2027 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
2028 (unset_tdesc_cmd): Constify.
2029 * ada-lang.c (set_ada_command, show_ada_command)
2030 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
2031 * guile/guile.c (set_guile_command, show_guile_command)
2032 (info_guile_command): Constify.
2033 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
2034 Constify.
2035 * skip.c (skip_command): Constify.
2036 * compile/compile.c (_initialize_compile): Constify.
2037 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
2038 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
2039 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
2040 (maint_btrace_pt_show_cmd): Constify.
2041 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
2042 Constify.
2043 * python/python.c (user_show_python, user_set_python): Constify.
2044 * mips-tdep.c (set_mips_command, show_mips_command)
2045 (set_mipsfpu_command): Constify.
2046 * record-btrace.c (cmd_record_btrace_start)
2047 (cmd_set_record_btrace, cmd_show_record_btrace)
2048 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
2049 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
2050 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
2051 Constify.
2052 * symfile.c (overlay_command): Constify.
2053 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
2054 * cli/cli-logging.c (set_logging_command, show_logging_command):
2055 Constify.
2056 * cli/cli-dump.c (dump_command, append_command)
2057 (srec_dump_command, ihex_dump_command, verilog_dump_command)
2058 (tekhex_dump_command, binary_dump_command)
2059 (binary_append_command): Constify.
2060 * cli/cli-decode.c (struct cmd_list_element): Change type of
2061 "fun".
2062 * cli/cli-cmds.c (info_command, show_command, set_debug)
2063 (show_debug): Constify.
2064 (show_command): Add non-const overload.
2065 * top.c (set_history, show_history): Constify.
2066 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
2067 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
2068 * target.c (target_command): Constify.
2069 * sparc64-tdep.c (info_adi_command): Constify.
2070 * record-full.c (cmd_record_full_start): Constify.
2071 (set_record_full_command): Constify. Fix typo.
2072 (show_record_full_command): Constify.
2073 * thread.c (thread_command, thread_apply_command): Constify.
2074 * memattr.c (dummy_cmd): Constify.
2075 * value.c (function_command): Constify.
2076 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
2077 * probe.c (info_probes_command): Constify.
2078 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
2079 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
2080 (show_thread_cmd, set_thread_default_cmd)
2081 (show_thread_default_cmd): Constify.
2082 (check_empty): Constify.
2083 * tracepoint.c (tfind_command): Constify.
2084 * cp-support.c (maint_cplus_command): Constify.
2085 * windows-tdep.c (info_w32_command): Constify.
2086 * record.c (cmd_record_start, set_record_command)
2087 (show_record_command, info_record_command, cmd_record_goto):
2088 Constify.
2089 * ravenscar-thread.c (set_ravenscar_command)
2090 (show_ravenscar_command): Constify.
2091 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
2092 Constify.
2093 (add_internal_problem_command): Remove casts.
2094 * arc-tdep.c (maintenance_print_arc_command): Constify.
2095 * valprint.c (set_print, show_print, set_print_raw)
2096 (show_print_raw): Constify.
2097 * maint.c (maintenance_command, maintenance_info_command)
2098 (maintenance_print_command, maintenance_set_cmd)
2099 (maintenance_show_cmd, set_per_command_cmd)
2100 (show_per_command_cmd, maintenance_check_command): Constify.
2101 * language.c (set_check, show_check): Constify.
2102 * typeprint.c (show_print_type, set_print_type): Constify.
2103 * go32-nat.c (go32_info_dos_command): Constify.
2104
fdf44873
TT
21052017-10-11 Tom Tromey <tom@tromey.com>
2106
2107 * breakpoint.c (prepare_re_set_context): Remove.
2108 (breakpoint_re_set_one): Update. Don't use cleanups.
2109 (breakpoint_re_set): Use scoped_restore, std::string, and
2110 scoped_restore_current_language.
2111
81b1e71c
TT
21122017-10-11 Tom Tromey <tom@tromey.com>
2113
2114 * breakpoint.c (commands_command_1): Use std::string.
2115 (cleanup_executing_breakpoints): Remove.
2116 (bpstat_do_actions_1): Use scoped_restore.
2117 (bpstat_check_watchpoint): Use std::string.
2118 (decode_static_tracepoint_spec): Likewise.
2119 (break_range_command): Likewise.
2120 (watch_command_1): Likewise.
2121 (compare_breakpoints): Change argument types.
2122 (clear_command): Use std::vector.
2123 (cleanup_executing_breakpoints): Remove.
2124 (update_global_location_list): Use unique_xmalloc_ptr.
2125 (strace_command): Remove unused declaration.
2126
4f9d9906
JB
21272017-10-11 John Baldwin <jhb@FreeBSD.org>
2128
2129 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
2130 * NEWS: Mention new FreeBSD/arm native configuration.
2131 * configure.host: Add arm*-*-freebsd*.
2132 * configure.nat: Likewise.
2133 * arm-fbsd-nat.c: New file.
2134
7176dfd2
JB
21352017-10-11 John Baldwin <jhb@FreeBSD.org>
2136
2137 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
2138 (ALLDEPFILES): Add arm-fbsd-tdep.c.
2139 * NEWS: Mention new FreeBSD/arm target.
2140 * configure.tgt: Add arm*-*-freebsd*.
2141 * arm-fbsd-tdep.c: New file.
2142 * arm-fbsd-tdep.h: New file.
2143
fe220226
MR
21442017-10-11 Maciej W. Rozycki <macro@imgtec.com>
2145
2146 * linux-tdep.c (linux_make_corefile_notes): Remove call to
2147 `gdbarch_elfcore_write_linux_prpsinfo'.
2148 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
2149 method.
2150 (elf_internal_linux_prpsinfo): Remove declaration.
2151 * gdbarch.h: Regenerate.
2152 * gdbarch.c: Regenerate.
2153
a2f63b2e
MR
21542017-10-11 Maciej W. Rozycki <macro@imgtec.com>
2155
2156 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
2157 `set_gdbarch_elfcore_write_linux_prpsinfo'.
2158
458ca1d0
PA
21592017-10-11 Pedro Alves <palves@redhat.com>
2160
2161 * breakpoint.c (reattach_breakpoints): Delete.
2162 * breakpoint.h (reattach_breakpoints): Delete.
2163
905014d7
SM
21642017-10-11 Simon Marchi <simon.marchi@ericsson.com>
2165
2166 * symfile.c (registered_sym_fns): Make struct, not typedef.
2167 (DEF_VEC_O (registered_sym_fns)): Remove.
2168 (symtab_fns): Change type to std::vector.
2169 (add_symtab_fns): Adjust.
2170 (find_sym_fns): Adjust.
2171
56d704da
AK
21722017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
2173
2174 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
2175 * arc-tdep.h (arc_arch_is_em): New function.
2176 (arc_arch_is_hs): Likewise.
2177
7fa29be9
EB
21782017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
2179
2180 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
2181 parentheses in the declaration.
2182 (macro_lookup_inclusion): Likewise.
2183 (macro_lookup_definition): Likewise.
2184 * p-lang.h (pascal_builtin_types): Likewise.
2185 * tui/tui-data.c (tui_win_list): Likewise.
2186 * tui/tui-data.h (tui_win_list): Likewise.
2187 * utils.h (make_cleanup_free_section_addr_info): Likewise.
2188
d9b477e3
KB
21892017-10-11 Mark Rages <markrages@gmail.com>
2190
2191 * target-memory.c (block_boundaries): Fix for block address not
2192 aligned on block size.
2193
65630365
PA
21942017-10-10 Pedro Alves <palves@redhat.com>
2195 Tom Tromey <tom@tromey.com>
2196
2197 * breakpoint.c (struct captured_breakpoint_query_args)
2198 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
2199 (print_breakpoint): New.
2200 * breakpoint.h (print_breakpoint): Declare.
2201 * common/common-exceptions.h (enum return_reason): Remove
2202 references to catch_exceptions.
2203 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
2204 Delete.
2205 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
2206 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
2207 * gdb.h: Delete.
2208 * gdbthread.h (thread_select): Declare.
2209 * mi/mi-cmd-break.c: Don't include gdb.h.
2210 (breakpoint_notify): Use print_breakpoint.
2211 * mi/mi-cmd-catch.c: Don't include gdb.h.
2212 * mi/mi-interp.c: Don't include gdb.h.
2213 (mi_print_breakpoint_for_event): New.
2214 (mi_breakpoint_created, mi_breakpoint_modified): Use
2215 mi_print_breakpoint_for_event.
2216 * mi/mi-main.c: Don't include gdb.h.
2217 (mi_cmd_thread_select): Parse the global thread ID here. Use
2218 thread_select instead of gdb_thread_select.
2219 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
2220 of using gdb_list_thread_ids.
2221 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
2222 FILEIO_ENOSYS here.
2223 (remote_fileio_request): Use TRY/CATCH instead of
2224 catch_exceptions.
2225 * symfile-mem.c (struct symbol_file_add_from_memory_args)
2226 (symbol_file_add_from_memory_wrapper): Delete.
2227 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
2228 * thread.c: Don't include gdb.h.
2229 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
2230 (thread_alive): Use thread_select.
2231 (do_captured_thread_select): Delete, parts salvaged as ...
2232 (thread_select): ... this new function.
2233 (gdb_thread_select): Delete.
2234
bf469271
PA
22352017-10-10 Pedro Alves <palves@redhat.com>
2236 Tom Tromey <tom@tromey.com>
2237
2238 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
2239 and reverse logic.
2240 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
2241 No longer macros. Instead ...
2242 (enum wp_check_result): They're now values of this new
2243 enumeration.
2244 (watchpoint_check): Change return type to wp_check_result and
2245 parameter type to bpstat.
2246 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
2247 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
2248 catch_errors. Reverse logic of watchpoint_check call.
2249 (breakpoint_re_set_one): Now returns void and takes a breakpoint
2250 pointer as parameter.
2251 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
2252 * common/common-exceptions.c (throw_exception_sjlj): Update
2253 comments to avoid mentioning catch_errors.
2254 * exceptions.c (catch_errors): Delete.
2255 * exceptions.h: Update comments to avoid mentioning catch_errors.
2256 (catch_errors_ftype, catch_errors): Delete.
2257 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
2258 (hook_stop_stub): Delete.
2259 (restore_selected_frame): Change return type to void, and
2260 parameter type to const frame_id &.
2261 (restore_infcall_control_state): Use TRY/CATCH instead of
2262 catch_errors.
2263 * main.c (captured_command_loop): Return void and remove
2264 parameter. Remove references to catch_errors.
2265 (captured_main): Use TRY/CATCH instead of catch_errors.
2266 * objc-lang.c (objc_submethod_helper_data)
2267 (find_objc_msgcall_submethod_helper): Delete.
2268 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
2269 catch_errors.
2270 * record-full.c (record_full_message): Return void.
2271 (record_full_message_args, record_full_message_wrapper): Delete.
2272 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
2273 instead of catch_errors.
2274 * solib-aix.c (solib_aix_open_symbol_file_object): Change
2275 parameter type to int.
2276 * solib-darwin.c (open_symbol_file_object): Ditto.
2277 * solib-dsbt.c (open_symbol_file_object): Ditto.
2278 * solib-frv.c (open_symbol_file_object): Ditto.
2279 * solib-svr4.c (open_symbol_file_object): Ditto.
2280 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
2281 * solib.c (update_solib_list): Use TRY/CATCH instead of
2282 catch_errors.
2283 * solist.h (struct target_so_ops) <open_symbol_file_object>:
2284 Change type.
2285 * symmisc.c (struct print_symbol_args): Remove.
2286 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
2287 (print_symbol): Change type.
2288 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
2289 and remove parameters.
2290 (catch_errors): New.
2291 (get_windows_debug_event): Adjust.
2292
1a56bfa5
TT
22932017-10-09 Tom Tromey <tom@tromey.com>
2294
2295 * mi/mi-main.c (free_splay_tree): Remove.
2296 (list_available_thread_groups): Use splay_tree_up.
2297 * common/gdb_splay_tree.h: New file.
2298
0c478e2d
TT
22992017-10-09 Tom Tromey <tom@tromey.com>
2300
2301 * mi/mi-main.c (do_nothing): Remove.
2302 (list_available_thread_groups): Update.
2303
cbd2b4e3
PA
23042017-10-09 Pedro Alves <palves@redhat.com>
2305
2306 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
2307 reading registers when switching context.
2308
a181c0bf
JB
23092017-10-09 John Baldwin <jhb@FreeBSD.org>
2310
2311 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
2312 (fbsd_convert_siginfo): Likewise.
2313 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
2314
6e66f753
SM
23152017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
2316
2317 * configure.ac (try_guile_versions): Remove guile-2.2.
2318 * configure: Regenerate.
2319
890e9790
TT
23202017-10-09 Tom Tromey <tom@tromey.com>
2321
2322 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
2323 (COMPILE.pre): Use $(CXX).
2324
109483d9
PA
23252017-10-09 Pedro Alves <palves@redhat.com>
2326
2327 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
2328 Use bool.
2329 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
2330 * cp-support.h (cp_remove_params): Now returns a
2331 gdb::unique_xmalloc_ptr.
2332 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
2333 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
2334 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
2335 returning a gdb::unique_xmalloc_ptr.
2336 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
2337 * stack.c (find_frame_funname): Adjust to cp_remove_params
2338 returning a gdb::unique_xmalloc_ptr.
2339
791afaa2
TT
23402017-10-08 Tom Tromey <tom@tromey.com>
2341
2342 * dwarf2read.c (dwarf2_get_dwz_file): Use
2343 gdb::unique_xmalloc_ptr.
2344 (find_slot_in_mapped_hash): Likewise.
2345 (dwarf2_physname): Likewise.
2346 (create_dwo_unit_in_dwp_v1): Use std::string.
2347 (create_dwo_unit_in_dwp_v2): Likewise.
2348 (lookup_dwo_cutu): Likewise.
2349 (inherit_abstract_dies): Use std::vector.
2350 (read_array_type): Likewise.
2351 (dwarf_decode_macros): Remove unused declaration.
2352 (unsigned_int_compar): Remove.
2353 (dwarf2_build_psymtabs_hard): Use scoped_restore.
2354 (psymtabs_addrmap_cleanup): Remove.
2355
30a9c02f
TT
23562017-10-08 Tom Tromey <tom@tromey.com>
2357
2358 * frame-unwind.c (frame_unwind_try_unwinder): Update.
2359 * frame.h (frame_cleanup_after_sniffer): Declare.
2360 (frame_prepare_for_sniffer): Return void.
2361 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
2362 type of argument.
2363 (frame_prepare_for_sniffer): Return void.
2364
757325a3
TT
23652017-10-08 Tom Tromey <tom@tromey.com>
2366
2367 * utils.h (make_cleanup_value_free): Remove.
2368 * utils.c (do_value_free, struct cleanup): Remove.
2369 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
2370 Use gdb_value_up.
2371 * value.h (struct value_deleter): New.
2372 (gdb_value_up): New typedef.
2373
b9c04fb2
TT
23742017-10-08 Tom Tromey <tom@tromey.com>
2375
2376 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
2377 (make_cleanup_free_search_symbols): Remove.
2378 (search_symbols): Return std::vector.
2379 (symbol_search::compare_search_syms): Now member of
2380 symbol_search. Change arguments.
2381 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
2382 (symtab_symbol_info, rbreak_command): Update.
2383 * symtab.h (struct symbol_search) <next>: Remove.
2384 Add constructors.
2385 (symbol_search::operator<): New function.
2386 (symbol_search::operator==): New function.
2387 (search_symbols): Remove std::vector.
2388 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
2389 (symbol_search::compare_search_syms): Declare.
2390
0d28b0a5
YQ
23912017-10-06 Yao Qi <yao.qi@linaro.org>
2392
2393 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
2394 arch/aarch64-insn.o.
2395 Remove one rule.
2396 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
2397
71917808
YQ
23982017-10-06 Yao Qi <yao.qi@linaro.org>
2399
2400 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
2401 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
2402 arch/arm-linux.o respectively.
2403 * configure.tgt: Likewise.
2404
2081b2b2
YQ
24052017-10-06 Yao Qi <yao.qi@linaro.org>
2406
2407 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
2408 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
2409
a1b85d28
PA
24102017-10-06 Pedro Alves <palves@redhat.com>
2411
2412 * windows-nat.c: Include <algorithm>.
2413
d97987e2
YQ
24142017-10-06 Yao Qi <yao.qi@linaro.org>
2415
2416 * configure.tgt (i386_tobjs): New variable.
2417 (amd64_tobjs): New variable.
2418 Set $cpu_obs and $os_obs.
2419
f38307f5
YQ
24202017-10-06 Yao Qi <yao.qi@linaro.org>
2421
2422 * Makefile.in (CONFIG_SRC_SUBDIR): New.
2423 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
2424 (clean): Remove object files and dependency files.
2425 (distclean): Remove the directory.
2426 * configure.ac: Invoke AC_CONFIG_COMMANDS.
2427 * configure: Re-generated.
2428 * configure.tgt: Replace amd64.o with arch/amd64.o.
2429
2f924de6
JM
24302017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
2431
2432 PR build/22188
2433 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
2434 and SETEND.
2435
2fd9d7ca
PA
24362017-10-05 Pedro Alves <palves@redhat.com>
2437
2438 * linux-nat.c (linux_child_follow_fork): When following the parent
2439 and detaching the child, consult the parent thread's architecture
2440 instead of the child's.
2441
d13b8493
UW
24422017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2443
2444 * ax.h: Do not include "doublest.h".
2445 (union agent_val): Remove.
2446
3b4b2f16
UW
24472017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2448
2449 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
2450 (decimal_to_string): Return std::string object.
2451 (decimal_from_string): Accept std::string object. Return bool.
2452 (decimal_from_integral, decimal_from_doublest): Remove.
2453 (decimal_from_longest): Add prototype.
2454 (decimal_from_ulongest): Likewise.
2455 (decimal_to_longest): Likewise.
2456 (decimal_from_doublest): Likewise.
2457 * dfp.c: Do not include "gdbtypes.h" or "value.h".
2458 (MAX_DECIMAL_STRING): Move here.
2459 (decimal_to_string): Return std::string object.
2460 (decimal_from_string): Accept std::string object. Return bool.
2461 (decimal_from_integral): Remove, replace by ...
2462 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
2463 (decimal_to_longest): New function.
2464 (decimal_from_floating): Remove, replace by ...
2465 (decimal_from_doublest): ... this new function.
2466 (decimal_to_doublest): Update to new decimal_to_string interface.
2467
2468 * value.c (unpack_long): Use decimal_to_longest.
2469 * valops.c (value_cast): Use decimal_from_doublest instead of
2470 decimal_from_floating. Use decimal_from_[u]longest isntead of
2471 decimal_from_integral.
2472 * valarith.c (value_args_as_decimal): Likewise.
2473 * valprint.c (print_decimal_floating): Update to new
2474 decimal_to_string interface.
2475 * printcmd.c (printf_decfloat): Likewise.
2476 * c-exp.y (parse_number): Update to new decimal_from_string interface.
2477
1841ee5d
UW
24782017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2479
2480 * doublest.h: Do not include "floatformat.h". Remove stale comments.
2481 * gdbtypes.c: Include "floatformat.h".
2482 * value.c: Likewise.
2483 * m68k-tdep.c: Likewise.
2484
2485 * findvar.c: Do not include "floatformat.h".
2486 * amd64-darwin-tdep.c: Likewise.
2487 * arm-linux-tdep.c: Likewise.
2488 * i386-darwin-tdep.c: Likewise.
2489 * i387-tdep.c: Likewise.
2490 * m68k-linux-tdep.c: Likewise.
2491 * mep-tdep.c: Likewise.
2492 * mips-tdep.c: Likewise.
2493 * nios2-tdep.c: Likewise.
2494 * s390-linux-tdep.c: Likewise.
2495 * sparc-obsd-tdep.c: Likewise.
2496 * sparc-tdep.c: Likewise.
2497 * sparc64-tdep.c: Likewise.
2498 * spu-tdep.c: Likewise.
2499 * tic6x-tdep.c: Likewise.
2500 * tilegx-tdep.c: Likewise.
2501 * vax-tdep.c: Likewise.
2502 * xstormy16-tdep.c: Likewise.
2503 * xtensa-tdep.c: Likewise.
2504
2505 * top.c: Do not include "doublest.h".
2506 * aarch64-tdep.c: Likewise.
2507 * alpha-tdep.c: Likewise.
2508 * arm-linux-tdep.c: Likewise.
2509 * m68k-linux-tdep.c: Likewise.
2510 * tilegx-tdep.c: Likewise.
2511 * xstormy16-tdep.c: Likewise.
2512
a80a6471
JB
25132017-10-05 John Baldwin <jhb@FreeBSD.org>
2514
2515 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
2516 (mipsn32_fbsd_sigframe): Define.
2517 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
2518 for FreeBSD/mipsn32.
2519
12c4bd7f
JB
25202017-10-05 John Baldwin <jhb@FreeBSD.org>
2521
2522 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
2523 AT_HWCAP.
2524
c91933e9
TG
25252017-10-05 Tristan Gingold <tgingold@free.fr>
2526
2527 * MAINTAINERS (Misc): Update my email address.
2528
5cd63fda
PA
25292017-10-04 Pedro Alves <palves@redhat.com>
2530
2531 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
2532 it instead of target_gdbarch.
2533 (get_remote_state, get_remote_packet_size): Adjust
2534 get_remote_arch_state calls, passing down target_gdbarch
2535 explicitly.
2536 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
2537 'gdbarch' and use it instead of target_gdbarch.
2538 (get_memory_packet_size): Adjust get_remote_arch_state calls,
2539 passing down target_gdbarch explicitly.
2540 (struct stop_reply) <arch>: New field.
2541 (remote_parse_stop_reply): Use the stopped thread's architecture,
2542 not the current inferior's. Save the architecture in the
2543 stop_reply.
2544 (process_stop_reply): Use the stop reply's architecture.
2545 (process_g_packet, remote_fetch_registers)
2546 (remote_prepare_to_store, store_registers_using_G)
2547 (remote_store_registers): Adjust get_remote_arch_state calls,
2548 using the regcache's architecture.
2549 (remote_get_trace_status): Adjust get_remote_arch_state calls,
2550 passing down target_gdbarch explicitly.
2551 * spu-multiarch.c (spu_thread_architecture): Defer to the target
2552 beneath instead of calling target_gdbarch.
2553 * target.c (default_thread_architecture): Use the specified
2554 inferior's architecture, instead of the current inferior's
2555 architecture (via target_gdbarch).
2556
ed4227b7
PA
25572017-10-04 Pedro Alves <palves@redhat.com>
2558
2559 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
2560 case.
2561 (regcache_print): Handle !target_has_registers here instead.
2562
55b11ddf
PA
25632017-10-04 Pedro Alves <palves@redhat.com>
2564
2565 * frame.c (create_test_frame): Delete.
2566 * frame.h (create_test_frame): Delete.
2567 * gdbarch-selftests.c: Include gdbthread.h and target.h.
2568 (class regcache_test): Delete.
2569 (test_target_has_registers, test_target_has_stack)
2570 (test_target_has_memory, test_target_prepare_to_store)
2571 (test_target_store_registers): New functions.
2572 (test_target_ops): New class.
2573 (register_to_value_test): Error out if there's already a
2574 process_stratum (or higher) target pushed. Create a fuller mock
2575 environment, with mock target_ops, inferior, address space, thread
2576 and inferior_ptid.
2577 * progspace.c (struct address_space): Move to ...
2578 * progspace.h (struct address_space): ... here.
2579 * regcache.h (regcache::~regcache, regcache::raw_write)
2580 [GDB_SELF_TEST]: No longer virtual.
2581
4c71c105
SM
25822017-10-04 Simon Marchi <simon.marchi@ericsson.com>
2583
2584 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
2585
73dcd72d
PA
25862017-10-04 Pedro Alves <palves@redhat.com>
2587
2588 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
2589 out of 'between TRY and CATCH'.
2590
44704526
PA
25912017-10-04 Pedro Alves <palves@redhat.com>
2592
2593 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
2594 * common/common-exceptions.h (TRY): Open an outermost scope.
2595 Expand intro comment.
2596 (CATCH): Reindent.
2597 (END_CATCH): Close the outermost scope.
2598 * completer.c (complete_line_internal): Add missing END_CATCH.
2599
bc3b087d
SDJ
26002017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2601
2602 * NEWS (Changes since GDB 8.0): Add entry about new
2603 'set-cwd-on-gdbserver' feature.
2604 (New remote packets): Add entry for QSetWorkingDir.
2605 * common/common-inferior.h (set_inferior_cwd): New prototype.
2606 * infcmd.c (set_inferior_cwd): Remove "static".
2607 (show_cwd_command): Expand text to include remote debugging.
2608 * remote.c: Add PACKET_QSetWorkingDir.
2609 (remote_protocol_features) <QSetWorkingDir>: New entry for
2610 PACKET_QSetWorkingDir.
2611 (extended_remote_set_inferior_cwd): New function.
2612 (extended_remote_create_inferior): Call
2613 "extended_remote_set_inferior_cwd".
2614 (_initialize_remote): Call "add_packet_config_cmd" for
2615 QSetWorkingDir.
2616
d092c5a2
SDJ
26172017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2618
2619 * NEWS (New commands): Mention "set/show cwd".
2620 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
2621 "cd" command's help text.
2622 * common/common-inferior.h (get_inferior_cwd): New prototype.
2623 * infcmd.c (inferior_cwd_scratch): New global variable.
2624 (set_inferior_cwd): New function.
2625 (get_inferior_cwd): Likewise.
2626 (set_cwd_command): Likewise.
2627 (show_cwd_command): Likewise.
2628 (_initialize_infcmd): Add "set/show cwd" commands.
2629 * inferior.h (class inferior) <cwd>: New field.
2630 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
2631 (fork_inferior): Change inferior's cwd before its execution.
2632 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
2633 to CreateProcess.
2634
7da0a886
SDJ
26352017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2636
2637 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
2638 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
2639 (COMMON_OBS): Add gdb_tilde_expand.o.
2640 * common/gdb_tilde_expand.c: New file.
2641 * common/gdb_tilde_expand.h: Likewise.
2642
db8dd160
MR
26432017-10-03 Maciej W. Rozycki <macro@imgtec.com>
2644
2645 * gdbarch.sh (objfile): Remove duplicate declaration.
2646 * gdbarch.h: Regenerate.
2647
f8bfbf22
TT
26482017-10-03 Tom Tromey <tom@tromey.com>
2649
2650 * utils.c (internal_vproblem): Use string_vprintf.
2651
5178ed48
TT
26522017-10-03 Tom Tromey <tom@tromey.com>
2653
2654 * printcmd.c (info_symbol_command): Use std::string.
2655
8cff8730
TT
26562017-10-03 Tom Tromey <tom@tromey.com>
2657
2658 * top.c (gdb_safe_append_history): Use std::string.
2659
895b8f30
TT
26602017-10-03 Tom Tromey <tom@tromey.com>
2661
2662 * event-top.c (stdin_event_handler): Update.
2663 * main.c (captured_main_1): Update.
2664 * top.h (make_delete_ui_cleanup): Remove.
2665 (struct ui): Add constructor and destructor.
2666 (new_ui, delete_ui): Remove.
2667 * top.c (make_delete_ui_cleanup): Remove.
2668 (new_ui_command): Use std::unique_ptr.
2669 (delete_ui_cleanup): Remove.
2670 (ui::ui): Rename from new_ui. Update.
2671 (free_ui): Remove.
2672 (ui::~ui): Rename from delete_ui. Update.
2673
0efef640
TT
26742017-10-03 Tom Tromey <tom@tromey.com>
2675
2676 * symfile.c (load_progress): Use gdb::byte_vector.
2677
245ad7d3
TT
26782017-10-03 Tom Tromey <tom@tromey.com>
2679
2680 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
2681 declaration.
2682 * printcmd.c (x_command): Remove unused declaration.
2683 * symfile.c (symbol_file_command): Remove unused declaration.
2684
e05550d7
TT
26852017-10-03 Tom Tromey <tom@tromey.com>
2686
2687 * utils.c (internal_vproblem): Use std::string.
2688 (defaulted_query): Likewise.
2689
b95de2b7
TT
26902017-10-03 Tom Tromey <tom@tromey.com>
2691
2692 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
2693 * top.c (execute_command_to_string): Update.
2694 * utils.c (make_cleanup_restore_page_info): Remove.
2695 (do_restore_page_info_cleanup): Remove.
2696 (set_batch_flag_and_restore_page_info):
2697 New.
2698 (make_cleanup_restore_page_info): Remove.
2699 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2700 (~set_batch_flag_and_restore_page_info): New
2701 (make_cleanup_restore_uinteger): Remove.
2702 (make_cleanup_restore_integer): Remove.
2703 (struct restore_integer_closure): Remove.
2704 (restore_integer): Remove.
2705 * utils.h (struct set_batch_flag_and_restore_page_info): New
2706 class.
2707 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2708 (make_cleanup_restore_page_info): Remove.
2709 (make_cleanup_restore_uinteger) Remove.
2710 (make_cleanup_restore_integer) Remove.
2711
07036511
TT
27122017-10-03 Tom Tromey <tom@tromey.com>
2713
2714 * record-full.h (record_full_gdb_operation_disable_set): Return
2715 scoped_restore_tmpl<int>.
2716 * infrun.c (adjust_pc_after_break): Update.
2717 (handle_signal_stop): Update.
2718 * record-full.c (record_full_gdb_operation_disable_set): Return
2719 scoped_restore_tmpl<int>.
2720 (record_full_wait_1, record_full_insert_breakpoint)
2721 (record_full_remove_breakpoint, record_full_save)
2722 (record_full_goto_insn): Update.
2723
45320ffa
TT
27242017-10-02 Tom Tromey <tom@tromey.com>
2725
2726 PR rust/22236:
2727 * rust-lang.c (rust_val_print_str): New function.
2728 (val_print_struct): Call it.
2729 (rust_subscript): Preserve name of slice type.
2730
b3e3859b
TT
27312017-10-02 Tom Tromey <tom@tromey.com>
2732
2733 * rust-lang.c (rust_subscript): Handle slices in
2734 EVAL_AVOID_SIDE_EFFECTS case.
2735
01af5e0d
TT
27362017-10-02 Tom Tromey <tom@tromey.com>
2737
2738 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
2739
888e3ddb
TT
27402017-10-02 Tom Tromey <tom@tromey.com>
2741
2742 * rust-lang.h (rust_slice_type): Add "extern".
2743
cc536b21
PA
27442017-10-02 Tom Tromey <tom@tromey.com>
2745 Pedro Alves <palves@redhat.com>
2746
2747 * ada-lang.h (ada_exc_info::operator<): Make const.
2748 (ada_exc_info::operator==): Make const.
2749 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2750 Make const.
2751
386c8614
TT
27522017-09-29 Tom Tromey <tom@tromey.com>
2753
2754 * target.c (read_whatever_is_readable): Change type of "result".
2755 Update.
2756 (free_memory_read_result_vector): Remove.
2757 (read_memory_robust): Change return type. Update.
2758 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2759 bin2hex, std::string.
2760 * target.h (memory_read_result_s): Remove typedef.
2761 (free_memory_read_result_vector): Remove.
2762 (read_memory_robust): Return std::vector.
2763
789c4b5e
TT
27642017-09-29 Tom Tromey <tom@tromey.com>
2765
2766 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2767
ab816a27
TT
27682017-09-29 Tom Tromey <tom@tromey.com>
2769
2770 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2771 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2772 operator< and operator==.
2773 (ada_exceptions_list): Return a std::vector.
2774 * ada-lang.c (ada_exc_info::operator<): Rename from
2775 compare_ada_exception_info.
2776 (ada_exc_info::operator==): New.
2777 (sort_remove_dups_ada_exceptions_list): Change type of
2778 "exceptions".
2779 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2780 (ada_add_global_exceptions): Likewise.
2781 (ada_exceptions_list_1): Return a std::vector.
2782 (ada_exceptions_list): Likewise.
2783
52f9abe4
TT
27842017-09-29 Tom Tromey <tom@tromey.com>
2785
2786 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2787 'std::set *'.
2788 (print_one_inferior): Update.
2789 (free_vector_of_ints): Remove.
2790 (list_available_thread_groups): Change "ids" to std::set.
2791 (mi_cmd_list_thread_groups): Update.
2792 (struct collect_cores_data) <core>: Now a std::set.
2793 (collect_cores): Update.
2794 (unique): Remove.
2795 (print_one_inferior): Update.
2796
dcd5ddcc
TT
27972017-09-29 Tom Tromey <tom@tromey.com>
2798
2799 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2800 (mi_execute_async_cli_command): Likewise.
2801 (mi_cmd_trace_frame_collected): Use field_fmt.
2802
45d288cc
TT
28032017-09-29 Tom Tromey <tom@tromey.com>
2804
2805 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2806 gdb::byte_vector.
2807
6afe2f4a
TT
28082017-09-29 Tom Tromey <tom@tromey.com>
2809
2810 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2811
9813429a
TT
28122017-09-29 Tom Tromey <tom@tromey.com>
2813
2814 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2815
2d6960b4
TT
28162017-09-29 Tom Tromey <tom@tromey.com>
2817
2818 * varobj.h (varobj_gen_name): Return std::string.
2819 * varobj.c (varobj_gen_name): Return std::string.
2820 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2821 (mi_cmd_var_delete): Don't copy "name".
2822
784c453a
TT
28232017-09-29 Tom Tromey <tom@tromey.com>
2824
2825 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2826 (mi_cmd_break_insert_1): Update.
2827
a9bc57b9
TT
28282017-09-29 Tom Tromey <tom@tromey.com>
2829
2830 * target.h (make_scoped_defer_target_commit_resume): Update.
2831 * target.c (make_scoped_defer_target_commit_resume): Rename from
2832 make_cleanup_defer_target_commit_resume. Return a
2833 scoped_restore.
2834 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2835
9754d8c4
TT
28362017-09-29 Tom Tromey <tom@tromey.com>
2837
2838 * main.c (captured_main_1): Remove unused declaration.
2839 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2840
99ef965c
TT
28412017-09-29 Tom Tromey <tom@tromey.com>
2842
2843 * symtab.c (search_symbols): Remove unused outer cleanup.
2844 (make_source_files_completion_list): Remove unused declaration.
2845
42518ba7
TT
28462017-09-29 Tom Tromey <tom@tromey.com>
2847
2848 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2849
726b2169
TT
28502017-09-29 Tom Tromey <tom@tromey.com>
2851
2852 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2853 gdb::byte_vector.
2854
55b06432
TT
28552017-09-29 Tom Tromey <tom@tromey.com>
2856
2857 * complaints.c (vcomplaint): Use std::string.
2858
8abcee91
TT
28592017-09-29 Tom Tromey <tom@tromey.com>
2860
2861 * tracepoint.c (trace_variable_command): Use std::string.
2862 (encode_actions_1): Remove unused declarations.
2863 (create_tsv_from_upload): Use std::string.
2864
6ad94bc7
TT
28652017-09-29 Tom Tromey <tom@tromey.com>
2866
2867 * cp-support.c (gdb_demangle): Use std::string.
2868
2003f3d8
TT
28692017-09-29 Tom Tromey <tom@tromey.com>
2870
2871 * stack.c (parse_frame_specification): Use std::string
2872 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2873
8f8accb5
TT
28742017-09-29 Tom Tromey <tom@tromey.com>
2875
2876 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2877
200aa7b1
TT
28782017-09-29 Tom Tromey <tom@tromey.com>
2879
2880 * utils.c (vfprintf_maybe_filtered): Use std::string.
2881 (vfprintf_unfiltered): Likewise.
2882
606aae8a
TT
28832017-09-29 Tom Tromey <tom@tromey.com>
2884
2885 * event-top.c (top_level_prompt): Return std::string.
2886 (display_gdb_prompt): Update.
2887
bd413795
TT
28882017-09-29 Tom Tromey <tom@tromey.com>
2889
2890 * unittests/common-utils-selftests.c (format): New function.
2891 (string_vprintf_tests): New function.
2892 (_initialize_common_utils_selftests): Register new tests.
2893 * common/common-utils.c (string_vprintf): New function.
2894 * common/common-utils.h (string_vprintf): Declare.
2895
256642e8
PA
28962017-09-29 Pedro Alves <palves@redhat.com>
2897
2898 * common/rsp-low.c (unpack_varlen_hex): Constify.
2899 * common/rsp-low.h (unpack_varlen_hex): Constify.
2900 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2901 Constify.
2902 * remote.c (remote_set_permissions, read_ptid)
2903 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2904 (remote_static_tracepoint_marker_at)
2905 (remote_static_tracepoint_markers_by_strid)
2906 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2907 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2908 (parse_tracepoint_definition, parse_tsv_definition)
2909 (parse_static_tracepoint_marker_definition): Constify.
2910 * tracepoint.h (parse_static_tracepoint_marker_definition)
2911 (parse_trace_status, parse_tracepoint_status)
2912 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2913
b6bb3468
PA
29142017-09-29 Pedro Alves <palves@redhat.com>
2915
2916 * remote.c (target_buf, target_buf_size): Delete.
2917 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2918 Use the connection's packet buffer instead.
2919 All callers adjusted.
2920 (_initialize_remote): Remove references to target_buf and
2921 target_buf_size.
2922
b2f8eb7a
PA
29232017-09-28 Pedro Alves <palves@redhat.com>
2924
2925 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2926 unittests/common-utils-selftests.c.
2927 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2928 (COMMON_OBS): Remove utils-selftests.o.
2929 * utils-selftests.c: Move to ...
2930 * unittests/common-utils-selftests.c: ... here and rename self
2931 test to "string_printf".
2932
08302ed2
DE
29332017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2934
2935 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2936 having NULL cus or tus.
2937
96a5a1d3
UW
29382017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2939
2940 * arm-tdep.c: (convert_from_extended): Remove.
2941 (convert_to_extended): Likewise.
2942 (arm_extract_return_value): Use convert_typed_floating.
2943 (arm_store_return_value): Likewise.
2944
2945 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2946 * sh-tdep.c: Do not include "floatformat.h".
2947 (sh_littlebyte_bigword_type): New function.
2948 (sh_register_convert_to_virtual): Use convert_typed_floating.
2949 (sh_register_convert_to_raw): Likewise.
2950 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2951 (sh64_littlebyte_bigword_type): New function.
2952 (sh64_extract_return_value): Use convert_typed_floating.
2953 (sh64_register_convert_to_virtual): Likewise.
2954 (sh64_register_convert_to_raw): Likewise.
2955
0db7851f
UW
29562017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2957
2958 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2959 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2960
2961 * gdbtypes.h (union type_specific): Make field floatformat hold
2962 just a single struct floatformat, not an array.
2963 (floatformat_from_type): Move here.
2964 * gdbtypes.c (floatformat_from_type): Move here. Update to
2965 changed TYPE_FLOATFORMAT definition.
2966 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2967 (recursive_dump_type): Likewise.
2968 (init_float_type): Install correct floatformat for byte order.
2969 (arch_float_type): Likewise.
2970
77b7c781
UW
29712017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2972
2973 * gdbtypes.c (init_type): Change incoming argument from
2974 length-in-bytes to length-in-bits. Assert length is a
2975 multiple of TARGET_CHAR_BITS.
2976 (arch_type, arch_flags_type): Likewise.
2977 (init_integer_type): Update call to init_type.
2978 (init_character_type): Likewise.
2979 (init_boolean_type): Likewise.
2980 (init_float_type): Likewise.
2981 (init_decfloat_type): Likewise.
2982 (init_complex_type): Likewise.
2983 (init_pointer_type): Likewise.
2984 (objfile_type): Likewise.
2985 (arch_integer_type): Update call to arch_type.
2986 (arch_character_type): Likewise.
2987 (arch_boolean_type): Likewise.
2988 (arch_float_type): Likewise.
2989 (arch_decfloat_type): Likewise.
2990 (arch_complex_type): Likewise.
2991 (arch_pointer_type): Likewise.
2992 (gdbtypes_post_init): Likewise.
2993
2994 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2995 (read_base_type): Likewise.
2996 * mdebugread.c (basic_type): Likewise.
2997 * stabsread.c (dbx_init_float_type): Likewise.
2998 (rs6000_builtin_type): Likewise.
2999 (read_range_type): Likewise. Also, fix call to init_integer_type
3000 with erroneous length argument.
3001
3002 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
3003 * d-lang.c (build_d_types): Likewise.
3004 * f-lang.c (build_fortran_types): Likewise.
3005 * go-lang.c (build_go_types): Likewise.
3006 * opencl-lang.c (build_opencl_types): Likewise.
3007 * jit.c (finalize_symtab): Likewise.
3008 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3009 (build_std_type_info_type): Likewise.
3010 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
3011 update call to arch_flags_type.
3012
3013 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
3014 arch_type.
3015 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
3016 * windows-tdep.c (windows_get_tlb_type): Likewise.
3017
3018 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
3019 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
3020 * m32c-tdep.c (make_types): Likewise.
3021 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3022 (rl78_psw_type): Update call to arch_flags_type.
3023 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
3024 * rx-tdep.c (rx_psw_type): Likewise.
3025 (rx_fpsw_type): Likewise.
3026 * sparc-tdep.c (sparc_psr_type): Likewise.
3027 (sparc_fsr_type): Likewise.
3028 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
3029 (sparc64_ccr_type): Likewise.
3030 (sparc64_fsr_type): Likewise.
3031 (sparc64_fprs_type): Likewise.
3032
f21b4d5c
TT
30332017-09-27 Tom Tromey <tom@tromey.com>
3034
3035 * findcmd.c (find_command): Constify.
3036
643c2ffa
TT
30372017-09-27 Tom Tromey <tom@tromey.com>
3038
3039 * ada-tasks.c (task_command_1, task_command): Constify.
3040
510e5e56
TT
30412017-09-27 Tom Tromey <tom@tromey.com>
3042
3043 * symtab.c (maintenance_print_symbol_cache)
3044 (maintenance_flush_symbol_cache)
3045 (maintenance_print_symbol_cache_statistics): Constify.
3046
e503b191
TT
30472017-09-27 Tom Tromey <tom@tromey.com>
3048
3049 * inferior.c (detach_inferior_command, kill_inferior_command)
3050 (inferior_command): Constify.
3051
4e001312
TT
30522017-09-27 Tom Tromey <tom@tromey.com>
3053
3054 * regcache.c (regcache_print, maintenance_print_registers)
3055 (maintenance_print_raw_registers)
3056 (maintenance_print_cooked_registers)
3057 (maintenance_print_register_groups)
3058 (maintenance_print_remote_registers): Constify.
3059
77763700
TT
30602017-09-27 Tom Tromey <tom@tromey.com>
3061
3062 * printcmd.c (map_display_numbers, undisplay_command)
3063 (enable_disable_display_command, enable_display_command)
3064 (disable_display_command): Constify.
3065
4495129a
TT
30662017-09-27 Tom Tromey <tom@tromey.com>
3067
3068 * breakpoint.h (delete_command): Don't declare.
3069 * breakpoint.c (delete_command, enable_once_command)
3070 (enable_count_command, enable_delete_command, breakpoint_1)
3071 (maintenance_info_breakpoints, stopin_command, stopat_command)
3072 (delete_command, delete_trace_command, save_breakpoints)
3073 (save_breakpoints_command, save_tracepoints_command): Constify.
3074
3088cf40
TT
30752017-09-27 Tom Tromey <tom@tromey.com>
3076
3077 * macrocmd.c (macro_expand_command, macro_expand_once_command)
3078 (skip_ws, extract_identifier, macro_define_command)
3079 (macro_undef_command, macro_list_command): Constify.
3080
69f476a3
TT
30812017-09-27 Tom Tromey <tom@tromey.com>
3082
3083 * infcmd.c (environment_info, set_environment_command)
3084 (unset_environment_command, path_info, info_proc_cmd_1)
3085 (info_proc_cmd_mappings, info_proc_cmd_stat)
3086 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
3087 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
3088
c4a3e68e
TT
30892017-09-27 Tom Tromey <tom@tromey.com>
3090
3091 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
3092 Constify.
3093
c9d31bd6
TT
30942017-09-27 Tom Tromey <tom@tromey.com>
3095
3096 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
3097
1f3f85eb
TT
30982017-09-27 Tom Tromey <tom@tromey.com>
3099
3100 * demangle.c (demangle_command): Constify.
3101
9c504b5d
TT
31022017-09-27 Tom Tromey <tom@tromey.com>
3103
3104 * progspace.c (maintenance_info_program_spaces_command):
3105 Constify.
3106
6663cf91
TT
31072017-09-27 Tom Tromey <tom@tromey.com>
3108
3109 * compile/compile.c (check_raw_argument, compile_file_command)
3110 (compile_code_command, compile_print_command): Constify.
3111
34e5fa26
TT
31122017-09-27 Tom Tromey <tom@tromey.com>
3113
3114 * reggroups.c (maintenance_print_reggroups): Constify.
3115
8384c356
TT
31162017-09-27 Tom Tromey <tom@tromey.com>
3117
3118 * dwarf2read.c (save_gdb_index_command): Constify.
3119
884beb0c
TT
31202017-09-27 Tom Tromey <tom@tromey.com>
3121
3122 * stap-probe.c (info_probes_stap_command): Constify.
3123
e0b2930c
TT
31242017-09-27 Tom Tromey <tom@tromey.com>
3125
3126 * fork-child.c (unset_exec_wrapper_command): Constify.
3127
f938677d
TT
31282017-09-27 Tom Tromey <tom@tromey.com>
3129
3130 * btrace.c (get_uint, get_context_size, no_chunk)
3131 (maint_btrace_packet_history_cmd)
3132 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
3133 (maint_info_btrace_cmd): Constify.
3134
8949cb87
TT
31352017-09-27 Tom Tromey <tom@tromey.com>
3136
3137 * reverse.c (delete_bookmark_command): Constify.
3138
ac88e2de
TT
31392017-09-27 Tom Tromey <tom@tromey.com>
3140
3141 * remote.c (set_memory_packet_size)
3142 (set_memory_write_packet_size, show_memory_write_packet_size)
3143 (set_memory_read_packet_size, show_memory_read_packet_size)
3144 (compare_sections_command, packet_command, remote_put_command)
3145 (remote_get_command, remote_delete_command): Constify.
3146
bd4c9dfe
TT
31472017-09-27 Tom Tromey <tom@tromey.com>
3148
3149 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
3150 (set_mipsfpu_double_command, set_mipsfpu_none_command)
3151 (set_mipsfpu_auto_command): Constify.
3152
5e93d4c6
TT
31532017-09-27 Tom Tromey <tom@tromey.com>
3154
3155 * cli/cli-cmds.h (cd_command): Constify.
3156 * cli/cli-cmds.c (cd_command): Constify.
3157
fc41a75b
TT
31582017-09-27 Tom Tromey <tom@tromey.com>
3159
3160 * thread.c (thread_name_command, thread_find_command): Constify.
3161
67810076
TT
31622017-09-27 Tom Tromey <tom@tromey.com>
3163
3164 * probe.c (enable_probes_command, disable_probes_command):
3165 Constify.
3166
1d8b34a7
TT
31672017-09-27 Tom Tromey <tom@tromey.com>
3168
3169 * symfile.c (symbol_file_command): Constify.
3170 * gdbcore.h (deprecated_file_changed_hook): Constify.
3171 * exec.c (deprecated_file_changed_hook, exec_file_command)
3172 (file_command): Constify.
3173 * defs.h (symbol_file_command): Constify.
3174
442019e1
TT
31752017-09-27 Tom Tromey <tom@tromey.com>
3176
3177 * remote-fileio.c (set_system_call_allowed)
3178 (show_system_call_allowed): Constify.
3179
2983f7cb
TT
31802017-09-27 Tom Tromey <tom@tromey.com>
3181
3182 * tracepoint.c (delete_trace_variable_command)
3183 (tfind_end_command, tfind_start_command, tfind_pc_command)
3184 (tfind_tracepoint_command, tfind_line_command)
3185 (tfind_range_command, tfind_outside_command): Constify.
3186
4fd41b24
TT
31872017-09-27 Tom Tromey <tom@tromey.com>
3188
3189 * ax-gdb.c (maint_agent_printf_command, agent_command)
3190 (agent_eval_command): Constify.
3191
f2fc3015
TT
31922017-09-27 Tom Tromey <tom@tromey.com>
3193
3194 * tracepoint.c (info_scope_command): Constify.
3195 * python/python.c (gdbpy_decode_line): Constify.
3196 * python/py-breakpoint.c (bppy_init): Constify.
3197 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
3198 * location.h: (new_linespec_location)
3199 (string_to_event_location_basic, string_to_event_location):
3200 Constify.
3201 * location.c (new_linespec_location)
3202 (string_to_event_location_basic, string_to_event_location):
3203 Constify.
3204 * linespec.h (decode_line_with_current_source)
3205 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
3206 * linespec.c (linespec_lex_to_end)
3207 (decode_line_with_current_source)
3208 (decode_line_with_last_displayed): Constify.
3209 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
3210 Constify.
3211 * cli/cli-cmds.c (edit_command, list_command): Constify.
3212 * breakpoint.h (until_break_command, watch_command_wrapper)
3213 (awatch_command_wrapper, rwatch_command_wrapper)
3214 (init_ada_exception_breakpoint): Constify.
3215 * breakpoint.c (break_command_1, dprintf_command)
3216 (break_range_command, watch_command_wrapper)
3217 (rwatch_command_wrapper, awatch_command_wrapper)
3218 (until_break_command, init_ada_exception_breakpoint)
3219 (strace_marker_create_sals_from_location, trace_command)
3220 (ftrace_command, strace_command, struct tracepoint): Constify.
3221 * ax-gdb.c (agent_command_1): Constify.
3222 * ada-lang.c (ada_exception_sal): Constify.
3223
8c2f95f4
TT
32242017-09-27 Tom Tromey <tom@tromey.com>
3225
3226 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
3227 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
3228 (get_context_size, no_chunk, get_insn_history_modifiers)
3229 (cmd_record_insn_history, get_call_history_modifiers)
3230 (cmd_record_call_history): Constify.
3231
a0d65762
TT
32322017-09-27 Tom Tromey <tom@tromey.com>
3233
3234 * source.c (show_substitute_path_command)
3235 (unset_substitute_path_command, set_substitute_path_command):
3236 Constify.
3237
58971144
TT
32382017-09-27 Tom Tromey <tom@tromey.com>
3239
3240 * typeprint.c (maintenance_print_type): Constify.
3241 * maint.c (maintenance_dump_me, maintenance_demangle)
3242 (maintenance_time_display, maintenance_info_sections)
3243 (maintenance_print_statistics, maintenance_deprecate)
3244 (maintenance_undeprecate): Constify.
3245 (maintenance_do_deprecate): Constify. Use std::string.
3246 (maintenance_selftest): Constify.
3247 * gdbtypes.h (maintenance_print_type): Constify.
3248
c482f52c
TT
32492017-09-27 Tom Tromey <tom@tromey.com>
3250
3251 * hppa-tdep.c (unwind_command): Constify.
3252
e100df1a
TT
32532017-09-27 Tom Tromey <tom@tromey.com>
3254
3255 * target-descriptions.c (unset_tdesc_filename_cmd)
3256 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
3257 Constify.
3258
31d56ade
TT
32592017-09-27 Tom Tromey <tom@tromey.com>
3260
3261 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
3262
b961da0b
TT
32632017-09-27 Tom Tromey <tom@tromey.com>
3264
3265 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
3266
e2d8ae16
TT
32672017-09-27 Tom Tromey <tom@tromey.com>
3268
3269 * tui/tui-regs.c (tui_reg_command): Constify.
3270
863779b0
TT
32712017-09-27 Tom Tromey <tom@tromey.com>
3272
3273 * skip.c (skip_file_command, skip_function_command)
3274 (skip_enable_command, skip_disable_command, skip_delete_command):
3275 Constify.
3276
cdb34d4a
TT
32772017-09-27 Tom Tromey <tom@tromey.com>
3278
3279 * record-btrace.c (cmd_record_btrace_bts_start)
3280 (cmd_record_btrace_pt_start): Constify.
3281
e99c83e7
TT
32822017-09-27 Tom Tromey <tom@tromey.com>
3283
3284 * symmisc.c (maintenance_print_symbols)
3285 (maintenance_print_msymbols, maintenance_print_objfiles)
3286 (maintenance_info_symtabs, maintenance_check_symtabs)
3287 (maintenance_expand_symtabs, maintenance_info_line_tables):
3288 Constify.
3289
32faf971
TT
32902017-09-27 Tom Tromey <tom@tromey.com>
3291
3292 * top.c (new_ui_command): Constify.
3293
2cf311eb
TT
32942017-09-27 Tom Tromey <tom@tromey.com>
3295
3296 * symfile.c (add_symbol_file_command)
3297 (remove_symbol_file_command, list_overlays_command)
3298 (map_overlay_command, unmap_overlay_command)
3299 (overlay_auto_command, overlay_manual_command)
3300 (overlay_off_command, overlay_load_command): Constify.
3301
e6738699
TT
33022017-09-27 Tom Tromey <tom@tromey.com>
3303
3304 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3305 (info_spu_mailbox_command, info_spu_dma_command)
3306 (info_spu_proxydma_command): Constify.
3307
aa360cd5
TT
33082017-09-27 Tom Tromey <tom@tromey.com>
3309
3310 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
3311
898241a5
TT
33122017-09-27 Tom Tromey <tom@tromey.com>
3313
3314 * cli/cli-script.c (user_defined_command): Constify.
3315
2d0ac106
TT
33162017-09-27 Tom Tromey <tom@tromey.com>
3317
3318 * cli/cli-dump.c (dump_memory_command, dump_value_command)
3319 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
3320 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
3321 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
3322 (dump_binary_value, append_binary_memory, append_binary_value):
3323 Constify.
3324 (struct dump_context) <func>: Constify.
3325 (add_dump_command): Update.
3326
dede02ce
TT
33272017-09-27 Tom Tromey <tom@tromey.com>
3328
3329 * cli/cli-cmds.c (show_version, show_configuration)
3330 (source_command, show_user): Constify.
3331
d3cb6b99
TT
33322017-09-27 Tom Tromey <tom@tromey.com>
3333
3334 * target.c (maintenance_print_target_stack): Constify.
3335
1970a12f
TT
33362017-09-27 Tom Tromey <tom@tromey.com>
3337
3338 * interps.c (interpreter_exec_cmd): Constify.
3339
41243651
TT
33402017-09-27 Tom Tromey <tom@tromey.com>
3341
3342 * record-full.c (cmd_record_full_restore): Constify.
3343
4465d9db
TT
33442017-09-27 Tom Tromey <tom@tromey.com>
3345
3346 * memattr.c (enable_mem_command, disable_mem_command)
3347 (delete_mem_command): Constify.
3348
ad25e423
TT
33492017-09-27 Tom Tromey <tom@tromey.com>
3350
3351 * value.c (show_convenience): Constify.
3352
d64097b1
TT
33532017-09-27 Tom Tromey <tom@tromey.com>
3354
3355 * gdbcore.h (core_file_command): Update.
3356 * corefile.c (core_file_command): Constify.
3357
4d4589ef
TT
33582017-09-27 Tom Tromey <tom@tromey.com>
3359
3360 * user-regs.c (maintenance_print_user_registers): Constify.
3361
32a7bf17
TT
33622017-09-27 Tom Tromey <tom@tromey.com>
3363
3364 * cp-namespace.c (maintenance_cplus_namespace): Constify.
3365
4a475551
TT
33662017-09-27 Tom Tromey <tom@tromey.com>
3367
3368 * cp-support.c (first_component_command): Constify.
3369
990b9f9f
TT
33702017-09-27 Tom Tromey <tom@tromey.com>
3371
3372 * psymtab.c (maintenance_print_psymbols)
3373 (maintenance_info_psymtabs, maintenance_check_psymtabs):
3374 Constify.
3375
c281872e
TT
33762017-09-27 Tom Tromey <tom@tromey.com>
3377
3378 * windows-tdep.c (display_tib): Constify.
3379
5b64bf74
TT
33802017-09-27 Tom Tromey <tom@tromey.com>
3381
3382 * linux-fork.c (delete_checkpoint_command)
3383 (detach_checkpoint_command): Constify.
3384
4ada038f
TT
33852017-09-27 Tom Tromey <tom@tromey.com>
3386
3387 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
3388
57f5a81b
TT
33892017-09-27 Tom Tromey <tom@tromey.com>
3390
3391 * arc-tdep.c (dump_arc_instruction_command): Constify.
3392
b0a8e6c4
TT
33932017-09-27 Tom Tromey <tom@tromey.com>
3394
3395 * valprint.c (set_radix, show_radix): Constify.
3396
8d97dc1c
TT
33972017-09-27 Tom Tromey <tom@tromey.com>
3398
3399 * dtrace-probe.c (info_probes_dtrace_command): Constify.
3400
eb7c454d
TT
34012017-09-27 Tom Tromey <tom@tromey.com>
3402
3403 * command.h (not_just_help_class_command): Update.
3404 * cli/cli-decode.h (not_just_help_class_command): Update.
3405 * cli/cli-decode.c (not_just_help_class_command): Constify.
3406
e4e33335
TT
34072017-09-27 Tom Tromey <tom@tromey.com>
3408
3409 * gdb_bfd.c (maintenance_info_bfds): Constify.
3410
0450cc4c
TT
34112017-09-27 Tom Tromey <tom@tromey.com>
3412
3413 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
3414 overloads.
3415 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
3416 (do_const_cfunc): New function.
3417 (cmd_cfunc_eq): New overload.
3418 (cli_user_command_p): Check do_const_cfunc.
3419 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
3420 const_cfunc.
3421 * command.h (add_cmd): Add const overload and no-function
3422 overload.
3423 (set_cmd_cfunc): Add const overload.
3424 (cmd_const_cfunc_ftype): Declare.
3425 (cmd_cfunc_eq): Add const overload.
3426 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
3427 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
3428 overload.
3429
a9bbfbd8
TT
34302017-09-27 Tom Tromey <tom@tromey.com>
3431
3432 * macroexp.c (get_next_token_for_substitution): New function.
3433 (substitute_args): Call it. Check for __VA_OPT__.
3434
5230b05a
WT
34352017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3436 Pedro Alves <palves@redhat.com>
3437
3438 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
3439 producer_is_icc_lt_14.
3440 (producer_is_icc_lt_14): New function.
3441 (check_producer): Add code for checking version of ICC.
3442 (producer_is_icc): Move to producer.c.
3443 (read_structure_type): Restrict ICC workaround to ICC<14.
3444 * producer.c: Include selftest.h.
3445 (producer_is_icc, producer_parsing_tests, _initialize_producer):
3446 New functions.
3447 * producer.h (producer_is_icc): New declaration.
3448
b32b108a
WT
34492017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3450
3451 * Makefile.in (SFILES): Add producer.c.
3452 (COMMON_OBS): Add producer.o
3453 * amd64-tdep.c (producer.h): Add new include.
3454 * dwarf2read.c (producer.h): Add new include.
3455 * producer.c: New file.
3456 * producer.h: New file.
3457 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
3458 producer.c.
3459 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
3460 producer.h.
3461
5007d765
MK
34622017-09-26 Matthias Klose <doko@ubuntu.com>
3463
3464 * configure.ac: Search ncursesw before ncurses.
3465 Check ncursesw/ncurses.h before ncurses/ncurses.h.
3466 * gdb_curses.h: Include <ncursesw/ncurses.h>
3467 * config.in, configure: Regenerate.
3468
281c4447
RO
34692017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3470
3471 PR gdb/22185
3472 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
3473 obsolete.
3474 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
3475 Remove i386sol2 support.
3476 * configure.nat <i386sol2>: Remove.
3477 <sol2-64>: Fold into ...
3478 <sol2>: ... this.
3479 Move common settings to default section.
3480 Add sol-thread.o.
3481 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
3482 x86_64-*-solaris2.1[0-9]*>: Rename to ...
3483 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
3484 <i[34567]86-*-solaris*>: Remove.
3485 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
3486
3487 * configure.ac: Remove wctype in libw check.
3488 (_MSE_INT_H): Don't define on Solaris 7-9.
3489 <solaris*>: Remove libthread_db.so.1 check.
3490 * configure: Regenerate.
3491 * config.in: Regenerate.
3492
3493 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
3494 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
3495 (gdb_ps_size_t): Remove.
3496 Use base types in users.
3497 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
3498
3499 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
3500
39b06c20
RO
35012017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3502
3503 PR build/22206
3504 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
3505 (adi_is_addr_mapped): Likewise.
3506 (PSR_ICC): Don't redefine.
3507 (PSR_IMPL): Likewise.
3508
6c3e20f1
TT
35092017-09-25 Tom Tromey <tom@tromey.com>
3510
3511 * regcache.c (regcache::dump): Use string_printf.
3512
b292235f
TT
35132017-09-25 Tom Tromey <tom@tromey.com>
3514
3515 * regcache.c (class regcache_invalidator): New.
3516 (struct register_to_invalidate): Remove.
3517 (make_cleanup_regcache_invalidate): Remove.
3518 (regcache::raw_write): Use regcache_invalidator.
3519
9ac86b52
TT
35202017-09-25 Tom Tromey <tom@tromey.com>
3521
3522 * spu-tdep.c (spu2ppu_sniffer): Update.
3523 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
3524 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
3525 Remove.
3526 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
3527 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
3528 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
3529 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
3530 (frame_pop): Update.
3531
c0e383c6
TT
35322017-09-25 Tom Tromey <tom@tromey.com>
3533
3534 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
3535 * regcache.h (regcache_xfree): Don't declare.
3536 * regcache.c (regcache_xfree): Remove.
3537 (do_regcache_xfree): Use delete.
3538 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
3539 * linux-fork.c (free_fork): Use delete.
3540 (fork_save_infrun_state): Likewise.
3541 * jit.c (jit_dealloc_cache): Use delete.
3542 * infrun.c (discard_infcall_suspend_state): Use delete.
3543
791199cc
TT
35442017-09-25 Tom Tromey <tom@tromey.com>
3545
3546 * regcache.h (regcache_xmalloc): Don't declare.
3547 (regcache_raw_set_cached_value): Update comment.
3548 * regcache.c (regcache_xmalloc): Remove.
3549 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
3550 * jit.c (jit_frame_sniffer): Use new.
3551 * frame.c (frame_save_as_regcache): Use new.
3552
289e23aa
AA
35532017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3554
3555 * NEWS: Advertise support for guarded-storage registers on IBM z.
3556
1b63490c
AA
35572017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3558
3559 * s390-linux-nat.c (have_regset_gs): New static variable.
3560 (s390_linux_fetch_inferior_registers): Handle guarded-storage
3561 control block and guarded-storage broadcast control regsets.
3562 (s390_read_description): Detect whether the target has
3563 guarded-storage support, return appropriate tdesc.
3564 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
3565 (features/s390x-gs-linux64.c): Likewise.
3566 (struct gdbarch_tdep) <have_gs>: New field.
3567 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
3568 (s390_gsbc_regset): New variables.
3569 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
3570 and s390_gsbc_regset, if applicable.
3571 (s390_core_read_description): Check whether core file was from a
3572 target with guarded-storage support; include appropriate regsets.
3573 (s390_gdbarch_init): Add registers for guarded-storage support.
3574 (_initialize_s390_tdep): Initialize new target descriptions that
3575 include registers for guarded-storage support.
3576 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
3577 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
3578 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
3579 (S390_NUM_REGS): Adjust macro definition.
3580 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
3581 (tdesc_s390x_gs_linux64): New declarations.
3582
96235dc1
AA
35832017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3584
3585 * features/s390-gs-linux64.xml: New file.
3586 * features/s390-gs.xml: New file.
3587 * features/s390-gsbc.xml: New file.
3588 * features/s390x-gs-linux64.xml: New file.
3589 * features/Makefile (WHICH): Add s390-gs-linux64 and
3590 s390x-gs-linux64.
3591 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
3592 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
3593 * features/s390-gs-linux64.c: New generated file.
3594 * features/s390x-gs-linux64.c: New file.
3595 * regformats/s390-gs-linux64.dat: New file.
3596 * regformats/s390x-gs-linux64.dat: New file.
3597
b4a7c699
TT
35982017-09-23 Tom Tromey <tom@tromey.com>
3599
3600 * defs.h (make_cleanup_override_quit_handler): Don't declare.
3601
c2f97536
TT
36022017-09-22 Tom Tromey <tom@tromey.com>
3603
3604 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
3605 type to scoped_restore_tmpl.
3606 <scoped_input_handler>: Initialize m_quit_handler directly.
3607
43573013
SDJ
36082017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3609
3610 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
3611 (cd_command): Likewise. Free "current_directory" before
3612 assigning to it.
3613 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
3614 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
3615 * top.c (gdb_dirbuf): Remove global declaration.
3616 * top.h (gdb_dirbuf): Likewise.
3617
6ec2e0f5
SDJ
36182017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3619
3620 * gnulib/aclocal.m4: Regenerate.
3621 * gnulib/config.in: Regenerate.
3622 * gnulib/configure: Regenerate.
3623 * gnulib/import/Makefile.am: Regenerate.
3624 * gnulib/import/Makefile.in: Regenerate.
3625 * gnulib/import/assure.h: New file.
3626 * gnulib/import/at-func.c: Likewise
3627 * gnulib/import/chdir-long.c: New file.
3628 * gnulib/import/chdir-long.h: New file.
3629 * gnulib/import/cloexec.c: New file.
3630 * gnulib/import/cloexec.h: New file.
3631 * gnulib/import/close.c: New file.
3632 * gnulib/import/closedir.c: New file.
3633 * gnulib/import/dirent-private.h: New file.
3634 * gnulib/import/dup-safer.c: New file.
3635 * gnulib/import/dup.c: New file.
3636 * gnulib/import/dup2.c: New file.
3637 * gnulib/import/error.c: New file.
3638 * gnulib/import/error.h: New file.
3639 * gnulib/import/exitfail.c: New file.
3640 * gnulib/import/exitfail.h: New file.
3641 * gnulib/import/fchdir.c: New file.
3642 * gnulib/import/fcntl.c: New file.
3643 * gnulib/import/fcntl.in.h: New file.
3644 * gnulib/import/fd-hook.c: New file.
3645 * gnulib/import/fd-hook.h: New file.
3646 * gnulib/import/fd-safer.c: New file.
3647 * gnulib/import/fdopendir.c: New file.
3648 * gnulib/import/filename.h: New file.
3649 * gnulib/import/filenamecat-lgpl.c: New file.
3650 * gnulib/import/filenamecat.h: New file.
3651 * gnulib/import/fstat.c: New file.
3652 * gnulib/import/fstatat.c: New file.
3653 * gnulib/import/getcwd-lgpl.c: New file.
3654 * gnulib/import/getcwd.c: New file.
3655 * gnulib/import/getdtablesize.c: New file.
3656 * gnulib/import/getlogin_r.c: New file.
3657 * gnulib/import/getprogname.c: New file.
3658 * gnulib/import/getprogname.h: New file.
3659 * gnulib/import/gettext.h: New file.
3660 * gnulib/import/glob-libc.h: New file.
3661 * gnulib/import/glob.c: New file.
3662 * gnulib/import/glob.in.h: New file.
3663 * gnulib/import/intprops.h: New file.
3664 * gnulib/import/m4/chdir-long.m4: New file.
3665 * gnulib/import/m4/close.m4: New file.
3666 * gnulib/import/m4/closedir.m4: New file.
3667 * gnulib/import/m4/d-ino.m4: New file.
3668 * gnulib/import/m4/d-type.m4: New file.
3669 * gnulib/import/m4/dup.m4: New file.
3670 * gnulib/import/m4/dup2.m4: New file.
3671 * gnulib/import/m4/error.m4: New file.
3672 * gnulib/import/m4/fchdir.m4: New file.
3673 * gnulib/import/m4/fcntl.m4: New file.
3674 * gnulib/import/m4/fcntl_h.m4: New file.
3675 * gnulib/import/m4/fdopendir.m4: New file.
3676 * gnulib/import/m4/filenamecat.m4: New file.
3677 * gnulib/import/m4/fstat.m4: New file.
3678 * gnulib/import/m4/fstatat.m4: New file.
3679 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
3680 * gnulib/import/m4/getcwd-path-max.m4: New file.
3681 * gnulib/import/m4/getcwd.m4: New file.
3682 * gnulib/import/m4/getdtablesize.m4: New file.
3683 * gnulib/import/m4/getlogin_r.m4: New file.
3684 * gnulib/import/m4/getprogname.m4: New file.
3685 * gnulib/import/m4/glob.m4: New file.
3686 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3687 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3688 * gnulib/import/m4/mempcpy.m4: New file.
3689 * gnulib/import/m4/memrchr.m4: New file.
3690 * gnulib/import/m4/mode_t.m4: New file.
3691 * gnulib/import/m4/msvc-inval.m4: New file.
3692 * gnulib/import/m4/msvc-nothrow.m4: New file.
3693 * gnulib/import/m4/open.m4: New file.
3694 * gnulib/import/m4/openat.m4: New file.
3695 * gnulib/import/m4/opendir.m4: New file.
3696 * gnulib/import/m4/readdir.m4: New file.
3697 * gnulib/import/m4/realloc.m4: New file.
3698 * gnulib/import/m4/rewinddir.m4: New file.
3699 * gnulib/import/m4/save-cwd.m4: New file.
3700 * gnulib/import/m4/strdup.m4: New file.
3701 * gnulib/import/m4/strerror.m4: New file.
3702 * gnulib/import/m4/unistd-safer.m4: New file.
3703 * gnulib/import/mempcpy.c: New file.
3704 * gnulib/import/memrchr.c: New file.
3705 * gnulib/import/msvc-inval.c: New file.
3706 * gnulib/import/msvc-inval.h: New file.
3707 * gnulib/import/msvc-nothrow.c: New file.
3708 * gnulib/import/msvc-nothrow.h: New file.
3709 * gnulib/import/open.c: New file.
3710 * gnulib/import/openat-die.c: New file.
3711 * gnulib/import/openat-priv.h: New file.
3712 * gnulib/import/openat-proc.c: New file.
3713 * gnulib/import/openat.c: New file.
3714 * gnulib/import/openat.h: New file.
3715 * gnulib/import/opendir.c: New file.
3716 * gnulib/import/pipe-safer.c: New file.
3717 * gnulib/import/readdir.c: New file.
3718 * gnulib/import/realloc.c: New file.
3719 * gnulib/import/rewinddir.c: New file.
3720 * gnulib/import/save-cwd.c: New file.
3721 * gnulib/import/save-cwd.h: New file.
3722 * gnulib/import/strdup.c: New file.
3723 * gnulib/import/strerror-override.c: New file.
3724 * gnulib/import/strerror-override.h: New file.
3725 * gnulib/import/strerror.c: New file.
3726 * gnulib/import/unistd--.h: New file.
3727 * gnulib/import/unistd-safer.h: New file.
3728 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3729 "getcwd" and "glob".
3730 * ser-tcp.c: Undefine "close" before redefining it.
3731
432ae719
SM
37322017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3733
3734 * guile/scm-value.c (gdbscm_value_address): Initialize address,
3735 get rid of res_val.
3736
4fa7574e
RO
37372017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3738
3739 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
3740 <sol2,sparc>: Likewise.
3741 <sol2-64,i386>: Likewise.
3742
3743 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
3744 -Wdeprecated-declarations on *-*-solaris*.
3745 * configure: Regenerate.
3746
3747 * procfs.c: Include "nat/inferior.h".
3748 (procfs_info_proc): Fix typo.
3749
f6327dcb
KB
37502017-09-21 Kevin Buettner <kevinb@redhat.com>
3751
3752 * remote.c (vector): Include.
3753 (struct private_thread_info): Add field, thread_handle.
3754 (free_private_thread_info): Deallocate storage associated with
3755 thread handle.
3756 (get_private_info_thread): Initialize `thread_handle' field.
3757 (struct thread_item): Add field, thread_handle.
3758 (clear_threads_listing_context): Deallocate storage associated
3759 with thread handle.
3760 (start_thread): Add support for "handle" attribute.
3761 (thread_attributes): Add "handle".
3762 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3763 field.
3764 (remote_update_thread_list): Update thread_handle.
3765 (remote_thread_handle_to_thread_info): New function.
3766 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3767
fbbe5337
KB
37682017-09-21 Kevin Buettner <kevinb@redhat.com>
3769
3770 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3771 function.
3772 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3773 * python/python-internal.h (thread_object_type): Declare.
3774
e04ee09e
KB
37752017-09-21 Kevin Buettner <kevinb@redhat.com>
3776
3777 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3778 (target_thread_handle_to_thread_info): Declare.
3779 * target.c (target_thread_handle_to_thread_info): New function.
3780 * target-delegates.c: Regenerate.
3781 * gdbthread.h (find_thread_by_handle): Declare.
3782 * thread.c (find_thread_by_handle): New function.
3783 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3784 function.
3785 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3786
1e5b66ed
SM
37872017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3788
3789 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3790
ebe48ba0
SM
37912017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3792
3793 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3794
0a0bf5dc
YQ
37952017-09-21 Yao Qi <yao.qi@linaro.org>
3796
3797 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3798 to gdb_target_obs.
3799
d1b0a7bf
TT
38002017-09-20 Tom Tromey <tom@tromey.com>
3801
3802 * breakpoint.c (struct counted_command_line): Remove.
3803 (breakpoint_commands): Update.
3804 (alloc_counted_command_line, incref_counted_command_line)
3805 (decref_counted_command_line, do_cleanup_counted_command_line)
3806 (make_cleanup_decref_counted_command_line): Remove.
3807 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3808 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3809 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3810 (save_breakpoints): Update.
3811 * breakpoint.h (counted_command_line): Now a typedef to
3812 shared_ptr.
3813 (struct breakpoint) <commands>: Now a counted_command_line.
3814 (struct bpstats) <command>: Likewise.
3815
48649e1b
TT
38162017-09-20 Tom Tromey <tom@tromey.com>
3817
3818 * breakpoint.c (struct commands_info, do_map_commands_command):
3819 Remove.
3820 (commands_command_1): Update.
3821 (iterate_over_related_breakpoints): Take a function_view.
3822 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3823 (delete_command): Update.
3824 (map_breakpoint_numbers): Take a function_view.
3825 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3826 (disable_command): Update.
3827 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3828 (enable_command): Update.
3829 (struct disp_data, do_enable_breakpoint_disp)
3830 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3831 (do_map_enable_delete_breakpoint): Remove.
3832 (enable_once_command, enable_count_command, enable_delete_command)
3833 (delete_trace_variable_command): Update.
3834
04afa70c
TT
38352017-09-20 Tom Tromey <tom@tromey.com>
3836
3837 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3838 (bpstat_clear): Use delete.
3839 (bpstats): New constructors.
3840 (bpstat_copy, bpstat_stop_status): Use new.
3841 (dprintf_after_condition_true): Update.
3842 * breakpoint.h (bpstats::bpstats): Add constructors.
3843 (bpstats::~bpstats): Add destructor.
3844
c83833f4
PA
38452017-09-20 Pedro Alves <palves@redhat.com>
3846
3847 * eval.c (make_params): Delete, refactored as ...
3848 (class fake_method): ... this new type's ctor.
3849 (fake_method::~fake_method): New.
3850 (evaluate_subexp_standard): Use 'fake_method'.
3851
223ffa71
TT
38522017-09-20 Tom Tromey <tom@tromey.com>
3853
3854 * windows-nat.c (get_windows_debug_event, windows_wait)
3855 (do_initial_windows_stuff, windows_attach): Update.
3856 * utils.c (vwarning, internal_vproblem): Update.
3857 (ui_unregister_input_event_handler_cleanup)
3858 (prepare_to_handle_input): Remove.
3859 (class scoped_input_handler): New.
3860 (defaulted_query, prompt_for_continue): Update.
3861 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3862 Update.
3863 * top.c (undo_terminal_modifications_before_exit): Update.
3864 * target/target.h (target_terminal_init, target_terminal_inferior)
3865 (target_terminal_ours): Don't declare.
3866 (class target_terminal): New.
3867 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3868 (target_terminal_ours_for_output)
3869 (make_cleanup_restore_target_terminal): Don't declare.
3870 (target_terminal_info): Remove.
3871 * target.c (enum terminal_state, terminal_state): Remove.
3872 (target_terminal::terminal_state): Define.
3873 (target_terminal::init): Rename from target_terminal_init.
3874 (target_terminal::inferior): Rename from
3875 target_terminal_inferior.
3876 (target_terminal::ours): Rename from target_terminal_ours.
3877 (target_terminal::ours_for_output): Rename from
3878 target_terminal_ours_for_output.
3879 (target_terminal::info): New method.
3880 (cleanup_restore_target_terminal)
3881 (make_cleanup_restore_target_terminal): Remove.
3882 * solib.c (handle_solib_event): Update.
3883 * remote.c (remote_serial_quit_handler): Update.
3884 (remote_terminal_inferior, remote_wait_as): Update.
3885 * record-full.c (record_full_wait_1): Update.
3886 * nto-procfs.c (procfs_create_inferior): Update.
3887 * nat/fork-inferior.c (startup_inferior): Update.
3888 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3889 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3890 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3891 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3892 (mi_breakpoint_created, mi_breakpoint_deleted)
3893 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3894 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3895 (mi_user_selected_context_changed, report_initial_inferior):
3896 Update.
3897 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3898 (linux_nat_terminal_inferior): Update.
3899 * infrun.c (follow_fork_inferior)
3900 (handle_vfork_child_exec_or_exit, do_target_resume)
3901 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3902 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3903 Update.
3904 * inflow.c (child_terminal_init, info_terminal_command): Update.
3905 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3906 (attach_command): Update.
3907 * infcall.c (call_thread_fsm_should_stop): Update.
3908 * gnu-nat.c (gnu_attach): Update.
3909 * extension.c (struct active_ext_lang_state)
3910 (restore_active_ext_lang): Update.
3911 * exceptions.c (print_flush): Update.
3912 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3913 (struct quit_handler_cleanup_data, restore_quit_handler)
3914 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3915 Remove.
3916 * cp-support.c (gdb_demangle): Update.
3917 * breakpoint.c (update_inserted_breakpoint_locations)
3918 (insert_breakpoint_locations, handle_jit_event)
3919 (disable_breakpoints_in_unloaded_shlib): Update.
3920 * annotate.c (annotate_breakpoints_invalid)
3921 (annotate_frames_invalid): Update.
3922
013af3fc
TT
39232017-09-20 Tom Tromey <tom@tromey.com>
3924
3925 * main.c (catch_command_errors): Rename from
3926 catch_command_errors_const.
3927 (captured_main_1): Update.
3928
06871ae8
PA
39292017-09-20 Pedro Alves <palves@redhat.com>
3930
3931 * cli/cli-cmds.c (list_command): Use print_sal_location.
3932 (print_sal_location): New function.
3933 (ambiguous_line_spec): Use print_sal_location.
3934 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3935 * symtab.c (find_function_start_sal): Likewise.
3936 * symtab.h (symtab_and_line::symbol): New field.
3937
e5f25bc5
PA
39382017-09-20 Pedro Alves <palves@redhat.com>
3939
3940 * linespec.c (minsym_found): Handle non-text minsyms.
3941 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3942
1b7fa39e
WT
39432017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3944
3945 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3946 backslash.
3947
37dd0825
WT
39482017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3949
3950 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3951 vmovups instead vmovaps.
3952 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3953
4e5a4f58
JB
39542017-09-19 John Baldwin <jhb@FreeBSD.org>
3955
3956 * NEWS (Changes since GDB 8.0): Add starti.
3957 * infcmd.c (enum run_break): New.
3958 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3959 case.
3960 (run_command): Use enum run_how.
3961 (start_command): Likewise.
3962 (starti_command): New function.
3963 (RUN_ARGS_HELP): New macro.
3964 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3965 commands. Add starti command.
3966
aa70c9f1
YQ
39672017-09-19 Yao Qi <yao.qi@linaro.org>
3968
3969 * Makefile.in (monitor.o): Remove the rule.
3970
d6541620
YQ
39712017-09-19 Yao Qi <yao.qi@linaro.org>
3972
3973 * annotate.h (struct annotate_arg_emitter): Use
3974 DISABLE_COPY_AND_ASSIGN.
3975 * common/refcounted-object.h (refcounted_object): Likewise.
3976 * completer.h (struct completion_result): Likewise.
3977 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3978 * filename-seen-cache.h (filename_seen_cache): Likewise.
3979 * gdbcore.h (thread_section_name): Likewise.
3980 * gdb_regex.h (compiled_regex): Likewise.
3981 * gdbthread.h (scoped_restore_current_thread): Likewise.
3982 * inferior.h (scoped_restore_current_inferior): Likewise.
3983 * jit.c (jit_reader): Likewise.
3984 * linespec.h (struct linespec_result): Likewise.
3985 * mi/mi-parse.h (struct mi_parse): Likewise.
3986 * nat/fork-inferior.c (execv_argv): Likewise.
3987 * progspace.h (scoped_restore_current_program_space): Likewise.
3988 * python/python-internal.h (class gdbpy_enter): Likewise.
3989 * regcache.h (regcache): Likewise.
3990 * target-descriptions.c (struct tdesc_reg): Likewise.
3991 (struct tdesc_type): Likewise.
3992 (struct tdesc_feature): Likewise.
3993 * ui-out.h (ui_out_emit_type): Likewise.
3994
0615127c
SM
39952017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3996
3997 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3998 label abort_expression.
3999
5e187554
SM
40002017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4001
4002 * common/buffer.c (buffer_xml_printf): Adjust.
4003 * common/xml-utils.c (xml_escape_text): Change return type to
4004 std::string, update code accordingly.
4005 * common/xml-utils.h (xml_escape_text): Change return type to
4006 std::string.
4007 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
4008 * windows-tdep.c (windows_xfer_shared_library): Adjust.
4009 * unittests/xml-utils-selftests.c (test_xml_escape_text):
4010 Adjust.
4011
c3d7b541
SM
40122017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4013
4014 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
4015 (SUBDIR_UNITTESTS_OBS): Add new object file.
4016 * unittests/xml-utils-selftests.c: New file.
4017
1526853e
SM
40182017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4019
4020 * common/selftest.h (selftest): New struct/interface.
4021 (register_test): Add name parameter, add new overload.
4022 (run_tests): Add filter parameter.
4023 (for_each_selftest_ftype): New typedef.
4024 (for_each_selftest): New declaration.
4025 * common/selftest.c (tests): Change type to
4026 map<string, unique_ptr<selftest>>.
4027 (simple_selftest): New struct.
4028 (register_test): New function.
4029 (register_test): Add name parameter and use it.
4030 (run_tests): Add filter parameter and use it. Add prints.
4031 Adjust to vector -> map change.
4032 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
4033 registering selftests.
4034 * arm-tdep.c (_initialize_arm_tdep): Likewise.
4035 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
4036 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
4037 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
4038 * findvar.c (_initialize_findvar): Likewise.
4039 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
4040 * maint.c (maintenance_selftest): Update call to run_tests.
4041 (maintenance_info_selftests): New function.
4042 (_initialize_maint_cmds): Register "maintenance info selftests"
4043 command. Update "maintenance selftest" doc.
4044 * regcache.c (_initialize_regcache): Add names when registering
4045 selftests.
4046 * rust-exp.y (_initialize_rust_exp): Likewise.
4047 * selftest-arch.c (gdbarch_selftest): New struct.
4048 (gdbarch_tests): Remove.
4049 (register_test_foreach_arch): Add name parameter. Call
4050 register_test.
4051 (tests_with_arch): Remove, move most content to
4052 gdbarch_selftest::operator().
4053 (_initialize_selftests_foreach_arch): Remove.
4054 * selftest-arch.h (register_test_foreach_arch): Add name
4055 parameter.
4056 (run_tests_with_arch): New declaration.
4057 * utils-selftests.c (_initialize_utils_selftests): Add names
4058 when registering selftests.
4059 * utils.c (_initialize_utils): Likewise.
4060 * unittests/array-view-selftests.c
4061 (_initialize_array_view_selftests): Likewise.
4062 * unittests/environ-selftests.c (_initialize_environ_selftests):
4063 Likewise.
4064 * unittests/function-view-selftests.c
4065 (_initialize_function_view_selftests): Likewise.
4066 * unittests/offset-type-selftests.c
4067 (_initialize_offset_type_selftests): Likewise.
4068 * unittests/optional-selftests.c
4069 (_initialize_optional_selftests): Likewise.
4070 * unittests/scoped_restore-selftests.c
4071 (_initialize_scoped_restore_selftests): Likewise.
4072 * NEWS: Document "maintenance selftest" and "maint info
4073 selftests".
4074
5846367a
SM
40752017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4076
4077 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
4078 scoped_restore.
4079
bd77e8ff
SM
40802017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4081
4082 * mi/mi-main.c (mi_load_progress): Make uiout variable
4083 a unique_ptr.
4084
26a67918
PA
40852017-09-15 Pedro Alves <palves@redhat.com>
4086
4087 * compile/compile-c-types.c (convert_enum, convert_int)
4088 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
4089
3f8a7804
SM
40902017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4091
4092 * dwarf2read.c (copy_string): Remove.
4093 (parse_macro_definition): Replace copy_string with savestring.
4094
8d200706
YQ
40952017-09-15 Yao Qi <yao.qi@linaro.org>
4096
4097 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
4098 gdb_target_obs.
4099 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
4100 Likewise.
4101 (i[34567]86-*-linux*): Likewise.
4102
d185219d
SM
41032017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4104
4105 * dwarf2expr.h (dwarf_stack_value): Add constructor.
4106 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
4107 <stack>: Change type to std::vector.
4108 <stack_len, stack_allocated>: Remove.
4109 <grow_stack>: Remove.
4110 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4111 (dwarf_expr_context::~dwarf_expr_context): Remove.
4112 (dwarf_expr_context::grow_stack): Remove.
4113 (dwarf_expr_context::push): Adjust.
4114 (dwarf_expr_context::pop): Adjust.
4115 (dwarf_expr_context::fetch): Adjust.
4116 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
4117 (dwarf_expr_context::stack_empty_p): Adjust.
4118 (dwarf_expr_context::execute_stack_op): Adjust.
4119
eccd80d6
SM
41202017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4121
4122 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
4123 return type to bool.
4124 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
4125
69009882
SM
41262017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4127
4128 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
4129 Change type to bool.
4130 (dwarf_stack_value) <in_stack_memory>: Likewise.
4131 (dwarf_expr_context) <push_address>: Change parameter type to
4132 bool.
4133 <fetch_in_stack_memory>: Change return type to bool.
4134 <push>: Change parameter type to bool.
4135 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
4136 to bool.
4137 (dwarf_expr_context::push_address): Likewise.
4138 (dwarf_expr_context::fetch_in_stack_memory): Change return type
4139 to bool.
4140 (dwarf_expr_context::execute_stack_op): Adjust.
4141 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
4142
1e467161
SM
41432017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4144
4145 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
4146 (struct dwarf_expr_context) <n_pieces>: Remove.
4147 <pieces>: Change type to std::vector.
4148 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4149 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
4150 pieces.
4151 (dwarf_expr_context::add_piece): Adjust.
4152 * dwarf2loc.c (struct piece_closure): Initialize fields.
4153 <n_pieces>: Remove.
4154 <pieces>: Change type to std::vector.
4155 (allocate_piece_closure): Adjust, change parameter to
4156 std::vector rvalue and std::move it to piece_closure.
4157 (rw_pieced_value): Adjust.
4158 (check_pieced_synthetic_pointer): Adjust.
4159 (indirect_synthetic_pointer): Adjust.
4160 (coerce_pieced_ref): Adjust.
4161 (free_pieced_value_closure): Adjust. Use delete to free
4162 piece_closure.
4163 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
4164 to allocate_piece_closure.
4165 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
4166
0782db84
SM
41672017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4168
4169 * probe.h (probe_ops_cp): Remove typedef.
4170 (DEF_VEC_P (probe_ops_cp)): Remove.
4171 (all_probe_ops): Change type to std::vector.
4172 * probe.c (info_probes_for_ops): Adjust to vector change.
4173 (probe_linespec_to_ops): Likewise.
4174 (all_probe_ops): Change type to std::vector.
4175 (_initialize_probe): Adjust to vector change.
4176 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
4177 * elfread.c (elf_get_probes): Likewise.
4178 * stap-probe.c (_initialize_stap_probe): Likewise.
4179
1eac6bea
SM
41802017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4181
4182 * probe.h (struct bound_probe): Define constructors.
4183 * probe.c (bound_probe_s): Remove typedef.
4184 (DEF_VEC_O (bound_probe_s)): Remove VEC.
4185 (collect_probes): Change return type to std::vector, remove
4186 cleanup.
4187 (compare_probes): Return bool, change parameter type. Change
4188 semantic to "less than".
4189 (gen_ui_out_table_header_info): Change parameter to std::vector
4190 and update.
4191 (exists_probe_with_pops): Likewise.
4192 (info_probes_for_ops): Update to std::vector change.
4193 (enable_probes_command): Likewise.
4194 (disable_probes_command): Likewise.
4195
aaa63a31
SM
41962017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4197
4198 * probe.h (struct probe_ops) <get_probes>: Change parameter from
4199 vec to std::vector.
4200 * probe.c (parse_probes_in_pspace): Update.
4201 (find_probes_in_objfile): Update.
4202 (find_probe_by_pc): Update.
4203 (collect_probes): Update.
4204 (probe_any_get_probes): Update.
4205 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
4206 return type to reference to std::vector.
4207 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
4208 std::vector and update.
4209 (dtrace_process_dof): Likewise.
4210 (dtrace_get_probes): Likewise.
4211 * elfread.c (elf_get_probes): Change return type to std::vector,
4212 store an std::vector in bfd_data.
4213 (probe_key_free): Update to std::vector.
4214 * stap-probe.c (handle_stap_probe): Change parameter to
4215 std::vector and update.
4216 (stap_get_probes): Likewise.
4217 * symfile-debug.c (debug_sym_get_probes): Change return type to
4218 std::vector and update.
4219
cb85b21b
TT
42202017-09-11 Tom Tromey <tom@tromey.com>
4221
4222 * breakpoint.c (program_breakpoint_here_p): Update.
4223 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
4224 from make_show_memory_breakpoints_cleanup. Return a
4225 scoped_restore_tmpl<int>.
4226 (restore_show_memory_breakpoints): Remove.
4227 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
4228 * mem-break.c (memory_validate_breakpoint): Update.
4229 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
4230 (ia64_memory_remove_breakpoint): Update.
4231 (ia64_breakpoint_from_pc): Update.
4232 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
4233 from make_show_memory_breakpoints_cleanup.
4234
8fbc99ef
TT
42352017-09-11 Tom Tromey <tom@tromey.com>
4236
4237 * d-namespace.c (d_lookup_symbol): Use std::string.
4238 (find_symbol_in_baseclass): Likewise.
4239
50feb4bd
TT
42402017-09-11 Tom Tromey <tom@tromey.com>
4241
4242 * ctf.c (ctf_start): Use std::string.
4243
c6dc63a1
TT
42442017-09-11 Tom Tromey <tom@tromey.com>
4245
4246 * ada-lang.c (is_known_support_routine): Update.
4247 (ada_unhandled_exception_name_addr_from_raise): Update.
4248 * guile/scm-frame.c (gdbscm_frame_name): Update.
4249 * python/py-frame.c (frapy_name): Update.
4250 (frapy_function): Update.
4251 * stack.h (find_frame_funname): Update.
4252 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
4253 (print_frame): Update.
4254
d6b9b80f
TT
42552017-09-11 Tom Tromey <tom@tromey.com>
4256
4257 * findcmd.c (put_bits): Take a gdb::byte_vector.
4258 (parse_find_args): Return gdb::byte_vector. "args" now const.
4259 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
4260 cleanups.
4261 (find_command): Update.
4262
a9921622
TT
42632017-09-11 Tom Tromey <tom@tromey.com>
4264
4265 * cli/cli-script.c (class scoped_restore_hook_in): New.
4266 (clear_hook_in_cleanup): Remove.
4267 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
4268 scoped_restore_hook_in.
4269
be0d7abb
TT
42702017-09-11 Tom Tromey <tom@tromey.com>
4271
4272 * cli/cli-script.c (restore_interp): Remove.
4273 (read_command_lines): Use scoped_restore_interp.
4274 * interps.c (scoped_restore_interp::set_temp): Rename from
4275 interp_set_temp.
4276 * interps.h (class scoped_restore_interp): New.
4277 (interp_set_temp): Remove.
4278
00f675ff
TT
42792017-09-11 Tom Tromey <tom@tromey.com>
4280
4281 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
4282 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
4283 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
4284 scoped_restore.
4285 (mi_cmd_break_insert_1): Update.
4286 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
4287 scoped_restore.
4288
cb791d59
TT
42892017-09-11 Tom Tromey <tom@tromey.com>
4290
4291 * demangle.c (demangle_command): Update.
4292 * breakpoint.c (disable_command): Update.
4293 (enable_command): Update.
4294 (find_location_by_number): Make "number" const. Use
4295 get_number_trailer.
4296 * cli/cli-utils.c (extract_arg): Return std::string.
4297 * probe.c (parse_probe_linespec): Update. Change types.
4298 (collect_probes): Take string arguments.
4299 (parse_probe_linespec): Likewise.
4300 (info_probes_for_ops): Update.
4301 (enable_probes_command): Update.
4302 (disable_probes_command): Update.
4303 * break-catch-sig.c (catch_signal_split_args): Update.
4304 * mi/mi-parse.c (mi_parse): Update.
4305
2039bd9f
TT
43062017-09-11 Tom Tromey <tom@tromey.com>
4307
4308 * language.h (language_enum): Make argument const.
4309 * language.c (language_enum): Make argument const.
4310
f1735a53
TT
43112017-09-11 Tom Tromey <tom@tromey.com>
4312
4313 * common/common-utils.h (skip_to_space): Remove macro, redeclare
4314 as function.
4315 (skip_to_space): Rename from skip_to_space_const.
4316 * common/common-utils.c (skip_to_space): New function.
4317 (skip_to_space): Rename from skip_to_space_const.
4318 * cli/cli-utils.h (get_number): Rename from get_number_const.
4319 (extract_arg): Rename from extract_arg_const.
4320 * cli/cli-utils.c (get_number): Rename from get_number_const.
4321 (extract_arg): Rename from extract_arg_const.
4322 (number_or_range_parser::get_number): Use ::get_number.
4323 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
4324 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
4325 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
4326 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
4327 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
4328 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
4329 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
4330 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
4331
7d221d74
TT
43322017-09-11 Tom Tromey <tom@tromey.com>
4333
4334 * python/python.c (do_start_initialization): Use
4335 py-event-types.def to initialize types.
4336 Define all object type structures.
4337 * python/python-internal.h: Don't declare event initialization
4338 functions.
4339 * python/py-threadevent.c (thread_event_object_type): Don't
4340 define.
4341 * python/py-stopevent.c (stop_event_object_type): Don't define.
4342 * python/py-signalevent.c (signal_event_object_type): Don't
4343 declare or define.
4344 * python/py-newobjfileevent.c (new_objfile_event_object_type)
4345 (clear_objfiles_event_object_type): Don't declare or define.
4346 * python/py-infevents.c (inferior_call_pre_event_object_type)
4347 (inferior_call_post_event_object_type)
4348 (register_changed_event_object_type)
4349 (memory_changed_event_object_type): Don't declare or define.
4350 * python/py-inferior.c (new_thread_event_object_type)
4351 (new_inferior_event_object_type)
4352 (inferior_deleted_event_object_type): Don't declare or define.
4353 * python/py-exitedevent.c (exited_event_object_type): Don't
4354 declare or define.
4355 * python/py-evts.c (gdbpy_initialize_py_events): Use
4356 py-all-events.def.
4357 * python/py-events.h (thread_event_object_type): Don't declare.
4358 (events_object): Use py-all-events.def.
4359 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
4360 py-event-types.def.
4361 * python/py-event-types.def: New file.
4362 * python/py-continueevent.c (create_continue_event_object): Don't
4363 declare or define.
4364 * python/py-bpevent.c (breakpoint_event_object_type): Don't
4365 declare or define.
4366 * python/py-all-events.def: New file.
4367
35c61a1d
TT
43682017-09-11 Tom Tromey <tom@tromey.com>
4369
4370 * python/py-threadevent.c (create_thread_event_object): Return
4371 gdbpy_ref.
4372 * python/py-stopevent.h (create_stop_event_object)
4373 (create_breakpoint_event_object, create_signal_event_object):
4374 Update.
4375 * python/py-stopevent.c (create_stop_event_object): Return
4376 gdbpy_ref.
4377 (emit_stop_event): Update.
4378 * python/py-signalevent.c (create_signal_event_object): Return
4379 gdbpy_ref.
4380 * python/py-infevents.c (create_inferior_call_event_object):
4381 Update.
4382 * python/py-event.h (create_event_object)
4383 (create_thread_event_object): Update.
4384 * python/py-event.c (create_event_object): Return gdbpy_ref.
4385 * python/py-continueevent.c: Return gdbpy_ref.
4386 * python/py-bpevent.c (create_breakpoint_event_object): Return
4387 gdbpy_ref.
4388
7c96f8c1
TT
43892017-09-11 Tom Tromey <tom@tromey.com>
4390
4391 PR python/15622:
4392 * NEWS: Add entry.
4393 * python/python.c (do_start_initialization): Initialize new event
4394 types.
4395 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
4396 (gdbpy_initialize_inferior_deleted_event)
4397 (gdbpy_initialize_new_thread_event): Declare.
4398 * python/py-threadevent.c (create_thread_event_object): Add option
4399 "thread" parameter.
4400 * python/py-inferior.c (new_thread_event_object_type)
4401 (new_inferior_event_object_type)
4402 (inferior_deleted_event_object_type): Declare.
4403 (python_new_inferior, python_inferior_deleted): New functions.
4404 (add_thread_object): Emit new_thread event.
4405 (gdbpy_initialize_inferior): Attach new functions to corresponding
4406 observers.
4407 (new_thread, new_inferior, inferior_deleted): Define new event
4408 types.
4409 * python/py-evts.c (gdbpy_initialize_py_events): Add new
4410 registries.
4411 * python/py-events.h (events_object) <new_inferior,
4412 inferior_deleted, new_thread>: New fields.
4413 * python/py-event.h (create_thread_event_breakpoint): Add optional
4414 "thread" parameter.
4415
72542b8e
AB
44162017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
4417
4418 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
4419 check current_ui instead.
4420 (internal_vproblem): Likewise.
4421
0d64823e
SM
44222017-09-09 Simon Marchi <simon.marchi@ericsson.com>
4423
4424 * thread.c (print_thread_info_1): Remove unnecessary calls to
4425 uiout->is_mi_like_p.
4426
eb1e02fd
TT
44272017-09-09 Tom Tromey <tom@tromey.com>
4428
4429 * namespace.h (add_using_directive): Update.
4430 * namespace.c (add_using_directive): Change type of excludes to
4431 std::vector.
4432 * dwarf2read.c (read_import_statement): Use std::vector.
4433 (read_namespace): Update.
4434 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4435
0fc21fd8
TT
44362017-09-09 Tom Tromey <tom@tromey.com>
4437
4438 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
4439
49663d05
TT
44402017-09-09 Tom Tromey <tom@tromey.com>
4441
4442 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
4443
0b868b60
TT
44442017-09-09 Tom Tromey <tom@tromey.com>
4445
4446 * stack.c (func_command): Use gdb::def_vector.
4447
c0470d48
TT
44482017-09-09 Tom Tromey <tom@tromey.com>
4449
4450 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
4451 ui_out_emit_list, ui_out_emit_tuple.
4452 (mi_cmd_var_update): Likewise.
4453
ca5909c7
TT
44542017-09-09 Tom Tromey <tom@tromey.com>
4455
4456 * mi/mi-interp.c (mi_user_selected_context_changed): Use
4457 ui_out_redirect_pop.
4458 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
4459 ui_out_redirect_pop.
4460 * utils.c (do_ui_out_redirect_pop)
4461 (make_cleanup_ui_out_redirect_pop): Remove.
4462 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
4463 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
4464 * ui-out.h (ui_out_redirect_pop): New class.
4465
e6a2252a
TT
44662017-09-09 Tom Tromey <tom@tromey.com>
4467
4468 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
4469 (list_available_thread_groups, mi_cmd_list_thread_groups)
4470 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
4471 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
4472 Likewise.
4473
393702cd
TT
44742017-09-09 Tom Tromey <tom@tromey.com>
4475
4476 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4477 ui_out_emit_tuple.
4478
76f9c9cf
TT
44792017-09-09 Tom Tromey <tom@tromey.com>
4480
4481 * target.c (flash_erase_command): Use ui_out_emit_tuple.
4482 * stack.c (print_frame): Use ui_out_emit_tuple.
4483 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
4484 (info_spu_mailbox_command, info_spu_dma_command)
4485 (info_spu_proxydma_command): Likewise.
4486 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
4487 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
4488 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
4489 ui_out_emit_tuple.
4490 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
4491
dc9fe180
TT
44922017-09-09 Tom Tromey <tom@tromey.com>
4493
4494 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
4495 (class ui_out_emit_table): Update comment.
4496 * ui-out.c (do_cleanup_table_end)
4497 (make_cleanup_ui_out_table_begin_end): Remove.
4498 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
4499 (info_spu_dma_cmdlist): Likewise.
4500 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
4501 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
4502 ui_out_emit_table.
4503
f8cc3da6
TT
45042017-09-09 Tom Tromey <tom@tromey.com>
4505
4506 * thread.c (print_thread_info_1): Use ui_out_emit_table,
4507 ui_out_emit_list, gdb::optional.
4508
481695ed
JB
45092017-09-09 John Baldwin <jhb@FreeBSD.org>
4510
4511 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
4512 prototype.
4513 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
4514 prototype.
4515 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
4516 prototype.
4517 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
4518 * ada-exp.y: Remove _initialize_ada_exp prototype.
4519 * ada-lang.c: Remove _initialize_ada_language prototype.
4520 * ada-tasks.c: Remove _initialize_tasks prototype.
4521 * addrmap.c: Remove _initialize_addrmap prototype.
4522 * agent.c: Remove _initialize_agent prototype.
4523 * aix-thread.c: Remove _initialize_aix_thread prototype.
4524 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
4525 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
4526 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
4527 prototype.
4528 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
4529 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
4530 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
4531 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
4532 prototype.
4533 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
4534 prototype.
4535 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
4536 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
4537 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
4538 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
4539 prototype.
4540 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
4541 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
4542 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
4543 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
4544 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4545 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
4546 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
4547 prototype.
4548 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
4549 prototype.
4550 * annotate.c: Remove _initialize_annotate prototype.
4551 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
4552 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
4553 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
4554 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
4555 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
4556 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
4557 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
4558 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
4559 prototype.
4560 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
4561 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
4562 * auto-load.c: Remove _initialize_auto_load prototype.
4563 * auxv.c: Remove _initialize_auxv prototype.
4564 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
4565 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
4566 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
4567 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
4568 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
4569 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
4570 prototype.
4571 * break-catch-throw.c: Remove _initialize_break_catch_throw
4572 prototype.
4573 * breakpoint.c: Remove _initialize_breakpoint prototype.
4574 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
4575 * btrace.c: Remove _initialize_btrace prototype.
4576 * charset.c: Remove _initialize_charset prototype.
4577 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
4578 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
4579 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
4580 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
4581 * cli/cli-script.c: Remove _initialize_cli_script prototype.
4582 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
4583 * coffread.c: Remove _initialize_coffread prototype.
4584 * compile/compile.c: Remove _initialize_compile prototype.
4585 * complaints.c: Remove _initialize_complaints prototype.
4586 * completer.c: Remove _initialize_completer prototype.
4587 * copying.awk: Remove _initialize_copying prototype.
4588 * copying.c: Regenerate.
4589 * core-regset.c: Remove _initialize_core_regset prototype.
4590 * corefile.c: Remove _initialize_core prototype.
4591 * corelow.c: Remove _initialize_corelow prototype.
4592 * cp-abi.c: Remove _initialize_cp_abi prototype.
4593 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
4594 * cp-support.c: Remove _initialize_cp_support prototype.
4595 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
4596 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
4597 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
4598 * ctf.c: Remove _initialize_ctf prototype.
4599 * d-lang.c: Remove _initialize_d_language prototype.
4600 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
4601 prototype.
4602 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
4603 * dbxread.c: Remove _initialize_dbxread prototype.
4604 * dcache.c: Remove _initialize_dcache prototype.
4605 * demangle.c: Remove _initialize_demangler prototype.
4606 * disasm-selftests.c: Remove _initialize_disasm_selftests
4607 prototype.
4608 * disasm.c: Remove _initialize_disasm prototype.
4609 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
4610 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
4611 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
4612 prototype.
4613 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
4614 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
4615 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
4616 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
4617 * elfread.c: Remove _initialize_elfread prototype.
4618 * exec.c: Remove _initialize_exec prototype.
4619 * extension.c: Remove _initialize_extension prototype.
4620 * f-lang.c: Remove _initialize_f_language prototype.
4621 * f-valprint.c: Remove _initialize_f_valprint prototype.
4622 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
4623 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
4624 * filesystem.c: Remove _initialize_filesystem prototype.
4625 * findcmd.c: Remove _initialize_mem_search prototype.
4626 * fork-child.c: Remove _initialize_fork_child prototype.
4627 * frame-base.c: Remove _initialize_frame_base prototype.
4628 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
4629 * frame.c: Remove _initialize_frame prototype.
4630 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
4631 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
4632 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
4633 * gcore.c: Remove _initialize_gcore prototype.
4634 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
4635 * gdbarch.c: Regenerate.
4636 * gdbarch.sh: Remove _initialize_gdbarch prototype.
4637 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
4638 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
4639 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
4640 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
4641 * go-lang.c: Remove _initialize_go_language prototype.
4642 * go32-nat.c: Remove _initialize_go32_nat prototype.
4643 * guile/guile.c: Remove _initialize_guile prototype.
4644 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
4645 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
4646 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
4647 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
4648 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
4649 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
4650 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
4651 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
4652 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
4653 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
4654 prototype.
4655 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
4656 prototype.
4657 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
4658 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
4659 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
4660 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
4661 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
4662 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
4663 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
4664 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
4665 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
4666 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
4667 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
4668 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
4669 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
4670 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4671 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
4672 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
4673 prototype.
4674 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
4675 prototype.
4676 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
4677 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
4678 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
4679 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
4680 * infcall.c: Remove _initialize_infcall prototype.
4681 * infcmd.c: Remove _initialize_infcmd prototype.
4682 * inferior.c: Remove _initialize_inferiors prototype.
4683 * inflow.c: Remove _initialize_inflow prototype.
4684 * infrun.c: Remove _initialize_infrun prototype.
4685 * interps.c: Remove _initialize_interpreter prototype.
4686 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
4687 * jit.c: Remove _initialize_jit prototype.
4688 * language.c: Remove _initialize_language prototype.
4689 * linux-fork.c: Remove _initialize_linux_fork prototype.
4690 * linux-nat.c: Remove _initialize_linux_nat prototype.
4691 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
4692 * linux-thread-db.c: Remove _initialize_thread_db prototype.
4693 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
4694 * m2-lang.c: Remove _initialize_m2_language prototype.
4695 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
4696 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
4697 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
4698 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
4699 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
4700 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4701 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4702 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
4703 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
4704 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
4705 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4706 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4707 * machoread.c: Remove _initialize_machoread prototype.
4708 * macrocmd.c: Remove _initialize_macrocmd prototype.
4709 * macroscope.c: Remove _initialize_macroscope prototype.
4710 * maint.c: Remove _initialize_maint_cmds prototype.
4711 * mdebugread.c: Remove _initialize_mdebugread prototype.
4712 * memattr.c: Remove _initialize_mem prototype.
4713 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
4714 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
4715 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
4716 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
4717 * mi/mi-main.c: Remove _initialize_mi_main prototype.
4718 * microblaze-linux-tdep.c: Remove
4719 _initialize_microblaze_linux_tdep prototype.
4720 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
4721 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
4722 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
4723 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
4724 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
4725 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
4726 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
4727 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
4728 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
4729 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
4730 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
4731 prototype.
4732 * mipsread.c: Remove _initialize_mipsread prototype.
4733 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
4734 prototype.
4735 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
4736 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
4737 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
4738 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
4739 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
4740 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
4741 prototype.
4742 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
4743 * nto-procfs.c: Remove _initialize_procfs prototype.
4744 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
4745 * objc-lang.c: Remove _initialize_objc_language prototype.
4746 * objfiles.c: Remove _initialize_objfiles prototype.
4747 * observer.c: Remove observer_test_first_notification_function,
4748 observer_test_second_notification_function,
4749 observer_test_third_notification_function, and
4750 _initialize_observer prototypes.
4751 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4752 * osabi.c: Remove _initialize_gdb_osabi prototype.
4753 * osdata.c: Remove _initialize_osdata prototype.
4754 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4755 * parse.c: Remove _initialize_parse prototype.
4756 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4757 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4758 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4759 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4760 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4761 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4762 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4763 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4764 * printcmd.c: Remove _initialize_printcmd prototype.
4765 * probe.c: Remove _initialize_probe prototype.
4766 * proc-api.c: Remove _initialize_proc_api prototype.
4767 * proc-events.c: Remove _initialize_proc_events prototype.
4768 * proc-service.c: Remove _initialize_proc_service prototype.
4769 * procfs.c: Remove _initialize_procfs prototype.
4770 * psymtab.c: Remove _initialize_psymtab prototype.
4771 * python/python.c: Remove _initialize_python prototype.
4772 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4773 * record-btrace.c: Remove _initialize_record_btrace prototype.
4774 * record-full.c: Remove _initialize_record_full prototype.
4775 * record.c: Remove _initialize_record prototype.
4776 * regcache.c: Remove _initialize_regcache prototype.
4777 * reggroups.c: Remove _initialize_reggroup prototype.
4778 * remote-notif.c: Remove _initialize_notif prototype.
4779 * remote-sim.c: Remove _initialize_remote_sim prototype.
4780 * remote.c: Remove _initialize_remote prototype.
4781 * reverse.c: Remove _initialize_reverse prototype.
4782 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4783 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4784 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4785 prototype.
4786 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4787 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4788 * rust-exp.y: Remove _initialize_rust_exp prototype.
4789 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4790 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4791 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4792 * score-tdep.c: Remove _initialize_score_tdep prototype.
4793 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4794 prototype.
4795 * ser-go32.c: Remove _initialize_ser_dos prototype.
4796 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4797 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4798 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4799 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4800 * serial.c: Remove _initialize_serial prototype.
4801 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4802 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4803 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4804 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4805 * skip.c: Remove _initialize_step_skip prototype.
4806 * sol-thread.c: Remove _initialize_sol_thread prototype.
4807 * solib-aix.c: Remove _initialize_solib_aix prototype.
4808 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4809 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4810 * solib-frv.c: Remove _initialize_frv_solib prototype.
4811 * solib-spu.c: Remove _initialize_spu_solib prototype.
4812 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4813 * solib-target.c: Remove _initialize_solib_target prototype.
4814 * solib.c: Remove _initialize_solib prototype.
4815 * source.c: Remove _initialize_source prototype.
4816 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4817 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4818 prototype.
4819 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4820 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4821 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4822 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4823 prototype.
4824 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4825 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4826 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4827 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4828 prototype.
4829 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4830 prototype.
4831 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4832 prototype.
4833 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4834 prototype.
4835 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4836 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4837 prototype.
4838 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4839 prototype.
4840 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4841 prototype.
4842 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4843 prototype.
4844 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4845 prototype.
4846 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4847 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4848 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4849 * stabsread.c: Remove _initialize_stabsread prototype.
4850 * stack.c: Remove _initialize_stack prototype.
4851 * stap-probe.c: Remove _initialize_stap_probe prototype.
4852 * std-regs.c: Remove _initialize_frame_reg prototype.
4853 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4854 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4855 * symfile.c: Remove _initialize_symfile prototype.
4856 * symmisc.c: Remove _initialize_symmisc prototype.
4857 * symtab.c: Remove _initialize_symtab prototype.
4858 * target-dcache.c: Remove _initialize_target_dcache prototype.
4859 * target-descriptions.c: Remove _initialize_target_descriptions
4860 prototype.
4861 * thread.c: Remove _initialize_thread prototype.
4862 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4863 prototype.
4864 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4865 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4866 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4867 prototype.
4868 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4869 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4870 * tracefile.c: Remove _initialize_tracefile prototype.
4871 * tracepoint.c: Remove _initialize_tracepoint prototype.
4872 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4873 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4874 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4875 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4876 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4877 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4878 * tui/tui.c: Remove _initialize_tui prototype.
4879 * typeprint.c: Remove _initialize_typeprint prototype.
4880 * user-regs.c: Remove _initialize_user_regs prototype.
4881 * utils.c: Remove _initialize_utils prototype.
4882 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4883 * valarith.c: Remove _initialize_valarith prototype.
4884 * valops.c: Remove _initialize_valops prototype.
4885 * valprint.c: Remove _initialize_valprint prototype.
4886 * value.c: Remove _initialize_values prototype.
4887 * varobj.c: Remove _initialize_varobj prototype.
4888 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4889 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4890 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4891 * windows-nat.c: Remove _initialize_windows_nat,
4892 _initialize_check_for_gdb_ini, and _initialize_loadable
4893 prototypes.
4894 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4895 * xcoffread.c: Remove _initialize_xcoffread prototype.
4896 * xml-support.c: Remove _initialize_xml_support prototype.
4897 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4898 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4899 prototype.
4900 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4901 prototype.
4902 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4903
a611b5cb
KS
49042017-09-08 Keith Seitz <keiths@redhat.com>
4905
4906 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4907 field.
4908
469412dd
CW
49092017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4910
4911 * f-valprint.c (f_val_print): Remove check for one byte
4912 sized integers. Remove printing of character type.
4913
a5ad232b
FP
49142017-09-08 Frank Penczek <frank.penczek@intel.com>
4915 Christoph Weinmann <christoph.t.weinmann@intel.com>
4916 Bernhard Heckel <bernhard.heckel@intel.com>
4917
4918 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4919 to maintain proper indentation when printing pointers/refs.
4920
e5014227
JB
49212017-09-07 Joel Brobecker <brobecker@adacore.com>
4922
4923 GDB 8.0.1 released.
4924
63c99141
JB
49252017-09-07 Joel Brobecker <brobecker@adacore.com>
4926
4927 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4928
69c1e056
TT
49292017-09-05 Tom Tromey <tom@tromey.com>
4930
4931 * parse.c (funcall_chain): Now a std::vector.
4932 (start_arglist, end_arglist): Simplify.
4933 (free_funcalls): Remove.
4934 (parse_exp_in_context_1): Remove cleanup.
4935
fef704bf
TT
49362017-09-05 Tom Tromey <tom@tromey.com>
4937
4938 * go-exp.y (go_parse): Don't create a cleanup.
4939
5613c585
TT
49402017-09-05 Tom Tromey <tom@tromey.com>
4941
4942 * d-exp.y (PrimaryExpression): Use std::string.
4943 (d_parse): Don't create a cleanup.
4944
eae49211
TT
49452017-09-05 Tom Tromey <tom@tromey.com>
4946
4947 * utils.c (do_clear_parser_state): Remove.
4948 (make_cleanup_clear_parser_state): Remove.
4949 * p-exp.y (pascal_parse): Use scoped_restore.
4950 * m2-exp.y (m2_parse): Use scoped_restore.
4951 * f-exp.y (f_parse): Use scoped_restore.
4952 * d-exp.y (d_parse): Use scoped_restore.
4953 * c-exp.y (c_parse): Use scoped_restore.
4954 * ada-exp.y (ada_parse): Use scoped_restore.
4955 * utils.h (make_cleanup_clear_parser_state): Remove.
4956
73b9be8b
KS
49572017-09-06 Keith Seitz <keiths@redhat.com>
4958
4959 * dwarf2read.c (dw2_linkage_name_attr): New function.
4960 (dw2_linkage_name): New function.
4961 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4962 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4963 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4964
a102602b
KR
49652017-09-06 Kamil Rytarowski <n54@gmx.com>
4966
4967 * config/djgpp/djconfig.sh: Correct shell portability issue.
4968
28ad437d
KR
49692017-09-06 Kamil Rytarowski <n54@gmx.com>
4970
4971 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4972
351787dd
JB
49732017-09-06 John Baldwin <jhb@FreeBSD.org>
4974
4975 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4976 * NEWS: Mention new FreeBSD/mips native configuration.
4977 * configure.host: Add aarch64*-*-freebsd*.
4978 * configure.nat: Likewise.
4979 * aarch64-fbsd-nat.c: New file.
4980
c0f84956
JB
49812017-09-06 John Baldwin <jhb@FreeBSD.org>
4982
4983 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4984 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4985 * NEWS: Mention new FreeBSD/aarch64 target.
4986 * configure.tgt: Add aarch64*-*-freebsd*.
4987 * aarch64-fbsd-tdep.c: New file.
4988 * aarch64-fbsd-tdep.h: New file.
4989
7610297a
KR
49902017-09-06 Kamil Rytarowski <n54@gmx.com>
4991
4992 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4993
fbd1b771
JK
49942017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4995
4996 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4997 of TLS symbols.
4998
5ca79eae
PW
49992017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5000
5001 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
5002 call.
5003
bf93d7ba
SM
50042017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5005
5006 * infrun.c (follow_exec): Call add_thread after
5007 target_find_description.
5008
1bb7c059
SM
50092017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5010
5011 * infrun.c (handle_inferior_event_1): When exec'ing, read
5012 stop_pc after follow_exec.
5013
fc809827
SM
50142017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5015
5016 * remote.c (process_g_packet): Update error message.
5017
d2fcdd85
YQ
50182017-09-05 Yao Qi <yao.qi@linaro.org>
5019
5020 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
5021 targets.
5022
e69570ee
PA
50232017-09-05 Pedro Alves <palves@redhat.com>
5024
5025 * eval.c (eval_call, evaluate_funcall): New functions, factored
5026 out from ...
5027 (evaluate_subexp_standard): ... this.
5028
22916b07
YQ
50292017-09-05 Yao Qi <yao.qi@linaro.org>
5030
5031 * amd64-tdep.c (amd64_target_description): Create target
5032 descriptions.
5033 (_initialize_amd64_tdep): Don't call functions
5034 initialize_tdesc_amd64_*. Add self tests.
5035 * arch/amd64.c (amd64_create_target_description): Add parameter
5036 is_linux. Call set_tdesc_osabi if is_linux is true.
5037 * arch/amd64.h (amd64_create_target_description): Update the
5038 declaration.
5039 * arch/i386.c (i386_create_target_description): Add parameter
5040 is_linux. Call set_tdesc_osabi if is_linux is true.
5041 * arch/i386.h (i386_create_target_description): Update
5042 declaration.
5043 * configure.tgt: Add i386.o to gdb_target_obs.
5044 * features/Makefile (XMLTOC): Remove i386/*.xml.
5045 * features/i386/amd64-avx-avx512.c: Remove.
5046 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
5047 * features/i386/amd64-avx-mpx.c: Remove.
5048 * features/i386/amd64-avx.c: Remove.
5049 * features/i386/amd64-mpx.c: Remove.
5050 * features/i386/amd64.c: Remove.
5051 * features/i386/i386-avx-avx512.c: Remove.
5052 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
5053 * features/i386/i386-avx-mpx.c: Remove.
5054 * features/i386/i386-avx.c: Remove.
5055 * features/i386/i386-mmx.c: Remove.
5056 * features/i386/i386-mpx.c: Remove.
5057 * features/i386/i386.c: Remove.
5058 * i386-tdep.c: Don't include features/i386/i386*.c., include
5059 target-descriptions.h and arch/i386.h.
5060 (i386_target_description): Create target descriptions.
5061 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
5062 functions. Do self tests.
5063
0854b7b1
YQ
50642017-09-05 Yao Qi <yao.qi@linaro.org>
5065
5066 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
5067 * features/i386/amd64-avx-avx512-linux.c: Removed.
5068 * features/i386/amd64-avx-linux.c: Removed.
5069 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
5070 * features/i386/amd64-avx-mpx-linux.c: Removed.
5071 * features/i386/amd64-linux.c: Removed.
5072 * features/i386/amd64-mpx-linux.c: Removed.
5073 * features/i386/x32-avx-avx512-linux.c: Removed.
5074 * features/i386/x32-avx-linux.c: Removed.
5075 * features/i386/x32-linux.c: Removed.
5076
b4570e4b
YQ
50772017-09-05 Yao Qi <yao.qi@linaro.org>
5078
5079 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
5080 features/i386/*.c.
5081 (amd64_linux_read_description): Call
5082 amd64_create_target_description.
5083 * arch/amd64.c: New file.
5084 * arch/amd64.h: New file.
5085 * configure.tgt (x86_64-*-linux*): Append amd64.o.
5086 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
5087
6c73f67f
YQ
50882017-09-05 Yao Qi <yao.qi@linaro.org>
5089
5090 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
5091 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
5092 (amd64_linux_read_description): Create target descriptions.
5093 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
5094 functions. Add unit tests.
5095 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
5096 x32-core.xml.
5097 * features/i386/64bit-avx.c: Generated.
5098 * features/i386/64bit-avx512.c: Generated.
5099 * features/i386/64bit-core.c: Generated.
5100 * features/i386/64bit-linux.c: Generated.
5101 * features/i386/64bit-mpx.c: Generated.
5102 * features/i386/64bit-pkeys.c: Generated.
5103 * features/i386/64bit-segments.c: Generated.
5104 * features/i386/64bit-sse.c: Generated.
5105 * features/i386/x32-core.c: Generated.
5106 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
5107 c files for amd64-linux and x32-linux.
5108
9d3d478b
YQ
51092017-09-05 Yao Qi <yao.qi@linaro.org>
5110
5111 * amd64-linux-tdep.c (amd64_linux_read_description): New
5112 function.
5113 (amd64_linux_core_read_description): Call
5114 amd64_linux_read_description.
5115 (amd64_linux_init_abi): Likewise.
5116 (amd64_x32_linux_init_abi): Likewise.
5117 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
5118 * x86-linux-nat.c (x86_linux_read_description): Call
5119 amd64_linux_read_description.
5120
b9f1d50f
YQ
51212017-09-05 Yao Qi <yao.qi@linaro.org>
5122
5123 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
5124 comments.
5125
188c9e6d
YQ
51262017-09-05 Yao Qi <yao.qi@linaro.org>
5127
5128 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
5129 * features/i386/i386-avx-avx512-linux.c: Remove.
5130 * features/i386/i386-avx-linux.c: Remove.
5131 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
5132 * features/i386/i386-avx-mpx-linux.c: Remove.
5133 * features/i386/i386-linux.c: Remove.
5134 * features/i386/i386-mmx-linux.c: Remove.
5135 * features/i386/i386-mpx-linux.c: Remove.
5136
5f035c07
YQ
51372017-09-05 Yao Qi <yao.qi@linaro.org>
5138
5139 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
5140 (SFILES): Add arch/i386.c.
5141 (HFILES_NO_SRCDIR): Add arch/i386.h.
5142 * arch/i386.c: New file.
5143 * arch/i386.h: New file.
5144 * arch/tdesc.h (allocate_target_description): Declare.
5145 (set_tdesc_architecture): Declare.
5146 (set_tdesc_osabi): Declare.
5147 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
5148 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
5149 include arch/i386.h.
5150 (i386_linux_read_description): Remove code and call
5151 i386_create_target_description.
5152 (set_tdesc_architecture): New function.
5153 (set_tdesc_osabi): New function.
5154 * target-descriptions.h (allocate_target_description): Remove.
5155
0abe8a89
YQ
51562017-09-05 Yao Qi <yao.qi@linaro.org>
5157
5158 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
5159 * target-descriptions.c (tdesc_create_feature): Likewise, and
5160 adjust code.
5161 * features/i386/32bit-avx.c: Re-generated.
5162 * features/i386/32bit-avx512.c: Re-generated.
5163 * features/i386/32bit-core.c: Re-generated.
5164 * features/i386/32bit-linux.c: Re-generated.
5165 * features/i386/32bit-mpx.c: Re-generated.
5166 * features/i386/32bit-pkeys.c: Re-generated.
5167 * features/i386/32bit-sse.c: Re-generated.
5168
0a188386
YQ
51692017-09-05 Yao Qi <yao.qi@linaro.org>
5170
5171 * regformats/regdef.h (struct reg): Override operator == and !=.
5172
f49ff000
YQ
51732017-09-05 Yao Qi <yao.qi@linaro.org>
5174
5175 * arch/tdesc.h: New file.
5176 * regformats/regdat.sh: Generate code using tdesc_create_reg.
5177 * target-descriptions.c: Update comments.
5178 * target-descriptions.h: Include "arch/tdesc.h". Remove the
5179 declarations.
5180 * features/i386/32bit-avx.c: Re-generated.
5181 * features/i386/32bit-avx512.c: Re-generated.
5182 * features/i386/32bit-core.c: Re-generated.
5183 * features/i386/32bit-linux.c: Re-generated.
5184 * features/i386/32bit-mpx.c: Re-generated.
5185 * features/i386/32bit-pkeys.c: Re-generated.
5186 * features/i386/32bit-sse.c: Re-generated.
5187
f7000548
YQ
51882017-09-05 Yao Qi <yao.qi@linaro.org>
5189
5190 * regformats/regdat.sh: Update generated code.
5191
c9a5e2a5
YQ
51922017-09-05 Yao Qi <yao.qi@linaro.org>
5193
5194 * regformats/regdat.sh: Adjust code order.
5195
d6b687ac
SM
51962017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5197
5198 * expprint.c (dump_subexp_body_standard): Use constant format
5199 string in fprintf_filtered call.
5200
a379bfd0
JB
52012017-09-04 John Baldwin <jhb@FreeBSD.org>
5202
5203 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
5204 NetBSD/i386.
5205 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
5206
f7efc967
JB
52072017-09-04 John Baldwin <jhb@FreeBSD.org>
5208
5209 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
5210
c49fbc6c
JB
52112017-09-04 John Baldwin <jhb@FreeBSD.org>
5212
5213 * bsd-kvm.o: Define _KMEMUSER.
5214 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
5215 * configure: Regenerate.
5216
26562e73
JB
52172017-09-04 John Baldwin <jhb@FreeBSD.org>
5218
5219 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
5220 * i386-fbsd-nat.c: Likewise.
5221
31cf1487
JB
52222017-09-04 John Baldwin <jhb@FreeBSD.org>
5223
5224 * unittests/array-view-selftests.c: Add include of <array>.
5225
5b9f8a7c
JB
52262017-09-04 John Baldwin <jhb@FreeBSD.org>
5227
5228 * spu-tdep.c (flush_ea_cache): Add missing argument to
5229 call_function_by_hand.
5230
d69cf9b2
PA
52312017-09-04 Pedro Alves <palves@redhat.com>
5232
5233 * NEWS (Safer support for debugging with no debug info): New.
5234
3693fdb3
PA
52352017-09-04 Pedro Alves <palves@redhat.com>
5236
5237 * c-exp.y (function_method, function_method_void): Add current
5238 instance flags to TYPE_INSTANCE.
5239 * dwarf2read.c (check_modifier): New.
5240 (compute_delayed_physnames): Assert that only C++ adds delayed
5241 physnames. Mark fn_fields as const/volatile depending on
5242 physname.
5243 * eval.c (make_params): New type_instance_flags parameter. Use
5244 it as the new type's instance flags.
5245 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
5246 flags element and pass it to make_params.
5247 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
5248 instance flags element.
5249 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
5250 * gdbtypes.h: Include "enum-flags.h".
5251 (type_instance_flags): New enum-flags type.
5252 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
5253 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
5254 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
5255 (follow_type_instance_flags): New function.
5256 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
5257 * parser-defs.h (follow_type_instance_flags): Declare.
5258 * valops.c (value_struct_elt_for_reference): const/volatile must
5259 match too.
5260
e68cb8e0
PA
52612017-09-04 Pedro Alves <palves@redhat.com>
5262
5263 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
5264 function/method scopes; lookup the nested name as a function local
5265 static variable.
5266
858be34c
PA
52672017-09-04 Pedro Alves <palves@redhat.com>
5268
5269 (%type <voidval>): Add function_method.
5270 * c-exp.y (exp): New production for calls with no arguments.
5271 (function_method, function_method_void_or_typelist): New
5272 productions.
5273 (exp): New production for "method()::static_var".
5274 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
5275 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5276 Handle OP_FUNC_STATIC_VAR.
5277 * parse.c (operator_length_standard):
5278 Handle OP_FUNC_STATIC_VAR.
5279
dd5901a6
PA
52802017-09-04 Pedro Alves <palves@redhat.com>
5281
5282 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
5283 handling.
5284 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5285 Ditto.
5286 * parse.c (operator_length_standard, operator_check_standard):
5287 Ditto.
5288 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
5289
46a4882b
PA
52902017-09-04 Pedro Alves <palves@redhat.com>
5291
5292 * ax-gdb.c: Include "typeprint.h".
5293 (gen_expr_for_cast): New function.
5294 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
5295 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
5296 type is unknown.
5297 * dwarf2read.c (new_symbol_full): Fallback to int instead of
5298 nodebug_data_symbol.
5299 * eval.c: Include "typeprint.h".
5300 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
5301 Error out if symbol has unknown type.
5302 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
5303 evaluate_subexp_for_cast.
5304 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
5305 OP_VAR_MSYM_VALUE.
5306 (evaluate_subexp_for_cast): New function.
5307 * gdbtypes.c (init_nodebug_var_type): New function.
5308 (objfile_type): Use it to initialize types of variables with no
5309 debug info.
5310 * typeprint.c (error_unknown_type): New.
5311 * typeprint.h (error_unknown_type): New declaration.
5312 * compile/compile-c-types.c (convert_type_basic): Handle
5313 TYPE_CODE_ERROR; warn and fallback to int for variables with
5314 unknown type.
5315
fe13dfec
PA
53162017-09-04 Pedro Alves <palves@redhat.com>
5317
5318 * eval.c (evaluate_var_value): New function, factored out from ...
5319 (evaluate_subexp_standard): ... here.
5320
d008ee21
PA
53212017-09-04 Pedro Alves <palves@redhat.com>
5322
5323 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
5324 Remove useless assignments to 'op'.
5325
827d0c51
PA
53262017-09-04 Pedro Alves <palves@redhat.com>
5327
5328 * eval.c (eval_skip_value): New function.
5329 (evaluate_subexp_standard): Use it.
5330
2c5a2be1
PA
53312017-09-04 Pedro Alves <palves@redhat.com>
5332
5333 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
5334 function name from symbol/minsym and pass it to
5335 error_call_unknown_return_type.
5336
74ea4be4
PA
53372017-09-04 Pedro Alves <palves@redhat.com>
5338
5339 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
5340 * ax-gdb.c (gen_msym_var_ref): New function.
5341 (gen_expr): Handle OP_VAR_MSYM_VALUE.
5342 * eval.c (evaluate_var_msym_value): New function.
5343 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
5344 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
5345 to call_function_by_hand.
5346 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5347 Handle OP_VAR_MSYM_VALUE.
5348 (union exp_element) <msymbol>: New field.
5349 * minsyms.h (struct type): Forward declare.
5350 (find_minsym_type_and_address): Declare.
5351 * parse.c (write_exp_elt_msym): New function.
5352 (write_exp_msymbol): Delete, refactored as ...
5353 (find_minsym_type_and_address): ... this new function.
5354 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
5355 (operator_length_standard, operator_check_standard): Handle
5356 OP_VAR_MSYM_VALUE.
5357 * std-operator.def (OP_VAR_MSYM_VALUE): New.
5358
7022349d
PA
53592017-09-04 Pedro Alves <palves@redhat.com>
5360
5361 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
5362 TYPE_GNU_IFUNC specially here. Throw error if return type is
5363 unknown.
5364 * ada-typeprint.c (print_func_type): Handle functions with unknown
5365 return type.
5366 * c-typeprint.c (c_type_print_base): Handle functions and methods
5367 with unknown return type.
5368 * compile/compile-c-symbols.c (convert_symbol_bmsym)
5369 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
5370 * compile/compile-c-types.c: Include "objfiles.h".
5371 (convert_func): For functions with unknown return type, warn and
5372 default to int.
5373 * compile/compile-object-run.c (compile_object_run): Adjust call
5374 to call_function_by_hand_dummy.
5375 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
5376 call_function_by_hand.
5377 * eval.c (evaluate_subexp_standard): Adjust calls to
5378 call_function_by_hand. Handle functions and methods with unknown
5379 return type. Pass expect_type to call_function_by_hand.
5380 * f-typeprint.c (f_type_print_base): Handle functions with unknown
5381 return type.
5382 * gcore.c (call_target_sbrk): Adjust call to
5383 call_function_by_hand.
5384 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
5385 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
5386 an integer address type instead of nodebug.
5387 * guile/scm-value.c (gdbscm_value_call): Adjust call to
5388 call_function_by_hand.
5389 * infcall.c (error_call_unknown_return_type): New function.
5390 (call_function_by_hand): New "default_return_type" parameter.
5391 Pass it down.
5392 (call_function_by_hand_dummy): New "default_return_type"
5393 parameter. Use it instead of defaulting to int. If there's no
5394 default and the return type is unknown, throw an error. If
5395 there's a default return type, and the called function has no
5396 debug info, then assume the function is prototyped.
5397 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
5398 New "default_return_type" parameter.
5399 (error_call_unknown_return_type): New declaration.
5400 * linux-fork.c (call_lseek): Cast return type of lseek.
5401 (inferior_call_waitpid, checkpoint_command): Adjust calls to
5402 call_function_by_hand.
5403 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
5404 calls to call_function_by_hand.
5405 * m2-typeprint.c (m2_procedure): Handle functions with unknown
5406 return type.
5407 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5408 (value_nsstring, print_object_command): Adjust calls to
5409 call_function_by_hand.
5410 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
5411 functions with unknown return type.
5412 (pascal_type_print_func_varspec_suffix): New function.
5413 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
5414 TYPE_CODE_METHOD>: Use it.
5415 * python/py-value.c (valpy_call): Adjust call to
5416 call_function_by_hand.
5417 * rust-lang.c (rust_evaluate_funcall): Adjust call to
5418 call_function_by_hand.
5419 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
5420 call_function_by_hand.
5421 * valops.c (value_allocate_space_in_inferior): Adjust call to
5422 call_function_by_hand.
5423 * typeprint.c (type_print_unknown_return_type): New function.
5424 * typeprint.h (type_print_unknown_return_type): New declaration.
5425
54990598
PA
54262017-09-04 Pedro Alves <palves@redhat.com>
5427
5428 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
5429 types with more than one parameter as prototyped.
5430
9a24775b
PA
54312017-09-04 Pedro Alves <palves@redhat.com>
5432
5433 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
5434 (disassemble_command): Use gdb_disassembly_flags instead of bare
5435 int.
5436 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
5437 (dump_insns, do_mixed_source_and_assembly_deprecated)
5438 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
5439 Use gdb_disassembly_flags instead of bare int.
5440 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
5441 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
5442 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
5443 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
5444 (enum gdb_disassembly_flag): ... values of this new enumeration.
5445 (gdb_disassembly_flags): Define.
5446 (gdb_disassembly)
5447 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
5448 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
5449 gdb_disassembly_flags instead of bare int.
5450 * record-btrace.c (btrace_insn_history)
5451 (record_btrace_insn_history, record_btrace_insn_history_range)
5452 (record_btrace_insn_history_from): Use gdb_disassembly_flags
5453 instead of bare int.
5454 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
5455 Use gdb_disassembly_flags instead of bare int.
5456 * target-debug.h (target_debug_print_gdb_disassembly_flags):
5457 Define.
5458 * target-delegates.c: Regenerate.
5459 * target.c (target_insn_history, target_insn_history_from)
5460 (target_insn_history_range): Use gdb_disassembly_flags instead of
5461 bare int.
5462 * target.h: Include "disasm.h".
5463 (struct target_ops) <to_insn_history, to_insn_history_from,
5464 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
5465 int.
5466 (target_insn_history, target_insn_history_from)
5467 (target_insn_history_range): Use gdb_disassembly_flags instead of
5468 bare int.
5469
80a65e9b
SM
54702017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5471
5472 * cli/cli-script.c (build_command_line): For if/while commands,
5473 check whether args is empty.
5474
6b66338c
SM
54752017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5476
5477 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
5478 (enum command_control_type): Likewise.
5479 (struct command_line): Likewise.
5480 (free_command_lines): Likewise.
5481 (struct command_lines_deleter): Likewise.
5482 (command_line_up): Likewise.
5483 (read_command_lines): Likewise.
5484 (read_command_lines_1): Likewise.
5485 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
5486 (enum command_control_type): Likewise.
5487 (struct command_line): Likewise.
5488 (free_command_lines): Likewise.
5489 (struct command_lines_deleter): Likewise.
5490 (command_line_up): Likewise.
5491 (read_command_lines): Likewise.
5492 (read_command_lines_1): Likewise.
5493 * breakpoint.h: Include cli/cli-script.h.
5494 * extension-priv.h: Likewise.
5495 * gdbcmd.h: Likewise.
5496
51abb421
PA
54972017-09-04 Pedro Alves <palves@redhat.com>
5498
5499 * ada-lang.c (is_known_support_routine): Move sal declaration to
5500 where it is initialized.
5501 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
5502 (parse_breakpoint_sals, decode_static_tracepoint_spec)
5503 (clear_command, update_static_tracepoint): Remove init_sal
5504 references. Move declarations closer to initializations.
5505 * cli/cli-cmds.c (list_command): Move sal declarations closer to
5506 initializations.
5507 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
5508 references. Move sal declarations closer to initializations.
5509 * frame.c (find_frame_sal): Return a symtab_and_line via function
5510 return instead of output parameter. Remove init_sal references.
5511 * frame.h (find_frame_sal): Return a symtab_and_line via function
5512 return instead of output parameter.
5513 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
5514 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
5515 instead of memset.
5516 (gdbscm_find_pc_line): Remove init_sal reference.
5517 * infcall.c (call_function_by_hand_dummy): Remove init_sal
5518 references. Move declarations closer to initializations.
5519 * infcmd.c (set_step_frame): Update. Move declarations closer to
5520 initializations.
5521 (finish_backward): Remove init_sal references. Move declarations
5522 closer to initializations.
5523 * infrun.c (process_event_stop_test, handle_step_into_function)
5524 (insert_hp_step_resume_breakpoint_at_frame)
5525 (insert_step_resume_breakpoint_at_caller): Likewise.
5526 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
5527 (symbol_to_sal): Likewise.
5528 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
5529 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
5530 to its initialization.
5531 * reverse.c (save_bookmark_command): Use new/delete. Remove
5532 init_sal references. Move declarations closer to initializations.
5533 * source.c (get_current_source_symtab_and_line): Remove brace
5534 initialization.
5535 (set_current_source_symtab_and_line): Now takes the sal by const
5536 reference. Remove brace initialization.
5537 (line_info): Remove init_sal reference.
5538 * source.h (set_current_source_symtab_and_line): Now takes a
5539 symtab_and_line via const reference.
5540 * stack.c (set_current_sal_from_frame): Adjust.
5541 (print_frame_info): Adjust.
5542 (get_last_displayed_sal): Return the sal via function return
5543 instead of via output parameter. Simplify.
5544 (frame_info): Adjust.
5545 * stack.h (get_last_displayed_sal): Return the sal via function
5546 return instead of via output parameter.
5547 * symtab.c (init_sal): Delete.
5548 (find_pc_sect_line): Remove init_sal references. Move
5549 declarations closer to initializations.
5550 (find_function_start_sal): Remove init_sal references. Move
5551 declarations closer to initializations.
5552 * symtab.h (struct symtab_and_line): In-class initialize all
5553 fields.
5554 * tracepoint.c (set_traceframe_context)
5555 (print_one_static_tracepoint_marker): Remove init_sal references.
5556 Move declarations closer to initializations.
5557 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
5558 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
5559 declarations closer to initializations.
5560 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
5561 init_sal references. Adjust.
5562
6c5b2ebe
PA
55632017-09-04 Pedro Alves <palves@redhat.com>
5564
5565 * ax-gdb.c (agent_command_1): Use range-for.
5566 * break-catch-throw.c (re_set_exception_catchpoint): Update.
5567 * breakpoint.c: Include "common/array-view.h".
5568 (init_breakpoint_sal, create_breakpoint_sal): Change sals
5569 parameter from struct symtabs_and_lines to
5570 array_view<symtab_and_line>. Adjust. Use range-for. Update.
5571 (breakpoint_sals_to_pc): Change sals parameter from struct
5572 symtabs_and_lines to std::vector reference.
5573 (check_fast_tracepoint_sals): Change sals parameter from struct
5574 symtabs_and_lines to std::array_view. Use range-for.
5575 (decode_static_tracepoint_spec): Return a std::vector instead of
5576 symtabs_and_lines. Update.
5577 (create_breakpoint): Update.
5578 (break_range_command, until_break_command, clear_command): Update.
5579 (base_breakpoint_decode_location, bkpt_decode_location)
5580 (bkpt_probe_create_sals_from_location)
5581 (bkpt_probe_decode_location, tracepoint_decode_location)
5582 (tracepoint_probe_decode_location)
5583 (strace_marker_create_sals_from_location): Return a std::vector
5584 instead of symtabs_and_lines.
5585 (strace_marker_create_breakpoints_sal): Update.
5586 (strace_marker_decode_location): Return a std::vector instead of
5587 symtabs_and_lines. Update.
5588 (update_breakpoint_locations): Change struct symtabs_and_lines
5589 parameters to gdb::array_view. Adjust.
5590 (location_to_sals): Return a std::vector instead of
5591 symtabs_and_lines. Update.
5592 (breakpoint_re_set_default): Use std::vector instead of struct
5593 symtabs_and_lines.
5594 (decode_location_default): Return a std::vector instead of
5595 symtabs_and_lines. Update.
5596 * breakpoint.h: Include "common/array-view.h".
5597 (struct breakpoint_ops) <decode_location>: Now returns a
5598 std::vector instead of returning a symtabs_and_lines via output
5599 parameter.
5600 (update_breakpoint_locations): Change sals parameters to use
5601 gdb::array_view.
5602 * cli/cli-cmds.c (edit_command, list_command): Update to use
5603 std::vector and gdb::array_view.
5604 (ambiguous_line_spec): Adjust to use gdb::array_view and
5605 range-for.
5606 (compare_symtabs): Rename to ...
5607 (cmp_symtabs): ... this. Change parameters to symtab_and_line
5608 const reference and adjust.
5609 (filter_sals): Rewrite using std::vector and standard algorithms.
5610 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
5611 (jump_command): Update to use std::vector.
5612 * linespec.c (struct linespec_state) <canonical_names>: Update
5613 comment.
5614 (add_sal_to_sals_basic): Delete.
5615 (add_sal_to_sals, filter_results, convert_results_to_lsals)
5616 (decode_line_2, create_sals_line_offset)
5617 (convert_address_location_to_sals, convert_linespec_to_sals)
5618 (convert_explicit_location_to_sals, parse_linespec)
5619 (event_location_to_sals, decode_line_full, decode_line_1)
5620 (decode_line_with_current_source)
5621 (decode_line_with_last_displayed, decode_objc)
5622 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
5623 (linespec_result::~linespec_result): Adjust to use std::vector
5624 instead of symtabs_and_lines.
5625 * linespec.h (linespec_sals::sals): Now a std::vector.
5626 (struct linespec_result): Use std::vector, bool, and in-class
5627 initialization.
5628 (decode_line_1, decode_line_with_current_source)
5629 (decode_line_with_last_displayed): Return std::vector.
5630 * macrocmd.c (info_macros_command): Use std::vector.
5631 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
5632 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
5633 std::vector.
5634 * probe.h (parse_probes): Return a std::vector.
5635 * python/python.c (gdbpy_decode_line): Use std::vector and
5636 gdb::array_view.
5637 * source.c (select_source_symtab, line_info): Use std::vector.
5638 * stack.c (func_command): Use std::vector.
5639 * symtab.h (struct symtabs_and_lines): Delete.
5640 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
5641
7c44b49c
PA
56422017-09-04 Pedro Alves <palves@redhat.com>
5643
5644 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5645 unittests/array-view-selftests.c.
5646 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
5647 * common/array-view.h: New file.
5648 * unittests/array-view-selftests.c: New file.
5649
e439fa14
PA
56502017-09-04 Pedro Alves <palves@redhat.com>
5651
5652 * cli/cli-cmds.c (edit_command): Pass message to
5653 ambiguous_line_spec.
5654 (list_command): Pass message to ambiguous_line_spec. Say
5655 "first"/"last" instead of "start" and "end" to be consistent with
5656 the manual.
5657 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
5658 them to print formatted message.
5659
7525b645
PA
56602017-09-04 Pedro Alves <palves@redhat.com>
5661
5662 * btrace.c (ftrace_add_pt): Pass btrace_insn to
5663 ftrace_update_insns by reference instead of pointer.
5664
badc0020
YQ
56652017-09-04 Yao Qi <yao.qi@linaro.org>
5666
5667 * i386-go32-tdep.c: Include x86-xstate.h.
5668 (i386_go32_init_abi): Call i386_target_description.
5669 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
5670 if xcr0 is X86_XSTATE_X87_MASK.
5671 * i386-tdep.h (tdesc_i386): Remove the declaration.
5672 (tdesc_i386_mmx): Likewise.
5673
d78bdb54
YQ
56742017-09-04 Yao Qi <yao.qi@linaro.org>
5675
5676 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
5677 X86_XSTATE_SSE_MASK instead of 0.
5678
ca1fa5ee
YQ
56792017-09-04 Yao Qi <yao.qi@linaro.org>
5680
5681 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
5682 i386_target_description.
5683 * i386-fbsd-nat.c (i386fbsd_read_description): Call
5684 i386_target_description.
5685 * i386-tdep.c (i386_gdbarch_init): Likewise.
5686
2434b019
YQ
56872017-09-04 Yao Qi <yao.qi@linaro.org>
5688
5689 * amd64-darwin-tdep.c: Include "x86-xstate.h".
5690 (x86_darwin_init_abi_64): Call amd64_target_description.
5691 * amd64-dicos-tdep.c: Likewise.
5692 * amd64-fbsd-nat.c: Likewise.
5693 * amd64-fbsd-tdep.c: Likewise.
5694 * amd64-nbsd-tdep.c: Likewise.
5695 * amd64-obsd-tdep.c: Likewise.
5696 * amd64-sol2-tdep.c: Likewise.
5697 * amd64-windows-tdep.c: Likewise.
5698 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
5699
0860c437
SM
57002017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5701
5702 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
5703 (btrace_function) <insn>: Change type to use std::vector.
5704 * btrace.c (ftrace_debug, ftrace_call_num_insn,
5705 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
5706 ftrace_update_insns, ftrace_compute_global_level_offset,
5707 btrace_stitch_bts, btrace_clear, btrace_insn_get,
5708 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
5709 change to std::vector.
5710 (ftrace_update_insns): Adjust to change to std::vector, change
5711 type of INSN parameter.
5712 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
5713 * record-btrace.c (btrace_call_history_insn_range,
5714 btrace_compute_src_line_range,
5715 record_btrace_frame_prev_register): Adjust to change to
5716 std::vector.
5717 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
5718 to change to std::vector.
5719
0638b7f9
TT
57202017-09-03 Tom Tromey <tom@tromey.com>
5721
5722 * corefile.c (reopen_exec_file): Use std::string.
5723
8f84fb0e
TT
57242017-09-03 Tom Tromey <tom@tromey.com>
5725
5726 * compile/compile.c (compile_register_name_mangled): Return
5727 std::string.
5728 * compile/compile-loc2c.c (pushf_register_address): Update.
5729 (pushf_register): Update.
5730 * compile/compile-c-types.c (convert_array): Update.
5731 * compile/compile-c-symbols.c (generate_vla_size): Update.
5732 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
5733 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
5734 (convert_one_symbol): Update.
5735 (generate_c_for_for_one_variable): Update.
5736 * compile/compile-c-support.c (c_get_range_decl_name): Return a
5737 std::string.
5738 (generate_register_struct): Update.
5739 * compile/compile-internal.h (c_get_range_decl_name): Return a
5740 std::string.
5741 (compile_register_name_mangled): Return std::string.
5742
18e9961f
TT
57432017-09-03 Tom Tromey <tom@tromey.com>
5744
5745 * utils.c (perror_string): Return a std::string.
5746 (throw_perror_with_name, perror_warning_with_name): Update.
5747
45343786
TT
57482017-09-03 Tom Tromey <tom@tromey.com>
5749
5750 * demangle.c (demangle_command): Use std::string,
5751 unique_xmalloc_ptr.
5752
b57af503
TT
57532017-09-03 Tom Tromey <tom@tromey.com>
5754
5755 * cli/cli-setshow.c (do_set_command): Use std::string.
5756
6eecf35f
TT
57572017-09-03 Tom Tromey <tom@tromey.com>
5758
5759 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5760
56496dd4
TT
57612017-09-03 Tom Tromey <tom@tromey.com>
5762
5763 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5764
e91a1fa7
TT
57652017-09-03 Tom Tromey <tom@tromey.com>
5766
5767 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5768 gdb::unique_xmalloc_ptr.
5769
7ffd83d7
TT
57702017-09-03 Tom Tromey <tom@tromey.com>
5771
5772 * thread.c (print_thread_info_1): Use string_printf.
5773 (thread_apply_command, thread_apply_all_command): Use
5774 std::string.
5775
1ccbe998
TT
57762017-09-03 Tom Tromey <tom@tromey.com>
5777
5778 * valprint.c (val_print_string): Update.
5779 * gdbcore.h (memory_error_message): Return std::string.
5780 * corefile.c (memory_error_message): Return std::string.
5781 (memory_error): Update.
5782 * breakpoint.c (insert_bp_location): Update.
5783
23fdd69e
SM
57842017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5785
5786 * target/waitstatus.h (target_waitstatus_to_string): Change
5787 return type to std::string.
5788 * target/waitstatus.c (target_waitstatus_to_string): Return
5789 std::string.
5790 * target.h (target_waitstatus_to_string): Remove declaration.
5791 * infrun.c (resume, clear_proceed_status_thread,
5792 print_target_wait_results, do_target_wait, save_waitstatus,
5793 stop_all_threads): Adjust.
5794 * record-btrace.c (record_btrace_wait): Adjust.
5795 * target-debug.h
5796 (target_debug_print_struct_target_waitstatus_p): Adjust.
5797
5c811d30
JK
57982017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5799
5800 PR gdb/22046
5801 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5802 detection.
5803
0a2dde4a
SDJ
58042017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5805
5806 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5807 for setting/unsetting environment variables on the remote target.
5808 (New remote packets): Add entries for QEnvironmentHexEncoded,
5809 QEnvironmentUnset and QEnvironmentReset.
5810 * common/environ.c (gdb_environ::operator=): Extend method to
5811 handle m_user_set_env_list and m_user_unset_env_list.
5812 (gdb_environ::clear): Likewise.
5813 (match_var_in_string): Change type of first parameter from 'char
5814 *' to 'const char *'.
5815 (gdb_environ::set): Extend method to handle
5816 m_user_set_env_list and m_user_unset_env_list.
5817 (gdb_environ::unset): Likewise.
5818 (gdb_environ::clear_user_set_env): New method.
5819 (gdb_environ::user_set_envp): Likewise.
5820 (gdb_environ::user_unset_envp): Likewise.
5821 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5822 m_user_unset_env_list on move constructor/assignment.
5823 (unset): Add new default parameter 'update_unset_list = true'.
5824 (clear_user_set_env): New method.
5825 (user_set_envp): Likewise.
5826 (user_unset_envp): Likewise.
5827 (m_user_set_env_list): New std::set.
5828 (m_user_unset_env_list): Likewise.
5829 * common/rsp-low.c (hex2str): New function.
5830 (bin2hex): New overload for bin2hex function.
5831 * common/rsp-low.c (hex2str): New prototype.
5832 (str2hex): New overload prototype.
5833 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5834 QEnvironmentUnset and QEnvironmentReset.
5835 (remote_protocol_features): Add QEnvironmentHexEncoded,
5836 QEnvironmentUnset and QEnvironmentReset packets.
5837 (send_environment_packet): New function.
5838 (extended_remote_environment_support): Likewise.
5839 (extended_remote_create_inferior): Call
5840 extended_remote_environment_support.
5841 (_initialize_remote): Add QEnvironmentHexEncoded,
5842 QEnvironmentUnset and QEnvironmentReset packet configs.
5843 * unittests/environ-selftests.c (gdb_selftest_env_var):
5844 New variable.
5845 (test_vector_initialization): New function.
5846 (test_init_from_host_environ): Likewise.
5847 (test_reinit_from_host_environ): Likewise.
5848 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5849 Likewise.
5850 (test_unset_set_empty_vector): Likewise.
5851 (test_vector_clear): Likewise.
5852 (test_std_move): Likewise.
5853 (test_move_constructor):
5854 (test_self_move): Likewise.
5855 (test_set_unset_reset): Likewise.
5856 (run_tests): Rewrite in terms of the functions above.
5857
654670a4
WP
58582017-08-31 Weimin Pan <weimin.pan@oracle.com>
5859
5860 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5861 (adi_available): Use a temp variable of type CORE_ADDR as argument
5862 3 when calling target_auxv_search.
5863 (adi_normalize_address): Use masks and xor operators to calculate
5864 normalized address.
5865 (adi_read_versions, adi_write_versions, adi_print_versions)
5866 (do_examine, do_assign): Use paddress.
5867
7755ddb7
JB
58682017-08-29 John Baldwin <jhb@FreeBSD.org>
5869
5870 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5871 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5872 out of loop and add supply of FIR.
5873 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5874 add collect of FIR.
5875
fd437cbc
SM
58762017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5877
3804a343 5878 PR gdb/21827
fd437cbc
SM
5879 * cli/cli-script.c (define_command): Don't convert command name
5880 to lower case.
5881
988f6b3d
JB
58822017-08-25 Joel Brobecker <brobecker@adacore.com>
5883
5884 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5885 Update all callers accordingly. Remove all code blocks handling
5886 the case where DISPP is not NULL.
5887
663c44ac
JK
58882017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5889
5890 PR symtab/22003
5891 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5892 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5893 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5894
f1902523
JK
58952017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5896
5897 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5898 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5899 (read_comp_units_from_section): New parameter abbrev_section, use
5900 read_and_check_comp_unit_head, allocate signatured_type if needed.
5901 (create_all_comp_units): Update read_comp_units_from_section caller.
5902
87215ad1
SDJ
59032017-08-23 Pedro Alves <palves@redhat.com>
5904
5905 PR remote/21852
5906 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5907 to null_ptid and switch to thread without reading the registers
5908 after adding the inferior.
5909
6e41ddec
JK
59102017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5911
5912 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5913 compile-gcc.
5914 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5915 (compile_to_object): Implement compile_gcc.
5916 (_initialize_compile): Install "set compile-gcc". Initialize
5917 compile_gcc.
5918
e68c32d5
JK
59192017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5920
5921 * compile/compile.c (compile_to_object): Conditionally call
5922 set_verbose. Conditionally call compile or compile_v0.
5923
58afddc6
WP
59242017-08-07 Weimin Pan <weimin.pan@oracle.com>
5925
5926 * sparc64-tdep.h: (adi_normalize_address): New export.
5927 * sparc-nat.h: (open_adi_tag_fd): New export.
5928 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5929 * sparc64-linux-tdep.c:
5930 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5931 (sparc64_linux_handle_segmentation_fault): New function.
5932 (sparc64_linux_init_abi): Register
5933 sparc64_linux_handle_segmentation_fault
5934 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5935 (sparc64_addr_bits_remove): New function.
5936 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5937 (MAX_PROC_NAME_SIZE): New macro.
5938 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5939 (sparc64adilist): New variable.
5940 (adi_proc_list): New variable.
5941 (find_adi_info): New function.
5942 (add_adi_info): New function.
5943 (get_adi_info_proc): New function.
5944 (get_adi_info): New function.
5945 (info_adi_command): New function.
5946 (read_maps_entry): New function.
5947 (adi_available): New function.
5948 (adi_normalize_address): New function.
5949 (adi_align_address): New function.
5950 (adi_convert_byte_count): New function.
5951 (adi_tag_fd): New function.
5952 (adi_is_addr_mapped): New function.
5953 (adi_read_versions): New function.
5954 (adi_write_versions): New function.
5955 (adi_print_versions): New function.
5956 (do_examine): New function.
5957 (do_assign): New function.
5958 (adi_examine_command): New function.
5959 (adi_assign_command): New function.
5960 (_initialize_sparc64_adi_tdep): New function.
5961
11db9430
SM
59622017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5963
5964 * breakpoint.c (breakpoints_info): Rename to ...
5965 (info_breakpoints_command): ... this.
5966 (watchpoints_info): Rename to ...
5967 (info_watchpoints_command): ... this.
5968 (tracepoints_info): Rename to ...
5969 (info_tracepoints_command): ... this.
5970 (_initialize_breakpoint): Adjust.
5971 * dcache.c (dcache_info): Rename to ...
5972 (info_display_command): ... this.
5973 (_initialize_dcache): Adjust.
5974 * frame.h (args_info): Rename to ...
5975 (info_args_command): ... this.
5976 (locals_info): Rename to ...
5977 (info_locals_command): ... this.
5978 * infcmd.c (nofp_registers_info): Rename to ...
5979 (info_registers_command): ... this.
5980 (float_info): Rename to ...
5981 (info_float_command): ... this.
5982 (program_info): Rename to ...
5983 (info_program_command): ... this.
5984 (all_registers_info): Rename to ...
5985 (info_all_registers_command): ... this.
5986 (vector_info): Rename to ...
5987 (info_vector_command): ... this.
5988 (float_info): Rename to ...
5989 (info_float_command): ... this.
5990 (_initialize_infcmd): Adjust.
5991 * inferior.h (term_info): Rename to ...
5992 (info_terminal_command): ... this.
5993 * inflow.c (term_info): Rename to ...
5994 (info_terminal_command): ... this.
5995 (_initialize_inflow): Adjust.
5996 * infrun.c (signals_info): Rename to ...
5997 (info_signals_command): ... this.
5998 (_initialize_infrun): Adjust.
5999 * objc-lang.c (classes_info): Rename to ...
6000 (info_classes_command): ... this.
6001 (selectors_info): Rename to ...
6002 (info_selectors_command): ... this.
6003 (_initialize_objc_language): Adjust.
6004 * printcmd.c (sym_info): Rename to ...
6005 (info_symbol_command): ... this.
6006 (address_info): Rename to ...
6007 (info_address_command): ... this.
6008 (display_info): Rename to ...
6009 (info_display_command): ... this.
6010 (_initialize_printcmd): Adjust.
6011 * reverse.c (bookmarks_info): Rename to ...
6012 (info_breakpoints_command): ... this.
6013 (_initialize_reverse): Adjust.
6014 * ser-go32.c (dos_info): Rename to ...
6015 (info_serial_command): ... this.
6016 (_initialize_ser_dos): Adjust.
6017 * skip.c (skip_info): Rename to ...
6018 (info_skip_command): ... this.
6019 (_initialize_step_skip): Adjust.
6020 * source.c (line_info): Rename to ...
6021 (info_line_command): ... this.
6022 (source_info): Rename to ...
6023 (info_source_command)
6024 * stack.c (frame_info): Rename to ...
6025 (info_frame_command): ... this.
6026 (locals_info): Rename to ...
6027 (info_locals_command): ... this.
6028 (args_info): Rename to ...
6029 (info_args_command): ... this.
6030 (_initialize_stack): Adjust.
6031 * symtab.c (sources_info): Rename to ...
6032 (info_sources_command): ... this.
6033 (variables_info): Rename to ...
6034 (info_variables_command): ... this.
6035 (functions_info): Rename to ...
6036 (info_functions_command): ... this.
6037 (types_info): Rename to ...
6038 (info_types_command): ... this.
6039 (_initialize_symtab): Adjust.
6040 * target.c (target_info): Rename to ...
6041 (info_target_command): ... this.
6042 (initialize_targets): Adjust.
6043 * tracepoint.c (tvariables_info): Rename to ...
6044 (info_tvariables_command): ... this.
6045 (scope_info): Rename to ...
6046 (info_scope_command): ... this.
6047 (trace_dump_actions): Adjust.
6048 (_initialize_tracepoint): Adjust.
6049
b270e6f9
TT
60502017-08-22 Tom Tromey <tom@tromey.com>
6051
6052 * breakpoint.h (install_breakpoint): Update.
6053 * breakpoint.c (add_solib_catchpoint): Update.
6054 (install_breakpoint): Change argument to a std::unique_ptr.
6055 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
6056 (create_breakpoint_sal, create_breakpoint): Update.
6057 (watch_command_1, catch_exec_command_1)
6058 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
6059 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
6060 Return the breakpoint.
6061 (set_raw_breakpoint_without_location, set_raw_breakpoint)
6062 (new_single_step_breakpoint): Update.
6063 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
6064 std::unique_ptr.
6065 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
6066 std::unique_ptr.
6067 * break-catch-sig.c (create_signal_catchpoint): Use
6068 std::unique_ptr.
6069 * ada-lang.c (create_ada_exception_catchpoint): Use
6070 std::unique_ptr.
6071
36bd8eaa
TT
60722017-08-22 Tom Tromey <tom@tromey.com>
6073
6074 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
6075
56f37645
TT
60762017-08-22 Tom Tromey <tom@tromey.com>
6077
6078 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
6079 (lookup_partial_symbol): Update.
6080
0b581c69
TT
60812017-08-22 Tom Tromey <tom@tromey.com>
6082
6083 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
6084 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
6085 (find_and_open_source, symtab_to_fullname): Update.
6086 * psymtab.c (psymtab_to_fullname): Update.
6087
14278e1f
TT
60882017-08-22 Tom Tromey <tom@tromey.com>
6089
6090 * exec.c (exec_file_attach): Update.
6091 * linux-thread-db.c (try_thread_db_load): Update.
6092 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
6093 * utils.c (gdb_realpath): Change return type.
6094 (gdb_realpath_keepfile): Update.
6095 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
6096 (_initialize_utils): Register the new self test.
6097 * source.c (openp): Update.
6098 (find_and_open_source): Update.
6099 * nto-tdep.c (nto_find_and_open_solib): Update.
6100 * main.c (set_gdb_data_directory): Update.
6101 (captured_main_1): Update.
6102 * dwarf2read.c (dwarf2_get_dwz_file): Update
6103 (dw2_map_symbol_filenames): Update.
6104 * auto-load.c (auto_load_safe_path_vec_update): Update.
6105 (filename_is_in_auto_load_safe_path_vec): Change type of
6106 "filename_realp".
6107 (auto_load_objfile_script): Update.
6108 (file_is_auto_load_safe): Update. Use std::string.
6109 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
6110
4971c9a7
TT
61112017-08-22 Tom Tromey <tom@tromey.com>
6112
6113 * utils.c (gdb_realpath_keepfile): Return a
6114 gdb::unique_xmalloc_ptr.
6115 * exec.c (exec_file_attach): Update.
6116 * utils.h (gdb_realpath_keepfile): Return a
6117 gdb::unique_xmalloc_ptr.
6118
e3e41d58
TT
61192017-08-22 Tom Tromey <tom@tromey.com>
6120
6121 * compile/compile.c (compile_file_command): Use
6122 gdb::unique_xmalloc_ptr, std::string.
6123 * utils.c (gdb_abspath): Change return type.
6124 * source.c (openp): Update.
6125 * objfiles.c (allocate_objfile): Update.
6126 * main.c (set_gdb_data_directory): Update.
6127 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
6128
0d999a6e
ZZ
61292017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
6130
6131 * cli-cmds.c (list_commands): List actual code around more than
6132 one location.
6133
329d5e7e
JB
61342017-08-21 John Baldwin <jhb@FreeBSD.org>
6135
6136 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
6137
bf223d3e
PA
61382017-08-21 Pedro Alves <palves@redhat.com>
6139
6140 PR gdb/19487
6141 * c-exp.y (variable production): Handle function aliases.
6142 * minsyms.c (msymbol_is_text): New function.
6143 * minsyms.h (msymbol_is_text): Declare.
6144 * symtab.c (find_function_alias_target): New function.
6145 * symtab.h (find_function_alias_target): Declare.
6146
c973d0aa
PA
61472017-08-21 Pedro Alves <palves@redhat.com>
6148
6149 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
6150 typedefs.
6151 * typeprint.c (whatis_exp): If handling "whatis", and expression
6152 is OP_TYPE, strip one typedef level. Otherwise don't strip
6153 typedefs here.
6154 * valops.c (value_cast): Save "to" type before resolving
6155 stubs/typedefs. Use that type as resulting value's type.
6156
2989a365
TT
61572017-08-18 Tom Tromey <tom@tromey.com>
6158 Pedro Alves <palves@redhat.com>
6159
6160 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
6161 * sol-thread.c (sol_thread_resume, sol_thread_wait)
6162 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
6163 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
6164 * proc-service.c (ps_xfer_memory): Use scoped_restore.
6165 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
6166 (linux_get_siginfo_data): Add "thread" argument. Use
6167 scoped_restore.
6168 * linux-nat.c (linux_child_follow_fork)
6169 (check_stopped_by_watchpoint): Use scoped_restore.
6170 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
6171 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
6172 (restore_inferior_ptid, save_inferior_ptid): Remove.
6173 * btrace.c (btrace_fetch): Use scoped_restore.
6174 * bsd-uthread.c (bsd_uthread_fetch_registers)
6175 (bsd_uthread_store_registers): Use scoped_restore.
6176 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
6177 scoped_restore.
6178 * aix-thread.c (aix_thread_resume, aix_thread_wait)
6179 (aix_thread_xfer_partial): Use scoped_restore.
6180 * inferior.h (save_inferior_ptid): Remove.
6181
e60eb288
YQ
61822017-08-18 Yao Qi <yao.qi@linaro.org>
6183
6184 PR tdep/21818
6185 * arm-tdep.c (gdb_print_insn_arm): Mark
6186 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
6187
6d580b63
YQ
61882017-08-18 Yao Qi <yao.qi@linaro.org>
6189
6190 * NEWS: Mention GDBserver's new option "--selftest".
6191 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
6192 * selftest.c: Move it to common/selftest.c.
6193 * selftest.h: Move it to common/selftest.h.
6194 * selftest-arch.c (reset): New function.
6195 (tests_with_arch): Call reset.
6196
86dcbf50
YQ
61972017-08-18 Yao Qi <yao.qi@linaro.org>
6198
6199 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
6200 instead of exception_fprintf and printf_filtered.
6201
7649770c
YQ
62022017-08-18 Yao Qi <yao.qi@linaro.org>
6203
6204 * selftest.c (register_self_test): Rename it to
6205 selftests::register_test.
6206 (run_self_tests): selftest::run_tests.
6207 * selftest.h: Update declarations.
6208 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
6209 selftests::register_test_foreach_arch.
6210 * selftest-arch.h: Update declaration.
6211 * aarch64-tdep.c: Update.
6212 * arm-tdep.c: Likewise.
6213 * disasm-selftests.c: Likewise.
6214 * dwarf2loc.c: Likewise.
6215 * dwarf2-frame.c: Likewise.
6216 * findvar.c: Likewise.
6217 * gdbarch-selftests.c: Likewise.
6218 * maint.c (maintenance_selftest): Likewise.
6219 * regcache.c: Likewise.
6220 * rust-exp.y: Likewise.
6221 * selftest-arch.c: Likewise.
6222 * unittests/environ-selftests.c: Likewise.
6223 * unittests/function-view-selftests.c: Likewise.
6224 * unittests/offset-type-selftests.c: Likewise.
6225 * unittests/optional-selftests.c: Likewise.
6226 * unittests/scoped_restore-selftests.c: Likewise.
6227 * utils-selftests.c: Likewise.
6228
b0cba12e
PA
62292017-08-17 Pedro Alves <palves@redhat.com>
6230
6231 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
6232 local.
6233
4c8aa72d
PA
62342017-08-17 Pedro Alves <palves@redhat.com>
6235
6236 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
6237 field.
6238 (reset_die_in_process): Delete, replaced by ...
6239 (process_die_scope): ... this new class. Make it responsible for
6240 freeing cu->line_header too.
6241 (process_die): Use process_die_scope.
6242 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
6243 cu->line_header_die_owner. Don't release the line header if it's
6244 owned by the CU.
6245 (setup_type_unit_groups): Make the CU/DIE own the line header.
6246 Don't release the line header here.
6247
ba713918
AL
62482017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
6249
6250 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
6251
44d0fb3a
RK
62522017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
6253
6254 * NEWS: Mention new shortcuts for nexti and stepi in TUI
6255 Single-Key mode
6256
a5afdb16
RK
62572017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
6258
6259 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
6260 mode command list.
6261
47613aeb
SH
62622017-08-15 Stafford Horne <shorne@gmail.com>
6263
6264 * MAINTAINERS (Write After Approval): Add Stafford Horne.
6265
9c3cc999
SH
62662017-08-15 Stafford Horne <shorne@gmail.com>
6267
6268 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
6269
206726fb
SDJ
62702017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
6271
6272 PR gdb/21954
6273 * infcmd.c (unset_environment_command): Use the 'clear' method on
6274 the environment instead of resetting it.
6275
0335ac6d
JB
62762017-08-15 John Baldwin <jhb@FreeBSD.org>
6277
6278 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
6279 platforms.
6280
d3abe1c8
TT
62812017-08-14 Tom Tromey <tom@tromey.com>
6282
6283 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
6284 (print_binary_chars): Likewise.
6285 (BITS_IN_BYTES): Remove.
6286
d6382fff
TT
62872017-08-14 Tom Tromey <tom@tromey.com>
6288
6289 PR gdb/21675
6290 * valprint.c (LOW_ZERO): Change value to 034.
6291 (print_octal_chars): Add static_asserts for octal constants.
6292 * printcmd.c (print_scalar_formatted): Add 'd' case.
6293
f978cb06
TT
62942017-08-11 Tom Tromey <tom@tromey.com>
6295
6296 * symfile.c (add_symbol_file_command): Use std::vector.
6297
2f5404b3
TT
62982017-08-14 Tom Tromey <tom@tromey.com>
6299
6300 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
6301 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
6302 std::move.
6303 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
6304
de7985c3
PA
63052017-08-11 Pedro Alves <palves@redhat.com>
6306
6307 * infrun.c (process_event_stop_test): Adjust
6308 function_name_is_marked_for_skip call.
6309 * skip.c: Include <list>.
6310 (skiplist_entry): Make it a class with private fields, and
6311 getters/setters.
6312 (skiplist_entry_chain): Delete.
6313 (skiplist_entries): New.
6314 (skiplist_entry_count): Delete.
6315 (highest_skiplist_entry_num): New.
6316 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
6317 (add_skiplist_entry): Delete.
6318 (skiplist_entry::skiplist_entry): New.
6319 (skiplist_entry::add_entry): New.
6320 (skip_file_command, skip_function): Adjust.
6321 (compile_skip_regexp): Delete.
6322 (skip_command): Don't compile regexp here. Adjust to use
6323 skiplist_entry::add_entry.
6324 (skip_info): Adjust to use range-for and getters.
6325 (skip_enable_command, skip_disable_command): Adjust to use
6326 range-for and setters.
6327 (skip_delete_command): Adjust to use std::list.
6328 (add_skiplist_entry): Delete.
6329 (skip_file_p): Delete, refactored as ...
6330 (skiplist_entry::do_skip_file_p): ... this new method.
6331 (skip_gfile_p): Delete, refactored as ...
6332 (skiplist_entry::do_gskip_file_p): ... this new method.
6333 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
6334 (skiplist_entry::skip_function_p): ... this new method.
6335 (function_name_is_marked_for_skip): Now returns bool, and takes
6336 the function sal by const reference. Adjust to use range-for and
6337 skiplist_entry methods.
6338 (_initialize_step_skip): Remove references to
6339 skiplist_entry_chain, skiplist_entry_count.
6340 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
6341 takes the function sal by const reference.
6342
be7d3cd5
YQ
63432017-08-11 Yao Qi <yao.qi@linaro.org>
6344
6345 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
6346 (dwarf2_frame_cache): Remove reset_cache_cleanup.
6347 (dwarf2_frame_cache):
6348 * frame-unwind.c (frame_unwind_try_unwinder): Catch
6349 RETURN_MASK_ALL and set *this_case to NULL.
6350 * frame-unwind.h: Update comments.
6351
1c90d9f0
YQ
63522017-08-11 Yao Qi <yao.qi@linaro.org>
6353
6354 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
6355 (dwarf2_frame_state_copy_regs): Remove.
6356 (dwarf2_frame_state_free_regs): Remove.
6357 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
6358 (dwarf2_restore_rule): Call method .alloc_regs instead of
6359 dwarf2_frame_state_alloc_regs.
6360 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
6361 constructor. Call std::move.
6362 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
6363 (dwarf2_frame_cache): Likewise.
6364
6365 [GDB_SELF_TEST]: Include selftest.h and
6366 selftest-arch.h.
6367 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
6368 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
6369 execute_cfa_program_test.
6370
6371 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
6372 copy ctor, assignment operator, move assignment.
6373 <alloc_regs>: New method.
6374 <swap>: New method.
6375 (struct dwarf2_frame_state): Delete dtor.
6376 (dwarf2_frame_state_alloc_regs): Remove declaration.
6377 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
6378 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
6379
afe37d6b
YQ
63802017-08-11 Yao Qi <yao.qi@linaro.org>
6381
6382 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
6383 (dwarf2_frame_state::dwarf2_frame_state): New.
6384 (dwarf2_frame_state::~dwarf2_frame_state): New.
6385 (dwarf2_fetch_cfa_info): Update.
6386 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
6387 rather than a pointer. Update code.
6388 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
6389 dtor.
6390 <data_align, code_align, retaddr_column>: Change them to const.
6391 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
6392 to bool.
6393
b348037f
YQ
63942017-08-11 Yao Qi <yao.qi@linaro.org>
6395
6396 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
6397 <loc.exp>: New field.
6398 * dwarf2-frame.c (execute_cfa_program): Update.
6399 (dwarf2_frame_prev_register): Update.
6400
e7c9de26
PA
64012017-08-10 Pedro Alves <palves@redhat.com>
6402
6403 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
6404
e8c6b620
JB
64052017-08-09 John Baldwin <jhb@FreeBSD.org>
6406
6407 * fbsd-nat.c (struct fbsd_fork_info): Remove.
6408 (fbsd_pending_children): Use std::list.
6409 (fbsd_remember_child): Likewise.
6410 (fbsd_is_child_pending): Likewise.
6411 (fbsd_pending_vfork_done): Use std::forward_list.
6412 (fbsd_add_vfork_done): Likewise.
6413 (fbsd_is_vfork_done_pending): Likewise.
6414 (fbsd_next_vfork_done): Likewise.
6415
e4a26669
JB
64162017-08-09 John Baldwin <jhb@FreeBSD.org>
6417
6418 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
6419 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
6420 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
6421 for `mapfilename'.
6422 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 6423 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 6424
142311d3
JB
64252017-08-09 John Baldwin <jhb@FreeBSD.org>
6426
6427 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
6428 "filestuff.h".
6429 (fbsd_find_memory_regions): Fix `mapfile' initialization.
6430
42fa2e0e
TT
64312017-08-09 Tom Tromey <tom@tromey.com>
6432
6433 * skip.c (skiplist_entry): New constructor.
6434 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
6435 (skiplist_entry::file_is_glob): Now bool.
6436 (skiplist_entry::file, skiplist_entry::function): Now
6437 std::string.
6438 (make_skip_entry): Return a unique_ptr. Use new.
6439 (free_skiplist_entry, free_skiplist_entry_cleanup)
6440 (make_free_skiplist_entry_cleanup): Remove.
6441 (skip_command, skip_disable_command, add_skiplist_entry)
6442 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
6443 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
6444 (function_name_is_marked_for_skip): Update.
6445 (skip_delete_command): Update. Use delete.
6446
cd3af38d
JW
64472017-08-09 Jiong Wang <jiong.wang@arm.com>
6448
6449 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
6450 (aarch64_linux_core_read_description): New function.
6451 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
6452
29592bde
PA
64532017-08-09 Pedro Alves <palves@redhat.com>
6454
6455 * cp-name-parser.y (cp_comp_to_string): Return a
6456 gdb::unique_xmalloc_ptr<char>.
6457 * cp-support.c (replace_typedefs_qualified_name)
6458 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
6459 (cp_canonicalize_string_full): Use op= instead of explicit
6460 convertion.
6461 (cp_class_name_from_physname, method_name_from_physname)
6462 (cp_func_name, cp_remove_params): Adjust to use
6463 gdb::unique_xmalloc_ptr<char>.
6464 * cp-support.h (cp_comp_to_string): Return a
6465 gdb::unique_xmalloc_ptr<char>.
6466 * python/py-type.c (typy_lookup_type): Adjust to use
6467 gdb::unique_xmalloc_ptr<char>.
6468
b3340438
L
64692017-08-09 H.J. Lu <hongjiu.lu@intel.com>
6470
6471 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
6472
e88e8651
YQ
64732017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
6474 Yao Qi <yao.qi@linaro.org>
6475
6476 * cp-support.c (cp_canonicalize_string_full): Use
6477 gdb::unique_xmalloc_ptr<char>.
6478 (cp_canonicalize_string): Likewise.
6479
f5a29eb0
YQ
64802017-08-09 Yao Qi <yao.qi@linaro.org>
6481
6482 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
6483 * regformats/i386/amd64-avx-avx512.dat: Remove.
6484 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
6485 * regformats/i386/amd64-avx-mpx.dat:Remove.
6486 * regformats/i386/amd64-avx.dat: Remove.
6487 * regformats/i386/amd64-mpx.dat: Remove.
6488 * regformats/i386/i386-avx-avx512.dat: Remove.
6489 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
6490 * regformats/i386/i386-avx-mpx.dat: Remove.
6491 * regformats/i386/i386-mmx.dat: Remove.
6492 * regformats/i386/i386-mpx.dat: Remove.
6493
57757c2f
YQ
64942017-08-09 Yao Qi <yao.qi@linaro.org>
6495
6496 * amd64-tdep.h (tdesc_x32): Remove the declaration.
6497 * amd64-tdep.c: Don't include features/i386/x32*.c.
6498 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
6499 functions.
6500 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
6501 and i386/x32-avx-avx512.
6502 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
6503 and i386/x32.xml.
6504 * features/i386/x32-avx-avx512.c: Removed.
6505 * features/i386/x32-avx-avx512.xml: Removed.
6506 * features/i386/x32-avx.c: Removed.
6507 * features/i386/x32-avx.xml: Removed.
6508 * features/i386/x32.c: Removed.
6509 * features/i386/x32.xml: Removed.
6510 * regformats/i386/x32-avx-avx512.dat: Removed.
6511 * regformats/i386/x32-avx.dat: Removed.
6512 * regformats/i386/x32.dat: Removed.
6513
ba7b109b
MR
65142017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6515
6516 PR breakpoints/21886
6517 * mem-break.c (default_memory_insert_breakpoint): Use
6518 `->placed_address' rather than `->reqstd_address' for the
6519 breakpoint location.
6520
e347efc3
MR
65212017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6522
6523 * arch-utils.c (default_print_insn): Remove arch/mach/endian
6524 assertions.
6525
0dba2a6c
MR
65262017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6527
6528 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
6529 a union of `tdep_info', `tdesc_data' and `id'.
6530 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
6531 rather than `info.tdep_info'.
6532 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
6533 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6534 * i386-tdep.c (i386_gdbarch_init): Likewise.
6535 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
6536 * mips-tdep.c (mips_gdbarch_init): Likewise.
6537 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6538 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6539 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
6540 `info.tdep_info'.
6541 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
6542 `info.tdep_info'.
6543 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6544 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
6545 `info.tdep_info'.
6546 * spu-tdep.c (spu_gdbarch_init): Likewise.
6547 * gdbarch.h: Regenerate.
6548
16eb6b2d
LS
65492017-08-07 Leszek Swirski <leszeks@google.com>
6550
7b005726 6551 PR symtab/20899
16eb6b2d
LS
6552 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
6553
74cbb09e
SM
65542017-08-07 Simon Marchi <simon.marchi@ericsson.com>
6555
6556 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
6557 (gdbsim_open): Rename gdb_argv args object to argv.
6558
ee0c3293
TT
65592017-08-05 Tom Tromey <tom@tromey.com>
6560
6561 * compile/compile-object-load.c (compile_object_load): Use
6562 gdb::unique_xmalloc_ptr.
6563 * cli/cli-dump.c (scan_filename): Rename from
6564 scan_filename_with_cleanup. Change return type.
6565 (scan_expression): Rename from scan_expression_with_cleanup.
6566 Change return type.
6567 (dump_memory_to_file, dump_value_to_file, restore_command):
6568 Use gdb::unique_xmalloc_ptr. Update.
6569 * cli/cli-cmds.c (find_and_open_script): Use
6570 gdb::unique_xmalloc_ptr.
6571 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
6572 * symmisc.c (maintenance_print_symbols)
6573 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
6574 * symfile.c (symfile_bfd_open, generic_load)
6575 (add_symbol_file_command, remove_symbol_file_command): Use
6576 gdb::unique_xmalloc_ptr.
6577 * source.c (openp): Use gdb::unique_xmalloc_ptr.
6578 * psymtab.c (maintenance_print_psymbols): Use
6579 gdb::unique_xmalloc_ptr.
6580 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
6581 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
6582 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
6583 (reload_shared_libraries_1): Likewise.
6584
3232fabd
TT
65852017-08-05 Tom Tromey <tom@tromey.com>
6586
6587 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
6588 (rust_op_vector, rust_set_vector): New typedefs.
6589 (current_parser): New global.
6590 (work_obstack): Change to pointer type. Update all users.
6591 (rust_ast, pstate): Remove globals.
6592 (struct rust_parser): New.
6593 (%union) <params, field_inits>: Change type.
6594 (start, tuple_expr, unit_expr, struct_expr_list, literal)
6595 (field_expr, expr_list, maybe_expr_list, type_list): Update.
6596 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
6597 (convert_params_to_types, convert_params_to_expression): Change
6598 type of "params".
6599 (ast_string): Change type of "fields".
6600 (rust_parse): Make a rust_parser. Remove cleanups.
6601 (rust_lex_tests): Make and install an auto_obstack.
6602
f02fd774
YQ
66032017-08-04 Yao Qi <yao.qi@linaro.org>
6604
6605 * configure.srv (ipa_x32_linux_regobj): New.
6606 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
6607 instead of X86_TDESC_AVX512.
6608 (initialize_low_tracepoint): Call
6609 init_registers_x32_avx_avx512_linux.
6610
91975afd
YQ
66112017-08-04 Yao Qi <yao.qi@linaro.org>
6612
6613 * utils.h (gdb_argv): Add namespace std for nullptr_t.
6614
2331fa3a
RK
66152017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
6616
6617 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
6618
744e4fe1
TT
66192017-08-03 Tom Tromey <tom@tromey.com>
6620
6621 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
6622 Remove.
6623 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
6624
1c034b67
TT
66252017-08-03 Tom Tromey <tom@tromey.com>
6626
6627 * python/py-param.c (compute_enum_values): Use gdb_argv.
6628
773a1edc
TT
66292017-08-03 Tom Tromey <tom@tromey.com>
6630
6631 * utils.h (struct gdb_argv_deleter): New.
6632 (gdb_argv): New class.
6633 * utils.c (gdb_argv::reset): New method.
6634 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
6635 * tracefile.c (tsave_command): Use gdb_argv.
6636 * top.c (new_ui_command): Use gdb_argv.
6637 * symmisc.c (maintenance_print_symbols)
6638 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
6639 * symfile.c (symbol_file_command, generic_load)
6640 (remove_symbol_file_command): Use gdb_argv.
6641 * stack.c (backtrace_command): Use gdb_argv.
6642 * source.c (add_path, show_substitute_path_command)
6643 (unset_substitute_path_command, set_substitute_path_command):
6644 Use gdb_argv.
6645 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
6646 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
6647 * remote.c (extended_remote_run, remote_put_command)
6648 (remote_get_command, remote_delete_command): Use gdb_argv.
6649 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
6650 (gdbsim_open): Use gdb_argv.
6651 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
6652 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
6653 * procfs.c (procfs_info_proc): Use gdb_argv.
6654 * interps.c (interpreter_exec_cmd): Use gdb_argv.
6655 * infrun.c (handle_command): Use gdb_argv.
6656 * inferior.c (add_inferior_command, clone_inferior_command):
6657 Use gdb_argv.
6658 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
6659 * exec.c (exec_file_command): Use gdb_argv.
6660 * cli/cli-cmds.c (alias_command): Use gdb_argv.
6661 * compile/compile.c (build_argc_argv): Use gdb_argv.
6662
0d50bde3
TT
66632017-08-03 Tom Tromey <tom@tromey.com>
6664
6665 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
6666
7f968c89
TT
66672017-08-03 Tom Tromey <tom@tromey.com>
6668
6669 * python/python.c (compute_python_string): Return std::string.
6670 (gdbpy_eval_from_control_command): Update.
6671 (do_start_initialization): Use std::string.
6672 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
6673 xstrprintf.
6674 * python/py-breakpoint.c (local_setattro): Use string_printf, not
6675 xstrprintf.
6676
3c9ebddd
TT
66772017-08-03 Tom Tromey <tom@tromey.com>
6678
6679 * top.h (do_restore_instream_cleanup): Remove.
6680 * top.c (do_restore_instream_cleanup): Remove.
6681 (read_command_file): Use scoped_restore.
6682 * cli/cli-script.c (execute_user_command): Use scoped_restore.
6683
b51b225e
TT
66842017-08-03 Tom Tromey <tom@tromey.com>
6685
6686 * cli/cli-script.c (execute_user_command)
6687 (execute_control_command): Use scoped_restore.
6688
ac991630
TT
66892017-08-03 Tom Tromey <tom@tromey.com>
6690
6691 * cli/cli-script.c (do_restore_user_call_depth): Remove.
6692 (execute_user_command): Remove user_call_depth; use
6693 user_args_stack's size instead.
6694
898e0c8e
TT
66952017-08-03 Tom Tromey <tom@tromey.com>
6696
6697 * top.h (in_user_command): Remove.
6698 * top.c (in_user_command): Remove.
6699 * cli/cli-script.c (do_restore_user_call_depth)
6700 (execute_user_command): Update.
6701
26fcd5d7
TT
67022017-08-03 Tom Tromey <tom@tromey.com>
6703
6704 * valops.c (search_struct_method): Use gdb::byte_vector.
6705 * valarith.c (value_concat): Use std::vector.
6706 * target.c (memory_xfer_partial): Use gdb::byte_vector.
6707 (simple_search_memory): Likewise.
6708 * printcmd.c (find_string_backward): Use gdb::byte_vector.
6709 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
6710 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
6711 * elfread.c (elf_rel_plt_read): Use std::string.
6712 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
6713 * cli/cli-dump.c (restore_section_callback): Use
6714 gdb::byte_vector.
6715
7c218e6c
TT
67162017-08-03 Tom Tromey <tom@tromey.com>
6717
6718 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
6719
31b68d4a
TT
67202017-08-03 Tom Tromey <tom@tromey.com>
6721
6722 * tui/tui-regs.c (tui_restore_gdbout): Remove.
6723 (tui_register_format): Use scoped_restore.
6724
2ec845e7
TT
67252017-08-03 Tom Tromey <tom@tromey.com>
6726
6727 * reverse.c (exec_direction_default): Remove.
6728 (exec_reverse_once): Use scoped_restore.
6729 * remote.c (restore_remote_timeout): Remove.
6730 (remote_flash_erase, remote_flash_write, remote_flash_done)
6731 (readchar, remote_serial_write): Use scoped_restore.
6732 * cli/cli-script.c (struct source_cleanup_lines_args)
6733 (source_cleanup_lines): Remove.
6734 (script_from_file): Use scoped_restore.
6735 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
6736 (source_command): Use scoped_restore.
6737
b3bc8453
TT
67382017-08-03 Tom Tromey <tom@tromey.com>
6739
6740 * utils.h (make_cleanup_free_so): Remove.
6741 * utils.c (do_free_so, make_cleanup_free_so): Remove.
6742 * solist.h (struct so_deleter): New.
6743 (so_list_up): New typedef.
6744 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
6745
e3ad2841
TT
67462017-08-03 Tom Tromey <tom@tromey.com>
6747
6748 * utils.h (make_cleanup_restore_current_language): Remove.
6749 * utils.c (do_restore_current_language)
6750 (make_cleanup_restore_current_language): Remove.
6751 * parse.c (parse_exp_in_context_1)
6752 (parse_expression_with_language): Use
6753 scoped_restore_current_language.
6754 * mi/mi-main.c (mi_cmd_execute): Use
6755 scoped_restore_current_language.
6756 * language.h (scoped_restore_current_language): New class.
6757
b80cf838
TT
67582017-08-03 Tom Tromey <tom@tromey.com>
6759
6760 * compile/compile.c (cleanup_unlink_file): Remove.
6761 (compile_to_object): Use gdb::unlinker.
6762 (eval_compile_command): Likewise.
6763
fad0444a
TT
67642017-08-03 Tom Tromey <tom@tromey.com>
6765
6766 * utils.h (make_cleanup_fclose): Remove.
6767 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6768
6e7bc05c
TT
67692017-08-03 Tom Tromey <tom@tromey.com>
6770
6771 * top.c (open_terminal_stream): Return gdb_file_up.
6772 (new_ui_command): Update.
6773
4a45905b
TT
67742017-08-03 Tom Tromey <tom@tromey.com>
6775
6776 * source.c (print_source_lines_base, forward_search_command)
6777 (reverse_search_command): Use gdb_file_up.
6778
7cd06d6e
TT
67792017-08-03 Tom Tromey <tom@tromey.com>
6780
6781 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6782
ed166945
TT
67832017-08-03 Tom Tromey <tom@tromey.com>
6784
6785 * cli/cli-cmds.c (find_and_open_script): Change return type.
6786 Remove "streamp" and "full_path" parameters.
6787 (source_script_with_search): Update.
6788 * auto-load.c (source_script_file): Update.
6789 * cli/cli-cmds.h (find_and_open_script): Change type.
6790 (open_script): New struct.
6791
d419f42d
TT
67922017-08-03 Tom Tromey <tom@tromey.com>
6793
6794 * xml-support.c (xml_fetch_content_from_file): Update.
6795 * ui-file.c (stdio_file::open): Update.
6796 * tracefile-tfile.c (tfile_start): Update.
6797 * remote.c (remote_file_put, remote_file_get): Update.
6798 * nat/linux-procfs.c (linux_proc_get_int)
6799 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6800 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6801 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6802 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6803 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6804 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6805 * linux-nat.c (linux_proc_pending_signals): Update.
6806 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6807 (file_closer): Remove.
6808 * compile/compile.c (compile_to_object): Update.
6809 * common/filestuff.h (struct gdb_file_deleter): New.
6810 (gdb_file_up): New typedef.
6811 (gdb_fopen_cloexec): Change return type.
6812 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6813 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6814 (dump_binary_file, restore_binary_file): Update.
6815 * auto-load.c (auto_load_objfile_script_1): Update.
6816
4a2b031d
TT
68172017-08-03 Tom Tromey <tom@tromey.com>
6818
6819 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6820 (info_static_tracepoint_markers_command): Likewise.
6821 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6822 * skip.c (skip_info): Use ui_out_emit_table.
6823 * progspace.c (print_program_space): Use ui_out_emit_table.
6824 * osdata.c (info_osdata): Use ui_out_emit_table.
6825 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6826 ui_out_emit_table.
6827 * linux-thread-db.c (info_auto_load_libthread_db): Use
6828 ui_out_emit_table.
6829 * inferior.c (print_inferior): Use ui_out_emit_table.
6830 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6831 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6832 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6833 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6834 * ui-out.h (class ui_out_emit_table): New.
6835
a4f320fd
MR
68362017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6837
6838 * mips-tdep.c (mips_fpu_type_str): New function.
6839 (mips_dump_tdep): Call it.
6840
a2f1f308
MR
68412017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6842
6843 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6844 `->mips_fpu_type'.
6845
7e5ed83b
XR
68462017-07-31 Xavier Roirand <roirand@adacore.com>
6847
6848 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6849
4c9dc811
XR
68502017-07-27 Xavier Roirand <roirand@adacore.com>
6851
6852 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6853
27d41eac
YQ
68542017-07-26 Yao Qi <yao.qi@linaro.org>
6855
6856 * cli/cli-cmds.c (maintenancechecklist): New variable.
6857 * gdbcmd.h (maintenancechecklist): Declare it.
6858 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6859 Call i386_linux_read_description with different masks.
6860 * maint.c (maintenance_check_command): New function.
6861 (_initialize_maint_cmds): Call add_prefix_cmd.
6862 * target-descriptions.c (tdesc_reg): override operator != and ==.
6863 (tdesc_type): Likewise.
6864 (tdesc_feature): Likewise.
6865 (target_desc): Likewise.
6866 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6867 (maintenance_check_xml_descriptions): New function.
6868 (_initialize_target_descriptions) Add command "xml-descriptions".
6869 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6870
ea03d0d3
YQ
68712017-07-26 Yao Qi <yao.qi@linaro.org>
6872
6873 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6874 Include features/i386/32bit-*.c.
6875 (i386_linux_read_description): Generate target description if it
6876 doesn't exist.
6877 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6878 functions.
6879 * features/i386/32bit-linux.c: Re-generated.
6880 * features/i386/32bit-sse.c: Likewise.
6881 * target-descriptions.c (print_c_feature::visit): Print code to
6882 set register number if needed.
6883 (print_c_feature) <m_next_regnum>: New field.
6884
25aa13e5
YQ
68852017-07-26 Yao Qi <yao.qi@linaro.org>
6886
6887 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6888 (FEATURE_XMLFILES): New.
6889 (FEATURE_CFILES): New.
6890 New rules.
6891 (clean-cfiles): Remove generated c files.
6892 * features/i386/32bit-avx.c: Generated.
6893 * features/i386/32bit-avx512.c: Generated.
6894 * features/i386/32bit-core.c: Generated.
6895 * features/i386/32bit-linux.c: Generated.
6896 * features/i386/32bit-mpx.c: Generated.
6897 * features/i386/32bit-pkeys.c: Generated.
6898 * features/i386/32bit-sse.c: Generated.
6899 * target-descriptions.c: Include algorithm.
6900 (tdesc_element_visitor): Add method visit_end.
6901 (print_c_tdesc): Implement visit_end.
6902 (print_c_tdesc:: m_filename_after_features): Move it to
6903 protected.
6904 (print_c_feature): New class.
6905 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6906 name starts with "i386/32bit-".
6907
6eb1e6a8
YQ
69082017-07-26 Yao Qi <yao.qi@linaro.org>
6909
6910 * target-descriptions.c (tdesc_element_visitor): New class.
6911 (tdesc_element): New class.
6912 (tdesc_reg): Inherit from tdesc_element.
6913 (tdesc_reg::accept): New function.
6914 (tdesc_type): Inherit from tdesc_element.
6915 (tdesc_type::accept): New function.
6916 (tdesc_feature): Inherit from tdesc_element.
6917 (tdesc_feature::accept): New function.
6918 (target_desc): Inherit from tdesc_element.
6919 (target_desc::target_desc): New.
6920 (target_desc::~target_desc): New.
6921 (target_desc::accept): New.
6922 (allocate_target_description): Use new.
6923 (free_target_description): Use delete.
6924 (print_c_tdesc): New class.
6925 (maint_print_c_tdesc_cmd): Adjust.
6926
6927 * features/aarch64.c: Re-generated.
6928 * features/arc-arcompact.c: Re-generated.
6929 * features/arc-v2.c: Re-generated.
6930 * features/arm/arm-with-iwmmxt.c: Re-generated.
6931 * features/arm/arm-with-m.c: Re-generated.
6932 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6933 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6934 * features/arm/arm-with-neon.c: Re-generated.
6935 * features/arm/arm-with-vfpv2.c: Re-generated.
6936 * features/arm/arm-with-vfpv3.c: Re-generated.
6937 * features/i386/amd64-avx-avx512.c: Re-generated.
6938 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6939 * features/i386/amd64-avx.c: Re-generated.
6940 * features/i386/amd64-avx-linux.c: Re-generated.
6941 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6942 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6943 * features/i386/amd64-avx-mpx.c: Re-generated.
6944 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6945 * features/i386/amd64.c: Re-generated.
6946 * features/i386/amd64-linux.c: Re-generated.
6947 * features/i386/amd64-mpx.c: Re-generated.
6948 * features/i386/amd64-mpx-linux.c: Re-generated.
6949 * features/i386/i386-avx-avx512.c: Re-generated.
6950 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6951 * features/i386/i386-avx.c: Re-generated.
6952 * features/i386/i386-avx-linux.c: Re-generated.
6953 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6954 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6955 * features/i386/i386-avx-mpx.c: Re-generated.
6956 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6957 * features/i386/i386.c: Re-generated.
6958 * features/i386/i386-linux.c: Re-generated.
6959 * features/i386/i386-mmx.c: Re-generated.
6960 * features/i386/i386-mmx-linux.c: Re-generated.
6961 * features/i386/i386-mpx.c: Re-generated.
6962 * features/i386/i386-mpx-linux.c: Re-generated.
6963 * features/i386/x32-avx-avx512.c: Re-generated.
6964 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6965 * features/i386/x32-avx.c: Re-generated.
6966 * features/i386/x32-avx-linux.c: Re-generated.
6967 * features/i386/x32.c: Re-generated.
6968 * features/i386/x32-linux.c: Re-generated.
6969 * features/microblaze.c: Re-generated.
6970 * features/microblaze-with-stack-protect.c: Re-generated.
6971 * features/mips64-dsp-linux.c: Re-generated.
6972 * features/mips64-linux.c: Re-generated.
6973 * features/mips-dsp-linux.c: Re-generated.
6974 * features/mips-linux.c: Re-generated.
6975 * features/nds32.c: Re-generated.
6976 * features/nios2.c: Re-generated.
6977 * features/nios2-linux.c: Re-generated.
6978 * features/rs6000/powerpc-32.c: Re-generated.
6979 * features/rs6000/powerpc-32l.c: Re-generated.
6980 * features/rs6000/powerpc-403.c: Re-generated.
6981 * features/rs6000/powerpc-403gc.c : Re-generated.
6982 * features/rs6000/powerpc-405.c: Re-generated.
6983 * features/rs6000/powerpc-505.c: Re-generated.
6984 * features/rs6000/powerpc-601.c: Re-generated.
6985 * features/rs6000/powerpc-602.c: Re-generated.
6986 * features/rs6000/powerpc-603.c: Re-generated.
6987 * features/rs6000/powerpc-604.c: Re-generated.
6988 * features/rs6000/powerpc-64.c: Re-generated.
6989 * features/rs6000/powerpc-64l.c: Re-generated.
6990 * features/rs6000/powerpc-7400.c: Re-generated.
6991 * features/rs6000/powerpc-750.c: Re-generated.
6992 * features/rs6000/powerpc-860.c: Re-generated.
6993 * features/rs6000/powerpc-altivec32.c: Re-generated.
6994 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6995 * features/rs6000/powerpc-altivec64.c: Re-generated.
6996 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6997 * features/rs6000/powerpc-cell32l.c: Re-generated.
6998 * features/rs6000/powerpc-cell64l.c: Re-generated.
6999 * features/rs6000/powerpc-e500.c: Re-generated.
7000 * features/rs6000/powerpc-e500l.c: Re-generated.
7001 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
7002 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
7003 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
7004 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
7005 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
7006 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
7007 * features/rs6000/powerpc-vsx32.c: Re-generated.
7008 * features/rs6000/powerpc-vsx32l.c: Re-generated.
7009 * features/rs6000/powerpc-vsx64.c: Re-generated.
7010 * features/rs6000/powerpc-vsx64l.c: Re-generated.
7011 * features/rs6000/rs6000.c: Re-generated.
7012 * features/s390-linux32.c: Re-generated.
7013 * features/s390-linux32v1.c: Re-generated.
7014 * features/s390-linux32v2.c: Re-generated.
7015 * features/s390-linux64.c: Re-generated.
7016 * features/s390-linux64v1.c: Re-generated.
7017 * features/s390-linux64v2.c: Re-generated.
7018 * features/s390-te-linux64.c: Re-generated.
7019 * features/s390-tevx-linux64.c: Re-generated.
7020 * features/s390-vx-linux64.c: Re-generated.
7021 * features/s390x-linux64.c: Re-generated.
7022 * features/s390x-linux64v1.c: Re-generated.
7023 * features/s390x-linux64v2.c: Re-generated.
7024 * features/s390x-te-linux64.c: Re-generated.
7025 * features/s390x-tevx-linux64.c: Re-generated.
7026 * features/s390x-vx-linux64.c: Re-generated.
7027 * features/sparc/sparc32-solaris.c: Re-generated.
7028 * features/sparc/sparc64-solaris.c: Re-generated.
7029 * features/tic6x-c62x.c: Re-generated.
7030 * features/tic6x-c62x-linux.c: Re-generated.
7031 * features/tic6x-c64x.c: Re-generated.
7032 * features/tic6x-c64x-linux.c: Re-generated.
7033 * features/tic6x-c64xp.c: Re-generated.
7034 * features/tic6x-c64xp-linux.c: Re-generated.
7035
35b4818d
YQ
70362017-07-26 Yao Qi <yao.qi@linaro.org>
7037
7038 * i386-linux-tdep.c (i386_linux_read_description): New function.
7039 (i386_linux_core_read_description): Call
7040 i386_linux_read_description.
7041 * i386-linux-tdep.h (i386_linux_read_description): Declare.
7042 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
7043 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
7044 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
7045 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
7046 * x86-linux-nat.c (x86_linux_read_description): Call
7047 i386_linux_read_description.
7048
8e2141c6
YQ
70492017-07-26 Yao Qi <yao.qi@linaro.org>
7050
7051 * NEWS: Mention it.
7052 * features/Makefile (%.c: %.xml): Pass the xml file name to
7053 command "maint print c-tdesc".
7054 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
7055 name from 'arg'.
7056
b468ff4c
YQ
70572017-07-26 Yao Qi <yao.qi@linaro.org>
7058
7059 * target-descriptions.c (target_desc): Add ctor and dtor. Do
7060 in-class initialization.
7061 (tdesc_create_feature): Call new instead of XCNEW.
7062 (free_target_description): Ue delete.
7063
b9c0e1b4
JB
70642017-07-25 John Baldwin <jhb@FreeBSD.org>
7065
7066 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
7067
a04b5337
YQ
70682017-07-25 Yao Qi <yao.qi@linaro.org>
7069
7070 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
7071 constant.
7072 (amd64_x32_init_abi): Likewise.
7073 * amd64-tdep.h (amd64_init_abi): Update declaration.
7074 (amd64_x32_init_abi): Likewise.
7075
02ad7fc2
YQ
70762017-07-25 Yao Qi <yao.qi@linaro.org>
7077
7078 PR tdep/21717
7079 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
7080 condition for FPSCR.
7081 (arm_linux_store_inferior_registers): Likewise.
7082
b6f48cb0
TT
70832017-07-22 Tom Tromey <tom@tromey.com>
7084
7085 * break-catch-syscall.c (struct catch_syscall_inferior_data)
7086 <syscalls_counts>: Now a std::vector.
7087 (get_catch_syscall_inferior_data): Use "new".
7088 (catch_syscall_inferior_data_cleanup): Use "delete".
7089 (insert_catch_syscall, remove_catch_syscall)
7090 (clear_syscall_counts): Update.
7091
e12c9b7a
TT
70922017-07-22 Tom Tromey <tom@tromey.com>
7093
7094 * break-catch-syscall.c (syscall_catchpoint)
7095 <syscalls_to_be_caught>: Now a std::vector<int>
7096 (~syscall_catchpoint): Remove.
7097 (insert_catch_syscall, remove_catch_syscall)
7098 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
7099 (print_mention_catch_syscall, print_recreate_catch_syscall):
7100 Update.
7101 (create_syscall_event_catchpoint): Change type of "filter"
7102 parameter.
7103 (catch_syscall_split_args): Return a std::vector.
7104 (catch_syscall_command_1, catching_syscall_number_1): Update.
7105
4fa8aeac
TT
71062017-07-22 Tom Tromey <tom@tromey.com>
7107
7108 * break-catch-throw.c (struct exception_catchpoint)
7109 <exception_rx>: Now a std::string.
7110 (~exception_catchpoint): Remove.
7111 (print_one_detail_exception_catchpoint): Update.
7112 (handle_gnu_v3_exceptions): Change type of except_rx.
7113 (extract_exception_regexp): Return a std::string.
7114 (catch_exception_command_1): Update.
7115
f746a154
TT
71162017-07-22 Tom Tromey <tom@tromey.com>
7117
7118 * break-catch-sig.c (gdb_signal_type): Remove typedef.
7119 (struct signal_catchpoint) <signals_to_be_caught>: Now a
7120 std::vector.
7121 <catch_all>: Now a bool.
7122 (~signal_catchpoint): Remove.
7123 (signal_catchpoint_insert_location)
7124 (signal_catchpoint_remove_location)
7125 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
7126 (signal_catchpoint_print_mention)
7127 (signal_catchpoint_print_recreate)
7128 (signal_catchpoint_explains_signal): Update.
7129 (create_signal_catchpoint): Change type of "filter" and
7130 "catch_all".
7131 (catch_signal_split_args): Return a std::vector. Change type of
7132 "catch_all".
7133 (catch_signal_command): Update.
7134
47e77640
PA
71352017-07-20 Pedro Alves <palves@redhat.com>
7136
7137 * ada-lang.c (ada_language_defn): Make extern.
7138 (_initialize_ada_language): Remove add_language call.
7139 * c-lang.c (c_language_defn, cplus_language_defn)
7140 (asm_language_defn, minimal_language_defn): Make extern.
7141 (_initialize_c_language): Delete.
7142 * completer.c (compare_cstrings): Delete, moved to utils.h.
7143 * d-lang.c (d_language_defn): Make extern.
7144 (_initialize_d_language): Remove add_language calls.
7145 * defs.h (enum language): Add comment.
7146 * f-lang.c (f_language_defn): Make extern.
7147 (_initialize_f_language): Remove add_language call.
7148 * go-lang.c (go_language_defn): Make extern.
7149 (_initialize_go_language): Remove add_language call.
7150 * language.c: Include <algorithm>.
7151 (languages): Redefine as const array.
7152 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
7153 (set_language_command): Handle "local". Use for-range loop.
7154 (set_language): Remove loop.
7155 (language_enum): Rewrite.
7156 (language_def, language_str): Remove loops.
7157 (add_language): Delete.
7158 (add_set_language_command): New, based on add_languages.
7159 (skip_language_trampoline): Adjust.
7160 (local_language_defn): Delete.
7161 (language_gdbarch_post_init): Adjust.
7162 (_initialize_language): Remove add_language calls. Call
7163 add_set_language_command.
7164 * language.h (add_language): Delete.
7165 (auto_language_defn)
7166 (unknown_language_defn, minimal_language_defn, ada_language_defn)
7167 (asm_language_defn, c_language_defn, cplus_language_defn)
7168 (d_language_defn, f_language_defn, go_language_defn)
7169 (m2_language_defn, objc_language_defn, opencl_language_defn)
7170 (pascal_language_defn, rust_language_defn): Declare.
7171 * m2-lang.c (m2_language_defn): Make extern.
7172 (_initialize_m2_language): Remove add_language call.
7173 * objc-lang.c (objc_language_defn): Make extern.
7174 (_initialize_objc_language): Remove add_language call.
7175 * opencl-lang.c (opencl_language_defn): Make extern.
7176 (_initialize_opencl_language): Remove add_language call.
7177 * p-lang.c (pascal_language_defn): Make extern.
7178 (_initialize_pascal_language): Delete.
7179 * rust-lang.c (rust_language_defn): Make extern.
7180 (_initialize_rust_language): Delete.
7181 * utils.h (compare_cstrings): New static inline function.
7182
edb0c9cb
PA
71832017-07-20 Pedro Alves <palves@redhat.com>
7184
7185 * ada-lang.c (ada_to_fixed_type_1): Adjust.
7186 (get_var_value): Constify parameters.
7187 (get_int_var_value): Change prototype.
7188 (to_fixed_range_type): Adjust.
7189 * ada-lang.h (get_int_var_value): Change prototype.
7190
a778f165
PA
71912017-07-20 Pedro Alves <palves@redhat.com>
7192
7193 * dwarf2read.c (dw2_lookup_symbol): Use
7194 SYMBOL_MATCHES_SEARCH_NAME.
7195 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
7196
42edd901
PA
71972017-07-20 Pedro Alves <palves@redhat.com>
7198
7199 * block.c (block_iter_name_step, block_iter_name_first)
7200 (block_iter_name_next): Delete.
7201 (block_lookup_symbol_primary): Adjust to use
7202 dict_iter_match_first/dict_iter_match_next.
7203 * block.h (block_iter_name_first, block_iter_name_next): Delete
7204 declarations.
7205 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
7206 dict_iter_match_first/dict_iter_match_next.
7207
cf325299
PA
72082017-07-20 Pedro Alves <palves@redhat.com>
7209
7210 * cp-support.c (cp_find_first_component_aux): Add missing case for
7211 end of string.
7212
c5ed0576
DB
72132017-07-18 David Blaikie <dblaikie@gmail.com>
7214
7215 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
7216 of dwo_cu's dwo_file.
7217
27841e76
YQ
72182017-07-18 Yao Qi <yao.qi@linaro.org>
7219
7220 * remote.c (store_registers_using_G): Remove one line comment.
7221
cfb7e58b
YQ
72222017-07-18 Yao Qi <yao.qi@linaro.org>
7223
7224 * regcache.c (regcache_cpy): Simplify it.
7225 (regcache::cpy_no_passthrough): Remove it.
7226 * regcache.h (cpy_no_passthrough): Remove it.
7227 (regcache_dup, regcache_cpy): Update comments.
7228
386535dd
PA
72292017-07-18 Pedro Alves <palves@redhat.com>
7230
7231 * remote-sim.c (sim_command_completer): Adjust to work with a
7232 completion_tracker instead of a VEC.
7233
c45ec17c
PA
72342017-07-17 Pedro Alves <palves@redhat.com>
7235
7236 * completer.c (complete_source_filenames): New function.
7237 (complete_address_and_linespec_locations): New function.
7238 (location_completer): Use complete_address_and_linespec_locations.
7239 (completion_tracker::build_completion_result): Honor the tracker's
7240 request to suppress append.
7241 * completer.h (completion_tracker::suppress_append_ws)
7242 (completion_tracker::set_suppress_append_ws): New methods.
7243 (completion_tracker::m_suppress_append_ws): New field.
7244 (complete_source_filenames): New declaration.
7245 * linespec.c (linespec_complete_what): New.
7246 (struct ls_parser) <complete_what, completion_word,
7247 completion_quote_char, completion_quote_end, completion_tracker>:
7248 New fields.
7249 (string_find_incomplete_keyword_at_end): New.
7250 (linespec_lexer_lex_string): Record quote char. If in completion
7251 mode, don't throw.
7252 (linespec_lexer_consume_token): Advance the completion word point.
7253 (linespec_lexer_peek_token): Save/restore completion info.
7254 (save_stream_and_consume_token): New.
7255 (set_completion_after_number): New.
7256 (linespec_parse_basic): Set what to complete next depending on
7257 token. Handle function and label completions specially.
7258 (parse_linespec): Disable objc shortcut in completion mode. Set
7259 what to complete next depending on token type. Skip keyword if in
7260 completion mode.
7261 (complete_linespec_component, linespec_complete): New.
7262 * linespec.h (linespec_complete): Declare.
7263
be966d42
PA
72642017-07-17 Pedro Alves <palves@redhat.com>
7265
7266 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
7267 Handle 'operator<' / 'operator<<'.
7268
a2459270
PA
72692017-07-17 Pedro Alves <palves@redhat.com>
7270
7271 * completer.c (collect_explicit_location_matches): Handle
7272 MATCH_LABEL.
7273 (convert_explicit_location_to_linespec): New, factored out from
7274 ...
7275 (convert_explicit_location_to_sals): ... this.
7276 (complete_label): New.
7277 (linespec_complete_label, find_label_symbols_in_block): New.
7278 (find_label_symbols): Add completion_mode parameter and adjust to
7279 call find_label_symbols_in_block.
7280 * linespec.h (linespec_complete_label): Declare.
7281
c6756f62
PA
72822017-07-17 Pedro Alves <palves@redhat.com>
7283
7284 * ada-lang.c (ada_collect_symbol_completion_matches): Add
7285 complete_symbol_mode parameter.
7286 * cli/cli-cmds.c (complete_command): Get the completion result out
7287 of the handle_brkchars tracker if used a custom word point.
7288 * completer.c: Include "linespec.h".
7289 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
7290 (advance_to_expression_complete_word_point): New.
7291 (completion_tracker::completes_to_completion_word): New.
7292 (complete_files_symbols): Pass down
7293 complete_symbol_mode::EXPRESSION.
7294 (explicit_options, probe_options): New.
7295 (collect_explicit_location_matches): Complete on the
7296 explictit_loc->foo instead of word. Use
7297 linespec_complete_function. Handle MATCH_LINE. Handle offering
7298 keyword and options completions.
7299 (backup_text_ptr): Delete.
7300 (skip_keyword): New.
7301 (complete_explicit_location): Remove 'word' parameter. Add
7302 language, quoted_arg_start and quoted_arg_end parameters.
7303 Rewrite, parsing left to right.
7304 (location_completer): Rewrite.
7305 (location_completer_handle_brkchars): New function.
7306 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
7307 (enum complete_line_internal_reason): Adjust comments.
7308 (completion_tracker::discard_completions): New.
7309 (completer_handle_brkchars_func_for_completer): Handle
7310 location_completer.
7311 (gdb_custom_word_point_brkchars)
7312 (gdb_org_rl_basic_quote_characters): New.
7313 (gdb_completion_word_break_characters_throw)
7314 (completion_find_completion_word): Handle trackers that use a
7315 custom word point.
7316 (completion_tracker::advance_custom_word_point_by): New.
7317 (completion_tracker::build_completion_result): Don't rely on
7318 readline appending the quote char.
7319 (gdb_rl_attempted_completion_function_throw): Handle trackers that
7320 use a custom word point.
7321 (gdb_rl_attempted_completion_function): Restore
7322 rl_basic_quote_characters.
7323 * completer.h (class completion_tracker): Extend intro comment.
7324 (completion_tracker::set_quote_char)
7325 (completion_tracker::quote_char)
7326 (completion_tracker::set_use_custom_word_point)
7327 (completion_tracker::use_custom_word_point)
7328 (completion_tracker::custom_word_point)
7329 (completion_tracker::set_custom_word_point)
7330 (completion_tracker::advance_custom_word_point_by)
7331 (completion_tracker::completes_to_completion_word)
7332 (completion_tracker::discard_completions): New methods.
7333 (completion_tracker::m_quote_char)
7334 (completion_tracker::m_use_custom_word_point)
7335 (completion_tracker::m_custom_word_point): New fields.
7336 (advance_to_expression_complete_word_point): Declare.
7337 * f-lang.c (f_collect_symbol_completion_matches): Add
7338 complete_symbol_mode parameter.
7339 * language.h (struct language_defn)
7340 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
7341 parameter.
7342 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
7343 (linespec_complete_function): New function.
7344 (linespec_lexer_lex_keyword): Adjust.
7345 * linespec.h (linespec_keywords, linespec_complete_function): New
7346 declarations.
7347 * location.c (find_end_quote): New function.
7348 (explicit_location_lex_one): Add explicit_completion_info
7349 parameter. Save quoting info. Don't throw if being called for
7350 completion. Don't handle Ada operators here.
7351 (is_cp_operator, skip_op_false_positives, first_of)
7352 (explicit_location_lex_one_function): New function.
7353 (string_to_explicit_location): Replace 'dont_throw' parameter with
7354 an explicit_completion_info pointer parameter. Handle it. Don't
7355 use explicit_location_lex_one to lex function names. Use
7356 explicit_location_lex_one_function instead.
7357 * location.h (struct explicit_completion_info): New.
7358 (string_to_explicit_location): Replace 'dont_throw' parameter with
7359 an explicit_completion_info pointer parameter.
7360 * symtab.c (default_collect_symbol_completion_matches_break_on):
7361 Add complete_symbol_mode parameter. Handle LINESPEC mode.
7362 (default_collect_symbol_completion_matches)
7363 (collect_symbol_completion_matches): Add complete_symbol_mode
7364 parameter.
7365 (collect_symbol_completion_matches_type): Pass down
7366 complete_symbol_mode::EXPRESSION.
7367 (collect_file_symbol_completion_matches): Add complete_symbol_mode
7368 parameter. Handle LINESPEC mode.
7369 * symtab.h (complete_symbol_mode): New.
7370 (default_collect_symbol_completion_matches_break_on)
7371 (default_collect_symbol_completion_matches)
7372 (collect_symbol_completion_matches)
7373 (collect_file_symbol_completion_matches): Add complete_symbol_mode
7374 parameter.
7375
1d550c82
PA
73762017-07-17 Pedro Alves <palves@redhat.com>
7377
7378 * utils.c (enum class strncmp_iw_mode): New.
7379 (strcmp_iw): Rename to ...
7380 (strncmp_iw_with_mode): ... this. Add string2_len and mode
7381 parameters. Handle them.
7382 (strncmp_iw): New.
7383 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
7384 * utils.h (strncmp_iw): Declare.
7385 (strcmp_iw): Move describing comments here.
7386
8090b426
PA
73872017-07-17 Pedro Alves <palves@redhat.com>
7388
7389 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
7390 CP_OPERATOR_STR.
7391 * c-typeprint.c (is_type_conversion_operator): Use
7392 CP_OPERATOR_STR.
7393 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
7394 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
7395 CP_OPERATOR_LEN.
7396 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
7397 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
7398 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
7399 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
7400 CP_OPERATOR_STR.
7401 * location.c: Include "cp-support.h".
7402 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
7403 CP_OPERATOR_STR.
7404 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
7405 CP_OPERATOR_LEN.
7406
6a2c1b87
PA
74072017-07-17 Pedro Alves <palves@redhat.com>
7408
7409 * cli/cli-cmds.c (complete_command): Use a completion tracker
7410 along with completion_find_completion_word for handle_brkchars
7411 phase.
7412 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
7413 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
7414 (struct gdb_rl_completion_word_info): New.
7415 (gdb_rl_find_completion_word): New.
7416 (completion_find_completion_word): New.
7417 * completer.h (completion_find_completion_word): Declare.
7418
eb3ff9a5
PA
74192017-07-17 Pedro Alves <palves@redhat.com>
7420
7421 * ada-lang.c (symbol_completion_match): Adjust comments.
7422 (symbol_completion_add): Replace vector parameter with
7423 completion_tracker parameter. Use it.
7424 (ada_make_symbol_completion_list): Rename to...
7425 (ada_collect_symbol_completion_matches): ... this. Add
7426 completion_tracker parameter and use it.
7427 (ada_language_defn): Adjust.
7428 * break-catch-syscall.c (catch_syscall_completer): Adjust
7429 prototype and work with completion_tracker instead of VEC.
7430 * breakpoint.c (condition_completer): Adjust prototype and work
7431 with completion_tracker instead of VEC.
7432 * c-lang.c (c_language_defn, cplus_language_defn)
7433 (asm_language_defn, minimal_language_defn): Adjust to renames.
7434 * cli/cli-cmds.c (complete_command): Rework using
7435 completion_tracker. Catch exceptions when completing.
7436 * cli/cli-decode.c (integer_unlimited_completer)
7437 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
7438 with completion_tracker instead of VEC.
7439 * command.h (struct completion_tracker): Forward declare.
7440 (completer_ftype, completer_handle_brkchars_ftype): Change
7441 types.
7442 (complete_on_cmdlist, complete_on_enum): Adjust.
7443 * completer.c: Include <algorithm>.
7444 (struct gdb_completer_state): New.
7445 (current_completion): New global.
7446 (readline_line_completion_function): Delete.
7447 (noop_completer, filename_completer)
7448 (filename_completer_handle_brkchars, complete_files_symbols)
7449 (linespec_location_completer): Adjust to work with a
7450 completion_tracker instead of a VEC.
7451 (string_or_empty): New.
7452 (collect_explicit_location_matches): Adjust to work with a
7453 completion_tracker instead of a VEC.
7454 (explicit_location_completer): Rename to ...
7455 (complete_explicit_location): ... this and adjust to work with a
7456 completion_tracker instead of a VEC.
7457 (location_completer): Adjust to work with a completion_tracker
7458 instead of a VEC.
7459 (add_struct_fields): Adjust to work with a completion_list instead
7460 of VEC.
7461 (expression_completer): Rename to ...
7462 (complete_expression): ... this and adjust to work with a
7463 completion_tracker instead of a VEC. Use complete_files_symbols.
7464 (expression_completer): Reimplement on top of complete_expression.
7465 (symbol_completer): Adjust to work with a completion_tracker
7466 instead of a VEC.
7467 (enum complete_line_internal_reason): Add describing comments.
7468 (complete_line_internal_normal_command): Adjust to work with a
7469 completion_tracker instead of a VEC.
7470 (complete_line_internal): Rename to ...
7471 (complete_line_internal_1): ... this and adjust to work with a
7472 completion_tracker instead of a VEC. Assert TEXT is NULL in the
7473 handle_brkchars phase.
7474 (new_completion_tracker): Delete.
7475 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
7476 complete_line_internal_1.
7477 (free_completion_tracker): Delete.
7478 (INITIAL_COMPLETION_HTAB_SIZE): New.
7479 (completion_tracker::completion_tracker)
7480 (completion_tracker::~completion_tracker): New.
7481 (maybe_add_completion): Delete.
7482 (completion_tracker::maybe_add_completion)
7483 (completion_tracker::add_completion)
7484 (completion_tracker::add_completions): New.
7485 (throw_max_completions_reached_error): Delete.
7486 (complete_line): Adjust to work with a completion_tracker instead
7487 of a VEC. Don't create a completion_tracker_t or check for max
7488 completions here.
7489 (command_completer, command_completer_handle_brkchars)
7490 (signal_completer, reg_or_group_completer_1)
7491 (reg_or_group_completer, default_completer_handle_brkchars):
7492 Adjust to work with a completion_tracker.
7493 (gdb_completion_word_break_characters_throw): New.
7494 (gdb_completion_word_break_characters): Reimplement.
7495 (line_completion_function): Delete.
7496 (completion_tracker::recompute_lowest_common_denominator)
7497 (expand_preserving_ws)
7498 (completion_tracker::build_completion_result)
7499 (completion_result::completion_result)
7500 (completion_result::completion_result)
7501 (completion_result::~completion_result)
7502 (completion_result::completion_result)
7503 (completion_result::release_match_list, compare_cstrings)
7504 (completion_result::sort_match_list)
7505 (completion_result::reset_match_list)
7506 (gdb_rl_attempted_completion_function_throw)
7507 (gdb_rl_attempted_completion_function): New.
7508 * completer.h (completion_list, struct completion_result)
7509 (class completion_tracker): New.
7510 (complete_line): Add completion_tracker parameter.
7511 (readline_line_completion_function): Delete.
7512 (gdb_rl_attempted_completion_function): New.
7513 (noop_completer, filename_completer, expression_completer)
7514 (location_completer, symbol_completer, command_completer)
7515 (signal_completer, reg_or_group_completer): Update prototypes.
7516 (completion_tracker_t, new_completion_tracker)
7517 (make_cleanup_free_completion_tracker): Delete.
7518 (enum maybe_add_completion_enum): Delete.
7519 (maybe_add_completion): Delete.
7520 (throw_max_completions_reached_error): Delete.
7521 * corefile.c (complete_set_gnutarget): Adjust to work with a
7522 completion_tracker instead of a VEC.
7523 * cp-abi.c (cp_abi_completer): Adjust to work with a
7524 completion_tracker instead of a VEC.
7525 * d-lang.c (d_language_defn): Adjust.
7526 * disasm.c (disassembler_options_completer): Adjust to work with a
7527 completion_tracker instead of a VEC.
7528 * f-lang.c (f_make_symbol_completion_list): Rename to ...
7529 (f_collect_symbol_completion_matches): ... this. Adjust to work
7530 with a completion_tracker instead of a VEC.
7531 (f_language_defn): Adjust.
7532 * go-lang.c (go_language_defn): Adjust.
7533 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
7534 Adjust to work with a completion_tracker instead of a VEC.
7535 * infrun.c (handle_completer): Likewise.
7536 * interps.c (interpreter_completer): Likewise.
7537 * interps.h (interpreter_completer): Likewise.
7538 * language.c (unknown_language_defn, auto_language_defn)
7539 (local_language_defn): Adjust.
7540 * language.h (language_defn::la_make_symbol_completion_list):
7541 Rename to ...
7542 (language_defn::la_collect_symbol_completion_matches): ... this
7543 and adjust to work with a completion_tracker instead of a VEC.
7544 * m2-lang.c (m2_language_defn): Adjust.
7545 * objc-lang.c (objc_language_defn): Adjust.
7546 * opencl-lang.c (opencl_language_defn): Adjust.
7547 * p-lang.c (pascal_language_defn): Adjust.
7548 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
7549 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
7550 with a completion_tracker.
7551 * rust-lang.c (rust_language_defn): Adjust.
7552 * symtab.c (free_completion_list, do_free_completion_list)
7553 (return_val, completion_tracker): Delete.
7554 (completion_list_add_name, completion_list_add_symbol)
7555 (completion_list_add_msymbol, completion_list_objc_symbol)
7556 (completion_list_add_fields, add_symtab_completions): Add
7557 completion_tracker parameter and use it.
7558 (default_make_symbol_completion_list_break_on_1): Rename to...
7559 (default_collect_symbol_completion_matches_break_on): ... this.
7560 Add completion_tracker parameter and use it instead of allocating
7561 a completion tracker here.
7562 (default_make_symbol_completion_list_break_on): Delete old
7563 implementation.
7564 (default_make_symbol_completion_list): Delete.
7565 (default_collect_symbol_completion_matches): New.
7566 (make_symbol_completion_list): Delete.
7567 (collect_symbol_completion_matches): New.
7568 (make_symbol_completion_type): Rename to ...
7569 (collect_symbol_completion_matches_type): ... this. Add
7570 completion_tracker parameter and use it instead of VEC.
7571 (make_file_symbol_completion_list_1): Rename to...
7572 (collect_file_symbol_completion_matches): ... this. Add
7573 completion_tracker parameter and use it instead of VEC.
7574 (make_file_symbol_completion_list): Delete.
7575 (add_filename_to_list): Use completion_list instead of a VEC.
7576 (add_partial_filename_data::list): Now a completion_list.
7577 (make_source_files_completion_list): Work with a completion_list
7578 instead of a VEC.
7579 * symtab.h: Include "completer.h".
7580 (default_make_symbol_completion_list_break_on)
7581 (default_make_symbol_completion_list, make_symbol_completion_list)
7582 (make_symbol_completion_type, make_file_symbol_completion_list)
7583 (make_source_files_completion_list): Delete.
7584 (default_collect_symbol_completion_matches_break_on)
7585 (default_collect_symbol_completion_matches)
7586 (collect_symbol_completion_matches)
7587 (collect_symbol_completion_matches_type)
7588 (collect_file_symbol_completion_matches)
7589 (make_source_files_completion_list): New.
7590 * top.c (init_main): Don't install a rl_completion_entry_function
7591 hook. Install a rl_attempted_completion_function hook instead.
7592 * tui/tui-layout.c (layout_completer): Adjust to work with a
7593 completion_tracker.
7594 * tui/tui-regs.c (tui_reggroup_completer):
7595 * tui/tui-win.c (window_name_completer, focus_completer)
7596 (winheight_completer): Adjust to work with a completion_tracker.
7597 * value.c: Include "completer.h".
7598 (complete_internalvar): Adjust to work with a completion_tracker.
7599 * value.h (complete_internalvar): Likewise.
7600
6e1dbf8c
PA
76012017-07-17 Pedro Alves <palves@redhat.com>
7602
7603 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
7604 renames.
7605 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
7606 comments to completer_ftype's declaration.
7607 <completer_handle_brkchars>: Change type to
7608 completer_handle_brkchars_ftype.
7609 * command.h (completer_ftype): Add describing comment and give
7610 names to parameters.
7611 (completer_ftype_void): Rename to ...
7612 (completer_handle_brkchars_ftype) ... this. Add describing comment.
7613 (set_cmd_completer_handle_brkchars): Adjust.
7614 * completer.c (filename_completer_handle_brkchars): New function.
7615 (complete_line_internal_normal_command): New function, factored
7616 out from ...
7617 (complete_line_internal): ... here.
7618 (command_completer_handle_brkchars)
7619 (default_completer_handle_brkchars)
7620 (completer_handle_brkchars_func_for_completer): New functions.
7621 * completer.h (set_gdb_completion_word_break_characters): Delete
7622 declaration.
7623 (completer_handle_brkchars_func_for_completer): New declaration.
7624 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
7625 completer_handle_brkchars_func_for_completer.
7626
78b13106
PA
76272017-07-17 Pedro Alves <palves@redhat.com>
7628
7629 * completer.c (symbol_completer): New function, based on
7630 make_symbol_completion_list_fn.
7631 * completer.h (symbol_completer): New declaration.
7632 * guile/scm-cmd.c (cmdscm_completers): Adjust.
7633 * python/py-cmd.c (completers): Adjust.
7634 * symtab.c (make_symbol_completion_list_fn): Delete.
7635 * symtab.h (make_symbol_completion_list_fn): Delete.
7636 * cli/cli-decode.c (add_cmd): Adjust.
7637
bbf2f4df
PA
76382017-07-17 Pedro Alves <palves@redhat.com>
7639
7640 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
7641 * dwarf2read.c: Include "filename-seen-cache.h".
7642 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
7643 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
7644 * filename-seen-cache.c: New file.
7645 * filename-seen-cache.h: New file.
7646 * symtab.c: Include "filename-seen-cache.h".
7647 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
7648 (create_filename_seen_cache, clear_filename_seen_cache)
7649 (delete_filename_seen_cache, filename_seen): Delete, parts moved
7650 to filename-seen-cache.h/filename-seen-cache.c.
7651 (output_source_filename, sources_info)
7652 (maybe_add_partial_symtab_filename)
7653 (make_source_files_completion_list): Adjust to use
7654 filename_seen_cache.
7655
330cdd98
PA
76562017-07-17 Pedro Alves <palves@redhat.com>
7657
7658 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
7659 fields.
7660 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
7661 dwarf2_debug_sections*)): New.
7662 (dwarf2_per_objfile::dwarf2_per_objfile(const
7663 dwarf2_per_objfile&)): Declare as deleted.
7664 (dwarf2_per_objfile::operator=): Declare as deleted.
7665 (dwarf2_per_objfile::dwarf2_per_objfile)
7666 (dwarf2_per_objfile::~dwarf2_per_objfile)
7667 (dwarf2_per_objfile::free_cached_comp_units): New.
7668 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
7669 ctor. Call dwarf2_per_objfile's ctor manually.
7670 (dwarf2_locate_sections): Deleted/refactored as ...
7671 (dwarf2_per_objfile::locate_sections): ... this new method.
7672 (free_cached_comp_units): Defer to
7673 dwarf2_per_objfile::free_cached_comp_units.
7674 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
7675
8880f2a9
TT
76762017-07-14 Tom Tromey <tom@tromey.com>
7677
7678 PR rust/21764:
7679 * rust-exp.y (convert_ast_to_expression): Add "want_type"
7680 parameter.
7681 <UNOP_SIZEOF>: Split into separate case.
7682 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
7683
65547233
TT
76842017-07-14 Tom Tromey <tom@tromey.com>
7685
7686 PR rust/21763:
7687 * symtab.c (symbol_matches_domain): Add language_rust to special
7688 case.
7689 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
7690 treat LOC_TYPEDEF symbols as variables.
7691
8f14146e
PA
76922017-07-14 Pedro Alves <palves@redhat.com>
7693
7694 * symtab.c (make_file_symbol_completion_list_1): Iterate over
7695 symtabs matching all symtabs with SRCFILE as file name instead of
7696 only considering the first hit, with lookup_symtab.
7697
2347965c
SM
76982017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7699
7700 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
7701 operator_name parameters.
7702 (gen_expr): Update function call.
7703
40f4af28
SM
77042017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7705
7706 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
7707 parameter.
7708 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
7709 Likewise.
7710 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
7711 parameter, use agent_expr::gdbarch instead, update function
7712 calls.
7713 (locexpr_tracepoint_var_ref): Likewise.
7714 (loclist_tracepoint_var_ref): Likewise.
7715 * ax-gdb.c (gen_trace_static_fields): Likewise.
7716 (gen_traced_pop): Likewise.
7717 (gen_frame_args_address): Likewise.
7718 (gen_frame_locals_address): Likewise.
7719 (gen_var_ref): Likewise.
7720 (gen_struct_ref_recursive): Likewise.
7721 (gen_static_field): Likewise.
7722 (gen_maybe_namespace_elt): Likewise.
7723 (gen_expr): Likewise.
7724 (gen_trace_for_var): Likewise.
7725 (gen_trace_for_expr): Likewise.
7726 (gen_trace_for_return_address): Likewise.
7727
053f8057
SM
77282017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7729
7730 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
7731 parameter.
7732 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
7733
6661ad48
SM
77342017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7735
7736 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
7737 from ax, update calls.
7738 (gen_usual_arithmetic): Likewise.
7739 (gen_integral_promotions): Likewise.
7740 (gen_bitfield_ref): Likewise.
7741 (gen_primitive_field): Likewise.
7742 (gen_struct_ref_recursive): Likewise.
7743 (gen_struct_ref): Likewise.
7744 (gen_maybe_namespace_elt): Likewise.
7745 (gen_struct_elt_for_reference): Likewise.
7746 (gen_namespace_elt): Likewise.
7747 (gen_aggregate_elt_ref): Likewise.
7748 (gen_expr): Get gdbarch from ax, update calls.
7749 (gen_expr_binop_rest): Likewise.
7750
c55a47e7
PA
77512017-07-13 Pedro Alves <palves@redhat.com>
7752
7753 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7754 as default tdesc.
7755 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7756 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7757 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7758 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7759 tdep.
7760 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7761 Get final tdesc from the tdep.
7762 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7763 default tdesc.
7764 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7765 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7766 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7767 Use it as default tdesc.
7768 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7769 down to amd_init_abi. No longer handle fallback tdesc here.
7770 * amd64-tdep.h (tdesc_x32): Declare.
7771 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7772 parameter.
7773 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7774 as default tdesc.
7775
55efceab
AA
77762017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7777
7778 * s390-linux-tdep.c (s390_process_record): Add support for
7779 instructions new in arch12.
7780
0aa37b65
JB
77812017-07-11 John Baldwin <jhb@FreeBSD.org>
7782
7783 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7784 PT_GETFSBASE and PT_GETGSBASE.
7785 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7786 PT_SETGSBASE.
7787
48aeef91
JB
77882017-07-11 John Baldwin <jhb@FreeBSD.org>
7789
7790 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7791 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7792 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7793 those rules.
7794 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7795 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7796 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7797 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7798 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7799 * features/i386/amd64.xml: Add 64bit-segments.xml.
7800 * features/i386/amd64-avx-avx512.c: Regenerated.
7801 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7802 * features/i386/amd64-avx-mpx.c: Regenerated.
7803 * features/i386/amd64-avx.c: Regenerated.
7804 * features/i386/amd64-mpx.c: Regenerated.
7805 * features/i386/amd64.c: Regenerated.
7806 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7807 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7808 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7809 * regformats/i386/amd64-avx.dat: Regenerated.
7810 * regformats/i386/amd64-mpx.dat: Regenerated.
7811 * regformats/i386/amd64.dat: Regenerated.
7812
77c501bc
YQ
78132017-07-10 Yao Qi <yao.qi@linaro.org>
7814
7815 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7816 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7817
6dc8d757
AK
78182017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7819
7820 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7821 unsetenv.
7822 * gnulib/aclocal.m4: Regenerate.
7823 * gnulib/config.in: Regenerate.
7824 * gnulib/configure: Regenerate.
7825 * gnulib/import/Makefile.am: Regenerate.
7826 * gnulib/import/Makefile.in: Regenerate.
7827 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7828 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7829 * gnulib/import/m4/environ.m4: New file.
7830 * gnulib/import/m4/setenv.m4: New file.
7831 * gnulib/import/setenv.c: New file.
7832 * gnulib/import/unsetenv.c: New file.
7833
266934d1
SM
78342017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7835
7836 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7837 address when op is DW_OP_addr.
7838
03278692
TT
78392017-07-09 Tom Tromey <tom@tromey.com>
7840
7841 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7842 check and apply to outer type.
7843
4b654465
JB
78442017-07-07 John Baldwin <jhb@FreeBSD.org>
7845
7846 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7847 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7848 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7849 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7850
2af9fc44
JB
78512017-07-07 John Baldwin <jhb@FreeBSD.org>
7852
7853 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7854
382b69bb
JB
78552017-07-07 John Baldwin <jhb@FreeBSD.org>
7856
7857 * corelow.c (get_core_siginfo): Remove.
7858 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7859 instead of get_core_siginfo.
7860 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7861 * gdbarch.h: Re-generate.
7862 * gdbarch.c: Re-generate.
7863 * linux-tdep.c (linux_core_xfer_siginfo): New.
7864 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7865
6e5eab33
JB
78662017-07-07 John Baldwin <jhb@FreeBSD.org>
7867
7868 * corelow.c (thread_section_name): Move to ...
7869 * gdbcore.h (thread_section_name): ... here.
7870
929edea9
JB
78712017-07-07 John Baldwin <jhb@FreeBSD.org>
7872
7873 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7874 (struct siginfo32): New.
7875 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7876 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7877 via ptrace(PT_LWPINFO).
7878
762c974a
JB
78792017-07-07 John Baldwin <jhb@FreeBSD.org>
7880
7881 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7882 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7883 (fbsd_get_siginfo_type): New.
7884 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7885 (_initialize_fbsd_tdep): New.
7886
33c5cd75
DB
78872017-07-06 David Blaikie <dblaikie@gmail.com>
7888
7889 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7890 a singular dwo_unit*) to support multiple CUs in the same way that
7891 multiple TUs are supported.
7892 (create_cus_hash_table): Replace create_dwo_cu with a function for
7893 parsing multiple CUs from a DWO file.
7894 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7895 create_dwo_cu.
7896 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7897 htab_find, rather than comparing the signature to a singleton CU in
7898 the dwo_file.
7899
8455d262
PA
79002017-07-06 Pedro Alves <palves@redhat.com>
7901
7902 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7903
4da3eb35
PA
79042017-07-04 Pedro Alves <palves@redhat.com>
7905
7906 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7907 * gdbtypes.h (TYPE_STATIC): Delete.
7908 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7909 is_synchronized, is_native>: Delete.
7910 <dummy>: Bump.
7911 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7912 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7913 (TYPE_FN_FIELD_ABSTRACT): Delete.
7914
5bfd255c
SM
79152017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7916
7917 * buffer.h (buffer_finish): Fix spelling mistakes.
7918
25c54127
EZ
79192017-07-01 Eli Zaretskii <eliz@gnu.org>
7920
7921 * .dir-locals.el: Automatically switch to C-style comments in
7922 versions of Emacs that support the feature.
7923
dc4bde35
SDJ
79242017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7925 Pedro Alves <palves@redhat.com>
7926
7927 PR cli/21688
7928 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7929 (process_next_line): New variable 'inline_cmd'.
7930 Adjust 'if' clauses for "python", "compile" and "guile" to use
7931 'command_name_equals' and check for '!inline_cmd'.
7932
51ed89aa
SDJ
79332017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7934
7935 PR cli/21688
7936 * cli/cli-script.c (command_name_equals_not_inline): New function.
7937 (process_next_line): Adjust 'if' clauses for "python", "compile"
7938 and "guile" to use command_name_equals_not_inline.
7939
eb17d413
PA
79402017-06-29 Pedro Alves <palves@redhat.com>
7941
7942 * completer.c (expression_completer): Call
7943 linespec_location_completer instead of location_completer.
7944
195bcdd5
PA
79452017-06-29 Pedro Alves <palves@redhat.com>
7946
7947 * completer.c (expression_completer): Remove code that recomputes
7948 'text' from 'word'.
7949
adc764e7
YQ
79502017-06-29 Yao Qi <yao.qi@linaro.org>
7951
7952 * regformats/regdat.sh: Generate code with
7953 "ifndef IN_PROCESS_AGENT".
7954
6e75794e
PA
79552017-06-28 Pedro Alves <palves@redhat.com>
7956
7957 * command.h: Include "common/scoped_restore.h".
7958
bc491f2e
YQ
79592017-06-28 Yao Qi <yao.qi@linaro.org>
7960
7961 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7962 instead of obstack_grow.
7963
41664b45
DG
79642017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7965
7966 PR gdb/21337
7967 * symfile.c (reread_symbols): Call objfiles_changed just before
7968 read_symbols.
7969
6da67eb1
PA
79702017-06-27 Pedro Alves <palves@redhat.com>
7971
7972 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7973 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7974 (completion_list_add_symbol, completion_list_add_msymbol):
7975 ... these new functions.
7976 (add_symtab_completions)
7977 (default_make_symbol_completion_list_break_on_1): Adjust.
7978
23732b1e
PA
79792017-06-27 Pedro Alves <palves@redhat.com>
7980
7981 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7982 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7983 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7984 dtor.
7985 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7986 'storage_obstack' field an auto_obstack. In-class initialize all
7987 non-bitfield fields. Make minsyms_read bool.
7988 * symfile.c (read_symbols): Adjust.
7989
a4d1e79a
AH
79902017-06-27 Alan Hayward <alan.hayward@arm.com>
7991
7992 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7993 (gdbsim_store_register): Likewise.
7994
8268c778
PA
79952017-06-27 Pedro Alves <palves@redhat.com>
7996
7997 * c-exp.y (name_obstack): Now an auto_obstack.
7998 (yylex): Use auto_obstack::clear.
7999 (c_parse): Use auto_obstack::clear instead of reinitializing and
8000 freeing the obstack.
8001 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
8002 * d-exp.y (name_obstack): Now an auto_obstack.
8003 (yylex): Use auto_obstack::clear.
8004 (d_parse): Use auto_obstack::clear instead of reinitializing and
8005 freeing the obstack.
8006 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
8007 auto_obstack.
8008 * dwarf2read.c (create_addrmap_from_index)
8009 (dwarf2_build_psymtabs_hard)
8010 (update_enumeration_type_from_children): Likewise.
8011 * gdb_obstack.h (auto_obstack): New type.
8012 * go-exp.y (name_obstack): Now an auto_obstack.
8013 (build_packaged_name): Use auto_obstack::clear.
8014 (go_parse): Use auto_obstack::clear instead of reinitializing and
8015 freeing the obstack.
8016 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
8017 auto_obstack.
8018 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
8019 * rust-exp.y (work_obstack): Now an auto_obstack.
8020 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
8021 reinitializing and freeing the obstack.
8022 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
8023 (host_char_to_target): Use auto_obstack.
8024 * utils.h (make_cleanup_obstack_free): Delete declaration.
8025 * valprint.c (generic_emit_char, generic_printstr): Use
8026 auto_obstack.
8027
db665f42
SM
80282017-06-27 Simon Marchi <simon.marchi@ericsson.com>
8029
8030 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
8031 thread.
8032 (darwin_init_thread_list): Don't update dummy thread.
8033 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
8034
873c0814
SM
80352017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8036
8037 * record-full.c (netorder16): Remove.
8038
8b5a7a6e
SM
80392017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8040
8041 * common/diagnostics.h: Define macros for GCC.
8042 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
8043 * common/vec.h: Include diagnostics.h.
8044 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
8045 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
8046 warning.
8047
d1435379
SM
80482017-06-26 Simon Marchi <simon.marchi@ericsson.com>
8049
8050 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
8051 New macro.
8052 * ada-lex.l: Ignore deprecated register warnings.
8053
cc75e0fd
SM
80542017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8055
8056 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
8057 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
8058
07809eaf
SM
80592017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8060
8061 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
8062 its own line.
8063
f076f034
SM
80642017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8065
8066 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
8067
0dd5cbc5
AH
80682017-06-23 Alan Hayward <alan.hayward@arm.com>
8069
8070 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
8071 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
8072 (xtensa_register_read_masked): Likewise.
8073
d4c6ce5b
SDJ
80742017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
8075
8076 * common/environ.c (gdb_environ::unset): Update comment.
8077
16892a03
AH
80782017-06-22 Alan Hayward <alan.hayward@arm.com>
8079
8080 * python/py-unwind.c (pyuw_sniffer): Allocate space for
8081 registers.
8082
d7dcbefc
AH
80832017-06-22 Alan Hayward <alan.hayward@arm.com>
8084
8085 * record-full.c (record_full_exec_insn): Use byte_vector.
8086
b30ff123
YQ
80872017-06-22 Yao Qi <yao.qi@linaro.org>
8088
8089 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
8090 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
8091
4fa847d7
AH
80922017-06-22 Alan Hayward <alan.hayward@arm.com>
8093
8094 * remote.c (cached_reg): Move from here...
8095 * regcache.h (cached_reg): ...to here.
8096 * python/py-unwind.c (struct reg_info): Remove.
8097 (cached_frame_info): Use cached_reg_t.
8098 (pyuw_prev_register): Likewise.
8099 (pyuw_sniffer): Use cached_reg_t and allocate registers.
8100 (pyuw_dealloc_cache): Free all registers.
8101
f4906a9a
PA
81022017-06-22 Pedro Alves <palves@redhat.com>
8103 Simon Marchi <simon.marchi@ericsson.com>
8104
8105 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
8106 warning.
8107 * common/diagnostics.h: New file.
8108
b45a1208
PA
81092017-06-22 Pedro Alves <palves@redhat.com>
8110
8111 * common/agent.h: Add include guards.
8112
e4da2c61
SM
81132017-06-21 Simon Marchi <simon.marchi@ericsson.com>
8114
8115 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
8116 talk about addressable units instead of bytes.
8117
96160d60
SDJ
81182017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
8119
8120 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
8121 of '::const_iterator'.
8122
9a6c7d9c
SDJ
81232017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
8124
8125 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8126 'unittests/environ-selftests.c'.
8127 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
8128 * charset.c (find_charset_names): Declare object 'iconv_env'.
8129 Update code to use 'iconv_env' object. Remove call to
8130 'free_environ'.
8131 * common/environ.c: Include <utility>.
8132 (make_environ): Delete function.
8133 (free_environ): Delete function.
8134 (gdb_environ::clear): New function.
8135 (gdb_environ::operator=): New function.
8136 (gdb_environ::get): Likewise.
8137 (environ_vector): Delete function.
8138 (set_in_environ): Delete function.
8139 (gdb_environ::set): New function.
8140 (unset_in_environ): Delete function.
8141 (gdb_environ::unset): New function.
8142 (gdb_environ::envp): Likewise.
8143 * common/environ.h: Include <vector>.
8144 (struct gdb_environ): Delete; transform into...
8145 (class gdb_environ): ... this class.
8146 (free_environ): Delete prototype.
8147 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
8148 environ_vector): Likewise.
8149 * infcmd.c (run_command_1): Update code to call
8150 'envp' from 'gdb_environ' class.
8151 (environment_info): Update code to call methods from 'gdb_environ'
8152 class.
8153 (unset_environment_command): Likewise.
8154 (path_info): Likewise.
8155 (path_command): Likewise.
8156 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
8157 (inferior::inferior): Initialize 'environment' using the host's
8158 information.
8159 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
8160 Include "environ.h".
8161 (class inferior) <environment>: Change type from 'struct
8162 gdb_environ' to 'gdb_environ'.
8163 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
8164 methods from 'gdb_environ' class.
8165 * solib.c (solib_find_1): Likewise
8166 * unittests/environ-selftests.c: New file.
8167
75c554cf
YQ
81682017-06-20 Yao Qi <yao.qi@linaro.org>
8169
8170 * features/i386/i386-linux.xml: Exchange the order of including
8171 32bit-linux.xml and 32bit-sse.xml.
8172 * features/i386/i386-linux.c: Regenerated.
8173
72ddacb7
YQ
81742017-06-20 Yao Qi <yao.qi@linaro.org>
8175
8176 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
8177 Delete copy ctor and assignment operator.
8178 (tdesc_type): Likewise.
8179 (tdesc_feature): Likewise.
8180 (tdesc_free_reg): Remove.
8181 (tdesc_create_reg): Use new.
8182 (tdesc_free_type): Remove.
8183 (tdesc_create_vector): Use new.
8184 (tdesc_create_union): Likewise.
8185 (tdesc_create_flags): Likewise.
8186 (tdesc_create_enum): Likewise.
8187 (tdesc_free_feature): Delete.
8188 (free_target_description): Use delete.
8189
325c9fd4
JB
81902017-06-19 John Baldwin <jhb@FreeBSD.org>
8191
8192 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
8193 registers.
8194
16b7a719
PA
81952017-06-19 Pedro Alves <palves@redhat.com>
8196
8197 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
8198 after gdb::unlinker.
8199
1c8e01c9
SDJ
82002017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
8201
8202 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
8203 gdb_environ to access an environment variable.
8204
ffce45d2
TP
82052017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8206
8207 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
8208 gdb_byte*.
8209
1d4fbac9
SM
82102017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8211
8212 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
8213
8465943a
SM
82142017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8215
8216 * configure: Re-generate.
8217 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
8218
3e019bdc
SM
82192017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8220
8221 * configure: Re-generate.
8222 * warning.m4: Pass -Werror to compiler when checking for
8223 supported warning flags.
8224
cf0dd6f0
SM
82252017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8226
8227 * Makefile.in (COMPILE.pre): Add "-x c++".
8228
6f98355c
YQ
82292017-06-16 Alan Hayward <alan.hayward@arm.com>
8230 Pedro Alves <palves@redhat.com>
8231 Yao Qi <yao.qi@linaro.org>
8232
8233 * defs.h (RequireLongest): New.
8234 (extract_integer): Declare function template.
8235 (extract_signed_integer): Remove the declaration, but define it
8236 static inline.
8237 (extract_unsigned_integer): Likewise.
8238 (store_integer): Declare function template.
8239 (store_signed_integer): Remove the declaration, but define it
8240 static inline.
8241 (store_unsigned_integer): Likewise.
8242 * findvar.c (extract_integer): New function template.
8243 (extract_signed_integer): Remove.
8244 (extract_unsigned_integer): Remove.
8245 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
8246 instantiations.
8247 (store_integer): New function template.
8248 (store_signed_integer): Remove.
8249 (store_unsigned_integer): Remove.
8250 (store_integer): Explicit instantiations.
8251 * regcache.c (regcache_raw_read_signed): Update.
8252 (regcache::raw_read): New function.
8253 (regcache::raw_read_signed): Remove.
8254 (regcache::raw_read_unsigned): Remove.
8255 (regcache_raw_read_unsigned): Update.
8256 (regcache_raw_write_unsigned): Update.
8257 (regcache::raw_write_signed): Remove.
8258 (regcache::raw_write): New function.
8259 (regcache_cooked_read_signed): Update.
8260 (regcache::raw_write_unsigned): Remove.
8261 (regcache::cooked_read_signed): Remove.
8262 (regcache_cooked_read_unsigned): Update.
8263 (regcache::cooked_read_unsigned): Remove.
8264 (regcache_cooked_write_signed): Update.
8265 (regcache_cooked_write_unsigned): Update.
8266 * regcache.h (regcache) <raw_read_signed>: Remove.
8267 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
8268 <raw_read, raw_write>: New.
8269 <cooked_read_signed, cooked_write_signed>: Remove.
8270 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
8271 <cooked_read, cooked_write>: New.
8272 * sh64-tdep.c (sh64_pseudo_register_read): Update.
8273 (sh64_pseudo_register_write): Update.
8274
a87dc45a
AK
82752017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
8276
8277 * arc-tdep.c (arc_disassembler_options): New variable.
8278 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
8279 of default_print_insn.
8280 (arc_delayed_print_insn): Set info->section when needed,
8281 use default_print_insn to retrieve a disassembler.
8282
45159d6a
SDJ
82832017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
8284
8285 PR gdb/21574
8286 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
8287 to mention $SHELL and startup-with-shell.
8288
b46c4cf0
MF
82892017-06-14 Max Filippov <jcmvbkbc@gmail.com>
8290
8291 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
8292
6394c606
YQ
82932017-06-14 Yao Qi <yao.qi@linaro.org>
8294
8295 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
8296 default_print_insn instead of print_insn_aarch64.
8297 * arm-tdep.c (gdb_print_insn_arm): Call
8298 default_print_insn instead of print_insn_big_arm
8299 and print_insn_little_arm.
8300 * i386-tdep.c (i386_print_insn): Call default_print_insn
8301 instead of print_insn_i386.
8302 * ia64-tdep.c (ia64_print_insn): Call
8303 default_print_insn instead of print_insn_ia64.
8304 * mips-tdep.c (gdb_print_insn_mips): Call
8305 default_print_insn instead of print_insn_big_mips
8306 and print_insn_little_mips.
8307 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
8308 instead of print_insn_spu.
8309
d5722aa2
PA
83102017-06-14 Pedro Alves <palves@redhat.com>
8311
8312 * ada-lang.c: Include "common/byte-vector.h".
8313 (ada_value_primitive_packed_val): Use gdb::byte_vector.
8314 * charset.c (wchar_iterator::iterate): Resize the vector instead
8315 of reserving it.
8316 * common/byte-vector.h: Include "common/def-vector.h".
8317 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
8318 * cli/cli-dump.c: Include "common/byte-vector.h".
8319 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
8320 * common/byte-vector.h: New file.
8321 * common/def-vector.h: New file.
8322 * common/default-init-alloc.h: New file.
8323 * dwarf2loc.c: Include "common/byte-vector.h".
8324 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
8325 instead of reserving it.
8326 * dwarf2read.c: Include "common/byte-vector.h".
8327 (data_buf::m_vec): Now a gdb::byte_vector.
8328 * gdb_regex.c: Include "common/def-vector.h".
8329 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
8330 * mi/mi-main.c: Include "common/byte-vector.h".
8331 (mi_cmd_data_read_memory): Use gdb::byte_vector.
8332 * printcmd.c: Include "common/byte-vector.h".
8333 (print_scalar_formatted): Use gdb::byte_vector.
8334 * valprint.c: Include "common/byte-vector.h".
8335 (maybe_negate_by_bytes, print_decimal_chars): Use
8336 gdb::byte_vector.
8337
01ec7a27
SM
83382017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8339
8340 * darwin-nat.c: Include "nat/fork-inferior.h".
8341
848d9074
SM
83422017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8343
8344 * configure.nat: Factor out Darwin bits that are not
8345 architecture-specific. Add fork-inferior.o.
8346
3b912944
SM
83472017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8348
8349 * configure.nat: Factor out AIX bits that are not
8350 architecture-specific. Add fork-inferior.o.
8351
55acdf22
AA
83522017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8353
8354 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
8355 (read_pieced_value, write_pieced_value): ...here. Reduce to
8356 wrappers that just call rw_pieced_value.
8357
f65e2044
AA
83582017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8359
8360 * dwarf2loc.c (write_pieced_value): When writing the data for a
8361 memory piece, use write_memory_with_notification instead of
8362 write_memory.
8363
23f945bf
AA
83642017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8365
8366 * valops.c (read_value_memory): Change embedded_offset to
8367 represent a bit offset instead of a byte offset.
8368 * value.h (read_value_memory): Adjust comment.
8369
f236533e
AA
83702017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8371
8372 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
8373 dest_offset_bits and source_offset_bits.
8374 (write_pieced_value): Likewise.
8375
65d84b76
AA
83762017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8377
8378 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
8379 given by DW_OP_bit_piece.
8380 (write_pieced_value): Likewise.
8381
242d31ab
AA
83822017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8383
8384 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
8385 some other preparations to the places where sufficient information
8386 is available.
8387 (write_pieced_value): Likewise.
8388
03c8af18
AA
83892017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8390
8391 * dwarf2loc.c (bits_to_bytes): New function.
8392 (read_pieced_value): Fix offset calculations for register pieces
8393 on big-endian targets.
8394 (write_pieced_value): Likewise.
8395
840989c1
AA
83962017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8397
8398 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
8399 (write_pieced_value): Likewise.
8400
359b19bb
AA
84012017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8402
8403 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
8404 transfer the source value's least significant bits, instead of its
8405 lowest-addressed ones. Rename type_len to max_offset.
8406 (read_pieced_value): Mirror above changes to write_pieced_value as
8407 applicable.
8408
07c9ca3b
AA
84092017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8410
8411 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
8412 truncate full bytes from dest_offset_bits before using it as an
8413 offset into the buffer.
8414
f1cc9874
AA
84152017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8416
8417 * dwarf2loc.c (write_pieced_value): Include transfer size in
8418 byte-wise check.
8419
cdaac320
AA
84202017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8421
8422 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
8423 calculation of this_size.
8424
af547a96
AA
84252017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8426
8427 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
8428 when targeting a bit-field.
8429 (write_pieced_value): Likewise.
8430
ddd7882a
AA
84312017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8432
8433 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
8434 (allocate_piece_closure): Drop addr_size parameter.
8435 (dwarf2_evaluate_loc_desc_full): Adjust call to
8436 allocate_piece_closure.
8437
e9352324
AA
84382017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8439
8440 PR gdb/21226
8441 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
8442 the LSB end, independent of endianness.
8443
d5d1163e
AA
84442017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8445
8446 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
8447 size capping.
8448
032bb6ea
YQ
84492017-06-13 Yao Qi <yao.qi@linaro.org>
8450
8451 * mips-linux-nat.c: Move include features/mips*-linux.c to
8452 mips-linux-tdep.c.
8453 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
8454 to mips-linux-tdep.c.
8455 * mips-linux-tdep.c: Include features/mips*-linux.c
8456 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
8457 functions.
8458 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
8459 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
8460 (tdesc_mips64_dsp_linux): Declare.
8461
f12f6bad
TT
84622017-06-12 Tom Tromey <tom@tromey.com>
8463
8464 * valprint.h (val_print_type_code_int): Remove.
8465 * valprint.c (generic_val_print_int): Always call
8466 val_print_scalar_formatted.
8467 (val_print_type_code_int): Remove.
8468 * printcmd.c (print_scalar_formatted): Handle options->format==0.
8469 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
8470 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
8471 * ada-valprint.c (ada_val_print_num): Use
8472 val_print_scalar_formatted.
8473
d9109c80
TT
84742017-06-12 Tom Tromey <tom@tromey.com>
8475
8476 * printcmd.c (print_scalar_formatted): Unify the two switches.
8477 Don't convert scalars to LONGEST.
8478
4ac0cb1c
TT
84792017-06-12 Tom Tromey <tom@tromey.com>
8480
8481 PR exp/16225:
8482 * valprint.h (print_decimal_chars): Update.
8483 * valprint.c (maybe_negate_by_bytes): New function.
8484 (print_decimal_chars): Add "is_signed" argument.
8485 * printcmd.c (print_scalar_formatted): Update.
8486
30a25466
TT
84872017-06-12 Tom Tromey <tom@tromey.com>
8488
8489 PR exp/16225:
8490 * valprint.h (print_binary_chars, print_hex_chars): Update.
8491 * valprint.c (val_print_type_code_int): Update.
8492 (print_binary_chars): Add "zero_pad" argument.
8493 (emit_octal_digit): New function.
8494 (print_octal_chars): Don't zero-pad.
8495 (print_decimal_chars): Likewise.
8496 (print_hex_chars): Add "zero_pad" argument.
8497 * sh64-tdep.c (sh64_do_fp_register): Update.
8498 * regcache.c (regcache::dump): Update.
8499 * printcmd.c (print_scalar_formatted): Update.
8500 * infcmd.c (default_print_one_register_info): Update.
8501
b3464d03
PA
85022017-06-12 Pedro Alves <palves@redhat.com>
8503 Alan Hayward <alan.hayward@arm.com>
8504
8505 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
8506 (mips_eabi_push_dummy_call): Rename local 'regsize' to
8507 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
8508 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
8509 Assert that abi_regsize bytes fit in 'ref_valbuf'.
8510
4b76cda9
PA
85112017-06-12 Pedro Alves <palves@redhat.com>
8512
8513 * dwarf2read.c (mapped_symtab::data): Now a vector of
8514 symtab_index_entry instead of vector of
8515 std::unique_ptr<symtab_index_entry>. All users adjusted to check
8516 whether an element's name is NULL instead of checking whether the
8517 element itself is NULL.
8518 (find_slot): Change return type. Adjust.
8519 (hash_expand, , add_index_entry, uniquify_cu_indices)
8520 (write_hash_table): Adjust.
8521
e8f8bcb3
PA
85222017-06-12 Pedro Alves <palves@redhat.com>
8523
8524 * dwarf2read.c (recursively_count_psymbols): New function.
8525 (write_psymtabs_to_index): Call it to compute number of psyms and
8526 pass estimate size of psyms_seen to unordered_set's ctor.
8527
70a1152b
PA
85282017-06-12 Pedro Alves <palves@redhat.com>
8529
8530 * dwarf2read.c (write_hash_table): Check if key already exists
8531 before emplacing.
8532
c2f134ac
PA
85332017-06-12 Pedro Alves <palves@redhat.com>
8534
8535 * dwarf2read.c (data_buf::append_space): Rename to...
8536 (data_buf::grow): ... this, and make private. Adjust all callers.
8537 (data_buf::append_uint): New method.
8538 (add_address_entry, write_one_signatured_type)
8539 (write_psymtabs_to_index): Use it.
8540
a81e6d4d
PA
85412017-06-12 Pedro Alves <palves@redhat.com>
8542
8543 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
8544 (file_write (FILE *, const std::vector<Elem>&)): Delete.
8545 (data_buf::file_write): Call ::fwrite directly.
8546
6fd931f2
PA
85472017-06-12 Pedro Alves <palves@redhat.com>
8548
8549 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
8550 std::vector::erase.
8551
bc8f2430
JK
85522017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8553
8554 Code cleanup: C++ify .gdb_index producer.
8555 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
8556 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
8557 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
8558 (create_strtab, add_string): Remove.
8559 (file_write, data_buf): New.
8560 (struct symtab_index_entry): Use std::vector for cu_indices.
8561 (struct mapped_symtab): Use std::vector for data.
8562 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
8563 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
8564 Remove.
8565 (find_slot): Change return type. Update it to the new data structures.
8566 (hash_expand, add_index_entry): Update it to the new data structures.
8567 (offset_type_compare): Remove.
8568 (uniquify_cu_indices): Update it to the new data structures.
8569 (c_str_view, c_str_view_hasher, vector_hasher): New.
8570 (add_indices_to_cpool): Remove.
8571 (write_hash_table): Update it to the new data structures.
8572 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
8573 (eq_psymtab_cu_index): Remove.
8574 (psym_index_map): New typedef.
8575 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
8576 reference and std::unordered_map for cu_index_htab.
8577 (add_address_entry, add_address_entry_worker, write_address_map)
8578 (write_psymbols): Update it to the new data structures.
8579 (write_obstack): Remove.
8580 (struct signatured_type_index_data): Change types_list to a data_buf
8581 reference and psyms_seen to a std::unordered_set reference.
8582 (write_one_signatured_type, recursively_write_psymbols)
8583 (write_psymtabs_to_index): Update it to the new data structures.
8584
c4dcb155
SM
85852017-06-11 Simon Marchi <simon.marchi@ericsson.com>
8586
8587 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
8588 separate-debug-file commands.
8589 * symfile.h (separate_debug_file_debug): New global.
8590 * symfile.c (separate_debug_file_debug): New global.
8591 (separate_debug_file_exists, find_separate_debug_file): Add
8592 debug output.
8593 (_initialize_symfile): Add "set debug separate-debug-file"
8594 command.
8595 * build-id.c (build_id_to_debug_bfd,
8596 find_separate_debug_file_by_buildid): Add debug output.
8597
6d45d4b4
SM
85982017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8599
8600 * gdbarch.sh (displaced_step_free_closure): Remove.
8601 * gdbarch.h, gdbarch.c: Re-generate.
8602 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
8603 displaced_step_free_closure.
8604 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8605 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8606 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8607 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8608 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8609 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8610 * arch-utils.h (simple_displaced_step_free_closure): Remove.
8611 * arch-utils.c (simple_displaced_step_free_closure): Remove.
8612 * infrun.c (displaced_step_clear): Call xfree instead of
8613 gdbarch_displaced_step_free_closure.
8614
2f91880f
SDJ
86152017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
8616
8617 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
8618 NULL".
8619
b8b6e72f
AH
86202017-06-08 Alan Hayward <alan.hayward@arm.com>
8621
8622 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
8623 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
8624 (mn10300_push_dummy_call): Likewise.
8625
5369082e
AH
86262017-06-08 Alan Hayward <alan.hayward@arm.com>
8627
8628 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
8629
ff4ca5ac
AH
86302017-06-08 Alan Hayward <alan.hayward@arm.com>
8631
8632 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
8633
aefd8b33
SDJ
86342017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8635
8636 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
8637 able to start inferiors using a shell.
8638 (New remote packets): Announce new packet "QStartupWithShell".
8639 * remote.c: Add PACKET_QStartupWithShell.
8640 (extended_remote_create_inferior): Handle new
8641 PACKET_QStartupWithShell.
8642 (remote_protocol_features) <QStartupWithShell>: New entry for
8643 PACKET_QStartupWithShell.
8644 (_initialize_remote): Call "add_packet_config_cmd" for
8645 QStartupShell.
8646
2090129c
SDJ
86472017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8648 Pedro Alves <palves@redhat.com>
8649
8650 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
8651 and "nat/fork-inferior.h".
8652 * common/common-inferior.h: New file, with contents from
8653 "gdb/inferior.h".
8654 * commom/common-utils.c: Include "common-utils.h".
8655 (stringify_argv): New function.
8656 * common/common-utils.h (stringify_argv): New prototype.
8657 * configure.nat: Add "fork-inferior.o" as a dependency for
8658 "*linux*", "fbsd*" and "nbsd*" hosts.
8659 * corefile.c (get_exec_file): Update comment.
8660 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
8661 instead of "startup_inferior".
8662 (darwin_create_inferior): Call "add_thread_silent" after
8663 "fork_inferior".
8664 * fork-child.c: Cleanup unnecessary includes.
8665 (SHELL_FILE): Move to "common/common-fork-child.c".
8666 (environ): Likewise.
8667 (exec_wrapper): Initialize.
8668 (get_exec_wrapper): New function.
8669 (breakup_args): Move to "common/common-fork-child.c"; rename to
8670 "breakup_args_for_exec".
8671 (escape_bang_in_quoted_argument): Move to
8672 "common/common-fork-child.c".
8673 (saved_ui): New variable.
8674 (prefork_hook): New function.
8675 (postfork_hook): Likewise.
8676 (postfork_child_hook): Likewise.
8677 (gdb_startup_inferior): Likewise.
8678 (fork_inferior): Move to "common/common-fork-child.c". Update
8679 function to support gdbserver.
8680 (startup_inferior): Likewise.
8681 * gdbcore.h (get_exec_file): Remove declaration.
8682 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
8683 instead of "startup_inferior". Call "add_thread_silent" after
8684 "fork_inferior".
8685 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
8686 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
8687 instead of "startup_inferior". Call "add_thread_silent" after
8688 "fork_inferior".
8689 * inferior.h: Include "common-inferior.h".
8690 (trace_start_error): Move to "common/common-utils.h".
8691 (trace_start_error_with_name): Likewise.
8692 (fork_inferior): Move prototype to "nat/fork-inferior.h".
8693 (startup_inferior): Likewise.
8694 (gdb_startup_inferior): New prototype.
8695 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
8696 * nat/fork-inferior.h: New file.
8697 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
8698 instead of "startup_inferior". Call "add_thread_silent" after
8699 "fork_inferior".
8700 * target.h (target_terminal_init): Move prototype to
8701 "target/target.h".
8702 (target_terminal_inferior): Likewise.
8703 (target_terminal_ours): Likewise.
8704 * target/target.h (target_terminal_init): New prototype, moved
8705 from "target.h".
8706 (target_terminal_inferior): Likewise.
8707 (target_terminal_ours): Likewise.
8708 * utils.c (gdb_flush_out_err): New function.
8709
043a4934
SDJ
87102017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8711
8712 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
8713 * common/common-gdbthread.h: New file, with parts from
8714 "gdb/gdbthread.h".
8715 * gdbthread.h: Include "common-gdbthread.h".
8716 (switch_to_thread): Moved to "common/common-gdbthread.h".
8717
15652511
SDJ
87182017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8719
8720 * Makefile.in (SFILES): Add "common/job-control.c".
8721 (HFILES_NO_SRCDIR): Add "common/job-control.h".
8722 (COMMON_OBS): Add "job-control.o".
8723 * common/job-control.c: New file, with contents from
8724 "gdb/inflow.c".
8725 * common/job-control.h: New file, with contents from "terminal.h".
8726 * fork-child.c: Include "job-control.h".
8727 * inflow.c: Include "job-control.h".
8728 (gdb_setpgid): Move to "common/common-inflow.c".
8729 (_initialize_inflow): Move setting of "job_control" to
8730 "handle_job_control".
8731 * terminal.h (job_control): Moved to "common/common-terminal.h".
8732 (gdb_setpgid): Likewise.
8733 * top.c: Include "job_control.h".
8734 * utils.c: Likewise.
8735 (job_control): Moved to "job-control.c".
8736
2d7cc5c7
PA
87372017-06-07 Pedro Alves <palves@redhat.com>
8738
8739 * Makefile.in (SFILES): Add gdb_regex.c.
8740 (COMMON_OBS): Add gdb_regex.o.
8741 * ada-lang.c (ada_add_standard_exceptions)
8742 (ada_add_exceptions_from_frame, name_matches_regex)
8743 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
8744 parameter type to compiled_regex. Adjust.
8745 (ada_exceptions_list): Use compiled_regex.
8746 * break-catch-throw.c (exception_catchpoint::pattern): Now a
8747 std::unique_ptr<compiled_regex>.
8748 (exception_catchpoint::~exception_catchpoint): Remove regfree
8749 call.
8750 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8751 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8752 * breakpoint.c (solib_catchpoint::compiled): Now a
8753 std::unique_ptr<compiled_regex>.
8754 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8755 (check_status_catch_solib): Adjust to use compiled_regex.
8756 (add_solib_catchpoint): Adjust to use compiled_regex.
8757 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8758 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8759 compiled_regex reference. Adjust to use it.
8760 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8761 declaration. Include "gdb_regex.h".
8762 (apropos_cmd): Change regex parameter to compiled_regex reference.
8763 * gdb_regex.c: New file.
8764 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8765 declarations.
8766 (class compiled_regex): New.
8767 * linux-tdep.c: Include "common/gdb_optional.h".
8768 (struct mapping_regexes): New, factored out from
8769 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8770 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8771 gdb::optional and remove cleanups. Adjust to compiled_regex.
8772 * probe.c: Include "common/gdb_optional.h".
8773 (collect_probes): Use compiled_regex and gdb::optional and remove
8774 cleanups.
8775 * skip.c: Include "common/gdb_optional.h".
8776 (skiplist_entry::compiled_function_regexp): Now a
8777 gdb::optional<compiled_regex>.
8778 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8779 (free_skiplist_entry): Remove regfree call.
8780 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8781 compiled_regex and gdb::optional.
8782 * symtab.c: Include "common/gdb_optional.h".
8783 (search_symbols): Use compiled_regex and gdb::optional.
8784 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8785 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8786 to gdb_regex.c.
8787
50d6adef
AH
87882017-06-07 Alan Hayward <alan.hayward@arm.com>
8789
8790 * regcache.c (regcache::save): Avoid buffer use.
8791 (regcache::dump): Likewise.
8792
4a8a33c8
AH
87932017-06-07 Alan Hayward <alan.hayward@arm.com>
8794
8795 * sh-tdep.c (sh_pseudo_register_read): Remove
8796 MAX_REGISTER_SIZE.
8797 (sh_pseudo_register_write): Likewise.
8798 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8799 (sh64_pseudo_register_write): Likewise
8800
d1be909e
AH
88012017-06-07 Alan Hayward <alan.hayward@arm.com>
8802
8803 * aarch64-tdep.c (aarch64_store_return_value): Use
8804 V_REGISTER_SIZE.
8805 (aarch64_pseudo_read_value): Likewise.
8806 (aarch64_pseudo_write): Likewise.
8807
f4a65042
YQ
88082017-06-06 Yao Qi <yao.qi@linaro.org>
8809
8810 * regformats/regdef.h (set_register_cache): Remove the
8811 declaration.
8812
9f7fb0aa
AH
88132017-06-06 Alan Hayward <alan.hayward@arm.com>
8814
8815 * frame.c (frame_unwind_register_signed): Use
8816 frame_unwind_register_value.
8817
e1e01040
PA
88182017-06-06 Pedro Alves <palves@redhat.com>
8819
8820 PR breakpoints/21553
8821 * breakpoint.c (create_breakpoints_sal_default)
8822 (init_breakpoint_sal, create_breakpoint_sal): Use
8823 gdb::unique_xmalloc_ptr for string parameters.
8824 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8825 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8826 (base_breakpoint_create_breakpoints_sal)
8827 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8828 (strace_marker_create_breakpoints_sal)
8829 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8830 string parameters.
8831 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8832 gdb::unique_xmalloc_ptr for string parameters.
8833 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8834 parameters.
8835
fbe654c8
AH
88362017-06-06 Alan Hayward <alan.hayward@arm.com>
8837
8838 * alpha-tdep.c (alpha_register_to_value): Use
8839 get_frame_register_value.
8840 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8841
ae0d01d6
AH
88422017-06-06 Alan Hayward <alan.hayward@arm.com>
8843
8844 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8845 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8846 (ia64_value_to_register): Likewise.
8847 (ia64_extract_return_value): Likewise.
8848 (ia64_store_return_value): Likewise.
8849 (ia64_push_dummy_call): Likewise.
8850
49cf576c
JB
88512017-06-04 Joel Brobecker <brobecker@adacore.com>
8852
8853 GDB 8.0 released.
8854
26b6a6ab
SM
88552017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8856
8857 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8858
22827c51
SM
88592017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8860
8861 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8862 parameter.
8863 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8864
0e05cf3a
SM
88652017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8866
8867 * event-loop.c (poll_timers): Unallocate timer using delete
8868 instead of xfree.
8869
c1fc2657
SM
88702017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8871
8872 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8873 (struct breakpoint) <~breakpoint>: New.
8874 (struct watchpoint): Inherit from breakpoint.
8875 <~watchpoint>: New.
8876 <base>: Remove.
8877 (struct tracepoint): Inherit from breakpoint.
8878 <base>: Remove.
8879 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8880 (struct longjmp_breakpoint): Inherit from breakpoint.
8881 <~longjmp_breakpoint>: New.
8882 <base>: Remove.
8883 (new_breakpoint_from_type): Remove casts.
8884 (watchpoint_in_thread_scope): Remove reference to base field.
8885 (watchpoint_del_at_next_stop): Likewise.
8886 (update_watchpoint): Likewise.
8887 (watchpoint_check): Likewise.
8888 (bpstat_check_watchpoint): Likewise.
8889 (set_longjmp_breakpoint): Likewise.
8890 (struct fork_catchpoint): Inherit from breakpoint.
8891 <base>: Remove.
8892 (struct solib_catchpoint): Inherit from breakpoint.
8893 <~solib_catchpoint>: New.
8894 <base>: Remove.
8895 (dtor_catch_solib): Change to ...
8896 (solib_catchpoint::~solib_catchpoint): ... this.
8897 (breakpoint_hit_catch_solib): Remove reference to base field.
8898 (add_solib_catchpoint): Likewise.
8899 (create_fork_vfork_event_catchpoint): Likewise.
8900 (struct exec_catchpoint): Inherit from breakpoint.
8901 <~exec_catchpoint>: New.
8902 <base>: Remove.
8903 (dtor_catch_exec): Change to ...
8904 (exec_catchpoint::~exec_catchpoint): ... this.
8905 (dtor_watchpoint): Change to ...
8906 (watchpoint::~watchpoint): ... this.
8907 (watch_command_1): Remove reference to base field.
8908 (catch_exec_command_1): Likewise.
8909 (base_breakpoint_dtor): Change to ...
8910 (breakpoint::~breakpoint): ... this.
8911 (base_breakpoint_ops): Remove dtor field value.
8912 (longjmp_bkpt_dtor): Change to ...
8913 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8914 (strace_marker_create_breakpoints_sal): Remove reference to base
8915 field.
8916 (delete_breakpoint): Don't manually call breakpoint destructor.
8917 (create_tracepoint_from_upload): Remove reference to base field.
8918 (trace_pass_set_count): Likewise.
8919 (initialize_breakpoint_ops): Don't initialize
8920 momentary_breakpoint_ops, don't set dtors.
8921 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8922 <~ada_catchpoint>: New.
8923 <base>: Remove.
8924 (create_excep_cond_exprs): Remove reference to base field.
8925 (dtor_exception): Change to ...
8926 (ada_catchpoint::~ada_catchpoint): ... this.
8927 (dtor_catch_exception): Remove.
8928 (dtor_catch_exception_unhandled): Remove.
8929 (dtor_catch_assert): Remove.
8930 (create_ada_exception_catchpoint): Remove reference to base
8931 field.
8932 (initialize_ada_catchpoint_ops): Don't set dtors.
8933 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8934 breakpoint.
8935 <~signal_catchpoint>: New.
8936 <base>: Remove.
8937 (signal_catchpoint_dtor): Change to ...
8938 (signal_catchpoint::~signal_catchpoint): ... this.
8939 (create_signal_catchpoint): Remove reference to base field.
8940 (initialize_signal_catchpoint_ops): Don't set dtor.
8941 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8942 from breakpoint.
8943 <~syscall_catchpoint>: New.
8944 <base>: Remove.
8945 (dtor_catch_syscall): Change to ...
8946 (syscall_catchpoint::~syscall_catchpoint): ... this.
8947 (create_syscall_event_catchpoint): Remove reference to base
8948 field.
8949 (initialize_syscall_catchpoint_ops): Don't set dtor.
8950 * break-catch-throw.c (struct exception_catchpoint): Inherit
8951 from breakpoint.
8952 <~exception_catchpoint>: New.
8953 <base>: Remove.
8954 (dtor_exception_catchpoint): Change to ...
8955 (exception_catchpoint::~exception_catchpoint): ... this.
8956 (handle_gnu_v3_exceptions): Remove reference to base field.
8957 (initialize_throw_catchpoint_ops): Don't set dtor.
8958 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8959 field.
8960 * remote.c (remote_get_tracepoint_status): Likewise.
8961 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8962 * tracefile.c (tracefile_fetch_registers): Likewise.
8963 * tracepoint.c (actions_command): Likewise.
8964 (validate_actionline): Likewise.
8965 (tfind_1): Likewise.
8966 (get_traceframe_location): Likewise.
8967 (find_matching_tracepoint_location): Likewise.
8968 (parse_tracepoint_status): Likewise.
8969 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8970
3b0871f4
SM
89712017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8972
8973 * breakpoint.c (struct longjmp_breakpoint): New struct.
8974 (is_tracepoint_type): Change return type to bool.
8975 (is_longjmp_type): New function.
8976 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8977 (set_raw_breakpoint_without_location): Use
8978 new_breakpoint_from_type.
8979 (set_raw_breakpoint): Likewise.
8980
a5e364af
SM
89812017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8982
8983 * breakpoint.c (new_breakpoint_from_type): New function.
8984 (create_breakpoint_sal): Use new_breakpoint_from_type and
8985 unique_ptr.
8986 (create_breakpoint): Likewise.
8987
ae3b3f34
SM
89882017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8989
8990 * memattr.c (mem_info_command): Rename to ...
8991 (info_mem_command): ... this.
8992 (mem_enable_command): Rename to ...
8993 (enable_mem_command): ... this.
8994 (mem_disable_command): Rename to ...
8995 (disable_mem_command): ... this.
8996 (mem_delete_command): Rename to ...
8997 (delete_mem_command): ... this.
8998 (_initialize_mem): Adjust function names.
8999
13ace077
MM
90002017-05-31 Markus Metzger <markus.t.metzger@intel.com>
9001
9002 * btrace.c (handle_pt_insn_events): New.
9003 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
9004 STATUS. Split into this and ...
9005 (handle_pt_insn_event_flags): ... this.
9006
c56ccc05
MM
90072017-05-31 Markus Metzger <markus.t.metzger@intel.com>
9008
9009 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
9010 and struct pt_insn.resynced.
9011 * configure: Regenerated.
9012 * config.in: Regenerated.
9013
08c3f6d2
TW
90142017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9015
9016 * btrace.c (ftrace_find_call_by_number): New function.
9017 (ftrace_new_function): Store objects, not pointers.
9018 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
9019 ftrace_new_gap, ftrace_update_function,
9020 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
9021 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
9022 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
9023 btrace_ends_with_single_insn, btrace_call_get): Account for
9024 btrace_thread_info::functions now storing objects.
9025 * btrace.h (struct btrace_thread_info): Add constructor.
9026 (struct btrace_thread_info) <functions>: Make std::vector.
9027 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
9028 Initialize with default values.
9029 * record-btrace.c (record_btrace_frame_sniffer): Account for
9030 btrace_thread_info::functions now storing objects.
9031
8ffd39f2
TW
90322017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9033
9034 * btrace.c: Remove typedef bfun_s.
9035 (ftrace_new_gap): Directly add gaps to the list of gaps.
9036 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
9037 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
9038 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
9039 instead of gdb VEC.
9040
4aeb0dfc
TW
90412017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9042
9043 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
9044 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
9045 with btrace_thread_info::next_segment and
9046 btrace_thread_info::prev_segment.
9047 * btrace.h: Remove struct btrace_func_link.
9048 (struct btrace_function): Replace pair of function segment pointers
9049 with pair of indices.
9050 * python/py-record-btrace.c (btpy_call_prev_sibling,
9051 btpy_call_next_sibling): Replace references to
9052 btrace_thread_info::segment with btrace_thread_info::next_segment and
9053 btrace_thread_info::prev_segment.
9054 * record-btrace.c (record_btrace_frame_this_id): Use
9055 btrace_find_call_by_number.
9056
eb8f2b9c
TW
90572017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9058
9059 * btrace.c (ftrace_new_function, ftrace_fixup_level,
9060 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
9061 btrace_insn_next, btrace_insn_prev): Remove references to
9062 btrace_thread_info::flow.
9063 * btrace.h (struct btrace_function): Remove FLOW.
9064
42bfe59e
TW
90652017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9066
9067 * btrace.c (ftrace_find_call_by_number): New function.
9068 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
9069 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
9070 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
9071 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
9072 index.
9073 * btrace.h (struct btrace_function): Turn UP into an index.
9074 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
9075 as an index.
9076 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
9077 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
9078 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
9079
b54b03bd
TW
90802017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9081
9082 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9083 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9084 ftrace_update_function, ftrace_compute_global_level_offset,
9085 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
9086 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
9087 btrace_insn_end, btrace_is_empty): Remove references to
9088 btrace_thread_info::begin and btrace_thread_info::end.
9089 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
9090 (struct btrace_thread_info) <functions>: Adjust comment.
9091 * record-btrace.c (record_btrace_start_replaying): Remove reference to
9092 btrace_thread_info::begin.
9093
8286623c
TW
90942017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9095
9096 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9097 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9098 ftrace_update_function): Remove arguments that implicitly were always
9099 BTINFO->END.
9100 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
9101 Don't pass BTINFO->END.
9102
a0f1b963
TW
91032017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9104
9105 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
9106 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
9107 btrace_find_insn_by_number): Replace function segment pointer with
9108 index.
9109 (btrace_insn_cmp): Simplify.
9110 * btrace.h: (struct btrace_insn_iterator) Rename index to
9111 insn_index. Replace function segment pointer with index into function
9112 segment vector.
9113 * record-btrace.c (record_btrace_call_history): Replace function
9114 segment pointer use with index.
9115 (record_btrace_frame_sniffer): Retrieve function call segment through
9116 vector.
9117 (record_btrace_set_replay): Remove defunc't safety check.
9118
f158f208
TW
91192017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9120
9121 * btrace.c (btrace_ends_with_single_insn): New function.
9122 (btrace_call_get, btrace_call_number, btrace_call_begin,
9123 btrace_call_end, btrace_call_next, btrace_call_prev,
9124 btrace_find_call_by_number): Use index into call segment vector
9125 instead of pointer.
9126 (btrace_call_cmp): Simplify.
9127 * btrace.h (struct btrace_call_iterator): Replace function call segment
9128 pointer with index into vector.
9129 * record-btrace.c (record_btrace_call_history): Use index instead of
9130 pointer.
9131
521103fd
TW
91322017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9133
9134 * btrace.c (btrace_insn_begin, btrace_insn_end,
9135 btrace_find_insn_by_number): Add btinfo to iterator.
9136 * btrace.h (struct btrace_insn_iterator): Add btinfo.
9137
17b89b34
TW
91382017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9139
9140 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
9141 and save pointers directly.
9142 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
9143 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
9144 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
9145 changed signature of functions.
9146 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
9147 (btrace_fetch): Remove code that adds btrace_function pointers to
9148 vector of btrace_functions.
9149 (btrace_clear): Simplify freeing vector of btrace_functions.
9150
2b51eddc
TW
91512017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9152
9153 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
9154 Replace VEC_* with std::vector functions.
9155 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
9156 (struct btrace_thread_info)<functions>: Change type to std::vector.
9157
db6be0d5
SM
91582017-05-30 Simon Marchi <simon.marchi@ericsson.com>
9159
9160 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
9161 "Removed targets and native configurations" up. Merge duplicate
9162 "New commands" sub-sections. Add "New options" sub-sections.
9163
b057297a
AH
91642017-05-26 Alan Hayward <alan.hayward@arm.com>
9165
9166 * defs.h (copy_integer_to_size): New declaration.
9167 * findvar.c (copy_integer_to_size): New function.
9168 (do_cint_test): New selftest function.
9169 (copy_integer_to_size_test): Likewise.
9170 (_initialize_findvar): Likewise.
9171 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
9172 (mips_fbsd_collect_reg): Use raw_collect_integer.
9173 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
9174 (mips64_fill_gregset): Use raw_collect_integer
9175 (mips64_fill_fpregset): Use raw_supply_integer.
9176 * regcache.c (regcache::raw_supply_integer): New function.
9177 (regcache::raw_collect_integer): Likewise.
9178 * regcache.h: (regcache::raw_supply_integer): New declaration.
9179 (regcache::raw_collect_integer): Likewise.
9180
b77b02a5
YQ
91812017-05-24 Yao Qi <yao.qi@linaro.org>
9182
9183 * Makefile.in (SFILES): Add gdbarch-selftests.c.
9184 (COMMON_OBS): Add gdbarch-selftests.o.
9185 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
9186 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
9187 * gdbarch-selftests.c: New file.
9188 * regcache.h (regcache) <~regcache>: Mark it virtual if
9189 GDB_SELF_TEST.
9190 <raw_write>: Likewise.
9191
e521e87e
YQ
91922017-05-24 Yao Qi <yao.qi@linaro.org>
9193
9194 * regcache.c (current_regcache): Change it to
9195 regcache::current_regcache.
9196 (regcache_observer_target_changed): Update.
9197 (regcache_thread_ptid_changed): Make it a regcache static
9198 method.
9199 (regcache_thread_ptid_changed): Update.
9200 (class regcache_access): New.
9201 (current_regcache_test): Update.
9202 (_initialize_regcache): Update.
9203 * regcache.h: Include forward_list.
9204 (regcache): Declare regcache_thread_ptid_changed and declare
9205 registers_changed_ptid as friend.
9206
d8e07dda
YQ
92072017-05-24 Yao Qi <yao.qi@linaro.org>
9208
9209 * i387-tdep.c (i387_register_to_value): Use register_size
9210 instead of TYPE_LENGTH.
9211 * m68k-tdep.c (m68k_register_to_value): Likewise.
9212
8c8f9122
YQ
92132017-05-24 Yao Qi <yao.qi@linaro.org>
9214
9215 * i387-tdep.c (i387_convert_register_p): Return false if type
9216 code isn't TYPE_CODE_FLT.
9217
68fce50f
YQ
92182017-05-24 Yao Qi <yao.qi@linaro.org>
9219
9220 * alpha-tdep.c (alpha_convert_register_p): Return true if type
9221 length is 4.
9222 (alpha_register_to_value): Remove type length check.
9223 (alpha_value_to_register): Likewise.
9224
88954b49
YQ
92252017-05-24 Yao Qi <yao.qi@linaro.org>
9226
9227 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
9228 TYPE_CODE_FLT.
9229
e3ec9b69
YQ
92302017-05-24 Yao Qi <yao.qi@linaro.org>
9231
9232 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
9233 TYPE_CODE_FLT or not.
9234
cdd238da
YQ
92352017-05-24 Yao Qi <yao.qi@linaro.org>
9236
9237 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
9238 * avr-tdep.c (avr_gdbarch_init): Likewise.
9239 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9240 * cris-tdep.c (cris_gdbarch_init): Likewise.
9241 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
9242 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9243 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9244 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9245 * mep-tdep.c (mep_gdbarch_init): Likewise.
9246 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9247 * mips-tdep.c (mips_gdbarch_init): Likewise.
9248 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9249 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9250 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
9251 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9252 * v850-tdep.c (v850_gdbarch_init): Likewise.
9253
7a3929c4
YQ
92542017-05-24 Yao Qi <yao.qi@linaro.org>
9255
9256 * selftest-arch.c (tests_with_arch): Call registers_changed
9257 and reinit_frame_cache.
9258 * selftest.c (run_self_tests): Likewise.
9259
f4985dba
YQ
92602017-05-24 Yao Qi <yao.qi@linaro.org>
9261
9262 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
9263 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
9264
ab20fa4a
YQ
92652017-05-24 Yao Qi <yao.qi@linaro.org>
9266
9267 * rl78-tdep.c (rl78_gdbarch_init): Don't call
9268 set_gdbarch_print_insn.
9269
f532ab94
YQ
92702017-05-24 Yao Qi <yao.qi@linaro.org>
9271
9272 * h8300-tdep.c (h8300_gdbarch_init): Don't call
9273 set_gdbarch_print_insn.
9274
39503f82
YQ
92752017-05-24 Yao Qi <yao.qi@linaro.org>
9276
9277 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9278 set_gdbarch_print_insn.
9279 * arc-tdep.c (arc_gdbarch_init): Likewise.
9280 * arch-utils.c: include dis-asm.h.
9281 (default_print_insn): New function.
9282 * arch-utils.h (default_print_insn): Declare.
9283 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
9284 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9285 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
9286 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
9287 * frv-tdep.c (frv_gdbarch_init): Likewise.
9288 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
9289 * gdbarch.sh (print_insn): Use default_print_insn.
9290 * gdbarch.c: Regenerated.
9291 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9292 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
9293 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9294 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
9295 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9296 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
9297 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
9298 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9299 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
9300 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9301 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9302 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9303 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
9304 * mt-tdep.c (mt_gdbarch_init): Likewise.
9305 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9306 * nios2-tdep.c (nios2_print_insn): Remove.
9307 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
9308 * rx-tdep.c (rx_gdbarch_init): Likewise.
9309 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9310 * score-tdep.c (score_print_insn): Remove.
9311 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
9312 * sh-tdep.c (sh_gdbarch_init): Likewise.
9313 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9314 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9315 * tic6x-tdep.c (tic6x_print_insn): Remove.
9316 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
9317 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
9318 * v850-tdep.c (v850_gdbarch_init): Likewise.
9319 * vax-tdep.c (vax_gdbarch_init): Likewise.
9320 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9321 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
9322
f7241d4f
JB
93232017-05-23 John Baldwin <jhb@FreeBSD.org>
9324
9325 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
9326 (MIPS_FP0_REGNUM): Remove.
9327 (MIPS_FSR_REGNUM): Remove.
9328 (mips_fbsd_supply_fpregs): Use mips_regnum.
9329 (mips_fbsd_supply_gregs): Likewise.
9330 (mips_fbsd_collect_fpregs): Likewise.
9331 (mips_fbsd_collect_gregs): Likewise.
9332
d489d81d
JB
93332017-05-23 John Baldwin <jhb@FreeBSD.org>
9334
9335 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
9336 (getpfpregs_supplies): New function.
9337 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
9338 getfpregs_supplies.
9339 (mips_fbsd_store_inferior_registers): Likewise.
9340
e11b3cdc
PA
93412017-05-22 Pedro Alves <palves@redhat.com>
9342
9343 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
9344 maintainer.
9345
0f068fb5
AH
93462017-05-22 Alan Hayward <alan.hayward@arm.com>
9347
9348 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
9349 (store_register): Likewise.
9350 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
9351 (get_decimal_float_return_value): Likewise.
9352 (do_ppc_sysv_return_value): Likewise.
9353 (ppc64_sysv_abi_push_integer): Likewise.
9354 (ppc64_sysv_abi_push_freg): Likewise.
9355 (ppc64_sysv_abi_return_value_base): Likewise.
9356 (ppc64_sysv_abi_return_value): Likewise.
9357 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
9358 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
9359 * rs6000-nat.c: Likewise.
9360 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
9361 (rs6000_value_to_register): Likewise.
9362 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
9363
e6cf65f2
TT
93642017-05-21 Tom Tromey <tom@tromey.com>
9365
9366 PR rust/21466:
9367 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
9368 arrays as "[T]", not "[T; ]".
9369
43cc5389
TT
93702017-05-19 Tom Tromey <tom@tromey.com>
9371
9372 PR rust/21484:
9373 * rust-lang.c (exp_descriptor_rust): New function.
9374 (rust_language_defn): Use it.
9375 * p-lang.c (pascal_language_defn): Update.
9376 * opencl-lang.c (opencl_language_defn): Update.
9377 * objc-lang.c (objc_language_defn): Update.
9378 * m2-lang.c (m2_language_defn): Update.
9379 * language.h (struct language_defn)
9380 <la_watch_location_expression>: New member.
9381 * language.c (unknown_language_defn, auto_language_defn)
9382 (local_language_defn): Update.
9383 * go-lang.c (go_language_defn): Update.
9384 * f-lang.c (f_language_defn): Update.
9385 * d-lang.c (d_language_defn): Update.
9386 * c-lang.h (c_watch_location_expression): Declare.
9387 * c-lang.c (c_watch_location_expression): New function.
9388 (c_language_defn, cplus_language_defn, asm_language_defn)
9389 (minimal_language_defn): Use it.
9390 * breakpoint.c (watch_command_1): Call
9391 la_watch_location_expression.
9392 * ada-lang.c (ada_language_defn): Update.
9393
7a6e7fcc
RO
93942017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9395
6e7e1744
RO
9396 PR tui/21482
9397 * gdb_curses.h (NOMACROS): Define.
9398 (NCURSES_NOMACROS): Define.
9399
94002017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9401
9402 PR tui/21482
7a6e7fcc
RO
9403 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
9404 arg to char *.
9405 * tui/tui-wingeneral.c (box_win): Likewise.
9406 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
9407 (tui_show_source_line): Likewise.
9408 (tui_show_exec_info_content): Likewise.
9409
1933fd8e
VM
94102017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
9411
9412 * sparc-tdep.c (sparc_structure_return_p)
9413 (sparc_arg_on_registers_p): New functions.
9414 (sparc32_store_arguments): Use them.
9415 * sparc64-tdep.c (sparc64_16_byte_align_p)
9416 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
9417 Handle TYPE_CODE_ARRAY.
9418
21873064
YQ
94192017-05-17 Yao Qi <yao.qi@linaro.org>
9420
9421 * cli/cli-decode.c (add_alias_cmd): New function.
9422 * command.h (add_alias_cmd): Declare.
9423 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
9424 instead call add_alias_cmd.
9425
2b351b19
PA
94262017-05-17 Pedro Alves <palves@redhat.com>
9427
9428 * Makefile.in (nat_extra_makefile_frag): Rename to ...
9429 (nat_makefile_frag): ... this. All references updated.
9430 * configure.ac: Likewise.
9431 * configure.nat: Likewise. Enhance comments.
9432 * configure: Regenerate.
9433
5f2ad7a3
RO
94342017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9435
9436 * procfs.c (procfs_create_inferior): Change prototype to match
9437 definition.
9438
adf3dde5
EZ
94392017-05-13 Eli Zaretskii <eliz@gnu.org>
9440
9441 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
9442 C++ compiler warning.
9443
6830f270
TT
94442017-05-12 Tom Tromey <tom@tromey.com>
9445
9446 PR rust/21483:
9447 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
9448 recurse, just call value_struct_elt directly.
9449
68f2f2e3
TT
94502017-05-12 Tom Tromey <tom@tromey.com>
9451
9452 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
9453 OP_RUST_ARRAY>: Fix.
9454
256afbc2
TT
94552017-05-12 Tom Tromey <tom@tromey.com>
9456
9457 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
9458
94bb8dfe
YQ
94592017-05-09 Yao Qi <yao.qi@linaro.org>
9460
9461 * regcache.c: Include <forward_list>.
9462 (struct regcache_list): Remove.
9463 (current_regcache): Update.
9464 (get_thread_arch_aspace_regcache): Update for std::forward_list.
9465 (regcache_thread_ptid_changed): Likewise.
9466 (registers_changed_ptid): Likewise.
9467 (current_regcache_size): Likewise.
9468
8248946c
YQ
94692017-05-09 Yao Qi <yao.qi@linaro.org>
9470
9471 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
9472 (current_regcache_size): New function.
9473 (current_regcache_test): New function.
9474 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
9475
313c5961
AH
94762017-05-08 Alan Hayward <alan.hayward@arm.com>
9477
9478 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
9479 (print_gp_register_row): Use get_frame_register_value.
9480
27bfc1d1
AH
94812017-05-08 Alan Hayward <alan.hayward@arm.com>
9482
9483 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
9484 (mips_supply_fpregset): Likewise.
9485 (mips64_supply_gregset): Likewise.
9486
146e6c5c
AH
94872017-05-08 Alan Hayward <alan.hayward@arm.com>
9488
9489 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
9490 regcache->raw_supply_zeroed.
9491
e50f25ec
SDJ
94922017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9493
9494 * configure.nat: Rearrange 'case' statements to match
9495 host before cpu.
9496
21ea5acd
SDJ
94972017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9498
9499 * Makefile.in: Remove "@host_makefile_frag@". Add variables
9500 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
9501 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
9502 "@nat_extra_makefile_frag@".
9503 (Makefile): Remove dependency on "@frags@".
9504 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
9505 (data-directory/Makefile): Likewise.
9506 * config/aarch64/linux.mh: Deleted; moved contents to
9507 "gdb/configure.nat".
9508 * config/alpha/alpha-linux.mh: Likewise.
9509 * config/alpha/nbsd.mh: Likewise.
9510 * config/arm/linux.mh: Likewise.
9511 * config/arm/nbsdelf.mh: Likewise.
9512 * config/i386/cygwin.mh: Likewise.
9513 * config/i386/cygwin64.mh: Likewise.
9514 * config/i386/darwin.mh: Likewise.
9515 * config/i386/fbsd.mh: Likewise.
9516 * config/i386/fbsd64.mh: Likewise.
9517 * config/i386/go32.mh: Likewise.
9518 * config/i386/i386gnu.mh: Likewise.
9519 * config/i386/i386sol2.mh: Likewise.
9520 * config/i386/linux.mh: Likewise.
9521 * config/i386/linux64.mh: Likewise.
9522 * config/i386/mingw.mh: Likewise.
9523 * config/i386/mingw64.mh: Likewise.
9524 * config/i386/nbsd64.mh: Likewise.
9525 * config/i386/nbsdelf.mh: Likewise.
9526 * config/i386/nto.mh: Likewise.
9527 * config/i386/obsd.mh: Likewise.
9528 * config/i386/obsd64.mh: Likewise.
9529 * config/i386/sol2-64.mh: Likewise.
9530 * config/ia64/linux.mh: Likewise.
9531 * config/m32r/linux.mh: Likewise.
9532 * config/m68k/linux.mh: Likewise.
9533 * config/m68k/nbsdelf.mh: Likewise.
9534 * config/m68k/obsd.mh: Likewise.
9535 * config/m88k/obsd.mh: Likewise.
9536 * config/mips/fbsd.mh: Likewise.
9537 * config/mips/linux.mh: Likewise.
9538 * config/mips/nbsd.mh: Likewise.
9539 * config/mips/obsd64.mh: Likewise.
9540 * config/pa/linux.mh: Likewise.
9541 * config/pa/nbsd.mh: Likewise.
9542 * config/pa/obsd.mh: Likewise.
9543 * config/powerpc/aix.mh: Likewise.
9544 * config/powerpc/fbsd.mh: Likewise.
9545 * config/powerpc/linux.mh: Likewise.
9546 * config/powerpc/nbsd.mh: Likewise.
9547 * config/powerpc/obsd.mh: Likewise.
9548 * config/powerpc/ppc64-linux.mh: Likewise.
9549 * config/powerpc/spu-linux.mh: Likewise.
9550 * config/s390/linux.mh: Likewise.
9551 * config/sh/nbsd.mh: Likewise.
9552 * config/sparc/fbsd.mh: Likewise.
9553 * config/sparc/linux.mh: Likewise.
9554 * config/sparc/linux64.mh: Likewise.
9555 * config/sparc/nbsd64.mh: Likewise.
9556 * config/sparc/nbsdelf.mh: Likewise.
9557 * config/sparc/obsd64.mh: Likewise.
9558 * config/sparc/sol2.mh: Likewise.
9559 * config/tilegx/linux.mh: Likewise.
9560 * config/vax/nbsdelf.mh: Likewise.
9561 * config/vax/obsd.mh: Likewise.
9562 * config/xtensa/linux.mh: Likewise.
9563 * config/i386/i386gnu.mn: New file, with excerpts from
9564 "config/i386/i386gnu.mh".
9565 * configure: Regenerate.
9566 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
9567 *.mh files under "gdb/config".
9568 * configure.nat: New file, with contents from the
9569 "gdb/config/*/*.mh" files.
9570
7ed1acaf
TW
95712017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
9572
9573 * btrace.c (btrace_clear): Free insn vector.
9574
e13cb306
PA
95752017-05-05 Pedro Alves <palves@redhat.com>
9576
9577 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
9578 * configure: Regenerate.
9579
5ed8105e
PA
95802017-05-04 Pedro Alves <palves@redhat.com>
9581
9582 * Makefile.in (SFILES): Add progspace-and-thread.c.
9583 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
9584 (COMMON_OBS): Add progspace-and-thread.o.
9585 * breakpoint.c: Include "progspace-and-thread.h".
9586 (update_inserted_breakpoint_locations)
9587 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
9588 Use scoped_restore_current_pspace_and_thread.
9589 (create_std_terminate_master_breakpoint): Use
9590 scoped_restore_current_program_space.
9591 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
9592 (print_breakpoint_location): Use
9593 scoped_restore_current_program_space.
9594 (bp_loc_is_permanent): Use
9595 scoped_restore_current_pspace_and_thread.
9596 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
9597 (download_tracepoint_locations): Use
9598 scoped_restore_current_pspace_and_thread.
9599 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
9600 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
9601 (enum step_over_calls_kind): Moved from inferior.h.
9602 (class scoped_restore_current_thread): New class.
9603 * gdbthread.h (make_cleanup_restore_current_thread): Delete
9604 declaration.
9605 (scoped_restore_current_thread): New class.
9606 * infcmd.c: Include "common/gdb_optional.h".
9607 (continue_1, proceed_after_attach): Use
9608 scoped_restore_current_thread.
9609 (notice_new_inferior): Use scoped_restore_current_thread.
9610 * inferior.c: Include "progspace-and-thread.h".
9611 (restore_inferior, save_current_inferior): Delete.
9612 (add_inferior_command, clone_inferior_command): Use
9613 scoped_restore_current_pspace_and_thread.
9614 * inferior.h (scoped_restore_current_inferior): New class.
9615 * infrun.c: Include "progspace-and-thread.h" and
9616 "common/gdb_optional.h".
9617 (follow_fork_inferior): Use
9618 scoped_restore_current_pspace_and_thread.
9619 (scoped_restore_exited_inferior): New class.
9620 (handle_vfork_child_exec_or_exit): Use
9621 scoped_restore_exited_inferior,
9622 scoped_restore_current_pspace_and_thread,
9623 scoped_restore_current_thread and scoped_restore.
9624 (fetch_inferior_event): Use scoped_restore_current_thread.
9625 * linespec.c (decode_line_full, decode_line_1): Use
9626 scoped_restore_current_program_space.
9627 * mi/mi-main.c: Include "progspace-and-thread.h".
9628 (exec_continue): Use scoped_restore_current_thread.
9629 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
9630 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
9631 * proc-service.c (ps_pglobal_lookup): Use
9632 scoped_restore_current_program_space.
9633 * progspace-and-thread.c: New file.
9634 * progspace-and-thread.h: New file.
9635 * progspace.c (release_program_space, clone_program_space): Use
9636 scoped_restore_current_program_space.
9637 (restore_program_space, save_current_program_space)
9638 (save_current_space_and_thread): Delete.
9639 (switch_to_program_space_and_thread): Moved to
9640 progspace-and-thread.c.
9641 * progspace.h (save_current_program_space)
9642 (save_current_space_and_thread): Delete declarations.
9643 (scoped_restore_current_program_space): New class.
9644 * remote.c (remote_btrace_maybe_reopen): Use
9645 scoped_restore_current_thread.
9646 * symtab.c: Include "progspace-and-thread.h".
9647 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
9648 * thread.c (print_thread_info_1): Use
9649 scoped_restore_current_thread.
9650 (struct current_thread_cleanup): Delete.
9651 (do_restore_current_thread_cleanup)
9652 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
9653 (scoped_restore_current_thread::~scoped_restore_current_thread):
9654 ... this new dtor.
9655 (make_cleanup_restore_current_thread): Rename/convert to ...
9656 (scoped_restore_current_thread::scoped_restore_current_thread):
9657 ... this new ctor.
9658 (thread_apply_all_command): Use scoped_restore_current_thread.
9659 (thread_apply_command): Use scoped_restore_current_thread.
9660 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
9661 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
9662
f6223dbb
PA
96632017-05-04 Pedro Alves <palves@redhat.com>
9664
9665 * thread.c (make_cleanup_restore_current_thread): Move
9666 find_thread_ptid call before the is_stopped call. Assert that the
9667 thread is found. Replace is_stopped call by checking the thread's
9668 state directly. Remove unnecessary NULL-thread check.
9669
3c3ae77e
PA
96702017-05-04 Pedro Alves <palves@redhat.com>
9671
9672 * corelow.c (thread_section_name): New class.
9673 (get_core_register_section, get_core_siginfo): Use it.
9674
45eba0ab
AA
96752017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9676
9677 * corelow.c (sniff_core_bfd): Remove extra semicolon.
9678 (get_core_register_section): Remove xfree of NULL pointer.
9679
f81fdd35
AH
96802017-05-03 Alan Hayward <alan.hayward@arm.com>
9681
9682 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
9683 * regcache.c (regcache::raw_supply_zeroed): New function.
9684 * regcache.h (regcache::raw_supply_zeroed): New declaration.
9685
35837774
SM
96862017-05-03 Simon Marchi <simon.marchi@ericsson.com>
9687
9688 * gdbarch.sh: Remove commented out definition of
9689 TARGET_CHAR_BIT.
9690 * gdbarch.h: Re-generate.
9691
c94fee56
SDJ
96922017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
9693
9694 * configure: Regenerate.
9695
d17f7b36
SM
96962017-05-02 Simon Marchi <simon.marchi@ericsson.com>
9697
9698 * solib-target.c (solib_target_relocate_section_addresses):
9699 Remove num_section_bases, num_bases, segment_bases variables.
9700
b560ebd6
SM
97012017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9702
9703 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
9704
f2f46dfc
SM
97052017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9706
9707 * solib-target.c: Include <vector>
9708 (struct lm_info_target) <~lm_info_target>: Remove.
9709 <segment_bases, section_bases>: Change type to
9710 std::vector<CORE_ADDR>.
9711 (library_list_start_segment, library_list_start_section,
9712 library_list_end_library,
9713 solib_target_relocate_section_addresses): Adjust.
9714
a0ff9e1a
SM
97152017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9716
9717 * gdbarch.sh (software_single_step): Change return type to
9718 std::vector<CORE_ADDR>.
9719 * gdbarch.c, gdbarch.h: Re-generate.
9720 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9721 Adjust.
9722 (arm_deal_with_atomic_sequence_raw): Adjust.
9723 (thumb_get_next_pcs_raw): Adjust.
9724 (arm_get_next_pcs_raw): Adjust.
9725 (arm_get_next_pcs): Adjust.
9726 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
9727 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
9728 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
9729 (alpha_software_single_step): Adjust.
9730 * alpha-tdep.h (alpha_software_single_step): Adjust.
9731 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
9732 * arm-tdep.c (arm_software_single_step): Adjust.
9733 (arm_breakpoint_kind_from_current_state): Adjust.
9734 * arm-tdep.h (arm_software_single_step): Adjust.
9735 * breakpoint.c (insert_single_step_breakpoint): Adjust.
9736 * cris-tdep.c (cris_software_single_step): Adjust.
9737 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
9738 (micromips_deal_with_atomic_sequence): Adjust.
9739 (deal_with_atomic_sequence): Adjust.
9740 (mips_software_single_step): Adjust.
9741 * mips-tdep.h (mips_software_single_step): Adjust.
9742 * moxie-tdep.c (moxie_software_single_step): Adjust.
9743 * nios2-tdep.c (nios2_software_single_step): Adjust.
9744 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
9745 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
9746 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
9747 * s390-linux-tdep.c (s390_software_single_step): Adjust.
9748 * sparc-tdep.c (sparc_software_single_step): Adjust.
9749 * spu-tdep.c (spu_software_single_step): Adjust.
9750 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9751
ea480a30
SM
97522017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9753
9754 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9755 * gdbarch.h: Re-generate.
9756
d050f7d7
TW
97572017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9758
9759 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9760 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9761 * python/py-instruction.c, python/py-instruction.h: New file.
9762 * python/py-record.c: Add py-instruction.h include.
9763 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9764 gdb.RecordInstruction.
9765 * python/python-internal.h: Add gdbpy_initialize_instruction
9766 declaration.
9767 * python/python.c (do_start_initialization): Add
9768 gdbpy_initialize_instruction.
9769
14f819c8
TW
97702017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9771
9772 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9773 Remove.
9774 (btrace_func_from_recpy_func): New function.
9775 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9776 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9777 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9778 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9779 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9780 Also, use new helper functions.
9781 (btpy_list_item): Use new helper functions.
9782 (recpy_bt_function_call_history): Use new type name.
9783 (btpy_call_getset): Remove.
9784 (gdbpy_initialize_btrace): Remove code to initialize
9785 gdb.BtraceFunctionCall.
9786 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9787 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9788 recpy_bt_func_prev, recpy_bt_func_next): New export.
9789 * python/py-record.c (recpy_func_type): New static object.
9790 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9791 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9792 recpy_func_next): New function.
9793 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9794 (recpy_func_getset): New static object.
9795 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9796 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9797
0ed5da75
TW
97982017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9799
9800 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9801 (btpy_object, btpy_insn_type, btpy_new): Remove.
9802 (btpy_list_object): Use gdb.RecordInstruction type instead of
9803 gdb.BtraceInstruction type.
9804 (btrace_insn_from_recpy_insn): New function.
9805 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9806 btpy_new.
9807 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9808 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9809 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9810 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9811 instead of btpy_object.
9812 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9813 btpy_insn_data, btpy_insn_decode): Rename to ...
9814 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9815 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9816 recpy_bt_insn_decode): This. Also, use new helper functions.
9817 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9818 recpy_insn_type.
9819 (btpy_insn_getset): Remove.
9820 (gdbpy_initialize_btrace): Remove code to initialize
9821 gdb.BtraceInstruction. Use recpy_element_object.
9822 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9823 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9824 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9825 * python/py-record.c (recpy_insn_type): New static object.
9826 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9827 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9828 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9829 New function.
9830 (recpy_insn_getset): New static object.
9831 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9832 * python/py-record.h (recpy_element_object): New typedef.
9833 (recpy_insn_type, recpy_insn_new): New export.
9834
913aeadd
TW
98352017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9836
9837 * py-record-btrace.c (btpy_insn_new): Removed.
9838 (btpy_insn_or_gap_new): New function.
9839 (btpy_insn_error): Removed.
9840 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9841 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9842 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9843 btpy_insn_or_gap_new instead of btpy_insn_new.
9844 (btpy_insn_getset): Remove btpy_insn_error.
9845 * py-record.c (recpy_gap_type): New static object.
9846 (recpy_gap_object): New typedef.
9847 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9848 recpy_gap_reason_string): New function.
9849 (recpy_gap_getset): New static object.
9850 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9851 * py-record.h (recpy_gap_new): New export.
9852
a3be24ad
TW
98532017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9854
9855 * python/py-record.c (recpy_ptid): Remove.
9856 (recpy_record_getset): Remove recpy_ptid.
9857
ae20e79a
TW
98582017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9859
9860 * btrace.c (btrace_fetch): Set inferior_ptid.
9861 * python/py-record-btrace.c: Add "py-record.h" include.
9862 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9863 recpy_bt_end, recpy_bt_instruction_history,
9864 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9865 in gdb.Record object instead of current ptid.
9866 * python/py-record.c: Include new "py-record.h" file.
9867 (recpy_record_object): Moved to py-record.h.
9868 * python/py-record.h: New file.
9869
8d0050ea
TW
98702017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9871
9872 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9873 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9874 indentation.
9875
3f380b50
JB
98762017-05-01 Joel Brobecker <brobecker@adacore.com>
9877
9878 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9879 the past maintainers section.
9880
07495424
YQ
98812017-04-28 Yao Qi <yao.qi@linaro.org>
9882
9883 * infcmd.c (get_return_value): Use regcache ctor, and remove
9884 cleanup.
9885
deb1fa3e
YQ
98862017-04-28 Yao Qi <yao.qi@linaro.org>
9887 Pedro Alves <palves@redhat.com>
9888
9889 * regcache.c (regcache::regcache): New tag dispatch ctor.
9890 (do_cooked_read): Moved above.
9891 (regcache_dup): Use the tag dispatch ctor..
9892 * regcache.h (regcache): Declare ctor, delete copy ctor and
9893 assignment operator, remove friend regcache_dup.
9894
b421c83c
YQ
98952017-04-28 Yao Qi <yao.qi@linaro.org>
9896
9897 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9898 call method save instead of regcache_cpy.
9899 * regcache.h (struct regcache): Make regcache_dup a friend.
9900
ef79d9a3
YQ
99012017-04-28 Yao Qi <yao.qi@linaro.org>
9902
9903 * regcache.c (struct regcache): Move to regcache.h
9904 (regcache::arch): New method.
9905 (regcache_get_ptid): Update.
9906 (get_regcache_arch): Call arch method.
9907 (get_regcache_aspace): Call method aspace.
9908 (register_buffer): Change it to method.
9909 (regcache_save): Change it to regcache::save.
9910 (regcache_restore): Likewise.
9911 (regcache_cpy_no_passthrough): Remove the declaration.
9912 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9913 (regcache_cpy_no_passthrough): Change it to method
9914 cpy_no_passthrough.
9915 (regcache_register_status): Change it to method
9916 get_register_status.
9917 (regcache_invalidate): Change it to method invalidate.
9918 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9919 (regcache_raw_update): Change it to method raw_update.
9920 (regcache_raw_read): Likewise.
9921 (regcache_raw_read_signed): Likewise.
9922 (regcache_raw_read_unsigned): Likewise.
9923 (regcache_raw_write_signed): Likewise.
9924 (regcache_raw_write_unsigned): Likewise.
9925 (regcache_cooked_read): Likewise.
9926 (regcache_cooked_read_value): Likewise.
9927 (regcache_cooked_read_signed): Likewise.
9928 (regcache_cooked_read_unsigned): Likewise.
9929 (regcache_cooked_write_signed): Likewise.
9930 (regcache_cooked_write_unsigned): Likewise.
9931 (regcache_raw_set_cached_value): Likewise.
9932 (regcache_raw_write): Likewise.
9933 (regcache_cooked_write): Likewise.
9934 (regcache_xfer_part): Likewise.
9935 (regcache_raw_read_part): Likewise.
9936 (regcache_raw_write_part): Likewise.
9937 (regcache_cooked_read_part): Likewise.
9938 (regcache_cooked_write_part): Likewise.
9939 (regcache_raw_supply): Likewise.
9940 (regcache_raw_collect): Likewise.
9941 (regcache_transfer_regset): Likewise.
9942 (regcache_supply_regset): Likewise.
9943 (regcache_collect_regset): Likewise.
9944 (regcache_debug_print_register): Likewise.
9945 (enum regcache_dump_what): Move it to regcache.h.
9946 (regcache_dump): Change it to method dump.
9947 * regcache.h (enum regcache_dump_what): New.
9948 (class regcache): New.
9949 * target.c (target_fetch_registers): Call method
9950 debug_print_register.
9951 (target_store_registers): Likewise.
9952
f8fdb78e
SM
99532017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9954
9955 * windows-nat.c (struct lm_info_windows): Initialize field.
9956 (windows_make_so): Allocate lm_info_windows with new.
9957 (windows_free_so): Free lm_info_windows with delete.
9958
9ccbfd7b
SM
99592017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9960
9961 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9962 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9963 cleanup.
9964 (darwin_free_so): Free lm_info_darwin with delete.
9965
76e75227
SM
99662017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9967
9968 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9969 <l_addr_p>: Change type to bool.
9970 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9971 (svr4_free_so): Free lm_info_svr4 with delete.
9972 (svr4_copy_library_list): Replace memcpy with call to copy
9973 constructor.
9974 (library_list_start_library, svr4_default_sos): Allocate
9975 lm_info_svr4 with new.
9976
51046d9e
SM
99772017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9978
9979 * solib-target.c (struct lm_info_target): Add destructor,
9980 initialize fields.
9981 <name>: Change type to std::string.
9982 (library_list_start_library): Allocate lm_info_target with new.
9983 (solib_target_free_library_list): Free lm_info_target with
9984 delete.
9985 (solib_target_current_sos): Adapt to std::string.
9986 (solib_target_free_so): Free lm_info_target with delete.
9987
4023ae76
SM
99882017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9989
9990 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9991 fields.
9992 (frv_current_sos): Allocate lm_info_frv with new.
9993 (frv_relocate_main_executable): Free lm_info_frv with delete,
9994 allocate with new.
9995 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9996
af43057b
SM
99972017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9998
9999 * solib-frv.c (struct lm_info_frv): Fix indentation.
10000
b0911207
SM
100012017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10002
10003 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
10004 map field.
10005 (dsbt_current_sos): Allocate lm_info_dsbt with new.
10006 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
10007 and allocate with new.
10008 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
10009
6c401f72
SM
100102017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10011
10012 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
10013 <filename, member_name>: Change type to std::string.
10014 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
10015 (library_list_start_library): Allocate lm_info_aix with new.
10016 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
10017 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
10018 with copy constructor.
10019
d0e449a1
SM
100202017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10021
10022 * solist.h (struct lm_info): Remove.
10023 (struct lm_info_base): New class.
10024 (struct so_list) <lm_info>: Change type to lm_info_base *.
10025 * nto-tdep.c (struct lm_info): Remove.
10026 (lm_addr): Adjust.
10027 * solib-aix.c (struct lm_info): Rename to ...
10028 (struct lm_info_aix): ... this. Extend lm_info_base.
10029 (lm_info_p): Rename to ...
10030 (lm_info_aix_p): ... this, and adjust.
10031 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
10032 solib_aix_parse_libraries, library_list_start_library,
10033 solib_aix_free_library_list, solib_aix_parse_libraries,
10034 solib_aix_get_library_list,
10035 solib_aix_relocate_section_addresses, solib_aix_free_so,
10036 solib_aix_get_section_offsets,
10037 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
10038 Adjust.
10039 (struct solib_aix_inferior_data) <library_list>: Adjust.
10040 * solib-darwin.c (struct lm_info): Rename to ...
10041 (struct lm_info_darwin): ... this. Extend lm_info_base.
10042 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
10043 * solib-dsbt.c (struct lm_info): Rename to ...
10044 (struct lm_info_dsbt): ... this. Extend lm_info_base.
10045 (struct dsbt_info) <main_executable_lm_info): Adjust.
10046 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
10047 dsbt_relocate_section_addresses): Adjust.
10048 * solib-frv.c (struct lm_info): Rename to ...
10049 (struct lm_info_frv): ... this. Extend lm_info_base.
10050 (main_executable_lm_info): Adjust.
10051 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
10052 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
10053 find_canonical_descriptor_in_load_object,
10054 frv_fdpic_find_canonical_descriptor): Adjust.
10055 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
10056 to lm_info_svr4.
10057 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
10058 svr4_clear_so, svr4_copy_library_list,
10059 library_list_start_library, svr4_default_sos, svr4_read_so_list,
10060 svr4_current_sos, svr4_fetch_objfile_link_map,
10061 solist_update_incremental): Adjust.
10062 * solib-svr4.h (struct lm_info_svr4): Move here from
10063 solib-svr4.c.
10064 * solib-target.c (struct lm_info): Rename to ...
10065 (struct lm_info_target): ... this. Extend lm_info_base.
10066 (lm_info_p): Rename to ...
10067 (lm_info_target_p): ... this.
10068 (solib_target_parse_libraries, library_list_start_segment,
10069 library_list_start_section, library_list_start_library,
10070 library_list_end_library, solib_target_free_library_list,
10071 solib_target_current_sos, solib_target_free_so,
10072 solib_target_relocate_section_addresses): Adjust.
10073 * windows-nat.c (struct lm_info): Rename to ...
10074 (struct lm_info_windows): ... this. Extend lm_info_base.
10075 (windows_make_so, handle_load_dll, handle_unload_dll,
10076 windows_xfer_shared_libraries): Adjust.
10077
434a4023
SM
100782017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10079
10080 * solib-darwin.c (struct darwin_so_list): Remove.
10081 (darwin_current_sos): Allocate an so_list object instead of a
10082 darwin_so_list, separately allocate an lm_info object.
10083 (darwin_free_so): Free lm_info.
10084
428544e8
JB
100852017-04-28 John Baldwin <jhb@FreeBSD.org>
10086
10087 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
10088 with fprintf_filtered.
10089
4621115f
YQ
100902017-04-28 Yao Qi <yao.qi@linaro.org>
10091
10092 * regcache.c (regcache::regcache): New function.
10093 (regcache::~regcache): New function.
10094 (regcache_xmalloc_1): Remove.
10095 (regcache_xmalloc): Call new regcache.
10096 (regcache_xfree): Call delete regcache.
10097 (get_thread_arch_aspace_regcache): Call new regcache.
10098
339053c2
YQ
100992017-04-28 Yao Qi <yao.qi@linaro.org>
10100
10101 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
10102 lwp instead of ptid_get_lwp.
10103
7974a605
YQ
101042017-04-28 Yao Qi <yao.qi@linaro.org>
10105
10106 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
10107 lwp_info instead of getting from inferior_ptid.
10108
e15c3eb4
KS
101092017-04-27 Keith Seitz <keiths@redhat.com>
10110
10111 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
10112 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
10113 (CV_CONVERSION_BADNESS): Define.
10114 (rank_one_type): Remove overly restrictive rvalue reference
10115 rank checks.
10116 Add cv-qualifier checks and subranks for type equality.
10117 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
10118 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
10119 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
10120
72bc1d24
SM
101212017-04-27 Simon Marchi <simon.marchi@ericsson.com>
10122
10123 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
10124 count when creating the object.
10125
55bcecda
UW
101262017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
10127 Ulrich Weigand <uweigand@de.ibm.com>
10128
10129 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
10130 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
10131 is used in AIX.
10132 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
10133 (process_xcoff_symbol): Likewise.
10134 (scan_xcoff_symtab): Likewise.
10135
5c99fcf8
AH
101362017-04-26 Alan Hayward <alan.hayward@arm.com>
10137
10138 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
10139 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
10140 (ia64_access_reg): Use get_frame_register_unsigned.
10141 (ia64_access_rse_reg): Likewise.
10142 (ia64_libunwind_frame_prev_register): Likewise.
10143
b41c5a85
JW
101442017-04-26 Jiong Wang <jiong.wang@arm.com>
10145
10146 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
10147 * gdbarch.c: Regenerated.
10148 * gdbarch.h: Regenerated.
10149 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
10150 visibility external.
10151 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
10152 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
10153 (enum cfa_how_kind): Move to ...
10154 (struct dwarf2_frame_state_reg_info): Likewise.
10155 (struct dwarf2_frame_state): Likewise.
10156 * dwarf2-frame.h: ... here.
10157 (dwarf2_frame_state_alloc_regs): New declaration.
10158 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
10159 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
10160
c185f580
AH
101612017-04-26 Alan Hayward <alan.hayward@arm.com>
10162
10163 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
10164 regcache_raw_read_unsigned.
10165 (xtensa_pseudo_register_write): Likewise.
10166
19c45594
AH
101672017-04-26 Alan Hayward <alan.hayward@arm.com>
10168
10169 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
10170 (nds32_pseudo_register_write): Likewise.
10171
4658f12e
YQ
101722017-04-25 Yao Qi <yao.qi@linaro.org>
10173
10174 * regcache.c (struct regcache) <readonly_p>: Change its type
10175 to bool.
10176 (regcache_xmalloc_1): Update parameter type and callers update.
10177
d581dda8
YQ
101782017-04-25 Yao Qi <yao.qi@linaro.org>
10179
10180 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10181 set_gdbarch_wchar_bit.
10182 * arm-tdep.c (arm_gdbarch_init): Likewise.
10183
debed3db
PA
101842017-04-25 Pedro Alves <palves@redhat.com>
10185
10186 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
10187 (BothAreRelocatable, memcopy, memmove): Don't define.
10188 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
10189 macros.
10190
b0b92aeb
PA
101912017-04-25 Pedro Alves <palves@redhat.com>
10192
10193 * common/common-defs.h: Include "common/poison.h".
10194 * common/function-view.h: (Not, Or, Requires): Move to traits.h
10195 and adjust.
10196 * common/poison.h: New file.
10197 * common/traits.h: Include <type_traits>.
10198 (Not, Or, Requires): New, moved from common/function-view.h.
10199
16c4d54a
PA
102002017-04-25 Pedro Alves <palves@redhat.com>
10201
10202 * breakpoint.h (struct breakpoint): In-class initialize all
10203 fields. Make boolean fields "bool".
10204 * breakpoint.c (init_raw_breakpoint_without_location): Remove
10205 memset call and initializations no longer necessary.
10206
b5c36682
PA
102072017-04-25 Pedro Alves <palves@redhat.com>
10208
10209 * btrace.c (pt_btrace_insn_flags): Change parameter type to
10210 reference.
10211 (pt_btrace_insn): New function.
10212 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
10213
5625a286
PA
102142017-04-25 Pedro Alves <palves@redhat.com>
10215
10216 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
10217 "base" field and inherit from "bp_location" instead. Add
10218 non-default ctor.
10219 (allocate_location_exception): Use new non-default ctor.
10220 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
10221 (init_bp_location): Convert to ...
10222 (bp_location::bp_location): ... this new ctor, and remove memset
10223 call.
10224 (base_breakpoint_allocate_location): Use the new non-default ctor.
10225 * breakpoint.h (bp_location): Now a class. Declare default and
10226 non-default ctors. In-class initialize all members.
10227 (init_bp_location): Remove declaration.
10228
23bcc18f
PA
102292017-04-25 Pedro Alves <palves@redhat.com>
10230
10231 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
10232 assignment operator.
10233
e1ba3053
YQ
102342017-04-24 Yao Qi <yao.qi@linaro.org>
10235
10236 * doublest.c (convert_doublest_to_floatformat): Call
10237 floatformat_totalsize_bytes.
10238
10f489e5
TT
102392017-04-22 Tom Tromey <tom@tromey.com>
10240
10241 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
10242 ui_out_emit_list.
10243 * stack.c (print_frame): Use ui_out_emit_list.
10244 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
10245 ui_out_emit_list.
10246 * mi/mi-main.c (print_one_inferior)
10247 (mi_cmd_data_list_register_names)
10248 (mi_cmd_data_list_register_values, mi_cmd_list_features)
10249 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
10250 ui_out_emit_list.
10251 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
10252 (mi_output_solib_attribs): Use ui_out_emit_list,
10253 ui_out_emit_tuple.
10254 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
10255 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
10256 (mi_cmd_stack_list_args, list_args_or_locals): Use
10257 ui_out_emit_list.
10258 * disasm.c (do_assembly_only): Use ui_out_emit_list.
10259 * breakpoint.c (print_solib_event, output_thread_groups): Use
10260 ui_out_emit_list.
10261
0092b74d
TT
102622017-04-22 Tom Tromey <tom@tromey.com>
10263
10264 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
10265 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
10266 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
10267
a14a62dd
TT
102682017-04-22 Tom Tromey <tom@tromey.com>
10269
10270 * tracepoint.c (tvariables_info_1)
10271 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
10272
46b9c129
TT
102732017-04-22 Tom Tromey <tom@tromey.com>
10274
10275 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
10276 annotate_arg_emitter.
10277 * breakpoint.c (print_mention_watchpoint)
10278 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
10279 * annotate.h (struct annotate_arg_emitter): New.
10280
2e783024
TT
102812017-04-22 Tom Tromey <tom@tromey.com>
10282
10283 * record-btrace.c (record_btrace_insn_history)
10284 (record_btrace_insn_history_range, record_btrace_call_history)
10285 (record_btrace_call_history_range): Use ui_out_emit_tuple.
10286 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
10287 ui_out_emit_tuple.
10288 * stack.c (print_frame_info): Use ui_out_emit_tuple.
10289 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
10290 * skip.c (skip_info): Use ui_out_emit_tuple.
10291 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
10292 * progspace.c (print_program_space): Use ui_out_emit_tuple.
10293 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
10294 * osdata.c (info_osdata): Use ui_out_emit_tuple.
10295 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
10296 ui_out_emit_tuple.
10297 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
10298 (output_register, mi_cmd_data_read_memory)
10299 (mi_cmd_data_read_memory_bytes, mi_load_progress)
10300 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
10301 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
10302 Use ui_out_emit_tuple.
10303 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
10304 ui_out_emit_tuple.
10305 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
10306 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
10307 * linux-thread-db.c (info_auto_load_libthread_db): Use
10308 ui_out_emit_tuple.
10309 * inferior.c (print_inferior): Use ui_out_emit_tuple.
10310 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
10311 * disasm.c (do_mixed_source_and_assembly_deprecated)
10312 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
10313 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
10314 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
10315 * breakpoint.c (print_one_breakpoint_location)
10316 (print_one_breakpoint): Use ui_out_emit_tuple.
10317 * auto-load.c (print_script, info_auto_load_cmd): Use
10318 ui_out_emit_tuple.
10319 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
10320
9be21bb4
SM
103212017-04-21 Simon Marchi <simon.marchi@ericsson.com>
10322
10323 * thread.c (print_thread_info_1): Remove dead code.
10324
0d4c07af
JK
103252017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10326
10327 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
10328 GDB_SELF_TEST.
10329 * arm-tdep.c (selftests::arm_record_test): Likewise.
10330
4daf993d
YQ
103312017-04-21 Yao Qi <yao.qi@linaro.org>
10332
10333 * regcache.c (regcache_restore): Remove argument 2. Replace
10334 argument 3 with regcache. Get register status from
10335 src->register_status and get register contents from
10336 register_buffer (src, regnum).
10337 (regcache_cpy): Update.
10338
a6c21d4a
PA
103392017-04-19 Pedro Alves <palves@redhat.com>
10340
10341 * gdbthread.h (thread): Add missing closing parenthesis in
10342 comment.
10343
3a3fd0fd
PA
103442017-04-19 Pedro Alves <palves@redhat.com>
10345
10346 * common/refcounted-object.h: New file.
10347 * gdbthread.h: Include "common/refcounted-object.h".
10348 (thread_info): Inherit from refcounted_object and add comments.
10349 (thread_info::incref, thread_info::decref)
10350 (thread_info::m_refcount): Delete.
10351 (thread_info::deletable): Use the refcounted_object::refcount()
10352 method.
10353 * inferior.c (current_inferior_): Add comment.
10354 (set_current_inferior): Increment/decrement refcounts.
10355 (prune_inferiors, remove_inferior_command): Skip inferiors marked
10356 not-deletable instead of comparing with the current inferior.
10357 (initialize_inferiors): Increment the initial inferior's refcount.
10358 * inferior.h (struct inferior): Forward declare.
10359 Include "common/refcounted-object.h".
10360 (current_inferior, set_current_inferior): Move declaration to
10361 before struct inferior's definition, and fix comment.
10362 (inferior): Inherit from refcounted_object. Add comments.
10363 * thread.c (switch_to_thread_no_regs): Reference the thread's
10364 inferior pointer directly instead of doing a ptid lookup.
10365 (switch_to_no_thread): New function.
10366 (switch_to_thread(thread_info *)): New function, factored out
10367 from ...
10368 (switch_to_thread(ptid_t)): ... this.
10369 (restore_current_thread): Delete.
10370 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
10371 fields, and add 'inf' field.
10372 (do_restore_current_thread_cleanup): Check whether old->inf is
10373 alive instead of looking up an inferior by ptid. Use
10374 switch_to_thread and switch_to_no_thread.
10375 (restore_current_thread_cleanup_dtor): Use old->inf directly
10376 instead of lookup up an inferior by id. Decref the inferior.
10377 Don't restore 'removable'.
10378 (make_cleanup_restore_current_thread): Same the inferior pointer
10379 in old, instead of the inferior number. Incref the inferior.
10380 Don't save/clear 'removable'.
10381
9bcb1f16
PA
103822017-04-19 Pedro Alves <palves@redhat.com>
10383
10384 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10385 unittests/scoped_restore-selftests.c.
10386 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
10387 * common/scoped_restore.h (scoped_restore_base): Make "class".
10388 (scoped_restore_base::release): New public method.
10389 (scoped_restore_base::scoped_restore_base): New protected ctor.
10390 (scoped_restore_base::m_saved_var): New protected field.
10391 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
10392 scoped_restore_base base class instead of m_saved_var directly.
10393 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
10394 (scoped_restore_tmpl::scoped_restore_tmpl(const
10395 scoped_restore_tmpl<T>&)): Likewise.
10396 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
10397 method.
10398 (scoped_restore_tmpl::saved_var): New method.
10399 (scoped_restore_tmpl::m_saved_var): Delete.
10400 * inferior.h (inferior::detaching): Now a bool.
10401 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
10402 cleanup.
10403 * unittests/scoped_restore-selftests.c: New file.
10404
26fcd539
PA
104052017-04-19 Pedro Alves <palves@redhat.com>
10406
10407 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
10408 Re-sort in alphabetic order.
10409
fdd243b0
PA
104102017-04-18 Pedro Alves <palves@redhat.com>
10411
10412 * xml-support.c (obstack_xml_printf): Delete.
10413 * xml-support.h (obstack_xml_printf): Delete.
10414
4895cde2
PA
104152017-04-18 Pedro Alves <palves@redhat.com>
10416
10417 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
10418 vdebug, verror, body_text, start_element, end_element, name,
10419 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
10420 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
10421 is_xinclude>: Make private and add m_ prefix.
10422 (gdb_xml_parser::body_text): New method, based on ...
10423 (gdb_xml_body_text): ... this. Adjust.
10424 (gdb_xml_parser::vdebug): New method, based on ...
10425 (gdb_xml_debug): ... this. Adjust.
10426 (gdb_xml_parser::verror): New method, based on ...
10427 (gdb_xml_error): ... this. Adjust.
10428 (gdb_xml_parser::start_element): New method, based on ...
10429 (gdb_xml_start_element): ... this. Adjust.
10430 (gdb_xml_start_element_wrapper): Defer to
10431 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
10432 (gdb_xml_parser::end_element): New method, based on ...
10433 (gdb_xml_end_element_wrapper): ... this. Adjust.
10434 (gdb_xml_parser::~gdb_xml_parser): Adjust.
10435 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
10436 (gdb_xml_parser::use_dtd): New method, based on ...
10437 (gdb_xml_use_dtd): ... this. Adjust.
10438 (gdb_xml_parser::parse): New method, based on ...
10439 (gdb_xml_parse): ... this. Adjust.
10440 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
10441 (xinclude_start_include): Adjust to call the parser's name method.
10442 (xml_xinclude_default, xml_xinclude_start_doctype)
10443 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
10444 method.
10445 (xml_process_xincludes): Adjust to call parser methods.
10446 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
10447 declarations.
10448
bd8a901f
PA
104492017-04-18 Pedro Alves <palves@redhat.com>
10450
10451 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
10452 gdb::optional<std::string>.
10453 * xml-support.c: Include <string>.
10454 (scope_level::scope_level(scope_level &&))
10455 (scope_level::~scope_level): Delete.
10456 (scope_level::body): Now a std::string.
10457 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
10458 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
10459 parameter.
10460 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
10461 (xinclude_parsing_data::output): Now a std::string reference.
10462 (xinclude_start_include): Adjust.
10463 (xml_xinclude_default): Adjust.
10464 (xml_process_xincludes): Add 'output' parameter, and return bool.
10465 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
10466 and return bool.
10467 * xml-tdesc.c: Include <unordered_map> and <string>.
10468 (tdesc_xml_cache): Delete.
10469 (tdesc_xml_cache_s): Delete.
10470 (xml_cache): Now an std::unordered_map.
10471 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
10472 (target_fetch_description_xml): Change return type to
10473 gdb::optional<std::string>, and adjust.
10474 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
10475 (target_fetch_description_xml): Change return type to
10476 gdb::optional<std::string>.
10477
d35d1958
PA
104782017-04-18 Pedro Alves <palves@redhat.com>
10479
10480 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10481 unittests/optional-selftests.c.
10482 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
10483 * unittests/optional-selftests.c: New file.
10484 * unittests/optional/assignment/1.cc: New file.
10485 * unittests/optional/assignment/2.cc: New file.
10486 * unittests/optional/assignment/3.cc: New file.
10487 * unittests/optional/assignment/4.cc: New file.
10488 * unittests/optional/assignment/5.cc: New file.
10489 * unittests/optional/assignment/6.cc: New file.
10490 * unittests/optional/assignment/7.cc: New file.
10491 * unittests/optional/cons/copy.cc: New file.
10492 * unittests/optional/cons/default.cc: New file.
10493 * unittests/optional/cons/move.cc: New file.
10494 * unittests/optional/cons/value.cc: New file.
10495 * unittests/optional/in_place.cc: New file.
10496 * unittests/optional/observers/1.cc: New file.
10497 * unittests/optional/observers/2.cc: New file.
10498
22796e97
PA
104992017-04-18 Pedro Alves <palves@redhat.com>
10500
10501 * common/gdb_optional.h: Include common/traits.h.
10502 (in_place_t): New type.
10503 (in_place): New constexpr variable.
10504 (optional::optional): Remove member initialization of
10505 m_instantiated.
10506 (optional::optional(in_place_t...)): New constructor.
10507 (optional::~optional): Use reset.
10508 (optional::optional(const optional&)): New.
10509 (optional::optional(const optional&&)): New.
10510 (optional::optional(T &)): New.
10511 (optional::optional(T &&)): New.
10512 (operator::operator=(const optional &)): New.
10513 (operator::operator=(optional &&)): New.
10514 (operator::operator= (const T &))
10515 (operator::operator= (T &&))
10516 (operator::emplace (Args &&... args)): Return a T&. Use reset.
10517 (operator::reset): New.
10518 (operator::m_instantiated):: Add in-class initializer.
10519 * common/traits.h: Include <type_traits>.
10520 (struct And): New types.
10521
a7fc9b61
PA
105222017-04-18 Pedro Alves <palves@redhat.com>
10523
10524 * xml-support.c: Include <vector>.
10525 (scope_level::scope_level(const gdb_xml_element *))
10526 (scope_level::scope_level(scope_level&&)): New.
10527 (scope_level::~scope_level): New.
10528 (scope_level_s): Delete.
10529 (gdb_xml_parser::scopes): Now a std::vector.
10530 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
10531 Use std::vector.
10532 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
10533 scope cleanup code.
10534 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
10535 of the scopes member. Use std::vector::emplace_back.
10536
010151c9
PA
105372017-04-18 Pedro Alves <palves@redhat.com>
10538
10539 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
10540 a bool.
10541 (gdb_xml_end_element): Change type of first parameter.
10542 (gdb_xml_cleanup): Rename to ...
10543 (gdb_xml_parser::~gdb_xml_parser): ... this.
10544 (gdb_xml_create_parser_and_cleanup): Delete with ...
10545 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
10546 to this new ctor.
10547 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
10548 using gdb_xml_create_parser_and_cleanup.
10549 (xinclude_parsing_data): Add ctor/dtor.
10550 (xml_xinclude_cleanup): Delete.
10551 (xml_process_xincludes): Create a local xinclude_parsing_data
10552 instead of heap-allocating one. Create a local gdb_xml_parser
10553 instead of heap-allocating one with
10554 gdb_xml_create_parser_and_cleanup.
10555
d56060f0
JB
105562017-04-18 John Baldwin <jhb@FreeBSD.org>
10557
10558 PR threads/20743
10559 * fbsd-nat.c (resume_one_thread_cb): Remove.
10560 (resume_all_threads_cb): Remove.
10561 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
10562 iterate_over_threads.
10563
305d16a9
JB
105642017-04-17 Joel Brobecker <brobecker@adacore.com>
10565
10566 * NEWS: Create a new section for the next release branch.
10567 Rename the section of the current branch, now that it has
10568 been cut.
10569
8bb57231
JB
105702017-04-17 Joel Brobecker <brobecker@adacore.com>
10571
10572 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
10573 * version.in: Bump version to 8.0.50.DATE-git.
10574
096c92dd
SDJ
105752017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
10576
10577 PR gdb/21385
10578 * windows-nat.c (windows_create_inferior): Declare 'allargs'
10579 independently of the host, and fix build breakage on Cygwin.
10580
0550c955
PA
105812017-04-13 Pedro Alves <palves@redhat.com>
10582
10583 * inferior.c (free_inferior): Convert to ...
10584 (inferior::~inferior): ... this dtor.
10585 (inferior::inferior): New ctor, factored out from ...
10586 (add_inferior_silent): ... here. Allocate the inferior with a new
10587 expression.
10588 (delete_inferior): Call delete instead of free_inferior.
10589 * inferior.h (gdb_environ, continuation): Forward declare.
10590 (inferior): Now a class. Add in-class initialization to all
10591 members. Make boolean fields bool, except 'detaching'.
10592 (inferior::inferior): New explicit ctor.
10593 (inferior::~inferior): New.
10594
e3d60dfc
PA
105952017-04-13 Pedro Alves <palves@redhat.com>
10596
10597 * inferior.c (init_inferior_list): Delete.
10598 * inferior.h (init_inferior_list): Delete.
10599
5fd69d0a
PA
106002017-04-13 Pedro Alves <palves@redhat.com>
10601
10602 PR threads/13217
10603 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
10604 (top level): Call it twice, with different thread sets.
10605
c6609450
PA
106062017-04-13 Pedro Alves <palves@redhat.com>
10607
10608 * thread.c: Include <algorithm>.
10609 (thread_array_cleanup): Delete.
10610 (scoped_inc_dec_ref): New class.
10611 (live_threads_count): New function.
10612 (set_thread_refcount): Delete.
10613 (tp_array_compar_ascending): Now a bool.
10614 (tp_array_compar): Convert to a std::sort comparison function.
10615 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
10616 and live_threads_count.
10617
2a00d7ce
PA
106182017-04-13 Pedro Alves <palves@redhat.com>
10619
10620 * infrun.c (follow_fork_inferior): Also switch the current
10621 inferior.
10622
441d7c93
PA
106232017-04-13 Pedro Alves <palves@redhat.com>
10624
10625 * breakpoint.c (watch_command_1): Save watchpoint-frame info
10626 before calling create_internal_breakpoint.
10627
808480f6
PA
106282017-04-13 Pedro Alves <palves@redhat.com>
10629
10630 * fork-child.c (execv_argv): New class.
10631 (breakup_args): Refactored as ...
10632 (execv_argv::init_for_no_shell): .. this method of execv_argv.
10633 Copy arguments to storage and replace separators with NULL
10634 terminators in place.
10635 (escape_bang_in_quoted_argument): Adjust to return bool.
10636 (execv_argv::execv_argv): New ctor.
10637 (execv_argv::init_for_shell): New method, factored out from
10638 fork_inferior. Don't strdup strings into the vector.
10639 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
10640 Remove free_vector_argv call.
10641
ad3d022a
YQ
106422017-04-13 Yao Qi <yao.qi@linaro.org>
10643
10644 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
10645 tdep->rx_psw_type.
10646
e6ddc3bf
YQ
106472017-04-13 Yao Qi <yao.qi@linaro.org>
10648
10649 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
10650 * rx-tdep.c (rx_gdbarch_init): Likewise.
10651
bfb8cf90
PA
106522017-04-13 Pedro Alves <palves@redhat.com>
10653
10654 * breakpoint.h (struct breakpoint): Reindent.
10655
f5336ca5
PA
106562017-04-13 Pedro Alves <palves@redhat.com>
10657
10658 * breakpoint.c (bp_location): Rename to ...
10659 (bp_locations): ... this. All references updated.
10660 (bp_location_count): Rename to ...
10661 (bp_locations_count): ... this. All references updated.
10662 (bp_location_placed_address_before_address_max): Rename to ...
10663 (bp_locations_placed_address_before_address_max): ... this. All
10664 references updated.
10665 (bp_location_shadow_len_after_address_max): Rename to ...
10666 (bp_locations_shadow_len_after_address_max): ... this. All
10667 references updated.
10668 (bp_location_compare_addrs): Rename to ...
10669 (bp_locations_compare_addrs): ... this. All references updated.
10670 (bp_location_compare):Rename to ...
10671 (bp_locations_compare): ... this. All references updated.
10672 (bp_location_target_extensions_update): Rename to ...
10673 (bp_locations_target_extensions_update): ... this. All references
10674 updated.
10675
be628ab8
SDJ
106762017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10677
10678 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
10679 * common/common.m4: Check headers 'termios.h', 'termio.h' and
10680 'sgtty.h'.
10681 * common/gdb_termios.h: New file, with parts of "terminal.h".
10682 * inflow.c: Include "gdb_termios.h".
10683 * ser-unix.c: Include "gdb_termios.h".
10684 * terminal.h: Move terminal-related defines to
10685 "common/gdb_termios.h".
10686
8e9e35b1
TT
106872017-04-12 Tom Tromey <tom@tromey.com>
10688
10689 * probe.c (parse_probes): Update.
10690 * location.h (delete_event_location): Don't declare.
10691 (event_location_deleter::operator()): Update.
10692 * location.c (event_location_deleter::operator()): Rename from
10693 delete_event_location.
10694 * linespec.h (linespec_result) <location>: Change type to
10695 event_location_up.
10696 * linespec.c (canonicalize_linespec, event_location_to_sals)
10697 (decode_objc): Update.
10698 (linespec_result): Don't call delete_event_location.
10699 * breakpoint.c (create_breakpoints_sal)
10700 (bkpt_probe_create_sals_from_location)
10701 (strace_marker_create_sals_from_location): Update.
10702
16e802b9
TT
107032017-04-12 Tom Tromey <tom@tromey.com>
10704
10705 * linespec.h (struct linespec_result): Add constructor and
10706 destructor.
10707 (init_linespec_result, destroy_linespec_result)
10708 (make_cleanup_destroy_linespec_result): Don't declare.
10709 * linespec.c (init_linespec_result): Remove.
10710 (linespec_result::~linespec_result): Rename from
10711 destroy_linespec_result. Update.
10712 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
10713 Remove.
10714 * breakpoint.c (create_breakpoint, break_range_command)
10715 (decode_location_default): Update.
10716 * ax-gdb.c (agent_command_1): Update.
10717
d28cd78a
TT
107182017-04-12 Tom Tromey <tom@tromey.com>
10719
10720 * remote.c (remote_download_tracepoint): Update.
10721 * python/py-breakpoint.c (bppy_get_location): Update.
10722 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
10723 (gdbscm_breakpoint_location): Update.
10724 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
10725 * breakpoint.h (struct breakpoint) <location, location_range_end>:
10726 Change type to event_location_up.
10727 * breakpoint.c (create_overlay_event_breakpoint)
10728 (create_longjmp_master_breakpoint)
10729 (create_std_terminate_master_breakpoint)
10730 (create_exception_master_breakpoint)
10731 (breakpoint_event_location_empty_p, print_breakpoint_location)
10732 (print_one_breakpoint_location, create_thread_event_breakpoint)
10733 (init_breakpoint_sal, create_breakpoint)
10734 (print_recreate_ranged_breakpoint, break_range_command)
10735 (init_ada_exception_breakpoint, say_where): Update.
10736 (base_breakpoint_dtor): Don't call delete_event_location.
10737 (bkpt_print_recreate, tracepoint_print_recreate)
10738 (dprintf_print_recreate, update_static_tracepoint)
10739 (breakpoint_re_set_default): Update.
10740
711799d5
TT
107412017-04-12 Tom Tromey <tom@tromey.com>
10742
10743 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10744 type of "to_do". Update.
10745 (compute_stack_depth): Use std::vector.
10746
52d214d3
TT
107472017-04-12 Tom Tromey <tom@tromey.com>
10748
10749 * printcmd.c (find_instruction_backward): Use std::vector.
10750
4c404b8b
TT
107512017-04-12 Tom Tromey <tom@tromey.com>
10752
10753 * symfile.c (objfilep): Remove typedef.
10754 (reread_symbols): Use a std::vector.
10755
156d9eab
TT
107562017-04-12 Tom Tromey <tom@tromey.com>
10757
10758 * mi/mi-main.c (exec_direction_forward): Remove.
10759 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10760 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10761 scoped_restore.
10762 * guile/guile.c (guile_repl_command, guile_command)
10763 (gdbscm_execute_gdb_command): Use scoped_restore.
10764 * go-exp.y (go_parse): Use scoped_restore.
10765 * d-exp.y (d_parse): Use scoped_restore.
10766 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10767 * c-exp.y (c_parse): Use scoped_restore.
10768
4d89769a
TT
107692017-04-12 Tom Tromey <tom@tromey.com>
10770
10771 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10772 (mi_parse): Update return type.
10773 (mi_parse_free): Remove.
10774 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10775 (mi_parse::~mi_parse): Rename from mi_parse_free.
10776 (mi_parse_cleanup): Remove.
10777 (mi_parse): Return a unique_ptr. Use new.
10778 * mi/mi-main.c (mi_execute_command): Update.
10779
4b217cc7
TT
107802017-04-12 Tom Tromey <tom@tromey.com>
10781
10782 * location.c (explicit_location_lex_one): Return a
10783 unique_xmalloc_ptr.
10784 (string_to_explicit_location): Update. Remove cleanups.
10785
59d3651b
TT
107862017-04-12 Tom Tromey <tom@tromey.com>
10787
10788 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10789 (compare_value_and_voffset): Change type. Update.
10790 (compute_vtable_size): Change type of "offset_vec".
10791 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10792 (gnuv3_get_typeid): Remove extraneous declaration.
10793
b24b0d6c
TT
107942017-04-12 Tom Tromey <tom@tromey.com>
10795
10796 * charset.h (wchar_iterator): Fix comment.
10797
80a3b8c5
TT
107982017-04-12 Tom Tromey <tom@tromey.com>
10799
10800 * charset.c (iconv_wrapper): New class.
10801 (cleanup_iconv): Remove.
10802 (convert_between_encodings): Use it.
10803
c83dd867
TT
108042017-04-12 Tom Tromey <tom@tromey.com>
10805
10806 * symfile.h (increment_reading_symtab): Update type.
10807 * symfile.c (decrement_reading_symtab): Remove.
10808 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10809 * psymtab.c (psymtab_to_symtab): Update.
10810 * dwarf2read.c (dw2_instantiate_symtab): Update.
10811
0e8621a0
TT
108122017-04-12 Tom Tromey <tom@tromey.com>
10813
10814 * jit.c (struct jit_reader): Declare separately. Add constructor
10815 and destructor. Change type of "handle".
10816 (loaded_jit_reader): Define separately.
10817 (jit_reader_load): Update. New "new".
10818 (jit_reader_unload_command): Use "delete".
10819 * gdb-dlfcn.h (struct dlclose_deleter): New.
10820 (gdb_dlhandle_up): New typedef.
10821 (gdb_dlopen, gdb_dlsym): Update types.
10822 (gdb_dlclose): Remove.
10823 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10824 (gdb_dlsym): Change type of "handle".
10825 (make_cleanup_dlclose): Remove.
10826 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10827 * compile/compile-c-support.c (load_libcc): Update.
10828
67d89901
TT
108292017-04-12 Tom Tromey <tom@tromey.com>
10830
10831 * symtab.h (find_pcs_for_symtab_line): Change return type.
10832 * symtab.c (find_pcs_for_symtab_line): Change return type.
10833 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10834 type of "vec". Update.
10835 (ltpy_get_pcs_for_line): Update.
10836 * linespec.c (decode_digits_ordinary): Update.
10837
93921405
TT
108382017-04-12 Tom Tromey <tom@tromey.com>
10839
10840 * tracepoint.c (actions_command): Update.
10841 * python/python.c (python_command, python_interactive_command):
10842 Update.
10843 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10844 * guile/guile.c (guile_command): Update.
10845 * defs.h (read_command_lines, read_command_lines_1): Return
10846 command_line_up.
10847 (command_lines_deleter): New struct.
10848 (command_line_up): New typedef.
10849 * compile/compile.c (compile_code_command)
10850 (compile_print_command): Update.
10851 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10852 command_line_up.
10853 (make_cleanup_free_command_lines): Remove.
10854 * cli/cli-script.c (get_command_line, read_command_lines_1)
10855 (copy_command_lines): Return command_line_up.
10856 (while_command, if_command, read_command_lines, define_command)
10857 (document_command): Update.
10858 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10859 Remove.
10860 * breakpoint.h (breakpoint_set_commands): Change type of
10861 "commands".
10862 * breakpoint.c (breakpoint_set_commands): Change type of
10863 "commands". Update.
10864 (do_map_commands_command, update_dprintf_command_list)
10865 (create_tracepoint_from_upload): Update.
10866
ffc2605c
TT
108672017-04-12 Tom Tromey <tom@tromey.com>
10868
10869 * tracepoint.c (scope_info): Update.
10870 * spu-tdep.c (spu_catch_start): Update.
10871 * python/python.c (gdbpy_decode_line): Update.
10872 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10873 * python/py-breakpoint.c (bppy_init): Update.
10874 * probe.c (parse_probes): Update.
10875 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10876 * location.h (event_location_deleter): New struct.
10877 (event_location_up): New typedef.
10878 (new_linespec_location, new_address_location, new_probe_location)
10879 (new_explicit_location, copy_event_location)
10880 (string_to_event_location, string_to_event_location_basic)
10881 (string_to_explicit_location): Update return type.
10882 (make_cleanup_delete_event_location): Remove.
10883 * location.c (new_linespec_location, new_address_location)
10884 (new_probe_location, new_explicit_location, copy_event_location):
10885 Return event_location_up.
10886 (delete_event_location_cleanup)
10887 (make_cleanup_delete_event_location): Remove.
10888 (string_to_explicit_location, string_to_event_location_basic)
10889 (string_to_event_location): Return event_location_up.
10890 * linespec.c (canonicalize_linespec, event_location_to_sals)
10891 (decode_line_with_current_source)
10892 (decode_line_with_last_displayed, decode_objc): Update.
10893 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10894 * completer.c (location_completer): Update.
10895 * cli/cli-cmds.c (edit_command, list_command): Update.
10896 * breakpoint.c (create_overlay_event_breakpoint)
10897 (create_longjmp_master_breakpoint)
10898 (create_std_terminate_master_breakpoint)
10899 (create_exception_master_breakpoint)
10900 (create_thread_event_breakpoint): Update.
10901 (init_breakpoint_sal): Update. Remove some dead code.
10902 (create_breakpoint_sal): Change type of "location". Update.
10903 (create_breakpoints_sal, create_breakpoint, break_command_1)
10904 (dprintf_command, break_range_command, until_break_command)
10905 (init_ada_exception_breakpoint)
10906 (strace_marker_create_sals_from_location)
10907 (update_static_tracepoint, trace_command, ftrace_command)
10908 (strace_command, create_tracepoint_from_upload): Update.
10909 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10910 * ax-gdb.c (agent_command_1): Update.
10911
8f10c932
PA
109122017-04-12 Pedro Alves <palves@redhat.com>
10913
10914 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10915 * configure.tgt: Handle i[34567]86-*-go32* and
10916 i[34567]86-*-msdosdjgpp*.
10917 * i386-tdep.c (i386_svr4_reg_to_regnum):
10918 Make extern.
10919 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10920 i386-go32-tdep.c.
10921 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10922 * i386-go32-tdep.c: New file.
10923 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10924 declarations.
10925
0a31ccfb
SM
109262017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10927
10928 * aix-thread.c (pd_status2str): Change return type to const char *.
10929
e9bb3fbb
PA
109302017-04-12 Pedro Alves <palves@redhat.com>
10931
10932 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10933 calls to set_gdbarch_gnu_triplet_regexp.
10934
53375380
PA
109352017-04-12 Pedro Alves <palves@redhat.com>
10936
10937 PR gdb/21323
10938 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10939 New enum value.
10940 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10941 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10942 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10943 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10944 * gdbarch.h, gdbarch.c: Regenerate.
10945 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10946 gdbarch_wchar_bit and gdbarch_wchar_signed.
10947 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10948 * arm-tdep.c (arm_gdbarch_init): Likewise.
10949 * avr-tdep.c (avr_gdbarch_init): Likewise.
10950 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10951 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10952 * i386-tdep.c (i386_go32_init_abi): Likewise.
10953 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10954 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10955 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10956 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10957 * sh-tdep.c (sh_gdbarch_init): Likewise.
10958 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10959 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10960 * windows-tdep.c (windows_init_abi): Likewise.
10961 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10962
53e710ac
PA
109632017-04-12 Pedro Alves <palves@redhat.com>
10964
10965 PR c++/21323
10966 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10967 cplus_primitive_type_char32_t>: New enum values.
10968 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10969 and cplus_primitive_type_char32_t.
10970 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10971 32, use the archtecture's built-in type for char16_t and char32_t,
10972 respectively. Otherwise, fallback to init_integer_type as before,
10973 but make the type unsigned, and issue a complaint.
10974 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10975
ab0538b8
AH
109762017-04-12 Alan Hayward <alan.hayward@arm.com>
10977
5e0e0422 10978 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
10979 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10980
5430098f
SDJ
109812017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10982
10983 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10984 'const char *'.
10985
7c5ded6a
SDJ
109862017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10987
10988 * common/common-utils.c (free_vector_argv): New function.
10989 * common/common-utils.h: Include <vector>.
10990 (free_vector_argv): New prototype.
10991 * darwin-nat.c (darwin_create_inferior): Rewrite function
10992 prototype in order to constify "exec_file" and accept a
10993 "std::string" for "allargs".
10994 * fork-child.c: Include <vector>.
10995 (breakup_args): Rewrite function, using C++.
10996 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10997 and accept "std::string" for "allargs". Update the code to
10998 calculate "argv" based on "allargs". Update calls to "exec_fun"
10999 and "execvp".
11000 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
11001 order to constify "exec_file" and accept a "std::string" for
11002 "allargs".
11003 * go32-nat.c (go32_create_inferior): Likewise.
11004 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
11005 * infcmd.c (run_command_1): Constify "exec_file". Use
11006 "std::string" for inferior arguments.
11007 * inferior.h (fork_inferior): Update prototype.
11008 * linux-nat.c (linux_nat_create_inferior): Rewrite function
11009 prototype in order to constify "exec_file" and accept a
11010 "std::string" for "allargs".
11011 * nto-procfs.c (procfs_create_inferior): Likewise.
11012 * procfs.c (procfs_create_inferior): Likewise.
11013 * remote-sim.c (gdbsim_create_inferior): Likewise.
11014 * remote.c (extended_remote_run): Update code to accept
11015 "std::string" as argument.
11016 (extended_remote_create_inferior): Rewrite function prototype in
11017 order to constify "exec_file" and accept a "std::string" for
11018 "allargs".
11019 * rs6000-nat.c (super_create_inferior): Likewise.
11020 (rs6000_create_inferior): Likewise.
11021 * target.h (struct target_ops) <to_create_inferior>: Likewise.
11022 * windows-nat.c (windows_create_inferior): Likewise.
11023
ae0eee42
PA
110242017-04-11 Pedro Alves <palves@redhat.com>
11025
11026 * thread.c: Fix whitespace throughout.
11027
a6acac06
PR
110282017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
11029
11030 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
11031
64403bd1
AH
110322017-04-11 Alan Hayward <alan.hayward@arm.com>
11033
11034 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
11035
a5bef50f
SDJ
110362017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
11037
11038 PR gdb/21364
11039 * osdata.c (info_osdata): Check if 'type' is an empty string
11040 instead of NULL.
11041
9295a5a9
PA
110422017-04-10 Pedro Alves <palves@redhat.com>
11043
11044 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
11045 (ptid_to_global_thread_id, in_thread_list)
11046 (do_captured_list_thread_ids, set_resumed, set_running)
11047 (set_executing, set_stop_requested, finish_thread_state)
11048 (validate_registers_access, can_access_registers_ptid)
11049 (print_thread_info_1, switch_to_thread)
11050 (do_restore_current_thread_cleanup)
11051 (make_cleanup_restore_current_thread, thread_command)
11052 (thread_name_command): Use operator== instead of ptid_equal.
11053
996812e3
PA
110542017-04-10 Pedro Alves <palves@redhat.com>
11055
11056 * thread.c (struct current_thread_cleanup) <next>: Delete field.
11057 (current_thread_cleanup_chain): Delete.
11058 (restore_current_thread_cleanup_dtor)
11059 (make_cleanup_restore_current_thread): Remove references to
11060 current_thread_cleanup_chain.
11061
845b344f
AH
110622017-04-10 Alan Hayward <alan.hayward@arm.com>
11063
11064 * msp430-tdep.c (msp430_pseudo_register_read): Never return
11065 REG_UNKNOWN.
11066
803bdfe4
YQ
110672017-04-10 Yao Qi <yao.qi@linaro.org>
11068
11069 PR gdb/19942
11070 * gdbthread.h (thread_info::deletable): New method.
11071 (thread_info::incref): New method.
11072 (thread_info::decref): New method.
11073 (thread_info::refcount): Move it to private.
11074 * infrun.c (save_stop_context): Call inc_refcount.
11075 (release_stop_context_cleanup): Likewise.
11076 * thread.c (set_thread_exited): New function.
11077 (init_thread_list): Delete "tp" only it is deletable, otherwise
11078 call set_thread_exited.
11079 (delete_thread_1): Call set_thread_exited.
11080 (current_thread_cleanup) <inferior_pid>: Remove.
11081 <thread>: New field.
11082 (restore_current_thread_ptid_changed): Removed.
11083 (do_restore_current_thread_cleanup): Adjust.
11084 (restore_current_thread_cleanup_dtor): Don't call
11085 find_thread_ptid.
11086 (set_thread_refcount): Use dec_refcount.
11087 (make_cleanup_restore_current_thread): Adjust.
11088 (thread_apply_all_command): Call inc_refcount.
11089 (_initialize_thread): Don't call
11090 observer_attach_thread_ptid_changed.
11091
8c25b497
YQ
110922017-04-10 Yao Qi <yao.qi@linaro.org>
11093
11094 * thread.c (delete_thread_1): Hoist code on marking thread as
11095 exited.
11096
8473b447
SM
110972017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11098
11099 * windows-nat.c (windows_detach): Initialize ptid with
11100 minus_one_ptid.
11101
6670ec13
SM
111022017-04-07 Simon Marchi <simon.marchi@ericsson.com>
11103
11104 * unittests/ptid-selftests.c: Fix erroneous assert messages.
11105
ba2f91bb
AH
111062017-04-07 Alan Hayward <alan.hayward@arm.com>
11107
11108 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
11109 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
11110 (bfin_pseudo_register_write): Likewise
11111
436252de
SM
111122017-04-06 Simon Marchi <simon.marchi@ericsson.com>
11113
11114 * common/ptid.h (struct ptid): Change to...
11115 (class ptid_t): ... this.
11116 <ptid_t>: New constructors.
11117 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
11118 matches>: New methods.
11119 <make_null, make_minus_one>: New static methods.
11120 <pid>: Rename to...
11121 <m_pid>: ...this.
11122 <lwp>: Rename to...
11123 <m_lwp>: ...this.
11124 <tid>: Rename to...
11125 <m_tid>: ...this.
11126 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
11127 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
11128 as references, move comment to class ptid_t.
11129 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
11130 ptid_t static methods.
11131 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
11132 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
11133 Take ptid arguments as references, implement using ptid_t methods.
11134 * unittests/ptid-selftests.c: New file.
11135 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11136 unittests/ptid-selftests.c.
11137 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
11138
0dedf377
TP
111392017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
11140
11141 * python/python.c (python_run_simple_file): Cast mode literal to
11142 non-const char pointer as expected by PyFile_FromString.
11143
4e9868d4
SM
111442017-04-05 Simon Marchi <simon.marchi@ericsson.com>
11145
11146 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
11147 minus_one_ptid and null_ptid.
11148
9bf2a700
PA
111492017-04-05 Pedro Alves <palves@redhat.com>
11150
11151 * warning.m4 (build_warnings): Remove -Wno-write-strings.
11152 * configure: Regenerate.
11153
a121b7c1
PA
111542017-04-05 Pedro Alves <palves@redhat.com>
11155
11156 * ada-exp.y (yyerror): Constify.
11157 * ada-lang.c (bound_name, get_selections)
11158 (ada_variant_discrim_type)
11159 (ada_variant_discrim_name, ada_value_struct_elt)
11160 (ada_lookup_struct_elt_type, is_unchecked_variant)
11161 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
11162 (catch_ada_exception_command_split)
11163 (catch_ada_assert_command_split, catch_assert_command)
11164 (ada_op_name): Constify.
11165 * ada-lang.h (ada_yyerror, get_selections)
11166 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
11167 * arc-tdep.c (arc_print_frame_cache): Constify.
11168 * arm-tdep.c (arm_skip_stub): Constify.
11169 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
11170 (gen_aggregate_elt_ref): Constify.
11171 * bcache.c (print_bcache_statistics): Constify.
11172 * bcache.h (print_bcache_statistics): Constify.
11173 * break-catch-throw.c (catch_exception_command_1):
11174 * breakpoint.c (struct ep_type_description::description):
11175 Constify.
11176 (add_solib_catchpoint): Constify.
11177 (catch_fork_command_1): Add cast.
11178 (add_catch_command): Constify.
11179 * breakpoint.h (add_catch_command, add_solib_catchpoint):
11180 Constify.
11181 * bsd-uthread.c (bsd_uthread_state): Constify.
11182 * buildsym.c (patch_subfile_names): Constify.
11183 * buildsym.h (next_symbol_text_func, patch_subfile_names):
11184 Constify.
11185 * c-exp.y (yyerror): Constify.
11186 (token::oper): Constify.
11187 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
11188 * c-varobj.c (cplus_describe_child): Constify.
11189 * charset.c (find_charset_names): Add cast.
11190 (find_charset_names): Constify array and add const_cast.
11191 * cli/cli-cmds.c (complete_command, cd_command): Constify.
11192 (edit_command): Constify.
11193 * cli/cli-decode.c (lookup_cmd): Constify.
11194 * cli/cli-dump.c (dump_memory_command, dump_value_command):
11195 Constify.
11196 (struct dump_context): Constify.
11197 (add_dump_command, restore_command): Constify.
11198 * cli/cli-script.c (get_command_line): Constify.
11199 * cli/cli-script.h (get_command_line): Constify.
11200 * cli/cli-utils.c (check_for_argument): Constify.
11201 * cli/cli-utils.h (check_for_argument): Constify.
11202 * coff-pe-read.c (struct read_pe_section_data): Constify.
11203 * command.h (lookup_cmd): Constify.
11204 * common/print-utils.c (decimal2str): Constify.
11205 * completer.c (gdb_print_filename): Constify.
11206 * corefile.c (set_gnutarget): Constify.
11207 * cp-name-parser.y (yyerror): Constify.
11208 * cp-valprint.c (cp_print_class_member): Constify.
11209 * cris-tdep.c (cris_register_name, crisv32_register_name):
11210 Constify.
11211 * d-exp.y (yyerror): Constify.
11212 (struct token::oper): Constify.
11213 * d-lang.h (d_yyerror): Constify.
11214 * dbxread.c (struct header_file_location::name): Constify.
11215 (add_old_header_file, add_new_header_file, last_function_name)
11216 (dbx_next_symbol_text, add_bincl_to_list)
11217 (find_corresponding_bincl_psymtab, set_namestring)
11218 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
11219 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
11220 * defs.h (command_line_input, print_address_symbolic)
11221 (deprecated_readline_begin_hook): Constify.
11222 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
11223 Constify.
11224 * event-top.c (handle_line_of_input): Constify and add cast.
11225 * exceptions.c (catch_errors): Constify.
11226 * exceptions.h (catch_errors): Constify.
11227 * expprint.c (print_subexp_standard, op_string, op_name)
11228 (op_name_standard, dump_raw_expression, dump_raw_expression):
11229 * expression.h (op_name, op_string, dump_raw_expression):
11230 Constify.
11231 * f-exp.y (yyerror): Constify.
11232 (struct token::oper): Constify.
11233 (struct f77_boolean_val::name): Constify.
11234 * f-lang.c (f_word_break_characters): Constify.
11235 * f-lang.h (f_yyerror): Constify.
11236 * fork-child.c (fork_inferior): Add cast.
11237 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
11238 (new_variant): Constify.
11239 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
11240 * gdbarch.c: Regenerate.
11241 * gdbcore.h (set_gnutarget): Constify.
11242 * go-exp.y (yyerror): Constify.
11243 (token::oper): Constify.
11244 * go-lang.h (go_yyerror): Constify.
11245 * go32-nat.c (go32_sysinfo): Constify.
11246 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
11247 * guile/scm-cmd.c (cmdscm_function): Constify.
11248 * guile/scm-param.c (pascm_param_value): Constify.
11249 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
11250 (h8300sx_register_name): Constify.
11251 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
11252 Constify.
11253 * ia64-tdep.c (ia64_register_names): Constify.
11254 * infcmd.c (construct_inferior_arguments): Constify.
11255 (path_command, attach_post_wait): Constify.
11256 * language.c (show_range_command, show_case_command)
11257 (unk_lang_error): Constify.
11258 * language.h (language_defn::la_error)
11259 (language_defn::la_name_of_this): Constify.
11260 * linespec.c (decode_line_2): Constify.
11261 * linux-thread-db.c (thread_db_err_str): Constify.
11262 * lm32-tdep.c (lm32_register_name): Constify.
11263 * m2-exp.y (yyerror): Constify.
11264 * m2-lang.h (m2_yyerror): Constify.
11265 * m32r-tdep.c (m32r_register_names): Constify and make static.
11266 * m68hc11-tdep.c (m68hc11_register_names): Constify.
11267 * m88k-tdep.c (m88k_register_name): Constify.
11268 * macroexp.c (appendmem): Constify.
11269 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
11270 (upgrade_type, parse_external, parse_partial_symbols)
11271 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
11272 (new_symbol): Constify.
11273 * memattr.c (mem_info_command): Constify.
11274 * mep-tdep.c (register_name_from_keyword): Constify.
11275 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
11276 Constify.
11277 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
11278 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
11279 * mi/mi-main.c (captured_mi_execute_command): Constify and add
11280 cast.
11281 (mi_execute_async_cli_command): Constify.
11282 * mips-tdep.c (mips_register_name): Constify.
11283 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
11284 (am33_register_name, am33_2_register_name)
11285 * moxie-tdep.c (moxie_register_names): Constify.
11286 * nat/linux-osdata.c (osdata_type): Constify fields.
11287 * nto-tdep.c (nto_parse_redirection): Constify.
11288 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
11289 (lookup_child_selector): Constify.
11290 (objc_methcall::name): Constify.
11291 * objc-lang.h (lookup_objc_class, lookup_child_selector)
11292 (lookup_struct_typedef): Constify.
11293 * objfiles.c (pc_in_section): Constify.
11294 * objfiles.h (pc_in_section): Constify.
11295 * p-exp.y (struct token::oper): Constify.
11296 (yyerror): Constify.
11297 * p-lang.h (pascal_yyerror): Constify.
11298 * parser-defs.h (op_name_standard): Constify.
11299 (op_print::string): Constify.
11300 (exp_descriptor::op_name): Constify.
11301 * printcmd.c (print_address_symbolic): Constify.
11302 * psymtab.c (print_partial_symbols): Constify.
11303 * python/py-breakpoint.c (stop_func): Constify.
11304 (bppy_get_expression): Constify.
11305 * python/py-cmd.c (cmdpy_completer::name): Constify.
11306 (cmdpy_function): Constify.
11307 * python/py-event.c (evpy_add_attribute)
11308 (gdbpy_initialize_event_generic): Constify.
11309 * python/py-event.h (evpy_add_attribute)
11310 (gdbpy_initialize_event_generic): Constify.
11311 * python/py-evts.c (add_new_registry): Constify.
11312 * python/py-finishbreakpoint.c (outofscope_func): Constify.
11313 * python/py-framefilter.c (get_py_iter_from_func): Constify.
11314 * python/py-inferior.c (get_buffer): Add cast.
11315 * python/py-param.c (parm_constant::name): Constify.
11316 * python/py-unwind.c (fprint_frame_id): Constify.
11317 * python/python.c (gdbpy_parameter_value): Constify.
11318 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
11319 * remote.c (memory_packet_config::name): Constify.
11320 (show_packet_config_cmd, remote_write_bytes)
11321 (remote_buffer_add_string):
11322 * reverse.c (exec_reverse_once): Constify.
11323 * rs6000-tdep.c (variant::name, variant::description): Constify.
11324 * rust-exp.y (rustyyerror): Constify.
11325 * rust-lang.c (rust_op_name): Constify.
11326 * rust-lang.h (rustyyerror): Constify.
11327 * serial.h (serial_ops::name): Constify.
11328 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
11329 (sh_sh3e_register_name, sh_sh2e_register_name)
11330 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
11331 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
11332 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
11333 (sh_sh4al_dsp_register_name): Constify.
11334 * sh64-tdep.c (sh64_register_name): Constify.
11335 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
11336 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
11337 * stabsread.c (patch_block_stabs, read_type_number)
11338 (ref_map::stabs, ref_add, process_reference)
11339 (symbol_reference_defined, define_symbol, define_symbol)
11340 (error_type, read_type, read_member_functions, read_cpp_abbrev)
11341 (read_one_struct_field, read_struct_fields, read_baseclasses)
11342 (read_tilde_fields, read_struct_type, read_array_type)
11343 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
11344 (read_huge_number, read_range_type, read_args, common_block_start)
11345 (find_name_end): Constify.
11346 * stabsread.h (common_block_start, define_symbol)
11347 (process_one_symbol, symbol_reference_defined, ref_add):
11348 * symfile.c (get_section_index, add_symbol_file_command):
11349 * symfile.h (get_section_index): Constify.
11350 * target-descriptions.c (tdesc_type::name): Constify.
11351 (tdesc_free_type): Add cast.
11352 * target.c (find_default_run_target):
11353 (add_deprecated_target_alias, find_default_run_target)
11354 (target_announce_detach): Constify.
11355 (do_option): Constify.
11356 * target.h (add_deprecated_target_alias): Constify.
11357 * thread.c (print_thread_info_1): Constify.
11358 * top.c (deprecated_readline_begin_hook, command_line_input):
11359 Constify.
11360 (init_main): Add casts.
11361 * top.h (handle_line_of_input): Constify.
11362 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
11363 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
11364 (tfind_command): Rename to ...
11365 (tfind_command_1): ... this and constify.
11366 (tfind_command): New function.
11367 (tfind_end_command, tfind_start_command): Adjust.
11368 (encode_source_string): Constify.
11369 * tracepoint.h (encode_source_string): Constify.
11370 * tui/tui-data.c (tui_partial_win_by_name): Constify.
11371 * tui/tui-data.h (tui_partial_win_by_name): Constify.
11372 * tui/tui-source.c (tui_set_source_content_nil): Constify.
11373 * tui/tui-source.h (tui_set_source_content_nil): Constify.
11374 * tui/tui-win.c (parse_scrolling_args): Constify.
11375 * tui/tui-windata.c (tui_erase_data_content): Constify.
11376 * tui/tui-windata.h (tui_erase_data_content): Constify.
11377 * tui/tui-winsource.c (tui_erase_source_content): Constify.
11378 * tui/tui.c (tui_enable): Add cast.
11379 * utils.c (defaulted_query): Constify.
11380 (init_page_info): Add cast.
11381 (puts_debug, subset_compare): Constify.
11382 * utils.h (subset_compare): Constify.
11383 * varobj.c (varobj_format_string): Constify.
11384 * varobj.h (varobj_format_string): Constify.
11385 * vax-tdep.c (vax_register_name): Constify.
11386 * windows-nat.c (windows_detach): Constify.
11387 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
11388 * xml-support.c (gdb_xml_end_element): Constify.
11389 * xml-tdesc.c (tdesc_start_reg): Constify.
11390 * xstormy16-tdep.c (xstormy16_register_name): Constify.
11391 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
11392 * xtensa-tdep.h (xtensa_register_t::name): Constify.
11393
995816ba
PA
113942017-04-05 Pedro Alves <palves@redhat.com>
11395
11396 * proc-api.c (struct trans): Constify.
11397 (procfs_note): Constify.
11398 * proc-events.c (struct trans, syscall_table):
11399 * proc-flags.c (struct trans): Constify.
11400 * proc-utils.h (procfs_note): Constify.
11401 * proc-why.c (struct trans): Constify.
11402 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
11403 (procfs_detach): Constify.
11404 * sol-thread.c (struct string_map): Constify.
11405 (td_err_string, td_state_string): Constify.
11406
3e83a920
PA
114072017-04-05 Pedro Alves <palves@redhat.com>
11408
11409 * proc-api.c (procfs_filename): Don't initialize
11410 procfs_filename.
11411 (prepare_to_trace): Assume procfs_filename is non-NULL.
11412 (_initialize_proc_api): Give procfs_filename a default value here.
11413
63160a43
PA
114142017-04-05 Pedro Alves <palves@redhat.com>
11415
11416 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
11417 'cond_string' parameter.
11418 (extract_exception_regexp): Constify 'string' parameter.
11419 (catch_exception_command_1): Constify.
11420 * breakpoint.c (init_catchpoint)
11421 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
11422 parameter.
11423 (ep_parse_optional_if_clause, catch_fork_command_1)
11424 (catch_exec_command_1): Constify.
11425 * breakpoint.h (init_catchpoint): Constify 'cond_string'
11426 parameter.
11427 (ep_parse_optional_if_clause): Constify.
11428 * cli/cli-utils.c (remove_trailing_whitespace)
11429 (check_for_argument): Constify.
11430 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
11431 non-const overload.
11432 (check_for_argument): Likewise.
11433
9b2eba3d
PA
114342017-04-05 Pedro Alves <palves@redhat.com>
11435
11436 * event-top.c (command_line_handler): Add cast to execute_command
11437 call.
11438 * record-btrace.c (cmd_record_btrace_bts_start)
11439 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
11440 (cmd_record_btrace_start): Add cast to execute_command call.
11441 * record-full.c (record_full_goto_insn):
11442 * record.c (record_start, record_stop): Add cast to
11443 execute_command_to_string calls.
11444 (cmd_record_start): Add cast to execute_command calls.
11445
2adadf51
PA
114462017-04-05 Pedro Alves <palves@redhat.com>
11447
11448 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
11449 static inline function.
11450 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
11451 array and use gdb_PyArg_ParseTupleAndKeywords.
11452 * python/py-cmd.c (cmdpy_init): Likewise.
11453 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
11454 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
11455 (infpy_search_memory): Likewise.
11456 * python/py-objfile.c (objfpy_add_separate_debug_file)
11457 (gdbpy_lookup_objfile): Likewise.
11458 * python/py-symbol.c (gdbpy_lookup_symbol)
11459 (gdbpy_lookup_global_symbol): Likewise.
11460 * python/py-type.c (gdbpy_lookup_type): Likewise.
11461 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
11462 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
11463 Likewise.
11464
0d1f4ceb
PA
114652017-04-05 Pedro Alves <palves@redhat.com>
11466
11467 * python/python-internal.h (gdb_PyGetSetDef): New type.
11468 * python/py-block.c (block_object_getset)
11469 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
11470 * python/py-event.c (event_object_getset)
11471 (finish_breakpoint_object_getset): Likewise.
11472 * python/py-inferior.c (inferior_object_getset): Likewise.
11473 * python/py-infthread.c (thread_object_getset): Likewise.
11474 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
11475 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
11476 * python/py-objfile.c (objfile_getset): Likewise.
11477 * python/py-progspace.c (pspace_getset): Likewise.
11478 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
11479 Likewise.
11480 * python/py-record.c (recpy_record_getset): Likewise.
11481 * python/py-symbol.c (symbol_object_getset): Likewise.
11482 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
11483 Likewise.
11484 * python/py-type.c (type_object_getset, field_object_getset):
11485 Likewise.
11486 * python/py-value.c (value_object_getset): Likewise.
11487
4d759979
PA
114882017-04-05 Pedro Alves <palves@redhat.com>
11489
11490 * python/python-internal.h (gdb_PyObject_CallMethod)
11491 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
11492 New functions.
11493 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
11494 (PySys_GetObject, PySys_SetPath): New macros.
11495
fdf9e36f
PA
114962017-04-05 Pedro Alves <palves@redhat.com>
11497
11498 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
11499 info_osdata_command.
11500 * osdata.c (info_osdata_command): Rename to ...
11501 (info_osdata): ... this. Constify 'type' parameter, and remove
11502 the 'from_tty' parameter. Accept NULL TYPE.
11503 (info_osdata_command): New function.
11504 * osdata.h (info_osdata_command): Remove declaration.
11505 (info_osdata): New declaration.
11506
9f33b8b7
PA
115072017-04-05 Pedro Alves <palves@redhat.com>
11508
11509 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
11510 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
11511 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
11512 parameter.
11513 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
11514 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
11515 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
11516 parameter.
11517 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
11518 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
11519 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11520 (mi_cmd_file_list_exec_source_files)
11521 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
11522 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
11523 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
11524 parameter.
11525 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
11526 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
11527 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11528 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
11529 (mi_cmd_stack_info_frame): Constify 'command' parameter.
11530 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
11531 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
11532 'command' parameter.
11533 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
11534 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
11535 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
11536 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
11537 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
11538 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
11539 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
11540 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
11541 (mi_cmd_var_set_update_range): Constify 'command' parameter.
11542 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
11543 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
11544 parameter.
11545 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
11546 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
11547 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
11548 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
11549 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
11550 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
11551 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
11552 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
11553 (mi_cmd_data_list_changed_registers)
11554 (mi_cmd_data_write_register_values)
11555 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
11556 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
11557 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
11558 (mi_cmd_list_features, mi_cmd_list_target_features)
11559 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
11560 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
11561 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
11562 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
11563 (mi_cmd_trace_frame_collected): Constify 'command'
11564 parameter.
11565 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
11566 'command' parameter.
11567
67cb5b2d
PA
115682017-04-05 Pedro Alves <palves@redhat.com>
11569
11570 * ada-lang.c (ada_completer_word_break_characters): Now a const
11571 array.
11572 (ada_get_gdb_completer_word_break_characters): Constify.
11573 * completer.c (gdb_completer_command_word_break_characters)
11574 (gdb_completer_file_name_break_characters)
11575 (gdb_completer_quote_characters): Now const arrays.
11576 (get_gdb_completer_quote_characters): Constify.
11577 (set_rl_completer_word_break_characters): New function.
11578 (set_gdb_completion_word_break_characters)
11579 (complete_line_internal): Use it.
11580 * completer.h (get_gdb_completer_quote_characters): Constify.
11581 (set_rl_completer_word_break_characters): Declare.
11582 * f-lang.c (f_word_break_characters): Constify.
11583 * language.c (default_word_break_characters): Constify.
11584 * language.h (language_defn::la_word_break_characters): Constify.
11585 (default_word_break_characters): Constify.
11586 * top.c (init_main): Use set_rl_completer_word_break_characters.
11587
7a114964
PA
115882017-04-05 Pedro Alves <palves@redhat.com>
11589
11590 * aix-thread.c (aix_thread_pid_to_str)
11591 (aix_thread_extra_thread_info): Constify.
11592 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
11593 * bsd-uthread.c (bsd_uthread_extra_thread_info)
11594 (bsd_uthread_pid_to_str): Constify.
11595 * corelow.c (core_pid_to_str): Constify.
11596 * darwin-nat.c (darwin_pid_to_str): Constify.
11597 * fbsd-nat.c (fbsd_pid_to_str): Constify.
11598 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
11599 Constify.
11600 * gnu-nat.c (gnu_pid_to_str): Constify.
11601 * go32-nat.c (go32_pid_to_str): Constify.
11602 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
11603 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
11604 * inferior.c (inferior_pid_to_str): Constify.
11605 * linux-nat.c (linux_nat_pid_to_str): Constify.
11606 * linux-tdep.c (linux_core_pid_to_str): Constify.
11607 * linux-thread-db.c (thread_db_pid_to_str)
11608 (thread_db_extra_thread_info): Constify.
11609 * nto-tdep.c (nto_extra_thread_info): Constify.
11610 * nto-tdep.h (nto_extra_thread_info): Constify.
11611 * obsd-nat.c (obsd_pid_to_str): Constify.
11612 * procfs.c (procfs_pid_to_str): Constify.
11613 * ravenscar-thread.c (ravenscar_extra_thread_info)
11614 (ravenscar_pid_to_str): Constify.
11615 * remote-sim.c (gdbsim_pid_to_str): Constify.
11616 * remote.c (remote_threads_extra_info, remote_pid_to_str):
11617 Constify.
11618 * sol-thread.c (solaris_pid_to_str): Constify.
11619 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
11620 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
11621 * target.c (default_pid_to_str, target_pid_to_str)
11622 (normal_pid_to_str, default_pid_to_str): Constify.
11623 * target.h (target_ops::to_pid_to_str)
11624 (target_ops::to_extra_thread_info): Constify.
11625 (target_pid_to_str, normal_pid_to_str): Constify.
11626 * windows-nat.c (windows_pid_to_str): Constify.
11627 * gdbarch.sh (core_pid_to_str): Constify.
11628 * target-delegates.c: Regenerate.
11629 * gdbarch.h, gdbarch.c: Regenerate.
11630
69bbf465
PA
116312017-04-05 Pedro Alves <palves@redhat.com>
11632
11633 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
11634 the memory of the temporary warning_pre_print override.
11635 * utils.c (warning_pre_print): Constify.
11636 * utils.h (warning_pre_print): Constify.
11637
be47f9e8
PA
116382017-04-05 Pedro Alves <palves@redhat.com>
11639
11640 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
11641 (shell_command): New function.
11642 (make_command): Use std::string.
11643 (init_cli_cmds): Register shell_command instead of shell_escape.
11644
bde6261a
PA
116452017-04-05 Pedro Alves <palves@redhat.com>
11646
11647 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
11648 * tracepoint.c (default_collect): Don't initialize.
11649
b38ef47f
PA
116502017-04-05 Pedro Alves <palves@redhat.com>
11651
11652 * macroexp.c (macro_buffer::shared): Now a bool.
11653 (init_buffer): Update.
11654 (init_shared_buffer): Constify 'addr' parameter.
11655 (substitute_args, expand, macro_expand, macro_expand_next): Remove
11656 casts.
11657
f995bbe8
PA
116582017-04-05 Pedro Alves <palves@redhat.com>
11659
11660 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
11661 * disasm.c (set_disassembler_options): Constify local.
11662 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
11663
4a596fe2
SDJ
116642017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
11665
11666 PR gdb/21352
11667 * tracefile.c (tsave_command): Fix argument parsing for '-r'
11668 option.
11669
2cad08ea
YQ
116702017-04-05 Yao Qi <yao.qi@linaro.org>
11671
11672 * frame.c (frame_unwind_register_unsigned): Call
11673 frame_unwind_register_value.
11674
55a98976
YQ
116752017-04-05 Yao Qi <yao.qi@linaro.org>
11676
11677 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
11678 Use gdb_test_multiple, and don't match anchor.
11679
4ac40124
PA
116802017-04-05 Pedro Alves <palves@redhat.com>
11681
11682 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
11683 (Write After Approval): Remove Simon Marchi.
11684
c053b654
PA
116852017-04-05 Pedro Alves <palves@redhat.com>
11686
11687 * common/gdb_optional.h (optional::optional): Make constexpr and
11688 initialize m_dummy.
11689
4c7bf4f9
JB
116902017-04-04 John Baldwin <jhb@FreeBSD.org>
11691
11692 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11693 (amd64fbsd_jmp_buf_reg_offset): Remove.
11694 (amd64fbsd_supply_uthread): Remove function.
11695 (amd64fbsd_collect_uthread): Remove function.
11696 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
11697 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
11698 (x86_64-*-freebsd*): Remove bsd-uthread.o.
11699 (fbsd-nat.c): Update comment.
11700 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11701 (i386fbsd_jmp_buf_reg_offset): Remove.
11702 (i386fbsd_supply_uthread): Remove function.
11703 (i386fbsd_collect_uthread): Remove function.
11704 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
11705
1e1a8bef
JB
117062017-04-04 John Baldwin <jhb@FreeBSD.org>
11707
11708 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
11709 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
11710 * NEWS: Mention that support for FreeBSD/alpha was removed.
11711 * alpha-fbsd-tdep.c: Delete file.
11712 * config/alpha/fbsd.mh: Delete file.
11713 * configure.host: Delete alpha*-*-freebsd* and
11714 alpha*-*-kfreebsd*-gnu.
11715 * configure.tgt: Delete alpha*-*-freebsd* and
11716 alpha*-*-kfreebsd*-gnu.
11717
49907934
JB
117182017-04-04 John Baldwin <jhb@FreeBSD.org>
11719
11720 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
11721 amd64bsd_store_inferior_registers): Use ptid from regcache.
11722
6f77053d
PA
117232017-04-04 Pedro Alves <palves@redhat.com>
11724
11725 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
11726 data fields, make them private and add "m_" prefixes.
11727 (lnp_state_machine::lnp_state_machine): New ctor.
11728 (record_line, check_line_address, handle_set_discriminator)
11729 (handle_set_address, handle_advance_pc, handle_special_opcode)
11730 (handle_advance_line, handle_set_file, handle_negate_stmt)
11731 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
11732 (end_sequence, advance_line): New methods.
11733 (m_gdbarch, m_record_lines_p): New fields.
11734 (lnp_reader_state): Delete.
11735 (dwarf_record_line): Rename to ...
11736 (lnp_state_machine::record_line): ... adjust.
11737 (init_lnp_state_machine): Delete.
11738 (lnp_state_machine::lnp_state_machine): New.
11739 (check_line_address): Rename to ...
11740 (lnp_state_machine::check_line_address): This.
11741 (dwarf_decode_lines_1): Remove reference to "reader_state".
11742 Adjust lnp_state_machine having a non-default ctor. Use bool.
11743 State machine internal state manipulation moved to
11744 lnp_state_machine methods.
11745
9c541725
PA
117462017-04-04 Pedro Alves <palves@redhat.com>
11747
11748 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11749 unittests/offset-type-selftests.c.
11750 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11751 * common/offset-type.h: New file.
11752 * common/preprocessor.h: New file.
11753 * common/traits.h: New file.
11754 * common/valid-expr.h: New file.
11755 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11756 sect_offset and cu_offset strong typedefs throughout.
11757 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11758 typedefs throughout.
11759 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11760 sect_offset and cu_offset strong typedefs throughout.
11761 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11762 typedefs throughout.
11763 * gdbtypes.h: Include "common/offset-type.h".
11764 (cu_offset): Now an offset type (strong typedef) instead of a
11765 struct.
11766 (sect_offset): Likewise.
11767 (union call_site_parameter_u): Rename "param_offset" field to
11768 "param_cu_off".
11769 * unittests/offset-type-selftests.c: New file.
11770
ecfb656c
PA
117712017-04-04 Pedro Alves <palves@redhat.com>
11772
11773 * common/underlying.h: New file.
11774 * dwarf2read.c: Include "common/gdb_optional.h" and
11775 "common/underlying.h".
11776 (dir_index, file_name_index): New types.
11777 (file_entry): Use them.
11778 (file_entry::include): Use to_underlying.
11779 (line_header::add_file_name): Use dir_index.
11780 (read_formatted_entries): Use gdb::optional. Read form before
11781 writting to file_entry.
11782 (dwarf_decode_line_header): Use dir_index.
11783 (lnp_state_machine::current_file): Use to_underlying.
11784 (lnp_state_machine::file): Change type to file_name_index.
11785 (dwarf_record_line): Use to_underlying.
11786 (init_lnp_state_machine): Use file_name_index.
11787 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11788
d194f1fe
PA
117892017-04-04 Pedro Alves <palves@redhat.com>
11790
11791 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11792 operator bool, has_value and get methods.
11793
fff8551c
PA
117942017-04-04 Pedro Alves <palves@redhat.com>
11795
11796 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11797 fields.
11798 (line_header): Initialize all data fields. Change type of
11799 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11800 Change type of include_dirs to std::vector<const char *>. Remove
11801 num_include_dirs, include_dirs_size. Change type of file_names to
11802 std::vector<file_entry>. Remove num_file_names, file_names_size.
11803 (line_header::line_header): New.
11804 (line_header::add_include_dir, line_header::add_file_name): New
11805 methods.
11806 (line_header::include_dir_at): Remove NULL check.
11807 (line_header::file_name_at): Add const overload.
11808 (line_header_up): New unique_ptr typedef.
11809 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11810 std::vector. Remove free_line_header call.
11811 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11812 free_line_header call.
11813 (free_cu_line_header): Delete.
11814 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11815 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11816 Adjust to use std::vector.
11817 (free_line_header): Delete.
11818 (free_line_header_voidp): Use delete.
11819 (add_include_dir): Replace with ...
11820 (line_header::add_include_dir): ... this method. Use std::vector.
11821 (add_file_name): Replace with ...
11822 (line_header::add_file_name): ... this method. Use std::vector.
11823 (add_include_dir_stub): Delete.
11824 (read_formatted_entries): Remove memset.
11825 (dwarf_decode_line_header): Return a line_header_up instead of a
11826 raw pointer. Remove cleanup handling. Pass lambdas to
11827 read_formatted_entries. Adjust to use line_header methods.
11828 (dwarf_decode_lines_1): Adjust to use line_header methods.
11829 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11830 use std::vector.
11831
d62a8ae2
SM
118322017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11833
11834 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11835 instead of struct ptid.
11836
db3a1dc7
AH
118372017-05-04 Alan Hayward <alan.hayward@arm.com>
11838
11839 * frame.c (get_frame_register_bytes): Unwind using value.
11840 (put_frame_register_bytes): Likewise.
11841
b1b45502
IB
118422017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11843
11844 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11845 aggregate-like.
11846
ec13808e
JK
118472017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11848
11849 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11850
12316564
YQ
118512017-03-29 Yao Qi <yao.qi@linaro.org>
11852
11853 * gdbthread.h (struct thread_info): Declare constructor and
11854 destructor. Add some in-class member initializers.
11855 * thread.c (free_thread): Remove.
11856 (init_thread_list): Call delete instead of free_thread.
11857 (new_thread): Call thread_info constructor.
11858 (thread_info::thread_info): New function.
11859 (thread_info::~thread_info): New function.
11860 (delete_thread_1): Call delete instead of free_thread.
11861 (make_cleanup_restore_current_thread): Move tp and frame to
11862 inner block.
11863
fe5f7374
AK
118642017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11865
11866 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11867 (arc_skip_prologue): Likewise.
11868 (arc_make_frame_cache): Likewise.
11869 (arc_pv_get_operand): New function.
11870 (arc_is_in_prologue): Likewise.
11871 (arc_analyze_prologue): Likewise.
11872 (arc_print_frame_cache): Likewise.
11873 (MAX_PROLOGUE_LENGTH): New constant.
11874
eea78757
AK
118752017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11876
11877 * configure.tgt: Add arc-insn.o.
11878 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11879 (dump_arc_instruction_command): New function.
11880 (arc_fprintf_disasm): Likewise.
11881 (arc_disassemble_info): Likewise.
11882 (arc_insn_get_operand_value): Likewise.
11883 (arc_insn_get_operand_value_signed): Likewise.
11884 (arc_insn_get_memory_base_reg): Likewise.
11885 (arc_insn_get_memory_offset): Likewise.
11886 (arc_insn_get_branch_target): Likewise.
11887 (arc_insn_dump): Likewise.
11888 (arc_insn_get_linear_next_pc): Likewise.
11889 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11890 (arc_disassemble_info): Likewise.
11891 (arc_insn_get_branch_target): Likewise.
11892 (arc_insn_get_linear_next_pc): Likewise.
11893 * NEWS: Mention new "maint print arc arc-instruction".
11894
3be78afd
AK
118952017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11896
11897 * arc-tdep (maintenance_print_arc_list): New variable.
11898 (maintenance_print_arc_command): New function.
11899
296ec4fa
AK
119002017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11901
11902 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11903 Add "limm" and "reserved".
11904 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11905 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11906 * arc-tdep.h (arc_regnum): Likewise.
11907
f74f865e
MF
119082017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11909
11910 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11911 for THREADPTR register.
11912 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11913 register.
11914 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11915 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11916 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11917
0d0bf81a
MF
119182017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11919
11920 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11921 registers above gdbarch_num_regs (gdbarch) as privileged in
11922 call0 ABI.
11923
0ce4291e
MF
119242017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11925
11926 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11927 for a single specified register or for all registers in
11928 a0_base..a0_base + C0_NREGS range.
11929 (supply_gregset_reg): Call regcache_raw_supply for a single
11930 specified register or for all registers in a0_base..a0_base +
11931 C0_NREGS range.
11932
c56054f9
MF
119332017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11934
11935 * arch/xtensa.h (C0_NREGS): Add definition.
11936 * xtensa-tdep.c (C0_NREGS): Remove definition.
11937
a4398628
MF
119382017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11939
11940 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11941 Drop xtensa_default_isa initialization.
11942 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11943
8c43009f
PA
119442017-03-27 Pedro Alves <palves@redhat.com>
11945
11946 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11947 (file_entry::include_dir): New method.
11948 (line_header::include_dir_at, line_header::file_name_at): New
11949 methods.
11950 (setup_type_unit_groups, setup_type_unit_groups)
11951 (psymtab_include_file_name): Simplify using the new methods.
11952 (lnp_state_machine) <the_line_header>: New field.
11953 <file>: Add comment.
11954 (lnp_state_machine::current_file): New method.
11955 (dwarf_record_line): Simplify using the new methods.
11956 (init_lnp_state_machine): Initialize the "the_line_header" field.
11957 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11958 Simplify using the new methods.
11959
a7e80b9e
PA
119602017-03-27 Pedro Alves <palves@redhat.com>
11961
11962 * cp-name-parser.y (make_empty): Delete.
11963 (demangler_special, nested_name, ptr_operator, array_indicator)
11964 (direct_declarator, declarator_1): Use fill_comp instead of
11965 make_empty.
11966
21047726
PA
119672017-03-27 Pedro Alves <palves@redhat.com>
11968
11969 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11970 to ATTRIBUTE_PRINTF.
11971 * solib-target.c (library_list_start_list): Print "string" not
11972 "version".
11973 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11974 gdb_xml_error call.
11975
d721ba37
PA
119762017-03-27 Pedro Alves <palves@redhat.com>
11977
11978 * dwarf2read.c (struct file_and_directory): New.
11979 (dwarf2_get_dwz_file): Adjust to use std::string.
11980 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11981 (find_file_and_directory): Adjust to return a file_and_directory
11982 object.
11983 (read_file_scope): Adjust to use file_and_directory. Remove
11984 make_cleanup/do_cleanups calls.
11985 (open_and_init_dwp_file): Adjust to use std::string. Remove
11986 make_cleanup/do_cleanups calls.
11987 * python/python.c (do_start_initialization): Adjust to ldirname
11988 returning a std::string.
11989 * utils.c (ldirname): Now returns a std::string.
11990 * utils.h (ldirname): Change return type to std::string.
11991 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11992 returning a std::string.
11993 * xml-tdesc.c (file_read_description_xml): Likewise.
11994
ed771251
AH
119952017-03-24 Alan Hayward <alan.hayward@arm.com>
11996
11997 * regcache.c (regcache_debug_print_register): New function.
11998 * regcache.h (regcache_debug_print_register): New declaration.
11999 * target.c (debug_print_register): Remove.
12000 (target_fetch_registers): Call regcache_debug_print_register.
12001 (target_store_registers): Likewise.
12002
568c1b9f
PB
120032017-03-24 Pádraig Brady <pbrady@fb.com>
12004
12005 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
12006 reference beyond the 'lh->include_dirs' array before accessing to
12007 it.
12008 (psymtab_include_file_name): Likewise.
12009 (dwarf_decode_lines_1): Likewise.
12010 (dwarf_decode_lines): Likewise.
12011 (file_file_name): Likewise.
12012
3e00d44f
SM
120132017-03-23 Simon Marchi <simon.marchi@ericsson.com>
12014
12015 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
12016 inferior_ptid.
12017 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
12018 ps_lsetfpregs): Likewise.
12019 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
12020 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
12021 ps_lsetfpregs): Likewise.
12022 * target.c (target_fetch_registers, target_store_registers):
12023 Remove asserts.
12024
077ae656
AH
120252017-03-23 Alan Hayward <alan.hayward@arm.com>
12026
12027 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
12028
1e2b521d
YQ
120292017-03-23 Yao Qi <yao.qi@linaro.org>
12030
12031 * aarch64-tdep.c (aarch64_process_record_test): Declare.
12032 (_initialize_aarch64_tdep): Register it.
12033 (aarch64_record_load_store): Handle PRFM instruction.
12034 (aarch64_process_record_test): New function.
12035
33877125
YQ
120362017-03-23 Yao Qi <yao.qi@linaro.org>
12037
12038 * aarch64-tdep.c (aarch64_record_load_store): Fix code
12039 indentation.
12040
a0eef940
YQ
120412017-03-23 Yao Qi <yao.qi@linaro.org>
12042
12043 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
12044
3f2a3564
PR
120452017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12046
12047 python/python.c (do_start_initialization): Fix memory leak.
12048
b67aeab0
SM
120492017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12050
12051 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
12052 using get_ptrace_pid.
12053 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
12054 inferior_ptid.
12055 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
12056 inferior_ptid instead of pid.
12057
ffdbe864
YQ
120582017-03-22 Yao Qi <yao.qi@linaro.org>
12059
12060 * aarch64-tdep.c: Wrap locally used classes in anonymous
12061 namespace.
12062 * arm-tdep.c: Likewise.
12063 * linespec.c: Likewise.
12064 * ui-out.c: Likewise.
12065
9d736fbf
JG
120662017-03-22 Jonah Graham <jonah@kichwacoders.com>
12067
12068 PR gdb/19637
12069 * python/lib/gdb/printer/bound_registers.py: Import sys.
12070
3de88e9a
SM
120712017-03-21 Simon Marchi <simon.marchi@ericsson.com>
12072
12073 * windows-nat.c (do_windows_fetch_inferior_registers): Add
12074 windows_thread_info parameter and use it instead of
12075 current_thread.
12076 (windows_fetch_inferior_registers): Don't set current_thread,
12077 pass the thread to do_windows_fetch_inferior_registers. Use
12078 ptid from regcache instead of inferior_ptid.
12079 (do_windows_store_inferior_registers): Add windows_thread_info
12080 parameter and use it instead of current_thread.
12081 (windows_store_inferior_registers): Don't set current_thread,
12082 pass the thread to do_windows_store_inferior_registers. Use
12083 ptid from regcache instead of inferior_ptid.
12084
0e7b8f61
SM
120852017-03-21 Simon Marchi <simon.marchi@ericsson.com>
12086
12087 * ser-mingw.c (ser_windows_raw): Remove reference to
12088 struct serial::current_timeout.
12089
5badf10a
IR
120902017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
12091
12092 PR tdep/20928
12093 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
12094 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
12095 (sparc64_fsr_type): Fix %fsr decoding.
12096
cee59b3f
TW
120972017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
12098
12099 * python/py-record-btrace.c (btpy_insn_data): Change return type
12100 for Python 2.
12101
639a9038
SM
121022017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12103
12104 * spu-linux-nat.c (spu_fetch_inferior_registers,
12105 spu_store_inferior_registers): Use ptid from regcache, set and
12106 restore inferior_ptid.
12107 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
12108 Likewise.
12109
bcc0c096
SM
121102017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12111
12112 * i386-linux-nat.c (fetch_register, store_register,
12113 i386_linux_fetch_inferior_registers,
12114 i386_linux_store_inferior_registers): Use ptid from regcache.
12115 * ia64-linux-nat.c (ia64_linux_fetch_register,
12116 ia64_linux_store_register): Likewise.
12117 * inf-ptrace.c (inf_ptrace_fetch_register,
12118 inf_ptrace_store_register): Likewise.
12119 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
12120 m32r_linux_store_inferior_registers): Likewise.
12121 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
12122 m68kbsd_store_inferior_registers): Likewise.
12123 * m68k-linux-nat.c (fetch_register, store_register,
12124 m68k_linux_fetch_inferior_registers,
12125 m68k_linux_store_inferior_registers): Likewise.
12126 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
12127 m88kbsd_store_inferior_registers): Likewise.
12128 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
12129 mips_fbsd_store_inferior_registers): Likewise.
12130 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
12131 mips64_linux_regsets_store_registers): Likewise.
12132 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
12133 mipsnbsd_store_inferior_registers): Likewise.
12134 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
12135 mips64obsd_store_inferior_registers): Likewise.
12136 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
12137 Likewise.
12138 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
12139 ppcfbsd_store_inferior_registers): Likewise.
12140 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
12141 ppc_linux_store_inferior_registers): Likewise.
12142 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
12143 ppcnbsd_store_inferior_registers): Likewise.
12144 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
12145 ppcobsd_store_registers): Likewise.
12146 * procfs.c (procfs_fetch_registers, procfs_store_registers):
12147 Likewise.
12148 * ravenscar-thread.c (ravenscar_fetch_registers,
12149 ravenscar_store_registers, ravenscar_prepare_to_store):
12150 Likewise.
12151 * record-btrace.c (record_btrace_fetch_registers,
12152 record_btrace_store_registers, record_btrace_prepare_to_store):
12153 Likewise.
12154 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
12155 Lookup inferior using ptid from regcache, instead of
12156 current_inferior.
12157 * remote.c (remote_fetch_registers, remote_store_registers): Use
12158 ptid from regcache.
12159 * rs6000-nat.c (fetch_register, store_register): Likewise.
12160 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
12161 s390_linux_store_inferior_registers): Likewise.
12162 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
12163 shnbsd_store_inferior_registers): Likewise.
12164 * sol-thread.c (sol_thread_fetch_registers,
12165 sol_thread_store_registers): Likewise.
12166 * sparc-nat.c (sparc_fetch_inferior_registers,
12167 sparc_store_inferior_registers): Likewise.
12168 * tilegx-linux-nat.c (fetch_inferior_registers,
12169 store_inferior_registers): Likewise.
12170 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
12171 vaxbsd_store_inferior_registers): Likewise.
12172 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
12173 store_xtregs): Likewise.
12174
c0f55cc6
AV
121752017-03-20 Artemiy Volkov <artemiyv@acm.org>
12176
12177 PR gdb/14441
12178 * NEWS: Mention support for rvalue references in GDB and python.
12179 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
12180 supports both lvalue and rvalue references.
12181
15c0a2a9
AV
121822017-03-20 Artemiy Volkov <artemiyv@acm.org>
12183
12184 PR gdb/14441
12185 * gdbtypes.c (rank_one_type): Implement overloading
12186 resolution rules regarding rvalue references.
12187
aa006118
AV
121882017-03-20 Artemiy Volkov <artemiyv@acm.org>
12189
12190 PR gdb/14441
12191 * aarch64-tdep.c (aarch64_type_align)
12192 (aarch64_extract_return_value, aarch64_store_return_value): Change
12193 lvalue reference type checks to general reference type checks.
12194 * amd64-tdep.c (amd64_classify): Likewise.
12195 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
12196 Likewise.
12197 * arm-tdep.c (arm_type_align, arm_extract_return_value)
12198 (arm_store_return_value): Likewise.
12199 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
12200 * c-typeprint.c (c_print_type): Likewise.
12201 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
12202 (cplus_number_of_children, cplus_describe_child): Likewise.
12203 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
12204 * completer.c (expression_completer): Likewise.
12205 * cp-support.c (make_symbol_overload_list_adl_namespace):
12206 Likewise.
12207 * darwin-nat-info.c (info_mach_region_command): Likewise.
12208 * dwarf2loc.c (entry_data_value_coerce_ref)
12209 (value_of_dwarf_reg_entry): Likewise.
12210 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
12211 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
12212 Likewise.
12213 * findvar.c (extract_typed_address, store_typed_address):
12214 Likewise.
12215 * gdbtypes.c (rank_one_type): Likewise.
12216 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
12217 * infcall.c (value_arg_coerce): Likewise.
12218 * language.c (pointer_type): Likewise.
12219 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
12220 Likewise.
12221 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
12222 * mn10300-tdep.c (mn10300_type_align): Likewise.
12223 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
12224 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
12225 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
12226 Likewise.
12227 * printcmd.c (print_formatted, x_command): Likewise.
12228 * python/py-type.c (typy_get_composite, typy_template_argument):
12229 Likewise.
12230 * python/py-value.c (valpy_referenced_value)
12231 (valpy_get_dynamic_type, value_has_field): Likewise.
12232 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
12233 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
12234 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
12235 * spu-tdep.c (spu_scalar_value_p): Likewise.
12236 * symtab.c (lookup_symbol_aux): Likewise.
12237 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
12238 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
12239 Likewise.
12240 * valops.c (value_cast_pointers, value_cast)
12241 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
12242 (value_struct_elt, value_struct_elt_bitpos)
12243 (value_find_oload_method_list, find_overload_match)
12244 (value_rtti_indirect_type): Likewise.
12245 * valprint.c (val_print_scalar_type_p, generic_val_print):
12246 Likewise.
12247 * value.c (value_actual_type, value_as_address, unpack_long)
12248 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
12249 (coerce_ref): Likewise.
12250 * varobj.c (varobj_get_value_type): Likewise.
12251
3fcf899d
AV
122522017-03-20 Artemiy Volkov <artemiyv@acm.org>
12253
12254 PR gdb/14441
12255 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
12256 table of constants.
12257 * python/lib/gdb/command/explore.py: Support exploring values
12258 of rvalue reference types.
12259 * python/lib/gdb/types.py: Implement get_basic_type() for
12260 rvalue reference types.
12261 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
12262 constant.
12263 * python/py-value.c (valpy_getitem): Add an rvalue reference
12264 check.
12265 (valpy_reference_value): Add new parameter "refcode".
12266 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
12267 New wrappers for valpy_reference_value().
12268 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
12269 (gdbpy_invoke_xmethod): Likewise.
12270
4297a3f0
AV
122712017-03-20 Artemiy Volkov <artemiyv@acm.org>
12272
12273 PR gdb/14441
12274 * dwarf2read.c (process_die, read_type_die_1): Handle the
12275 DW_TAG_rvalue_reference_type DIE.
12276 (read_tag_reference_type): Add new parameter "refcode".
12277
e1cb3213
AV
122782017-03-20 Artemiy Volkov <artemiyv@acm.org>
12279
12280 PR gdb/14441
12281 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
12282 (c_type_print_modifier, c_type_print_varspec_suffix)
12283 (c_type_print_base): Support printing rvalue reference types.
12284 * c-valprint.c (c_val_print, c_value_print): Support printing
12285 rvalue reference values.
12286
e4347c89
AV
122872017-03-20 Artemiy Volkov <artemiyv@acm.org>
12288
12289 PR gdb/14441
12290 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
12291 typename.
12292 * cp-support.c (replace_typedefs): Handle
12293 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
12294 * python/py-type.c (typy_lookup_type): Likewise.
12295
53cc15f5
AV
122962017-03-20 Artemiy Volkov <artemiyv@acm.org>
12297
12298 PR gdb/14441
12299 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
12300 * parse.c (insert_type): Change assert statement.
12301 (follow_types): Handle rvalue reference types.
12302 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
12303 constant.
12304
a65cfae5
AV
123052017-03-20 Artemiy Volkov <artemiyv@acm.org>
12306
12307 PR gdb/14441
12308 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
12309 value_ref() interface.
12310 * c-valprint.c (c_value_print): Likewise.
12311 * infcall.c (value_arg_coerce): Likewise.
12312 * python/py-value.c (valpy_reference_value): Likewise.
12313 * valops.c (value_cast, value_reinterpret_cast)
12314 (value_dynamic_cast, typecmp): Likewise.
12315 (value_ref): Parameterize by kind of return value reference type.
12316 * value.h (value_ref): Add new parameter "refcode".
12317
3b224330
AV
123182017-03-20 Artemiy Volkov <artemiyv@acm.org>
12319
12320 PR gdb/14441
12321 * dwarf2read.c (read_tag_reference_type): Use
12322 lookup_lvalue_reference_type() instead of lookup_reference_type().
12323 * eval.c (evaluate_subexp_standard): Likewise.
12324 * f-exp.y: Likewise.
12325 * gdbtypes.c (make_reference_type, lookup_reference_type):
12326 Generalize with rvalue reference types.
12327 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
12328 convenience wrappers for lookup_reference_type().
12329 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
12330 reference kind parameter.
12331 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
12332 wrappers for lookup_reference_type().
12333 * guile/scm-type.c (gdbscm_type_reference): Use
12334 lookup_lvalue_reference_type() instead of lookup_reference_type().
12335 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
12336 * parse.c (follow_types): Likewise.
12337 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
12338 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
12339 Likewise.
12340 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
12341 (gdbpy_invoke_xmethod): Likewise.
12342 * stabsread.c: Provide extra argument to make_reference_type()
12343 call.
12344 * valops.c (value_ref, value_rtti_indirect_type): Use
12345 lookup_lvalue_reference_type() instead of lookup_reference_type().
12346
f9aeb8d4
AV
123472017-03-20 Artemiy Volkov <artemiyv@acm.org>
12348
12349 PR gdb/14441
12350 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
12351 (TYPE_IS_REFERENCE): New macro.
12352 (struct type): Add rvalue_reference_type field.
12353 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
12354
51457a05
MAL
123552017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
12356
12357 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
12358 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
12359 New function definition.
12360 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
12361 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
12362 New function declaration.
12363 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
12364 * mi/mi-interp.h: New file.
12365 * solib.c (info_sharedlibrary_command): Replace for loop with
12366 ALL_SO_LIBS macro
12367 * solib.h (update_solib_list): New function declaration.
12368 (so_list_head): Move macro.
12369 * solist.h (ALL_SO_LIBS): New macro.
12370
e696b3ad
MAL
123712017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
12372
12373 * infcmd.c (post_create_inferior): Remove unused argument in
12374 call to solib_add.
12375 * remote.c (remote_start_remote): Likewise.
12376 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
12377 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
12378 (enable_break): Likewise.
12379 * solib.c (update_solib_list): Remove unused target argument
12380 and its documentation.
12381 (solib_add): Remove unused target argument. Remove unused
12382 argument in call to update_solib_list.
12383 (info_sharedlibrary_command): Remove unused argument in call
12384 to update_solib_list.
12385 (sharedlibrary_command): Remove unused argument in call to
12386 solib_add.
12387 (handle_solib_event): Likewise.
12388 (reload_shared_libraries): Likewise.
12389 * solib.h (solib_add): Remove unused target argument.
12390
dcb84eda
AA
123912017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
12392
12393 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
12394 (s390_displaced_step_fixup): Cover relative branches with the
12395 default fixup handling. This fixes lack of support for some
12396 relative branch instructions.
12397
d9cb6cdc
SM
123982017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12399
12400 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
12401 ptid from regcache.
12402
1afaf9f4
SM
124032017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12404
12405 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
12406 i386_darwin_store_inferior_registers): Use ptid from regcache.
12407
aac12e24
SM
124082017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12409
12410 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
12411 i386bsd_store_inferior_registers): Use ptid from regcache.
12412
bbe1eef1
SM
124132017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12414
12415 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
12416 hppaobsd_store_registers): Use ptid from regcache.
12417
10799020
SM
124182017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12419
12420 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
12421 hppanbsd_store_registers): Use ptid from regcache.
12422
00204cf7
SM
124232017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12424
12425 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
12426 from regcache. Use get_ptrace_pid.
12427
11a33714
SM
124282017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12429
12430 * corelow.c (get_core_register_section): Use ptid from regcache,
12431 update doc.
12432
317cd492
SM
124332017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12434
12435 * bsd-uthread.c (bsd_uthread_fetch_registers,
12436 bsd_uthread_store_registers): Use ptid from regcache, set and
12437 restore inferior_ptid.
12438
9ac8a7c2
SM
124392017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12440
12441 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
12442 fetch_fp_regs, store_register, store_regs, store_fp_register,
12443 store_fp_regs): Use ptid from regcache.
12444
4ac4bb6a
SM
124452017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12446
12447 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
12448 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
12449 store_vfp_regs): Use ptid from regcache.
12450
9bcbdca8
PA
124512017-03-17 Pedro Alves <palves@redhat.com>
12452
12453 PR remote/21188
12454 * ser-base.c (ser_base_wait_for): Add comment.
12455 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
12456 version.
12457 * ser-unix.c (hardwire_raw): Remove reference to
12458 scb->current_timeout.
12459 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
12460 (hardwire_ops): Install ser_base_readchar instead of
12461 hardwire_readchar.
12462 * serial.h (struct serial) <current_timeout, timeout_remaining>:
12463 Remove fields.
12464
7503099f
JG
124652017-03-17 Jonah Graham <jonah@kichwacoders.com>
12466
12467 PR gdb/19637
12468 * python/lib/gdb/printer/bound_registers.py: Add support for
12469 Python 3.
12470
7942e96e
AA
124712017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
12472
12473 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
12474 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
12475 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
12476 byte_offset to subobj_byte_offset. Fix the handling of
12477 DWARF_VALUE_STACK on big-endian targets when coming via an
12478 implicit pointer.
12479 (dwarf2_evaluate_loc_desc): Adjust call to
12480 dwarf2_evaluate_loc_desc_full.
12481 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
12482 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
12483
ba14f379
YQ
124842017-03-16 Yao Qi <yao.qi@linaro.org>
12485
12486 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
12487 and REVSH instructions.
12488
b121eeb9
YQ
124892017-03-16 Yao Qi <yao.qi@linaro.org>
12490
12491 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
12492 (arm_record_test): Declare.
12493 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
12494 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
12495 align with the manual.
12496 (thumb_record_misc): Adjust the code order to align with the
12497 manual.
12498 (thumb2_record_decode_insn_handler): Fix instruction matching.
12499 (instruction_reader_thumb): New class.
12500 (arm_record_test): New function.
12501
728a7913
YQ
125022017-03-16 Yao Qi <yao.qi@linaro.org>
12503
12504 * arm-tdep.c (abstract_memory_reader): New class.
12505 (instruction_reader): New class.
12506 (extract_arm_insn): Add argument 'reader'. Callers updated.
12507 (decode_insn): Likewise.
12508
34b43320
DE
125092017-03-16 Doug Evans <dje@google.com>
12510
a7c0469f
DE
12511 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
12512 member. Change type of TYPE member to SCM. All uses updated.
12513 (lsscm_make_lazy_string_smob): Add assert.
12514 (lsscm_make_lazy_string): Flag bad length values.
12515 (lsscm_elt_type): New function.
12516 (gdbscm_lazy_string_to_value): Rewrite to use
12517 lsscm_safe_lazy_string_to_value.
12518 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
12519 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
12520 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
12521 in incoming type.
12522 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12523 * guile/scm-type.c (tyscm_scm_to_type): New function.
12524
125252017-03-15 Doug Evans <dje@google.com>
12526
34b43320
DE
12527 PR python/17728, python/18439, python/18779
12528 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
12529 member. Change type of TYPE member to PyObject *. All uses updated.
12530 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
12531 (gdbpy_create_lazy_string_object): Flag bad length values.
12532 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
12533 Handle typedefs in incoming type.
12534 (stpy_lazy_string_elt_type): New function.
12535 (gdbpy_extract_lazy_string): Call it.
12536 * python/py-value.c (valpy_lazy_string): Flag bad length values.
12537 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
12538 typedefs in incoming type.
12539
a3a5fecc
DE
125402017-03-16 Doug Evans <dje@google.com>
12541
12542 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12543 * guile/scm-type.c (tyscm_scm_to_type): New function.
12544
28f1c605
JW
125452017-03-16 Jiong Wang <jiong.wang@arm.com>
12546
12547 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
12548 "ULONGEST" for "skip".
12549
87c336f6
AA
125502017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12551
12552 PR gdb/21220
12553 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
12554 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
12555 (inf_ptrace_peek_poke): ...here. New function. Now also loop
12556 over ptrace peek/poke until end of buffer or error.
12557
cf81cf60
SM
125582017-03-14 Simon Marchi <simon.marchi@ericsson.com>
12559
12560 * parse.c (length_of_subexp): Make static.
12561 * parser-defs.h (length_of_subexp): Remove.
12562
a379284a
AA
125632017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12564
12565 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
12566 as well.
12567
8a6200ba
PA
125682017-03-14 Pedro Alves <palves@redhat.com>
12569
12570 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
12571 (main): Use std::unique_ptr. Remove calls to
12572 cp_demangled_name_parse_free.
12573
f79ec206
SM
125742017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12575
12576 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
12577 alphabsd_store_inferior_registers): Use regcache->ptid instead
12578 of inferior_ptid.
12579
edb5fb00
SM
125802017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12581
12582 * aix-thread.c (aix_thread_fetch_registers,
12583 aix_thread_store_registers): Use regcache->ptid instead of
12584 inferior_ptid.
12585
55119686
SM
125862017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12587
12588 * aarch64-linux-nat.c (fetch_gregs_from_thread,
12589 store_gregs_to_thread, fetch_fpregs_from_thread,
12590 store_fpregs_to_thread): Use regcache->ptid instead of
12591 inferior_ptid.
12592
6a06fbb7
SM
125932017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12594
12595 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
12596 amd64_linux_fetch_inferior_registers): Use regcache->ptid
12597 instead of inferior_ptid.
12598
c6386875
SM
125992017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12600
12601 * target.c (target_fetch_registers, target_store_registers): Add
12602 assert.
12603
ddaaf0fb
SM
126042017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12605
12606 * regcache.h (regcache_get_ptid): New function.
12607 * regcache.c (regcache_get_ptid): New function.
12608
b9da89d1 126092017-03-13 Mark Wielaard <mark@klomp.org>
12610
12611 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
12612
5f4d1085
KS
126132017-03-10 Keith Seitz <keiths@redhat.com>
12614
12615 PR c++/8218
12616 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
12617
c65d6b55
PA
126182017-03-08 Pedro Alves <palves@redhat.com>
12619
12620 PR gdb/18360
12621 * infrun.c (start_step_over, do_target_resume, resume)
12622 (restart_threads): Assert we're not resuming a thread that is
12623 meant to be stopped.
12624 (infrun_thread_stop_requested_callback): Delete.
12625 (infrun_thread_stop_requested): If the thread is internally
12626 stopped, queue a pending stop event and clear the thread's
12627 inline-frame state.
12628 (handle_stop_requested): New function.
12629 (handle_syscall_event, handle_inferior_event_1): Use
12630 handle_stop_requested.
12631 (handle_stop_requested): New function.
12632 (handle_signal_stop): Set the thread's stop_signal here instead of
12633 at caller.
12634 (finish_step_over): Clear step over info unconditionally.
12635 (handle_signal_stop): If the user had interrupted the event
12636 thread, consider the stop a random signal.
12637 (handle_signal_stop) <signal arrived while stepping over
12638 breakpoint>: Don't restart threads here.
12639 (stop_waiting): Don't clear step-over info here.
12640
15c22686
PA
126412017-03-08 Pedro Alves <palves@redhat.com>
12642
12643 PR 21206
12644 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
12645 goes to argument 2, not 1.
12646
6e5d74e7
PA
126472017-03-08 Pedro Alves <palves@redhat.com>
12648
12649 PR cli/21218
12650 * top.c (gdb_readline_wrapper): Avoid passing NULL to
12651 display_gdb_prompt.
12652 (command_line_input): Add comment.
12653
9753a2f6
PA
126542017-03-08 Pedro Alves <palves@redhat.com>
12655
12656 PR tui/21216
12657 * tui/tui-file.c (tui_file::write): New.
12658 * tui/tui-file.h (tui_file): Override "write".
12659 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
12660 factored out from ...
12661 (tui_puts): ... here.
12662 (tui_putc): Use them.
12663 (tui_write): New function.
12664 * tui/tui-io.h (tui_write): Declare.
12665
1672e0d9
SDJ
126662017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
12667
12668 * Makefile.in (SFILES): Replace "environ.c" with
12669 "common/environ.c".
12670 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
12671 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
12672 to...
12673 * common/environ.c: ... here.
12674 * environ.h: Moved to...
12675 * common/environ.h: ... here.
12676
f7bb4e3a
PB
126772017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12678
12679 * gdbarch.sh (pstring_ptr): New static function.
12680 (gdbarch_disassembler_options): Use it.
12681 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
12682 not valid_disassembler_option->name.
12683 * gdbarch.c: Regenerate.
12684
e45ced6c
PB
126852017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12686
12687 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
12688
5f6fd321
PA
126892017-03-07 Pedro Alves <palves@redhat.com>
12690
12691 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
12692
6dbb839a 126932017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
12694
12695 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12696 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
12697 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 12698 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 12699
d274ecf4
SM
127002017-03-06 Simon Marchi <simon.marchi@ericsson.com>
12701
12702 * xtensa-linux-nat.c (fetch_gregs): Remove const.
12703
df97be55
SM
127042017-03-03 Simon Marchi <simon.marchi@ericsson.com>
12705
12706 * remote.c (remote_add_target_side_commands): Use range-based
12707 for loop.
12708
7d45f3df
YQ
127092017-03-03 Yao Qi <yao.qi@linaro.org>
12710
12711 PR gdb/21165
12712 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
12713 value is lazy.
12714 * valprint.c (common_val_print): Likewise.
12715
65b48a81
PB
127162017-02-28 Peter Bergner <bergner@vnet.ibm.com>
12717
12718 * NEWS: Mention new set/show disassembler-options commands.
12719 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
12720 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
12721 (prospective_options): New static variable.
12722 (gdb_disassembler::gdb_disassembler): Initialize
12723 m_di.disassembler_options.
12724 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
12725 (get_disassembler_options): New function.
12726 (set_disassembler_options): Likewise.
12727 (set_disassembler_options_sfunc): Likewise.
12728 (show_disassembler_options_sfunc): Likewise.
12729 (disassembler_options_completer): Likewise.
12730 (_initialize_disasm): Likewise.
12731 * disasm.h (get_disassembler_options): New prototype.
12732 (set_disassembler_options): Likewise.
12733 * gdbarch.sh (gdbarch_disassembler_options): New variable.
12734 (gdbarch_verify_disassembler_options): Likewise.
12735 * gdbarch.c: Regenerate.
12736 * gdbarch.h: Likewise.
12737 * arm-tdep.c (num_disassembly_options): Delete.
12738 (set_disassembly_style): Likewise.
12739 (arm_disassembler_options): New static variable.
12740 (set_disassembly_style_sfunc): Convert short style name into long
12741 option name. Call set_disassembler_options.
12742 (show_disassembly_style_sfunc): New function.
12743 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
12744 set_gdbarch_verify_disassembler_options.
12745 (_initialize_arm_tdep): Delete regnames variable and update callers.
12746 (arm_disassembler_options): Initialize.
12747 (disasm_options): New variable.
12748 (num_disassembly_options): Rename from this...
12749 (num_disassembly_styles): ...to this. Compute by scanning through
12750 disasm_options.
12751 (valid_disassembly_styles): Initialize using disasm_options.
12752 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12753 set_arm_regname_option.
12754 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12755 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12756 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12757 set_gdbarch_verify_disassembler_options.
12758 * s390-tdep.c (s390_disassembler_options): New static variable.
12759 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12760 set_gdbarch_verify_disassembler_options.
12761
d538e36d
SM
127622017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12763
12764 * remote.c (remote_add_target_side_condition): Remove "struct"
12765 keyword from range-based for loop.
12766
83621223
SM
127672017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12768
12769 * remote.c (remote_add_target_side_condition): Use range-based
12770 for loop. Update comment.
12771
2123df0e
YQ
127722017-02-27 Yao Qi <yao.qi@linaro.org>
12773
12774 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12775
8e368124
AH
127762017-02-26 Alan Hayward <alan.hayward@arm.com>
12777
12778 * regcache.c (regcache_raw_update): New function.
12779 (regcache_raw_read): Move code to regcache_raw_update.
12780 * regcache.h (regcache_raw_update): New declaration.
12781 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12782
a49dd8dd
JK
127832017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12784
12785 * dwarf2read.c (create_debug_type_hash_table): Initialize
12786 header.signature and header.type_offset_in_tu.
12787
34e4bae9
PA
127882017-02-24 Pedro Alves <palves@redhat.com>
12789
12790 * symtab.c (make_file_symbol_completion_list_1): Use
12791 add_symtab_completions.
12792
b0e4b369
AH
127932017-02-24 Alan Hayward <alan.hayward@arm.com>
12794
12795 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12796
975c21ab
AH
127972017-02-24 Alan Hayward <alan.hayward@arm.com>
12798
12799 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12800 I386_MAX_REGISTER_SIZE.
12801 (i386_pseudo_register_write): Likewise.
12802 (i386_process_record): Likewise.
12803 * i387-tdep.c (i387_supply_xsave): Likewise.
12804 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12805 (store_register): Likewise.
12806
14bc53a8
PA
128072017-02-23 Pedro Alves <palves@redhat.com>
12808
12809 * ada-lang.c: Include "common/function-view.h".
12810 (ada_iterate_over_symbols): Adjust to use function_view as
12811 callback type.
12812 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12813 (ada_make_symbol_completion_list): Use a lambda.
12814 (ada_exc_search_name_matches): Delete.
12815 (name_matches_regex): New.
12816 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12817 * compile/compile-c-support.c: Include "common/function-view.h".
12818 (print_one_macro): Change prototype to accept a ui_file pointer.
12819 (write_macro_definitions): Use a lambda.
12820 * dwarf2read.c: Include "common/function-view.h".
12821 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12822 (dw2_expand_symtabs_matching): Adjust to use function_view as
12823 callback type.
12824 * language.h: Include "common/function-view.h".
12825 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12826 function_view as callback type.
12827 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12828 * linespec.c: Include "common/function-view.h".
12829 (collect_info::add_symbol): New method.
12830 (struct symbol_and_data_callback, iterate_inline_only, struct
12831 symbol_matcher_data, iterate_name_matcher): Delete.
12832 (iterate_over_all_matching_symtabs): Adjust to use function_view
12833 as callback type and lambdas.
12834 (iterate_over_file_blocks): Adjust to use function_view as
12835 callback type.
12836 (decode_compound_collector): Now a class with private fields.
12837 (decode_compound_collector::release_symbols): New method.
12838 (collect_one_symbol): Rename to...
12839 (decode_compound_collector::operator()): ... this and adjust.
12840 (lookup_prefix_sym): decode_compound_collector construction bits
12841 move to decode_compound_collector ctor. Pass the
12842 decode_compound_collector object directly as callback. Remove
12843 cleanups and use decode_compound_collector::release_symbols
12844 instead.
12845 (symtab_collector): Now a class with private fields.
12846 (symtab_collector::release_symtabs): New method.
12847 (add_symtabs_to_list): Rename to...
12848 (symtab_collector::operator()): ... this and adjust.
12849 (collect_symtabs_from_filename): symtab_collector construction
12850 bits move to symtab_collector ctor. Pass the symtab_collector
12851 object directly as callback. Remove cleanups and use
12852 symtab_collector::release_symtabs instead.
12853 (collect_symbols): Delete.
12854 (add_matching_symbols_to_info): Use lambdas.
12855 * macrocmd.c (print_macro_callback): Delete.
12856 (info_macro_command): Use a lambda.
12857 (info_macros_command): Pass print_macro_definition as callable
12858 directly.
12859 (print_one_macro): Remove 'ignore' parameter.
12860 (macro_list_command): Adjust.
12861 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12862 (macro_for_each_data::user_data): Delete field.
12863 (foreach_macro): Adjust to call the function_view.
12864 (macro_for_each): Adjust to use function_view as callback type.
12865 (foreach_macro_in_scope): Adjust to call the function_view.
12866 (macro_for_each_in_scope): Adjust to use function_view as callback
12867 type.
12868 * macrotab.h: Include "common/function-view.h".
12869 (macro_callback_fn): Declare a prototype instead of a pointer.
12870 Remove "user_data" parameter.
12871 (macro_for_each, macro_for_each_in_scope): Adjust to use
12872 function_view as callback type.
12873 * psymtab.c (partial_map_expand_apply)
12874 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12875 Adjust to use function_view as callback type and to return bool.
12876 (psym_expand_symtabs_matching): Adjust to use function_view as
12877 callback types.
12878 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12879 to use function_view as callback type and to return bool.
12880 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12881 callback types.
12882 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12883 as callback types.
12884 * symfile.h: Include "common/function-view.h".
12885 (expand_symtabs_file_matcher_ftype)
12886 (expand_symtabs_symbol_matcher_ftype)
12887 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12888 return bool.
12889 (quick_symbol_functions::map_symtabs_matching_filename)
12890 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12891 function_view as callback type and return bool.
12892 (expand_symtabs_matching): Adjust to use function_view as callback
12893 type.
12894 (maintenance_expand_name_matcher)
12895 (maintenance_expand_file_matcher): Delete.
12896 (maintenance_expand_symtabs): Use lambdas.
12897 * symtab.c (iterate_over_some_symtabs): Adjust to use
12898 function_view as callback types and return bool.
12899 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12900 of a cleanup.
12901 (lookup_symtab_callback): Delete.
12902 (lookup_symtab): Use a lambda.
12903 (iterate_over_symbols): Adjust to use function_view as callback
12904 type.
12905 (struct search_symbols_data, search_symbols_file_matches)
12906 (search_symbols_name_matches): Delete.
12907 (search_symbols): Use a pair of lambdas.
12908 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12909 (symtab_expansion_callback): Delete.
12910 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12911 * symtab.h: Include "common/function-view.h".
12912 (iterate_over_some_symtabs): Adjust to use function_view as
12913 callback type and return bool.
12914 (iterate_over_symtabs): Adjust to use function_view as callback
12915 type.
12916 (symbol_found_callback_ftype): Remove 'data' parameter and return
12917 bool.
12918 (iterate_over_symbols): Adjust to use function_view as callback
12919 type.
12920
07e253aa
PA
129212017-02-23 Pedro Alves <palves@redhat.com>
12922
12923 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12924 (%.o) <unittests/%.c>: New pattern.
12925 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12926 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12927 * common/function-view.h: New file.
12928 * unittests/function-view-selftests.c: New file.
12929 * configure: Regenerate.
12930
8eaf5320
SM
129312017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12932
12933 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12934 inferior_ptid.
12935 * go32-nat.c (go32_thread_alive): Likewise.
12936
38768751
YQ
129372017-02-23 Yao Qi <yao.qi@linaro.org>
12938
12939 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12940 delete.
12941
0a8beaba
YQ
129422017-02-23 Yao Qi <yao.qi@linaro.org>
12943
12944 * varobj.c (varobj_clear_saved_item): Use delete instead of
12945 xfree.
12946 (update_dynamic_varobj_children): Likewise.
12947
58fdfd2c
JK
129482017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12949
12950 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12951
1b90b139
SM
129522017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12953
12954 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12955 m_enum_value to 0 in default constructor.
12956
2039d74e
EBM
129572017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12958
12959 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12960 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12961 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12962 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12963 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12964 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12965 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12966 IS_STORE_CONDITIONAL_INSN.
12967
7814882a
JK
129682017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12969
12970 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12971
0ae60b63
JK
129722017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12973
12974 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12975
0224619f
JK
129762017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12977
12978 * dwarf2read.c (skip_one_die, read_attribute_value)
12979 (dwarf2_const_value_attr, dump_die_shallow)
12980 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12981 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12982
0af92d60
JK
129832017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12984
12985 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12986 (dwarf_parse_macro_header): Accept DWARF version 5.
12987 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12988
216f72a1
JK
129892017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12990
12991 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12992 DW_AT_GNU_*.
12993 * common/common-exceptions.h (enum errors): Likewise.
12994 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12995 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12996 (dwarf_expr_context::execute_stack_op): Likewise.
12997 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12998 Likewise.
12999 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
13000 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13001 (show_entry_values_debug, call_site_to_target_addr)
13002 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
13003 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
13004 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
13005 (value_of_dwarf_block_entry, indirect_pieced_value)
13006 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
13007 (disassemble_dwarf_expression): Likewise.
13008 * dwarf2read.c (process_die, inherit_abstract_dies)
13009 (read_call_site_scope): Likewise.
13010 * gdbtypes.h (struct func_type, struct call_site_parameter)
13011 (struct call_site): Likewise.
13012 * stack.c (read_frame_arg): Likewise.
13013 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
13014
43988095
JK
130152017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13016
13017 * defs.h (read_unsigned_leb128): New declaration.
13018 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
13019 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
13020 (dwarf2_find_location_expression): Call also
13021 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
13022 * dwarf2loc.h (dwarf2_version): New declaration.
13023 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
13024 rnglists.
13025 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
13026 .debug_rnglists.
13027 (struct dwop_section_names): Add loclists_dwo.
13028 (dwop_section_names): Add .debug_loclists.dwo.
13029 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
13030 (struct dwarf2_per_cu_data): Add dwarf_version.
13031 (struct dwo_sections): Add loclists.
13032 (struct attr_abbrev): Add implicit_const.
13033 (read_indirect_line_string): New declaration.
13034 (read_unsigned_leb128): Delete declaration.
13035 (rcuh_kind): New definition.
13036 (read_and_check_comp_unit_head): Change parameter
13037 is_debug_types_section to section_kind.
13038 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
13039 (read_comp_unit_head): Change parameter abfd to section, add parameter
13040 section_kind. Handle DWARF-5.
13041 (error_check_comp_unit_head): Accept also DWARF version 5.
13042 (read_and_check_comp_unit_head): Change parameter
13043 is_debug_types_section to section_kind.
13044 (read_and_check_type_unit_head): Delete function.
13045 (read_abbrev_offset): Handle DWARF-5.
13046 (create_debug_type_hash_table): Add parameter section_kind. Process
13047 only DW_UT_type. Use signature and type_offset_in_tu from struct
13048 comp_unit_head.
13049 (create_debug_types_hash_table): Update create_debug_type_hash_table
13050 caller.
13051 (create_all_type_units): Call create_debug_type_hash_table.
13052 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
13053 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
13054 caller.
13055 (skip_one_die): Handle DW_FORM_implicit_const.
13056 (dwarf2_rnglists_process): New function.
13057 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
13058 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
13059 (read_attribute_value): Handle DW_FORM_implicit_const,
13060 DW_FORM_line_strp.
13061 (read_attribute): Handle DW_FORM_implicit_const.
13062 (read_indirect_string_at_offset_from): New function from
13063 read_indirect_string_at_offset.
13064 (read_indirect_string_at_offset): Call
13065 read_indirect_string_at_offset_from.
13066 (read_indirect_line_string_at_offset): New function.
13067 (read_indirect_string): New function comment.
13068 (read_indirect_line_string): New function.
13069 (read_unsigned_leb128): Make it global.
13070 (dwarf2_string_attr): Handle DWARF-5.
13071 (add_include_dir_stub, read_formatted_entries): New functions.
13072 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
13073 Handle DWARF-5.
13074 (per_cu_header_read_in): Update read_comp_unit_head caller.
13075 (dwarf2_version): New function.
13076 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
13077 rnglists.
13078 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
13079 fields.
13080
22d2f3ab
JK
130812017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13082
13083 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
13084
5f46c5a5
JK
130852017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13086
13087 * dwarf2read.c (dwarf2_ranges_process): New function from
13088 dwarf2_ranges_read.
13089 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
13090 dwarf2_ranges_process.
13091
78d4d2c5
JK
130922017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13093
13094 * dwarf2read.c (create_debug_type_hash_table): New function from
13095 create_debug_types_hash_table.
13096 (create_debug_types_hash_table): Call create_debug_type_hash_table.
13097 (create_all_type_units, open_and_init_dwo_file): Update
13098 create_debug_types_hash_table callers.
13099
1b076f25
SDJ
131002017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13101
13102 PR gdb/16188
13103 * fork-child.c (trace_start_error): Fix thinko. va_end should
13104 refer to 'ap', not 'args'.
13105
0db8980c
SDJ
131062017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13107 Pedro Alves <palves@redhat.com>
13108
13109 PR gdb/16188
13110 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
13111 calls succeeded.
13112 * fork-child.c (trace_start_error): New function.
13113 (trace_start_error_with_name): Likewise.
13114 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
13115 * inf-ptrace.c (inf_ptrace_me): Likewise.
13116 * inferior.h (trace_start_error): New prototype.
13117 (trace_start_error_with_name): Likewise.
13118
99e8a4f9
SDJ
131192017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
13120
13121 PR gdb/21164
13122 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
13123 NULL before using it.
13124 * symmisc.c (maintenance_print_symbols): Likewise.
13125 (maintenance_print_msymbols): Likewise.
13126
4e746bb6
TW
131272017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13128
13129 * NEWS: Add record Python bindings entry.
13130
131312017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13132
13133 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
13134 py-record-full.o.
13135 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
13136 * python/py-record-btrace.c, python/py-record-btrace.h,
13137 python/py-record-full.c, python/py-record-full.h: New file.
13138 * python/py-record.c: Add include for py-record-btrace.h and
13139 py-record-full.h.
13140 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
13141 recpy_instruction_history, recpy_function_call_history, recpy_begin,
13142 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
13143 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
13144 New definition.
13145 (gdbpy_initialize_btrace): New export.
13146 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
13147
131482017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13149
13150 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
13151 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
13152 * python/py-record.c: New file.
13153 * python/python-internal.h (gdbpy_start_recording,
13154 gdbpy_current_recording, gdpy_stop_recording,
13155 gdbpy_initialize_record): New export.
13156 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
13157 (python_GdbMethods): Add gdbpy_start_recording,
13158 gdbpy_current_recording and gdbpy_stop_recording.
13159
131602017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13161
13162 * record-btrace.c (record_btrace_record_method): New function.
13163 (init_record_btrace_ops): Initialize to_record_method.
13164 * record-full.c (record_full_record_method): New function.
13165 (init_record_full_ops, init_record_full_core_ops): Add
13166 record_full_record_method.
13167 * record.h (enum record_method): New enum.
13168 * target-debug.h (target_debug_print_enum_record_method: New define.
13169 * target-delegates.c: Regenerate.
13170 * target.c (target_record_method): New function.
13171 * target.h: Include record.h.
13172 (struct target_ops) <to_record_method>: New field.
13173 (target_record_method): New export.
13174
131752017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13176
13177 * record.h (record_start, record_stop): New export.
13178 * record.c (record_start, record_stop): New function.
13179
131802017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13181
13182 * btrace.c (btrace_fetch): Copy function call segments pointer
13183 into a vector.
13184 (btrace_clear): Clear the vector.
13185 (btrace_find_insn_by_number): Use binary search to find the correct
13186 function call segment.
13187 * btrace.h (brace_fun_p): New typedef.
13188 (struct btrace_thread_info) <functions>: New field.
13189
131902017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13191
13192 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
13193 * btrace.c (btrace_decode_error): ... here. New function.
13194 * btrace.h (btrace_decode_error): New export.
13195
131962017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13197
13198 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
13199 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
13200 btrace_find_insn_by_number): Remove special case for gaps.
13201 * btrace.h (btrace_insn_get_error): New export.
13202 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
13203 * record-btrace.c (btrace_insn_history): Print number for gaps.
13204 (record_btrace_info, record_btrace_goto): Handle gaps.
13205
3f77c769
TT
132062017-02-14 Tom Tromey <tom@tromey.com>
13207
13208 PR python/13598:
13209 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
13210 event.
13211 * python/py-evts.c (gdbpy_initialize_py_events): Add
13212 before_prompt registry.
13213 * python/py-events.h (events_object) <before_prompt>: New field.
13214
4c2c7ac6
MM
132152017-02-14 Markus Metzger <markus.t.metzger@intel.com>
13216
13217 * btrace.c (ftrace_new_switch): Preserve up link and flags.
13218
5cf30ebf
LM
132192017-02-13 Luis Machado <lgustavo@codesourcery.com>
13220
13221 * symfile (_initialize_symfile): Add usage text to the load command's
13222 help text.
13223
26a06916
SM
132242017-02-10 Simon Marchi <simon.marchi@ericsson.com>
13225
13226 * utils.c (defaulted_query): Don't query on secondary UIs.
13227
0b145e37
TT
132282017-02-10 Tom Tromey <tom@tromey.com>
13229
13230 * rust-lang.c (rust_get_disr_info): Remove unused variable.
13231
2d8365c4
TT
132322017-02-10 Tom Tromey <tom@tromey.com>
13233
13234 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
13235 "cleanup" local.
13236 * python/py-type.c (typy_legacy_template_argument): Remove
13237 unnecessary "cleanup" local.
13238
2bb8f231
TT
132392017-02-10 Tom Tromey <tom@tromey.com>
13240
13241 * python/python.c (do_start_initialization): New function, from
13242 _initialize_python.
13243 (_initialize_python): Call do_start_initialization.
13244 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
13245 goto.
13246
1bdfaf42
TT
132472017-02-10 Tom Tromey <tom@tromey.com>
13248
13249 * python/py-prettyprint.c (pretty_print_one_value): Use
13250 gdbpy_ref.
13251
88b6faea
TT
132522017-02-10 Tom Tromey <tom@tromey.com>
13253
13254 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
13255 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
13256 gdbpy_ref.
13257 * python/py-type.c (field_new): Use gdbpy_ref.
13258 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
13259 gdbpy_ref.
13260 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
13261 (py_free_pspace): Likewise.
13262 (pspace_to_pspace_object): Likewise.
13263 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
13264 (py_free_objfile): Likewise.
13265 (objfile_to_objfile_object): Likewise.
13266 * python/py-inferior.c (delete_thread_object): Use
13267 gdbpy_ref.
13268 (infpy_read_memory): Likewise.
13269 (py_free_inferior): Likewise.
13270 * python/py-evtregistry.c (create_eventregistry_object): Use
13271 gdbpy_ref.
13272 * python/py-event.c (create_event_object): Use gdbpy_ref.
13273
7780f186
TT
132742017-02-10 Tom Tromey <tom@tromey.com>
13275
13276 * python/py-ref.h (gdbpy_ref_policy): Now a template.
13277 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
13278 used.
13279 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
13280 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
13281 python/py-exitedevent.c, python/py-finishbreakpoint.c,
13282 python/py-framefilter.c, python/py-function.c,
13283 python/py-inferior.c, python/py-infevents.c,
13284 python/py-linetable.c, python/py-newobjfileevent.c,
13285 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
13286 python/py-signalevent.c, python/py-stopevent.c,
13287 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
13288 python/py-unwind.c, python/py-utils.c, python/py-value.c,
13289 python/py-varobj.c, python/py-xmethods.c, python/python.c,
13290 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
13291
d4b0bb18
TT
132922017-02-10 Tom Tromey <tom@tromey.com>
13293
13294 * ui-out.h (ui_out_emit_type): New class.
13295 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
13296 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
13297 and ui_out_emit_tuple.
13298 (enumerate_locals): Likewise.
13299 (py_mi_print_variables, py_print_locals, py_print_args): Use
13300 ui_out_emit_list.
13301 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
13302 ui_out_emit_list.
13303 * common/gdb_optional.h: New file.
13304
f67f945c
MG
133052017-02-10 Martin Galvan <martingalvan@sourceware.org>
13306
13307 * MAINTAINERS (Write After Approval): Update my e-mail address.
13308
18da0c51
MG
133092017-02-10 Martin Galvan <martingalvan@sourceware.org>
13310
13311 PR gdb/21122
13312 * breakpoint.c (_initialize_breakpoint): Update the help description
13313 of the 'commands' command to indicate that it takes a list argument.
13314
62c14536
SM
133152017-02-09 Simon Marchi <simon.marchi@ericsson.com>
13316
13317 * interps.c (current_interp_set_logging): Remove "return".
13318
ff6fa247
GB
133192017-02-09 Gary Benson <gbenson@redhat.com>
13320
13321 * symtab.c (add_symtab_completions): Prevent NULL pointer
13322 dereference.
13323
a474bd8e
PA
133242017-02-08 Pedro Alves <palves@redhat.com>
13325
13326 * interps.c (interp::interp): Remove reference to quiet_p.
13327 (interp_set): Make static. Remove dead "Switching to" output
13328 code.
13329 (interp_quiet_p, interp_set_quiet): Delete.
13330 (interpreter_exec_cmd): Don't set the interpreter quiet.
13331 * interps.h (interp_quiet_p): Make static.
13332 (class interp) <quiet_p>: Remove field
13333
3d7b173c
JG
133342017-02-08 Jerome Guitton <guitton@adacore.com>
13335
604c4576
JG
13336 * cli/cli-decode.c (find_command_name_length): Make it extern.
13337 * cli/cli-decode.h (find_command_name_length): Declare.
13338 * cli/cli-script.c (command_name_equals, line_first_arg):
13339 New functions.
13340 (process_next_line): Use cli-decode to parse command names.
13341 (build_command_line): Make args a constant pointer.
13342
133432017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 13344
3d7b173c
JG
13345 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
13346 Remove case-insensitive search.
13347
1291063d
JM
133482017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
13349
13350 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
13351 at the end of the line. Avoids an ARI warning.
13352
20b477a7
LM
133532017-02-06 Luis Machado <lgustavo@codesourcery.com>
13354
13355 * NEWS: Mention support for record/replay of Intel 64 rdrand and
13356 rdseed instructions.
13357 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
13358
3f7b46f2
IR
133592017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
13360
13361 PR tdep/20936
13362 Provide and use sparc32 and sparc64 target description XML files.
13363 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
13364 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
13365 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
13366 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
13367 * features/sparc/sparc32-solaris.xml: New file.
13368 * features/sparc/sparc64-solaris.xml: New file.
13369 * features/sparc/sparc32-solaris.c: Generated.
13370 * features/sparc/sparc64-solaris.c: Generated.
13371 * sparc-tdep.h: Account for differences in target descriptions.
13372 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
13373 (sparc32_register_type): Use target provided registers.
13374 (validate_tdesc_registers): New function.
13375 (sparc32_gdbarch_init): Use tdesc_has_registers.
13376 Set pseudoregister functions.
13377 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
13378 (sparc64_register_type): Use target provided registers.
13379 (sparc64_init_abi): Set pseudoregister functions.
13380
f0fd41c1
TT
133812017-02-03 Tom Tromey <tom@tromey.com>
13382
13383 PR rust/21097:
13384 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
13385 with a single member.
13386
d6f9b0fb
PA
133872017-02-03 Pedro Alves <palves@redhat.com>
13388
13389 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
13390 (cli_interp_base::~cli_interp_base): New.
13391 (cli_interp): New struct.
13392 (as_cli_interp): Cast the interp itself to cli_interp.
13393 (cli_interpreter_pre_command_loop): Rename to ...
13394 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
13395 parameter.
13396 (cli_interpreter_init): Rename to ...
13397 (cli_interp::init): ... this. Remove 'self' parameter. Use
13398 boolean. Make extern.
13399 (cli_interpreter_resume): Rename to ...
13400 (cli_interp::resume): ... this. Remove 'data' parameter. Make
13401 extern.
13402 (cli_interpreter_suspend): Rename to ...
13403 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
13404 extern.
13405 (cli_interpreter_exec): Rename to ...
13406 (cli_interp::exec): ... this. Remove 'data' parameter. Make
13407 extern.
13408 (cli_interpreter_supports_command_editing): Rename to ...
13409 (cli_interp_base::supports_command_editing): ... this. Remove
13410 'interp' parameter. Make extern.
13411 (cli_ui_out): Rename to ...
13412 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
13413 Make extern.
13414 (cli_set_logging): Rename to ...
13415 (cli_interp_base::set_logging): ... this. Remove 'interp'
13416 parameter. Make extern.
13417 (cli_interp_procs): Delete.
13418 (cli_interp_factory): Adjust to use "new".
13419 * cli/cli-interp.h: Include "interps.h".
13420 (struct cli_interp_base): New struct.
13421 * interps.c (struct interp): Delete. Fields moved to interps.h.
13422 (interp_new): Delete.
13423 (interp::interp, interp::~interp): New.
13424 (interp_set): Use bool, and return void. Assume the interpreter
13425 has suspend, init and resume methods, and that the all return
13426 void.
13427 (set_top_level_interpreter): interp_set returns void.
13428 (interp_ui_out): Adapt.
13429 (current_interp_set_logging): Adapt.
13430 (interp_data): Delete.
13431 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
13432 (interp_exec): Adapt.
13433 (top_level_interpreter_data): Delete.
13434 * interps.h (interp_init_ftype, interp_resume_ftype)
13435 (interp_suspend_ftype, interp_exec_ftype)
13436 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
13437 (class interp): New.
13438 (interp_new): Delete.
13439 (interp_set): Now returns void. Use bool.
13440 (interp_data, top_level_interpreter_data): Delete.
13441 * mi/mi-common.h: Include interps.h.
13442 (class mi_interp): Inherit from interp. Define a ctor. Declare
13443 init, resume, suspect, exec, interp_ui_out, set_logging and
13444 pre_command_loop methods.
13445 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
13446 (mi_interpreter_init): Rename to ...
13447 (mi_interp::init): ... this. Remove the 'interp' parameter, use
13448 bool, return void and make extern. Adjust.
13449 (mi_interpreter_resume): ... Rename to ...
13450 (mi_interp::resume): ... this. Remove the 'data' parameter,
13451 return void and make extern. Adjust.
13452 (mi_interpreter_suspend): ... Rename to ...
13453 (mi_interp::suspend): ... this. Remove the 'data' parameter,
13454 return void and make extern. Adjust.
13455 (mi_interpreter_exec): ... Rename to ...
13456 (mi_interp::exec): ... this. Remove the 'data' parameter and make
13457 extern. Adjust.
13458 (mi_interpreter_pre_command_loop): ... Rename to ...
13459 (mi_interp::pre_command_loop): ... this. Remove the 'self'
13460 parameter and make extern.
13461 (mi_on_normal_stop_1): Adjust.
13462 (mi_ui_out): Rename to ...
13463 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
13464 parameter and make extern. Adjust.
13465 (mi_set_logging): Rename to ...
13466 (mi_interp::set_logging): ... this. Remove the 'interp'
13467 parameter and make extern. Adjust.
13468 (mi_interp_procs): Delete.
13469 (mi_interp_factory): Adjust to use 'new'.
13470 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
13471 (mi_print_exception, mi_execute_command, mi_load_progress):
13472 Adjust.
13473 * tui/tui-interp.c (tui_interp): New class.
13474 (as_tui_interp): Return a tui_interp pointer.
13475 (tui_on_normal_stop, tui_on_signal_received)
13476 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
13477 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
13478 to use interp::interp_ui_out.
13479 (tui_init): Rename to ...
13480 (tui_interp::init): ... this. Remove the 'self' parameter, use
13481 bool, return void and make extern. Adjust.
13482 (tui_resume): Rename to ...
13483 (tui_interp::resume): ... this. Remove the 'data' parameter,
13484 return void and make extern. Adjust.
13485 (tui_suspend): Rename to ...
13486 (tui_interp::suspend): ... this. Remove the 'data' parameter,
13487 return void and make extern. Adjust.
13488 (tui_ui_out): Rename to ...
13489 (tui_interp::interp_ui_out): ... this. Remove the 'self'
13490 parameter, and make extern. Adjust.
13491 (tui_exec): Rename to ...
13492 (tui_interp::exec): ... this. Remove the 'data' parameter and
13493 make extern.
13494 (tui_interp_procs): Delete.
13495 (tui_interp_factory): Use "new".
13496
65c40c95
TT
134972017-02-02 Tom Tromey <tom@tromey.com>
13498
13499 * rust-exp.y (ends_raw_string, space_then_number)
13500 (rust_identifier_start_p): Return bool.
13501 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
13502 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
13503 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
13504 (rust_chartype_p): Return bool.
13505 (val_print_struct, rust_print_struct_def, rust_print_type):
13506 Update.
13507 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
13508 Return bool.
13509
b50f188d
TT
135102017-02-02 Tom Tromey <tom@tromey.com>
13511
13512 * rust-lang.c: Reindent.
13513
03c85b11
TT
135142017-02-02 Tom Tromey <tom@tromey.com>
13515
13516 * rust-lang.h (rust_crate_for_block): Update.
13517 * rust-lang.c (rust_crate_for_block): Return std::string.
13518 (rust_get_disr_info): Use std:;string, not
13519 gdb::unique_xmalloc_ptr.
13520 * rust-exp.y (crate_name): Update.
13521
9b6da501
PA
135222017-02-02 Pedro Alves <palves@redhat.com>
13523
13524 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
13525 field out of gdb_disassembler_test and make it static.
13526
ec4cb20b
PA
135272017-02-02 Pedro Alves <palves@redhat.com>
13528
13529 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
13530 mi1_interp and mi_interp fields.
13531
5be5dbf0
PA
135322017-02-02 Pedro Alves <palves@redhat.com>
13533
616268b6
PA
13534 * cli/cli-interp.c (struct saved_output_files, saved_output):
13535 Moved from cli/cli-logging.c.
13536 (cli_set_logging): New function.
13537 (cli_interp_procs): Install cli_set_logging.
13538 * cli/cli-interp.h (make_logging_output, cli_set_logging):
13539 Declare.
13540 * cli/cli-logging.c (struct saved_output_files, saved_output):
13541 Moved to cli/cli-interp.c.
13542 (pop_output_files): Don't save outputs here.
13543 (make_logging_output): New function.
13544 (handle_redirections): Don't build tee nor save previous outputs
13545 here.
13546 * interps.c (current_interp_set_logging): Change prototype.
13547 Assume there's always a set_logging_proc method installed.
13548 * interps.h (interp_set_logging_ftype): Change prototype.
13549 (current_interp_set_logging): Change prototype and adjust comment.
13550 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
13551 use make_logging_output.
13552 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
135532017-02-02 Pedro Alves <palves@redhat.com>
13554
5be5dbf0
PA
13555 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
13556 from ...
13557 (set_logging_overwrite): ... here.
13558 (logging_no_redirect_file): Delete.
13559 (set_logging_redirect): Don't handle redirection on the fly.
13560 Instead warn that "logging off" / "logging on" is necessary.
13561 (pop_output_files): Delete references to logging_no_redirect_file.
13562 (show_logging_command): Always speak in terms of what will happen
13563 once logging is reenabled.
13564
c99cc448
PA
135652017-02-02 Pedro Alves <palves@redhat.com>
13566
13567 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
13568
8b172ce7
PA
135692017-02-02 Pedro Alves <palves@redhat.com>
13570
13571 * disasm.c (gdb_pretty_print_insn): Rename to ...
13572 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
13573 Remove gdbarch parameter. Adapt to clear the object's buffers
13574 instead of allocating new buffers, and to print using the object's
13575 gdb_disassembler instead of calling gdb_print_insn.
13576 (dump_insns): Use gdb_pretty_print_disassembler.
13577 * disasm.h (gdb_pretty_print_insn): Delete declaration.
13578 (gdb_pretty_print_disassembler): New class.
13579 * record-btrace.c (btrace_insn_history): Use
13580 gdb_pretty_print_disassembler.
13581
d7e74731
PA
135822017-02-02 Pedro Alves <palves@redhat.com>
13583
13584 * ada-lang.c (type_as_string): Use string_file.
13585 * ada-valprint.c (ada_print_floating): Use string_file.
13586 * ada-varobj.c (ada_varobj_scalar_image)
13587 (ada_varobj_get_value_image): Use string_file.
13588 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
13589 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
13590 * breakpoint.c (update_inserted_breakpoint_locations)
13591 (insert_breakpoint_locations, reattach_breakpoints)
13592 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
13593 (print_it_watchpoint): Use string_file.
13594 (save_breakpoints): Use stdio_file.
13595 * c-exp.y (oper): Use string_file.
13596 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
13597 tee_file.
13598 (pop_output_files): Use delete.
13599 (handle_redirections): Use stdio_file and tee_file.
13600 * cli/cli-setshow.c (do_show_command): Use string_file.
13601 * compile/compile-c-support.c (c_compute_program): Use
13602 string_file.
13603 * compile/compile-c-symbols.c (generate_vla_size): Take a
13604 'string_file &' instead of a 'ui_file *'.
13605 (generate_c_for_for_one_variable): Take a 'string_file &' instead
13606 of a 'ui_file *'. Use string_file.
13607 (generate_c_for_variable_locations): Take a 'string_file &'
13608 instead of a 'ui_file *'.
13609 * compile/compile-internal.h (generate_c_for_for_one_variable):
13610 Take a 'string_file &' instead of a 'ui_file *'.
13611 * compile/compile-loc2c.c (push, pushf, unary, binary)
13612 (print_label, pushf_register_address, pushf_register)
13613 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
13614 'ui_file *'. Adjust.
13615 * compile/compile.c (compile_to_object): Use string_file.
13616 * compile/compile.h (compile_dwarf_expr_to_c)
13617 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
13618 'ui_file *'.
13619 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
13620 (replace_typedefs_qualified_name): Use string_file and
13621 obstack_copy0.
13622 * disasm.c (gdb_pretty_print_insn): Use string_file.
13623 (gdb_disassembly): Adjust reference the null_stream global.
13624 (do_ui_file_delete): Delete.
13625 (gdb_insn_length): Use null_stream.
13626 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
13627 * dwarf2loc.c (dwarf2_compile_property_to_c)
13628 (locexpr_generate_c_location, loclist_generate_c_location): Take a
13629 'string_file &' instead of a 'ui_file *'.
13630 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
13631 * dwarf2read.c (do_ui_file_peek_last): Delete.
13632 (dwarf2_compute_name): Use string_file.
13633 * event-top.c (gdb_setup_readline): Use stdio_file.
13634 * gdbarch.sh (verify_gdbarch): Use string_file.
13635 * gdbtypes.c (safe_parse_type): Use null_stream.
13636 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
13637 string_file.
13638 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
13639 'string_file *' instead of a 'ui_file *'.
13640 (gdbscm_arch_disassemble): Use string_file.
13641 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
13642 * guile/scm-ports.c (class ioscm_file_port): Now a class that
13643 inherits from ui_file.
13644 (ioscm_file_port_delete, ioscm_file_port_rewind)
13645 (ioscm_file_port_put): Delete.
13646 (ioscm_file_port_write): Rename to ...
13647 (ioscm_file_port::write): ... this. Remove file_port_magic
13648 checks.
13649 (ioscm_file_port_new): Delete.
13650 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
13651 ui_file_up.
13652 * guile/scm-type.c (tyscm_type_name): Use string_file.
13653 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
13654 Use string_file.
13655 * infcmd.c (print_return_value_1): Use string_file.
13656 * infrun.c (print_target_wait_results): Use string_file.
13657 * language.c (add_language): Use string_file.
13658 * location.c (explicit_to_string_internal): Use string_file.
13659 * main.c (captured_main_1): Use null_file.
13660 * maint.c (maintenance_print_architecture): Use stdio_file.
13661 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
13662 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
13663 event_channel>: Change type to mi_console_file pointer.
13664 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
13665 (mi_console_file_delete): Delete.
13666 (struct mi_console_file): Delete.
13667 (mi_console_file_magic): Delete.
13668 (mi_console_file_new): Delete.
13669 (mi_console_file::mi_console_file): New.
13670 (mi_console_file_delete): Delete.
13671 (mi_console_file_fputs): Delete.
13672 (mi_console_file::write): New.
13673 (mi_console_raw_packet): Delete.
13674 (mi_console_file::flush): New.
13675 (mi_console_file_flush): Delete.
13676 (mi_console_set_raw): Rename to ...
13677 (mi_console_file::set_raw): ... this.
13678 * mi/mi-console.h (class mi_console_file): New class.
13679 (mi_console_file_new, mi_console_set_raw): Delete.
13680 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
13681 (mi_set_logging): Use delete and tee_file. Adjust.
13682 * mi/mi-main.c (output_register): Use string_file.
13683 (mi_cmd_data_evaluate_expression): Use string_file.
13684 (mi_cmd_data_read_memory): Use string_file.
13685 (mi_cmd_execute, print_variable_or_computed): Use string_file.
13686 * mi/mi-out.c (mi_ui_out::main_stream): New.
13687 (mi_ui_out::rewind): Use main_stream and
13688 string_file.
13689 (mi_ui_out::put): Use main_stream and string_file.
13690 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13691 Allocate a 'string_file' instead.
13692 (mi_out_new): Don't allocate a mem_fileopen stream here.
13693 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13694 (mi_ui_out::main_stream): Declare method.
13695 * printcmd.c (eval_command): Use string_file.
13696 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
13697 * python/py-arch.c (archpy_disassemble): Use string_file.
13698 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
13699 * python/py-frame.c (frapy_str): Use string_file.
13700 * python/py-framefilter.c (py_print_type, py_print_single_arg):
13701 Use string_file.
13702 * python/py-type.c (typy_str): Use string_file.
13703 * python/py-unwind.c (unwind_infopy_str): Use string_file.
13704 * python/py-value.c (valpy_str): Use string_file.
13705 * record-btrace.c (btrace_insn_history): Use string_file.
13706 * regcache.c (regcache_print): Use stdio_file.
13707 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
13708 * remote.c (escape_buffer): Use string_file.
13709 * rust-lang.c (rust_get_disr_info): Use string_file.
13710 * serial.c (serial_open_ops_1): Use stdio_file.
13711 (do_serial_close): Use delete.
13712 * stack.c (print_frame_arg): Use string_file.
13713 (print_frame_args): Remove local mem_fileopen stream, not used.
13714 (print_frame): Use string_file.
13715 * symmisc.c (maintenance_print_symbols): Use stdio_file.
13716 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
13717 Take a 'string_file *' instead of a 'ui_file *'.
13718 * top.c (new_ui): Use stdio_file and stderr_file.
13719 (free_ui): Use delete.
13720 (execute_command_to_string): Use string_file.
13721 (quit_confirm): Use string_file.
13722 * tracepoint.c (collection_list::append_exp): Use string_file.
13723 * tui/tui-disasm.c (tui_disassemble): Use string_file.
13724 * tui/tui-file.c: Don't include "ui-file.h".
13725 (enum streamtype, struct tui_stream): Delete.
13726 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
13727 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
13728 (tui_file::tui_file): New method.
13729 (tui_file_fputs): Delete.
13730 (tui_file_get_strbuf): Delete.
13731 (tui_file::puts): New method.
13732 (tui_file_adjust_strbuf): Delete.
13733 (tui_file_flush): Delete.
13734 (tui_file::flush): New method.
13735 * tui/tui-file.h: Tweak intro comment.
13736 Include ui-file.h.
13737 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
13738 (tui_file_adjust_strbuf): Delete declarations.
13739 (class tui_file): New class.
13740 * tui/tui-io.c (tui_initialize_io): Use tui_file.
13741 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
13742 (tui_register_format): Use string_stream.
13743 * tui/tui-stack.c (tui_make_status_line): Use string_file.
13744 (tui_get_function_from_frame): Use string_file.
13745 * typeprint.c (type_to_string): Use string_file.
13746 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
13747 (null_stream): New global.
13748 (ui_file_delete): Delete.
13749 (ui_file::ui_file): New.
13750 (null_file_isatty): Delete.
13751 (ui_file::~ui_file): New.
13752 (null_file_rewind): Delete.
13753 (ui_file::printf): New.
13754 (null_file_put): Delete.
13755 (null_file_flush): Delete.
13756 (ui_file::putstr): New.
13757 (null_file_write): Delete.
13758 (ui_file::putstrn): New.
13759 (null_file_read): Delete.
13760 (ui_file::putc): New.
13761 (null_file_fputs): Delete.
13762 (null_file_write_async_safe): Delete.
13763 (ui_file::vprintf): New.
13764 (null_file_delete): Delete.
13765 (null_file::write): New.
13766 (null_file_fseek): Delete.
13767 (null_file::puts): New.
13768 (ui_file_data): Delete.
13769 (null_file::write_async_safe): New.
13770 (gdb_flush, ui_file_isatty): Adjust.
13771 (ui_file_put, ui_file_rewind): Delete.
13772 (ui_file_write): Adjust.
13773 (ui_file_write_for_put): Delete.
13774 (ui_file_write_async_safe, ui_file_read): Adjust.
13775 (ui_file_fseek): Delete.
13776 (fputs_unfiltered): Adjust.
13777 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13778 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13779 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13780 (set_ui_file_data): Delete.
13781 (string_file::~string_file, string_file::write)
13782 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13783 (do_ui_file_as_string, ui_file_as_string): Delete.
13784 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13785 (struct mem_file): Delete.
13786 (mem_file_new): Delete.
13787 (stdio_file::stdio_file): New.
13788 (mem_file_delete): Delete.
13789 (stdio_file::stdio_file): New.
13790 (mem_fileopen): Delete.
13791 (stdio_file::~stdio_file): New.
13792 (mem_file_rewind): Delete.
13793 (stdio_file::set_stream): New.
13794 (mem_file_put): Delete.
13795 (stdio_file::open): New.
13796 (mem_file_write): Delete.
13797 (stdio_file_magic, struct stdio_file): Delete.
13798 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13799 (stdio_file::flush): New.
13800 (stdio_file_read): Rename to ...
13801 (stdio_file::read): ... this. Adjust.
13802 (stdio_file_write): Rename to ...
13803 (stdio_file::write): ... this. Adjust.
13804 (stdio_file_write_async_safe): Rename to ...
13805 (stdio_file::write_async_safe) ... this. Adjust.
13806 (stdio_file_fputs): Rename to ...
13807 (stdio_file::puts) ... this. Adjust.
13808 (stdio_file_isatty): Delete.
13809 (stdio_file_fseek): Delete.
13810 (stdio_file::isatty): New.
13811 (stderr_file_write): Rename to ...
13812 (stderr_file::write) ... this. Adjust.
13813 (stderr_file_fputs): Rename to ...
13814 (stderr_file::puts) ... this. Adjust.
13815 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13816 (stderr_file::stderr_file): New.
13817 (tee_file_magic): Delete.
13818 (struct tee_file): Delete.
13819 (tee_file::tee_file): New.
13820 (tee_file_new): Delete.
13821 (tee_file::~tee_file): New.
13822 (tee_file_delete): Delete.
13823 (tee_file_flush): Rename to ...
13824 (tee_file::flush): ... this. Adjust.
13825 (tee_file_write): Rename to ...
13826 (tee_file::write): ... this. Adjust.
13827 (tee_file::write_async_safe): New.
13828 (tee_file_fputs): Rename to ...
13829 (tee_file::puts): ... this. Adjust.
13830 (tee_file_isatty): Rename to ...
13831 (tee_file::isatty): ... this. Adjust.
13832 * ui-file.h (struct obstack, struct ui_file): Don't
13833 forward-declare.
13834 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13835 (ui_file_write_ftype)
13836 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13837 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13838 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13839 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13840 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13841 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13842 (set_ui_file_fseek): Delete.
13843 (ui_file_data, ui_file_delete, ui_file_rewind)
13844 (struct ui_file): New.
13845 (ui_file_up): New.
13846 (class null_file): New.
13847 (null_stream): Declare.
13848 (ui_file_write_for_put, ui_file_put): Delete.
13849 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13850 Delete.
13851 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13852 (gdb_fopen, tee_file_new): Delete.
13853 (struct string_file): New.
13854 (struct stdio_file): New.
13855 (stdio_file_up): New.
13856 (struct stderr_file): New.
13857 (class tee_file): New.
13858 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13859 of a 'ui_file *'. Adjust.
13860 * ui-out.h (class ui_out) <field_stream>: Likewise.
13861 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13862 (null_stream): Delete.
13863 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13864 Adjust.
13865 * utils.h (struct ui_file): Delete forward declaration..
13866 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13867 (error_stream): Take a 'string_file &' instead of a
13868 'ui_file *'.
13869 * varobj.c (varobj_value_get_print_value): Use string_file.
13870 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13871 * gdbarch.c: Regenerate.
13872
187808b0
PA
138732017-02-02 Pedro Alves <palves@redhat.com>
13874
13875 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13876 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13877 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13878 Adjust to call gdb_print_insn instead of
13879 gdb_disassembler::print_insn.
13880 (dump_insns, do_mixed_source_and_assembly_deprecated)
13881 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13882 'gdbarch' parameter. Remove gdb_disassembler parameter.
13883 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13884 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13885 declaration.
13886 (gdb_pretty_print_insn): Re-add declaration.
13887 * record-btrace.c (btrace_insn_history): Don't allocate a
13888 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13889
7a8eb317
SM
138902017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13891
13892 * disasm.h (gdb_disassembly): Remove file_string parameter.
13893 * disasm.c (gdb_disassembly): Likewise.
13894 * cli/cli-cmds.c (print_disassembly): Adapt.
13895 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13896 * stack.c (do_gdb_disassembly): Likewise.
13897
7346ef59
AA
138982017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13899
13900 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13901 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13902 targets. And if the implicit value is longer than needed, extract
13903 the first bytes instead of the "least significant" ones.
13904
cd4007e4
MM
139052017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13906
13907 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13908 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13909 (btrace_fetch): Assert can_access_registers_ptid.
13910 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13911 validate_registers_access.
13912
cf77c34e
MM
139132017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13914
13915 * gdbthread.h (can_access_registers_ptid): New.
13916 * thread.c (can_access_registers_ptid): New.
13917
be85ce7d
PA
139182017-02-01 Pedro Alves <palves@redhat.com>
13919
13920 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13921
29b0b251
PA
139222017-01-31 Pedro Alves <palves@redhat.com>
13923
13924 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13925 Fix typos.
13926
289b5b24
PA
139272017-01-31 Pedro Alves <palves@redhat.com>
13928
13929 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13930 not used.
13931
b47413b4
PA
139322017-01-31 Pedro Alves <palves@redhat.com>
13933
13934 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13935
60adb36c
PA
139362017-01-31 Pedro Alves <palves@redhat.com>
13937
13938 * common/scoped_restore.h
13939 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13940 change the value's parameter type to T2.
13941 (make_scoped_restore): Likewise.
13942
2735833d
WT
139432017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13944 Richard Henderson <rth@redhat.com>
13945
13946 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13947 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13948 GS_BASE for older kernels.
13949 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13950 GS_BASE for older kernels.
13951 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13952 and GS_BASE to the offset table.
13953 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13954 system register group.
13955 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13956 for older kernels.
13957 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13958 amd64 ABI.
13959 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13960 AMD64_GSBASE_REGNUM.
13961 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13962 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13963 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13964 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13965 i386/64bit-segments.xml in those rules.
13966 * features/i386/64bit-segments.xml: New file.
13967 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13968 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13969 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13970 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13971 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13972 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13973 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13974 * features/i386/amd64-avx-linux.c: Regenerated.
13975 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13976 * features/i386/amd64-avx-mpx.c: Regenerated.
13977 * features/i386/amd64-avx512-linux.c: Regenerated.
13978 * features/i386/amd64-linux.c: Regenerated.
13979 * features/i386/amd64-mpx-linux.c: Regenerated.
13980 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13981 * features/i386/i386-avx-mpx.c: Regenerated.
13982 * features/i386/x32-avx-linux.c: Regenerated.
13983 * features/i386/x32-avx512-linux.c: Regenerated.
13984 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13985 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13986 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13987 * regformats/i386/amd64-linux.dat: Regenerated.
13988 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13989 * regformats/i386/x32-avx-linux.dat: Regenerated.
13990 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13991 * regformats/i386/x32-linux.dat: Regenerated.
13992
8884e97e
WT
139932017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13994
13995 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13996 Set to AMD64_NUM_REGS.
13997
7005d26a
WT
139982017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13999
14000 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
14001 that checks validity of a register number.
14002
4bd2e1b2
KC
140032017-01-27 Kees Cook <keescook@google.com>
14004
14005 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
14006 fetch_fpregs if target has fpa registers.
14007 (arm_linux_store_inferior_registers): Call store_fpregs if target
14008 has fpa registers.
14009
7cf1de6c
AA
140102017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
14011
14012 * cris-tdep.c (cris_gdbarch_init): Remove check for
14013 info.byte_order and force it to BFD_ENDIAN_LITTLE.
14014
874a1c8c
AT
140152017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
14016
14017 * corelow.c (get_core_register_section): Check for regset
14018 existence before checking for REGSET_VARIABLE_SIZE.
14019
d8b49cf0
YQ
140202017-01-26 Yao Qi <yao.qi@linaro.org>
14021 Pedro Alves <palves@redhat.com>
14022
14023 PR gdb/20939
14024 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
14025 call memory_error, save memaddr instead.
14026 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
14027 negative, cal memory_error.
14028 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
14029
658ca58c
YQ
140302017-01-26 Yao Qi <yao.qi@linaro.org>
14031
14032 * disasm-selftests.c (memory_error_test): New function.
14033 (_initialize_disasm_selftests): Register memory_error_test.
14034
79843d45
YQ
140352017-01-26 Yao Qi <yao.qi@linaro.org>
14036
14037 * Makefile.in (SFILES): Add disasm-selftests.c and
14038 selftest-arch.c.
14039 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
14040 * disasm-selftests.c: New file.
14041 * selftest-arch.c: New file.
14042 * selftest-arch.h: New file.
14043
8cafda32
YQ
140442017-01-26 Yao Qi <yao.qi@linaro.org>
14045
14046 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
14047 to bfd_arch_mep. Don't return 0 if section is not
14048 found. Call print_insn_mep.
14049
e47ad6c0
YQ
140502017-01-26 Pedro Alves <palves@redhat.com>
14051 Yao Qi <yao.qi@linaro.org>
14052
14053 * arm-tdep.c: Include "disasm.h".
14054 (gdb_print_insn_arm): Update code to get gdbarch.
14055 * disasm.c (dis_asm_read_memory): Change it to
14056 gdb_disassembler::dis_asm_read_memory.
14057 (dis_asm_memory_error): Likewise.
14058 (dis_asm_print_address): Likewise.
14059 (gdb_pretty_print_insn): Change it to
14060 gdb_disassembler::pretty_print_insn.
14061 (dump_insns): Add one argument gdb_disassemlber. All
14062 callers updated.
14063 (do_mixed_source_and_assembly_deprecated): Likewise.
14064 (do_mixed_source_and_assembly): Likewise.
14065 (do_assembly_only): Likewise.
14066 (gdb_disassembler::gdb_disassembler): New.
14067 (gdb_disassembler::print_insn): New.
14068 * disasm.h (class gdb_disassembler): New.
14069 (gdb_pretty_print_insn): Remove declaration.
14070 (gdb_disassemble_info): Likewise.
14071 * guile/scm-disasm.c (class gdbscm_disassembler): New.
14072 (gdbscm_disasm_read_memory_worker): Update.
14073 (gdbscm_disasm_read_memory): Update.
14074 (gdbscm_disasm_memory_error): Remove.
14075 (gdbscm_disasm_print_address): Remove.
14076 (gdbscm_disassembler::gdbscm_disassembler): New.
14077 (gdbscm_print_insn_from_port): Update.
14078 * mips-tdep.c: Include disasm.h.
14079 (gdb_print_insn_mips): Update code to get gdbarch.
14080 * record-btrace.c (btrace_insn_history): Update.
14081 * spu-tdep.c: Include disasm.h.
14082 (struct spu_dis_asm_data): Remove.
14083 (struct spu_dis_asm_info): New.
14084 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
14085 SPU id.
14086 (gdb_print_insn_spu): Cast disassemble_info to
14087 spu_dis_asm_info.
14088
80d75874
YQ
140892017-01-26 Yao Qi <yao.qi@linaro.org>
14090
14091 * disasm.c (do_ui_file_delete): Delete.
14092 (gdb_insn_length): Move code creating stream to ...
14093 * utils.c (null_stream): ... here. New function.
14094 * utils.h (null_stream): Declare.
14095
60685cd0
SM
140962017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14097
14098 * python/py-inferior.c (find_thread_object): Return directly
14099 from the loop. Remove "found" variable.
14100
eb1cdb62
JB
141012017-01-21 Joel Brobecker <brobecker@adacore.com>
14102
14103 GDB 7.12.1 released.
14104
b1ce6568
SM
141052017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14106
14107 * python/py-function.c (fnpy_call): Reorder declarations to have
14108 the gdbpy_enter object declared first.
14109 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
14110
6f8b0407
SM
141112017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14112
fec93fb1 14113 PR python/21068
6f8b0407
SM
14114 * python/python-internal.h (PyMem_RawMalloc): Define for
14115 Python < 3.4.
14116 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
14117 PyMem_RawMalloc instead of PyMem_Malloc.
14118
78cbbba8
LM
141192017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
14120 Luis Machado <lgustavo@codesourcery.com>
14121
14122 * NEWS (New commands): Mention flash-erase.
14123 (New MI commands): Mention target-flash-erase.
14124 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
14125 command.
14126 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
14127 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
14128 * target.c (flash_erase_command): New function.
14129 (initialize_targets): Add new flash-erase command.
14130 * target.h (flash_erase_command): New declaration.
14131
2132fe85
JB
141322017-01-20 Joel Brobecker <brobecker@adacore.com>
14133
14134 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
14135 HAVE_SYS_PROCFS_H is defined.
14136
d1dff226
AH
141372017-01-18 Alan Hayward <alan.hayward@arm.com>
14138
14139 * remote.c (struct cached_reg): Change data into a pointer.
14140 * (stop_reply_dtr): Free data pointers before deleting vector.
14141 (process_stop_reply): Likewise.
14142 (remote_parse_stop_reply): Allocate space for data
14143
9890e433
AH
141442017-01-18 Alan Hayward <alan.hayward@arm.com>
14145
14146 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
14147 MAX_REGISTER_SIZE.
14148 (amd64_pseudo_register_read_value): Likewise.
14149 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
14150 (store_register_using_P): Likewise.
14151 * regcache.c (regcache_xfer_part): Likewise.
14152
7a36499a
IR
141532017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
14154
14155 Split real and pseudo registers.
14156 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
14157 (sparc32_pseudo_regnum): New enum.
14158 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
14159 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
14160 (SPARC32_CP0_REGISTERS): New macro.
14161 (sparc32_pseudo_register_name): New function.
14162 (sparc32_register_name): Use sparc32_pseudo_register_name.
14163 (sparc32_pseudo_register_type): New function.
14164 (sparc32_register_type): Use sparc32_pseudo_register_type.
14165 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
14166 pseudo register numbers.
14167 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
14168 (SPARC64_CP0_REGISTERS): New macro.
14169 (sparc64_pseudo_register_name): New function.
14170 (sparc64_register_name): Use sparc64_pseudo_register_name.
14171 (sparc64_pseudo_register_type): New function.
14172 (sparc64_register_type): Use sparc64_pseudo_register_type.
14173 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
14174 pseudo register numbers.
14175 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
14176 sparc64_store_arguments): Handle pseudo register numbers.
14177
6f8976bf
YQ
141782017-01-13 Yao Qi <yao.qi@linaro.org>
14179
14180 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
14181 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
14182 output.
14183 (getpkt_or_notif_sane_1): Likewise.
14184
e4241ace
YQ
141852017-01-13 Yao Qi <yao.qi@linaro.org>
14186
14187 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
14188 of CC. Pass "-x c++-header" instead of "-x c".
14189
3015c064
SM
141902017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14191
14192 * remote.c (remote_can_async_p): Update comment.
14193
fde1b17d
SM
141942017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14195
14196 * linux-nat.c (linux_nat_can_async_p): Update comment.
14197
ca1ca08b
SM
141982017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14199
14200 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
14201
4ad2da73
SM
142022017-01-11 Simon Marchi <simon.marchi@ericsson.com>
14203
14204 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
14205
c8b23b3f
TT
142062017-01-10 Tom Tromey <tom@tromey.com>
14207
14208 * python/py-type.c (typy_legacy_template_argument): Update.
14209 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
14210 ~demangle_parse_info): Declare new members.
14211 (cp_demangled_name_to_comp): Return unique_ptr.
14212 (cp_demangled_name_parse_free)
14213 (make_cleanup_cp_demangled_name_parse_free)
14214 (cp_new_demangle_parse_info): Remove.
14215 * cp-support.c (do_demangled_name_parse_free_cleanup)
14216 (make_cleanup_cp_demangled_name_parse_free): Remove.
14217 (inspect_type, cp_canonicalize_string_full)
14218 (cp_canonicalize_string): Update.
14219 (mangled_name_to_comp): Change return type.
14220 (cp_class_name_from_physname, method_name_from_physname)
14221 (cp_func_name, cp_remove_params): Update.
14222 * cp-name-parser.y (demangle_parse_info): New constructor, from
14223 cp_new_demangle_parse_info.
14224 (~demangle_parse_info): New destructor, from
14225 cp_demangled_name_parse_free.
14226 (cp_merge_demangle_parse_infos): Update.
14227 (cp_demangled_name_to_comp): Change return type.
14228
1ac32117
TT
142292017-01-10 Tom Tromey <tom@tromey.com>
14230
14231 * top.c (prevent_dont_repeat): Change return type.
14232 * python/python.c (execute_gdb_command): Use std::string.
14233 Update.
14234 * guile/guile.c (gdbscm_execute_gdb_command): Update.
14235 * command.h (prevent_dont_repeat): Change return type.
14236 * breakpoint.c (bpstat_do_actions_1): Update.
14237
0cf08227
TT
142382017-01-10 Tom Tromey <tom@tromey.com>
14239
14240 * value.h (scoped_value_mark::~scoped_value_mark): Call
14241 free_to_mark.
14242 (scoped_value_mark::free_to_mark): New method.
14243 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
14244 scoped_value_mark.
14245
eb115069
TT
142462017-01-10 Tom Tromey <tom@tromey.com>
14247
14248 * python/py-value.c (valpy_dereference, valpy_referenced_value)
14249 (valpy_reference_value, valpy_const_value, valpy_get_address)
14250 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
14251 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
14252 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
14253 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
14254 scoped_value_mark.
14255 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
14256 * value.h (scoped_value_mark): New class.
14257
906768f9
TT
142582017-01-10 Tom Tromey <tom@tromey.com>
14259
14260 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
14261 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
14262 * psymtab.c (discard_psymtabs_upto): Remove.
14263 (make_cleanup_discard_psymtabs): Remove.
14264 (struct psymtab_state): Remove.
14265
bef155c3
TT
142662017-01-10 Tom Tromey <tom@tromey.com>
14267
14268 * record-full.c (record_full_save_cleanups): Remove.
14269 (record_full_save): Use gdb::unlinker.
14270 * gcore.c (do_bfd_delete_cleanup): Remove.
14271 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
14272 cleanups.
14273 * dwarf2read.c (unlink_if_set): Remove.
14274 (write_psymtabs_to_index): Use gdb::unlinker.
14275 * common/gdb_unlinker.h: New file.
14276
192b62ce
TT
142772017-01-10 Tom Tromey <tom@tromey.com>
14278
14279 * windows-tdep.c (windows_xfer_shared_library): Update.
14280 * windows-nat.c (windows_make_so): Update.
14281 * utils.h (make_cleanup_bfd_unref): Remove.
14282 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
14283 * symfile.h (symfile_bfd_open)
14284 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
14285 * symfile.c (read_symbols, symbol_file_add)
14286 (separate_debug_file_exists): Update.
14287 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
14288 (generic_load, reread_symbols): Update.
14289 * symfile-mem.c (symbol_file_add_from_memory): Update.
14290 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
14291 (spu_symbol_file_add_from_memory): Update.
14292 * solist.h (struct target_so_ops) <bfd_open>: Return
14293 gdb_bfd_ref_ptr.
14294 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
14295 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
14296 gdb_bfd_ref_ptr.
14297 (solib_map_sections, reload_shared_libraries_1): Update.
14298 * solib-svr4.c (enable_break): Update.
14299 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
14300 * solib-frv.c (enable_break2): Update.
14301 * solib-dsbt.c (enable_break): Update.
14302 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
14303 gdb_bfd_ref_ptr.
14304 (darwin_solib_get_all_image_info_addr_at_init): Update.
14305 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
14306 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
14307 * record-full.c (record_full_save): Update.
14308 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
14309 * procfs.c (insert_dbx_link_bpt_in_file): Update.
14310 * minidebug.c (find_separate_debug_file_in_section): Return
14311 gdb_bfd_ref_ptr.
14312 * machoread.c (macho_add_oso_symfile): Change abfd to
14313 gdb_bfd_ref_ptr.
14314 (macho_symfile_read_all_oso): Update.
14315 (macho_check_dsym): Return gdb_bfd_ref_ptr.
14316 (macho_symfile_read): Update.
14317 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
14318 (jit_bfd_try_read_symtab): Update.
14319 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
14320 (gdb_bfd_openw, gdb_bfd_openr_iovec)
14321 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
14322 gdb_bfd_ref_ptr.
14323 (gdb_bfd_ref_policy): New struct.
14324 (gdb_bfd_ref_ptr): New typedef.
14325 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
14326 (gdb_bfd_openw, gdb_bfd_openr_iovec)
14327 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
14328 gdb_bfd_ref_ptr.
14329 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
14330 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
14331 (gcore_command): Update.
14332 * exec.c (exec_file_attach): Update.
14333 * elfread.c (elf_symfile_read): Update.
14334 * dwarf2read.c (dwarf2_get_dwz_file): Update.
14335 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
14336 (open_and_init_dwo_file): Update.
14337 (open_dwp_file): Return gdb_bfd_ref_ptr.
14338 (open_and_init_dwp_file): Update.
14339 * corelow.c (core_open): Update.
14340 * compile/compile-object-load.c (compile_object_load): Update.
14341 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
14342 * coffread.c (coff_symfile_read): Update.
14343 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
14344 gdb_bfd_ref_ptr. Rename.
14345 (dump_bfd_file, restore_command): Update.
14346 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
14347 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
14348 (find_separate_debug_file_by_buildid): Update.
14349
50315b21
TT
143502017-01-10 Tom Tromey <tom@tromey.com>
14351
14352 * common/gdb_ref_ptr.h: New file.
14353 * python/py-ref.h (struct gdbpy_ref_policy): New.
14354 (gdbpy_ref): Now a typedef.
14355
fc4007c9
TT
143562017-01-10 Tom Tromey <tom@tromey.com>
14357
14358 * utils.h (make_cleanup_htab_delete): Don't declare.
14359 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
14360 Remove.
14361 * linespec.c (decode_compound_collector): Add constructor,
14362 destructor.
14363 (lookup_prefix_sym): Remove cleanup.
14364 (symtab_collector): Add constructor, destructor.
14365 (collect_symtabs_from_filename): Remove cleanup.
14366 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
14367 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
14368 Use htab_up.
14369 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
14370 * dwarf2read.c (dw2_expand_symtabs_matching)
14371 (dw2_map_symbol_filenames, dwarf_decode_macros)
14372 (write_psymtabs_to_index): Use htab_up.
14373 * dwarf2loc.c (func_verify_no_selftailcall)
14374 (call_site_find_chain_1, func_verify_no_selftailcall)
14375 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
14376 std::vector, gdb::unique_xmalloc_ptr.
14377 (call_sitep): Remove typedef.
14378 (dwarf2_locexpr_baton_eval): Remove unused variable.
14379
8dbcee67
TT
143802017-01-10 Tom Tromey <tom@tromey.com>
14381
14382 * python/python-internal.h (make_cleanup_py_decref)
14383 (make_cleanup_py_xdecref): Don't declare.
14384 * python/py-utils.c (py_decref, make_cleanup_py_decref)
14385 (py_xdecref, make_cleanup_py_xdecref): Remove.
14386
13df46cc
TT
143872017-01-10 Tom Tromey <tom@tromey.com>
14388
14389 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
14390 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
14391
06fc9bf7
TT
143922017-01-10 Tom Tromey <tom@tromey.com>
14393
14394 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
14395
830a4934
TT
143962017-01-10 Tom Tromey <tom@tromey.com>
14397
14398 * python/py-utils.c (unicode_to_encoded_string)
14399 (python_string_to_target_string)
14400 (python_string_to_target_python_string)
14401 (python_string_to_host_string, gdbpy_obj_to_string)
14402 (get_addr_from_python): Use gdbpy_ref.
14403
4586d543
TT
144042017-01-10 Tom Tromey <tom@tromey.com>
14405
14406 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
14407 gdbpy_ref.
14408
59876f8f
TT
144092017-01-10 Tom Tromey <tom@tromey.com>
14410
14411 * python/python.c (eval_python_command, gdbpy_decode_line)
14412 (gdbpy_run_events, gdbpy_start_type_printers)
14413 (gdbpy_apply_type_printers): Use gdbpy_ref.
14414
97d83487
TT
144152017-01-10 Tom Tromey <tom@tromey.com>
14416
14417 * python/py-param.c (get_doc_string, compute_enum_values): Use
14418 gdbpy_ref.
14419
9205649a
TT
144202017-01-10 Tom Tromey <tom@tromey.com>
14421
14422 * python/py-inferior.c (find_thread_object, build_inferior_list):
14423 Use gdbpy_ref.
14424
74c49d45
TT
144252017-01-10 Tom Tromey <tom@tromey.com>
14426
14427 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14428
16361ffb
TT
144292017-01-10 Tom Tromey <tom@tromey.com>
14430
14431 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
14432 gdbpy_ref.
14433
905f2cca
TT
144342017-01-10 Tom Tromey <tom@tromey.com>
14435
14436 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
14437 extra incref.
14438 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
14439 Use gdbpy_ref.
14440
64081434
TT
144412017-01-10 Tom Tromey <tom@tromey.com>
14442
14443 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14444 gdbpy_ref.
14445
59e9e831
TT
144462017-01-10 Tom Tromey <tom@tromey.com>
14447
14448 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
14449 decref results of PyArg_ParseTupleAndKeywords.
14450
9de10f6d
TT
144512017-01-10 Tom Tromey <tom@tromey.com>
14452
14453 * python/python.c (python_run_simple_file): Use
14454 unique_xmalloc_ptr, gdbpy_ref.
14455
2bd5759d
TT
144562017-01-10 Tom Tromey <tom@tromey.com>
14457
14458 * python/py-prettyprint.c (print_stack_unless_memory_error)
14459 (print_string_repr, print_children): Use gdbpy_ref.
14460 (dummy_python_frame): New class.
14461 (dummy_python_frame::dummy_python_frame): Rename from
14462 push_dummy_python_frame.
14463 (py_restore_tstate): Remove.
14464
3b4e0e01
TT
144652017-01-10 Tom Tromey <tom@tromey.com>
14466
14467 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14468
17a22718
TT
144692017-01-10 Tom Tromey <tom@tromey.com>
14470
14471 * python/python.c (ensure_python_env, restore_python_env):
14472 Remove.
14473 * python/python-internal.h (ensure_python_env): Don't declare.
14474 * varobj.h (varobj_ensure_python_env): Don't declare.
14475 * varobj.c (varobj_ensure_python_env): Remove.
14476
68cdc557
TT
144772017-01-10 Tom Tromey <tom@tromey.com>
14478
14479 * varobj.c (varobj_value_get_print_value): Use
14480 gdbpy_enter_varobj.
14481
1eba6383
TT
144822017-01-10 Tom Tromey <tom@tromey.com>
14483
14484 * python/py-prettyprint.c (print_string_repr, print_children):
14485 Update.
14486 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
14487 of "encoding".
14488 * varobj.c (varobj_value_get_print_value): Update.
14489 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
14490
bde7b3e3
TT
144912017-01-10 Tom Tromey <tom@tromey.com>
14492
14493 * varobj.c (varobj_get_display_hint)
14494 (dynamic_varobj_has_child_method, install_new_value_visualizer)
14495 (varobj_set_visualizer, free_variable): Use
14496 gdbpy_enter_varobj.
14497
a7785f8c
TT
144982017-01-10 Tom Tromey <tom@tromey.com>
14499
14500 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
14501 (do_finish_initialization): New function. Use gdbpy_ref.
14502 (gdbpy_finish_initialization): Use gdbpy_enter. Call
14503 do_finish_initialization.
14504
2865bfce
TT
145052017-01-10 Tom Tromey <tom@tromey.com>
14506
14507 * python/py-param.c (get_set_value, get_show_value): Use
14508 gdbpy_enter, gdbpy_ref.
14509
0e9dcc75
TT
145102017-01-10 Tom Tromey <tom@tromey.com>
14511
14512 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
14513
12a5cedd
TT
145142017-01-10 Tom Tromey <tom@tromey.com>
14515
14516 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
14517
788f2586
TT
145182017-01-10 Tom Tromey <tom@tromey.com>
14519
14520 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
14521 Use gdbpy_enter_varobj.
14522
6cd67bea
TT
145232017-01-10 Tom Tromey <tom@tromey.com>
14524
14525 * varobj.c (gdbpy_enter_varobj): New constructor.
14526 * python/python-internal.h (gdbpy_enter_varobj): New class.
14527 * python/py-varobj.c (py_varobj_get_iterator): Use
14528 gdbpy_enter_varobj.
14529
14b122bf
TT
145302017-01-10 Tom Tromey <tom@tromey.com>
14531
14532 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
14533 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14534 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
14535 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
14536 unique_xmalloc_ptr.
14537 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
14538
bf1ca3b9
TT
145392017-01-10 Tom Tromey <tom@tromey.com>
14540
14541 * python/py-xmethods.c (invoke_match_method): Use
14542 gdbpy_ref.
14543
572a5524
TT
145442017-01-10 Tom Tromey <tom@tromey.com>
14545
14546 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
14547 gdbpy_enter, gdbpy_ref.
14548
396a78b6
TT
145492017-01-10 Tom Tromey <tom@tromey.com>
14550
14551 * python/python.c (python_interactive_command): Use gdbpy_enter.
14552
a88b13c7
TT
145532017-01-10 Tom Tromey <tom@tromey.com>
14554
14555 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
14556 gdbpy_ref.
14557
e9f0c363
TT
145582017-01-10 Tom Tromey <tom@tromey.com>
14559
14560 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
14561 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14562
6349f452
TT
145632017-01-10 Tom Tromey <tom@tromey.com>
14564
14565 * utils.h (htab_deleter): New struct.
14566 (htab_up): New typedef.
14567 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
14568 gdbpy_enter, gdbpy_ref, htab_up.
14569
c0171de6
TT
145702017-01-10 Tom Tromey <tom@tromey.com>
14571
14572 * python/py-unwind.c (pending_frame_invalidate): Remove.
14573 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
14574
f18e226f
TT
145752017-01-10 Tom Tromey <tom@tromey.com>
14576
14577 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
14578 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
14579
c57af3f1
TT
145802017-01-10 Tom Tromey <tom@tromey.com>
14581
14582 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
14583
60e600ec
TT
145842017-01-10 Tom Tromey <tom@tromey.com>
14585
14586 * python/python.c (gdbpy_eval_from_control_command)
14587 (gdbpy_source_script, gdbpy_run_events)
14588 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
14589 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
14590 gdbpy_enter.
14591
bf7da5b0
TT
145922017-01-10 Tom Tromey <tom@tromey.com>
14593
14594 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
14595
2d38bced
TT
145962017-01-10 Tom Tromey <tom@tromey.com>
14597
14598 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
14599
07bc7329
TT
146002017-01-10 Tom Tromey <tom@tromey.com>
14601
14602 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
14603 (python_on_inferior_call_pre, python_on_inferior_call_post)
14604 (python_on_memory_change, python_on_register_change)
14605 (python_inferior_exit, python_new_objfile, add_thread_object)
14606 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
14607
6e7c365e
TT
146082017-01-10 Tom Tromey <tom@tromey.com>
14609
14610 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
14611 (bpfinishpy_handle_exit): Use gdbpy_enter.
14612
6ba0cd40
TT
146132017-01-10 Tom Tromey <tom@tromey.com>
14614
14615 * python/py-cmd.c (cmdpy_destroyer)
14616 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
14617 gdbpy_enter.
14618
de2dc875
TT
146192017-01-10 Tom Tromey <tom@tromey.com>
14620
14621 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14622 gdbpy_enter.
14623 (gdbpy_breakpoint_has_cond): Likewise.
14624
4ecee2c4
TT
146252017-01-10 Tom Tromey <tom@tromey.com>
14626
14627 * python/python.c (gdbpy_enter): New constructor.
14628 (~gdbpy_enter): New destructor.
14629 (restore_python_env, ensure_python_env): Rewrite.
14630 * python/python-internal.h (gdbpy_enter): New class.
14631
37fce74f
TT
146322017-01-10 Tom Tromey <tom@tromey.com>
14633
14634 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
14635
53a0cca3
TT
146362017-01-10 Tom Tromey <tom@tromey.com>
14637
14638 * python/py-value.c (value_has_field, get_field_flag)
14639 (get_field_type, valpy_getitem, convert_value_from_python): Use
14640 gdbpy_ref.
14641
ff3724f5
TT
146422017-01-10 Tom Tromey <tom@tromey.com>
14643
14644 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
14645 gdbpy_ref.
14646
0700aea5
TT
146472017-01-10 Tom Tromey <tom@tromey.com>
14648
14649 * python/py-prettyprint.c (search_pp_list)
14650 (find_pretty_printer_from_objfiles)
14651 (find_pretty_printer_from_progspace)
14652 (find_pretty_printer_from_gdb, find_pretty_printer)
14653 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
14654 gdbpy_ref.
14655
1bb44c9f
TT
146562017-01-10 Tom Tromey <tom@tromey.com>
14657
14658 * python/py-param.c (call_doc_function): Use gdbpy_ref.
14659
87ce03fd
TT
146602017-01-10 Tom Tromey <tom@tromey.com>
14661
14662 * python/py-linetable.c (build_line_table_tuple_from_pcs)
14663 (ltpy_get_all_source_lines): Use gdbpy_ref.
14664
ee0a3fb8
TT
146652017-01-10 Tom Tromey <tom@tromey.com>
14666
14667 * python/py-framefilter.c (extract_sym, extract_value)
14668 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
14669 gdbpy_ref.
14670
bf2a52fa
TT
146712017-01-10 Tom Tromey <tom@tromey.com>
14672
14673 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
14674
f59fe7f8
TT
146752017-01-10 Tom Tromey <tom@tromey.com>
14676
14677 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
14678
80bd970a
TT
146792017-01-10 Tom Tromey <tom@tromey.com>
14680
14681 * python/py-function.c (convert_values_to_python, fnpy_init): Use
14682 gdbpy_ref.
14683
d1b3de2e
TT
146842017-01-10 Tom Tromey <tom@tromey.com>
14685
14686 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
14687
3bb43384
TT
146882017-01-10 Tom Tromey <tom@tromey.com>
14689
14690 * python/py-type.c (convert_field, make_fielditem, typy_fields)
14691 (typy_range): Use gdbpy_ref.
14692
abf5651e
TT
146932017-01-10 Tom Tromey <tom@tromey.com>
14694
14695 * python/py-threadevent.c (create_thread_event_object): Use
14696 gdbpy_ref.
14697 * python/py-stopevent.c (create_stop_event_object): Simplify.
14698 (emit_stop_event): Use gdbpy_ref.
14699 * python/py-signalevent.c (create_signal_event_object): Use
14700 gdbpy_ref.
14701 * python/py-newobjfileevent.c (create_new_objfile_event_object)
14702 (emit_new_objfile_event, create_clear_objfiles_event_object)
14703 (emit_clear_objfiles_event): Use gdbpy_ref.
14704 * python/py-infevents.c (create_inferior_call_event_object)
14705 (create_register_changed_event_object)
14706 (create_memory_changed_event_object, emit_inferior_call_event)
14707 (emit_memory_changed_event, emit_register_changed_event): Use
14708 gdbpy_ref.
14709 * python/py-exitedevent.c (create_exited_event_object)
14710 (emit_exited_event): Use gdbpy_ref.
14711 * python/py-event.h (evpy_emit_event): Remove
14712 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
14713 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
14714 * python/py-continueevent.c (emit_continue_event): Use
14715 gdbpy_ref.
14716 * python/py-breakpoint.c (gdbpy_breakpoint_created)
14717 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
14718 gdbpy_ref.
14719 * python/py-bpevent.c (create_breakpoint_event_object): Use
14720 gdbpy_ref.
14721
a68ff33e
TT
147222017-01-10 Tom Tromey <tom@tromey.com>
14723
14724 * python/py-ref.h: New file.
14725
7becfd03
SM
147262017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14727
14728 * cli-out.c (cli_ui_out::do_redirect): Change return type to
14729 void.
14730 * cli-out.h (cli_ui_out::do_redirect): Likewise.
14731 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
14732 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
14733 * ui-out.c (ui_out::redirect): Likewise.
14734 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
14735 * cli/cli-logging.c (set_logging_redirect): Update call site of
14736 ui_out::redirect.
14737 (handle_redirections): Likewise.
14738 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
14739 * top.c (execute_command_to_string): Likewise.
14740 * utils.c (do_ui_out_redirect_pop): Likewise.
14741
df294654
SM
147422017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14743
14744 * stack.c (_initialize_stack): Update "frame" command help message.
14745
f5e6296e
IB
147462017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
14747
14748 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14749
0e2d6fa6
YQ
147502017-01-06 Yao Qi <yao.qi@linaro.org>
14751
14752 * x86-linux-nat.h: Include gdb_proc_service.h.
14753
44d6d3f9
YQ
147542017-01-06 Yao Qi <yao.qi@linaro.org>
14755
14756 * ser-base.h: Include serial.h.
14757
656731fe
YQ
147582017-01-06 Yao Qi <yao.qi@linaro.org>
14759
14760 * ppc-linux-tdep.h: Include ppc-tdep.h.
14761
1ca8f924
YQ
147622017-01-06 Yao Qi <yao.qi@linaro.org>
14763
14764 * nat/amd64-linux-siginfo.h: Include signal.h.
14765
bc3008c4
YQ
147662017-01-06 Yao Qi <yao.qi@linaro.org>
14767
14768 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14769
66c80d03
YQ
147702017-01-06 Yao Qi <yao.qi@linaro.org>
14771
14772 * mi/mi-parse.h: Include mi-cmds.h.
14773
051d2dda
YQ
147742017-01-06 Yao Qi <yao.qi@linaro.org>
14775
14776 * inf-loop.c: Don't include "target.h".
14777 * inf-loop.h: Include it here.
14778
8018d34f
YQ
147792017-01-06 Yao Qi <yao.qi@linaro.org>
14780
14781 * dfp.h: Include "dboulest.h" and "expression.h".
14782
c0b8369c
YQ
147832017-01-06 Yao Qi <yao.qi@linaro.org>
14784
14785 * ax-gdb.h: Include "ax.h".
14786
ad5cba2a
YQ
147872017-01-06 Yao Qi <yao.qi@linaro.org>
14788
14789 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14790 with nat/gdb_ptrace.h.
14791
1c33cd7f
YQ
147922017-01-05 Yao Qi <yao.qi@linaro.org>
14793
14794 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14795 new line.
14796 (mips64_fbsd_sigframe_init): Likewise.
14797
c988ac1d
JB
147982017-01-04 John Baldwin <jhb@FreeBSD.org>
14799
14800 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14801 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14802
b268007c
JB
148032017-01-04 John Baldwin <jhb@FreeBSD.org>
14804
14805 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14806 * NEWS: Mention new FreeBSD/mips native configuration.
14807 * config/mips/fbsd.mh: New file.
14808 * configure.host: Add mips*-*-freebsd*.
14809 * mips-fbsd-nat.c: New file.
14810
387360da
JB
148112017-01-04 John Baldwin <jhb@FreeBSD.org>
14812
14813 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14814 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14815 * NEWS: Mention new FreeBSD/mips target.
14816 * configure.tgt: Add mips*-*-freebsd*.
14817 * mips-fbsd-tdep.c: New file.
14818 * mips-fbsd-tdep.h: New file.
14819
2aaaf250
YQ
148202017-01-04 Yao Qi <yao.qi@linaro.org>
14821
14822 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14823 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14824
61baf725
JB
148252017-01-01 Joel Brobecker <brobecker@adacore.com>
14826
6dbb839a 14827 Update copyright year range in all GDB files.
61baf725 14828
c113e7ff 148292017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 14830
c113e7ff 14831 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 14832
c113e7ff 14833For older changes see ChangeLog-2016.
c906108c
SS
14834\f
14835Local Variables:
14836mode: change-log
14837left-margin: 8
14838fill-column: 74
14839version-control: never
57da7796 14840coding: utf-8
c906108c 14841End:
This page took 2.712868 seconds and 4 git commands to generate.