Assume termios is available, remove support for termio and sgtty
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-11-06 Pedro Alves <palves@redhat.com>
2
3 * Makefile.in (SER_HARDWIRE): Update comment.
4 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
5 * common/gdb_termios.h: Delete file.
6 * common/job-control.c: Include termios.h and unistd.h instead of
7 gdb_termios.h.
8 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
9 check.
10 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
11 Remove sgtty code.
12 * configure.ac: No longer check for termio.h and sgtty.h.
13 * configure: Regenerate.
14 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
15 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
16 Replace PROCESS_GROUP_TYPE references with pid_t references
17 throughout.
18 (gdb_getpgrp): Delete.
19 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
20 (child_terminal_inferior): Remove comment. Remove sgtty code.
21 (child_terminal_ours_1): Use tcgetpgrp directly instead of
22 gdb_getpgrp. Use serial_set_tty_state instead aof
23 serial_noflush_set_tty_state. Remove sgtty code.
24 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
25 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
26 (inferior_process_group): Now returns pid_t.
27 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
28 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
29 * ser-event.c (serial_event_ops): Update.
30 * ser-go32.c (dos_noflush_set_tty_state): Delete.
31 (dos_ops): Update.
32 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
33 * ser-pipe.c (pipe_ops): Update.
34 * ser-tcp.c (tcp_ops): Update.
35 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
36 HAVE_TERMIOS checks.
37 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
38 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
39 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
40 assume termios.
41 (hardwire_noflush_set_tty_state): Delete.
42 (hardwire_print_tty_state, hardwire_drain_output)
43 (hardwire_flush_output, hardwire_flush_input)
44 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
45 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
46 code, and assume termios.
47 (hardwire_ops): Update.
48 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
49 * serial.c (serial_noflush_set_tty_state): Delete.
50 * serial.h (serial_noflush_set_tty_state): Delete.
51 (serial_ops::noflush_set_tty_state): Delete.
52
53 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
54
55 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
56 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
57 (COMMON_OBS): Remove doublest.o and dfp.o.
58 Do not build target-float.c (instead of doublest.c)
59 with -Wformat-nonliteral.
60
61 * doublest.c: Remove file.
62 * doublest.h: Remove file.
63 * dfp.c: Remove file.
64 * dfp.h: Remove file.
65
66 * target-float.c: Do not include "doublest.h" and "dfp.h".
67 (DOUBLEST): Move here from doublest.h.
68 (enum float_kind): Likewise.
69 (FLOATFORMAT_CHAR_BIT): Likewise.
70 (FLOATFORMAT_LARGEST_BYTES): Likewise.
71 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
72 (floatformat_precision): Likewise.
73 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
74 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
75 Likewise.
76 (host_float_format, host_double_format, host_long_double_format):
77 Likewise.
78 (floatformat_to_string, floatformat_from_string): Likewise.
79 (floatformat_to_doublest): Likewise. Also, inline the original
80 convert_floatformat_to_doublest.
81 (floatformat_from_doublest): Likewise. Also, inline the original
82 convert_floatformat_from_doublest.
83
84 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
85 (MAX_DECIMAL_STRING): Move here from dfp.c.
86 (match_endianness): Likewise.
87 (set_decnumber_context, decimal_check_errors): Likewise.
88 (decimal_from_number, decimal_to_number): Likewise.
89 (decimal_to_string, decimal_from_string): Likewise. Make static.
90 (decimal_from_longest, decimal_from_ulongest): Likewise.
91 (decimal_to_longest): Likewise.
92 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
93 (decimal_convert): Likewise.
94
95 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
96
97 * doublest.c: Do not include "gdbtypes.h".
98 (extract_typed_floating): Remove.
99 (store_typed_floating): Remove.
100 (convert_typed_floating): Remove.
101 * doublest.h (struct type): Remove.
102 (DOUBLEST_PRINT_FORMAT): Remove.
103 (DOUBLEST_SCAN_FORMAT): Remove.
104 (extract_typed_floating): Remove.
105 (store_typed_floating): Remove.
106 (convert_typed_floating): Remove.
107
108 * dfp.c (decimal_from_doublest): Remove.
109 (decimal_to_doublest): Remove.
110 * dfp.h: Do not include "doublest.h".
111 (decimal_from_doublest): Remove.
112 (decimal_to_doublest): Remove.
113
114 * value.c: Do not include "doublest.h" and "dfp.h".
115 (value_as_double): Remove.
116 (unpack_double): Remove.
117 (value_from_double): Remove.
118 (value_from_decfloat): Remove.
119 * value.h: Do not include "doublest.h".
120 (value_as_double): Remove.
121 (unpack_double): Remove.
122 (value_from_double): Remove.
123 (value_from_decfloat): Remove.
124
125 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
126
127 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
128 (i386_extract_return_value): Use target_float_convert.
129 (i386_store_return_value): Likewise.
130 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
131 (i387_value_to_register): Likewise.
132 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
133 (ia64_register_to_value): Use target_float_convert.
134 (ia64_value_to_register): Likewise.
135 (ia64_extract_return_value): Likewise.
136 (ia64_store_return_value): Likewise.
137 (ia64_push_dummy_call): Likewise.
138 * m68k-tdep.c: Include "target-float.h".
139 (m68k_register_to_value): Use target_float_convert.
140 (m68k_value_to_register): Likewise.
141 (m68k_svr4_extract_return_value): Likewise.
142 (m68k_svr4_store_return_value): Likewise.
143 * ppc-sysv-tdep.c: Include "target-float.h".
144 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
145 (do_ppc_sysv_return_value): Likewise.
146 (ppc64_sysv_abi_push_freg): Likewise.
147 (ppc64_sysv_abi_return_value_base): Likewise.
148 * rs6000-aix-tdep.c: Include "target-float.h".
149 (rs6000_push_dummy_call): Use target_float_convert.
150 (rs6000_return_value): Likewise.
151 * rs6000-lynx178-tdep.c: Include "target-float.h".
152 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
153 (rs6000_lynx178_return_value): Likewise.
154 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
155 (rs6000_register_to_value): Use target_float_convert.
156 (rs6000_value_to_register): Likewise.
157 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
158 (arm_extract_return_value): Use target_float_convert.
159 (arm_store_return_value): Likewise.
160 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
161 (sh_register_convert_to_virtual): Use target_float_convert.
162 (sh_register_convert_to_raw): Likewise.
163 * sh64-tdep.c: Include "target-float.h".
164 (sh64_extract_return_value): Use target_float_convert.
165 (sh64_register_convert_to_virtual): Likewise.
166 (sh64_register_convert_to_raw): Likewise. Fix argument types.
167
168 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
169
170 * target-float.c (floatformat_to_host_double): New function.
171 (floatformat_from_host_double): Likewise.
172 (target_float_to_host_double): Likewise.
173 (target_float_from_host_double): Likewise.
174 * target-float.h (target_float_to_host_double): Add prototype.
175 (target_float_from_host_double): Likewise.
176
177 * guile/scm-value.c: Include "target-float.h".
178 (gdbscm_value_to_real): Use target_float_to_host_double.
179 Handle integer source values via value_as_long.
180 * guile/scm-math.c: Include "target-float.h". Do not include
181 "doublest.h", "dfp.h", and "expression.h".
182 (vlscm_convert_typed_number): Use target_float_from_host_double.
183 (vlscm_convert_number): Likewise.
184
185 * python/py-value.c (valpy_float): Use target_float_to_host_double.
186 (convert_value_from_python): Use target_float_from_host_double.
187
188 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
189
190 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
191 (cast_from_fixed): Likewise.
192 (ada_scaling_type): New function.
193 (ada_delta): Return value instead of DOUBLEST. Perform target
194 arithmetic instead of host arithmetic.
195 (scaling_factor): Rename to ...
196 (ada_scaling_factor) ... this. Make non-static. Return value instead
197 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
198 (ada_fixed_to_float): Remove.
199 (ada_float_to_fixed): Remove.
200 * ada-lang.h (ada_fixed_to_float): Remove.
201 (ada_float_to_fixed): Remove.
202 (ada_delta): Return value instead of DOUBLEST.
203 (ada_scaling_factor): Add prototype.
204
205 * ada-typeprint.c: Include "target-float.h".
206 (print_fixed_point_type): Perform target arithmetic instead of
207 host arithmetic.
208 * ada-valprint.c: Include "target-float.h".
209 (ada_val_print_num): Perform target arithmetic instead of
210 host arithmetic for fixed-point types.
211
212 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
213
214 * target-float.c: Include <math.h>.
215 (floatformat_binop): New function.
216 (floatformat_compare): Likewise.
217 (target_float_binop): Likewise.
218 (target_float_compare): Likewise.
219 * target-float.h: Include "expression.h".
220 (target_float_binop): Add prototype.
221 (target_float_compare): Likewise.
222
223 * valarith.c: Do not include "doublest.h" and "dfp.h".
224 Include "common/byte-vector.h".
225 (value_args_as_decimal): Remove, replace by ...
226 (value_args_as_target_float): ... this function. Handle both
227 binary and decimal target floating-point formats.
228 (scalar_binop): Handle both binary and decimal FP using
229 value_args_as_target_float and target_float_binop.
230 (value_equal): Handle both binary and decimal FP using
231 value_args_as_target_float and target_float_compare.
232 (value_less): Likewise.
233 (value_pos): Handle all scalar types as simple copy.
234 (value_neg): Handle all scalar types via BINOP_SUB from 0.
235 * dfp.c (decimal_binop): Throw error instead of internal_error
236 when called with an unsupported operation code.
237
238 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
239
240 * target-float.c (target_float_to_string): New function.
241 (target_float_from_string): New function.
242 * target-float.h (target_float_to_string): Add prototype.
243 (target_float_from_string): Add prototype.
244
245 * valprint.c: Include "target-float.h". Do not include
246 "doublest.h" and "dfp.h".
247 (print_floating): Use target_float_to_string.
248 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
249 (printf_floating): Use target_float_to_string.
250 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
251 (print_i387_value): Use target_float_to_string.
252 * mips-tdep.c: Include "target-float.h".
253 (mips_print_fp_register): Use target_float_to_string.
254 * sh64-tdep.c: Include "target-float.h".
255 (sh64_do_fp_register): Use target_float_to_string.
256
257 * parse.c: Include "target-float.h". Do not include
258 "doublest.h" and "dfp.h".
259 (parse_float): Use target_float_from_string.
260 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
261 (define_symbol): Use target_float_from_string.
262 * gdbarch-selftests.c: Include "target-float.h".
263 (register_to_value_test): Use target_float_from_string.
264
265 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
266
267 * Makefile.c (SFILES): Add target-float.c.
268 (HFILES_NO_SRCDIR): Add target-float.h.
269 (COMMON_OBS): Add target-float.o.
270 * target-float.h: New file.
271 * target-float.c: New file.
272
273 * doublest.c (floatformat_classify): Fix detection of float_zero.
274
275 * gdbtypes.c (is_floating_type): New function.
276 * gdbtypes.h (is_floating_type): Add prototype.
277
278 * value.c: Do not include "floatformat.h".
279 (unpack_double): Use target_float_is_valid.
280 (is_floating_value): New function.
281 * value.h (is_floating_value): Add prototype-
282
283 * valarith.c: Include "target-float.h".
284 (value_logical_not): Use target_float_is_zero.
285
286 * python/py-value.c: Include "target-float.h".
287 (valpy_nonzero): Use target_float_is_zero.
288
289 2017-11-04 Tom Tromey <tom@tromey.com>
290
291 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
292
293 2017-11-04 Tom Tromey <tom@tromey.com>
294
295 * breakpoint.c (set_momentary_breakpoint): Return
296 breakpoint_up.
297 (until_break_command): Update.
298 (new_until_break_fsm): Change argument types to
299 breakpoint_up.
300 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
301 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
302 Remove.
303 * infcmd.c (finish_forward): Update.
304 * breakpoint.h (set_momentary_breakpoint)
305 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
306 (make_cleanup_delete_breakpoint): Remove.
307 (struct breakpoint_deleter): New.
308 (breakpoint_up): New typedef.
309 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
310 (insert_exception_resume_breakpoint): Update.
311 (insert_exception_resume_from_probe): Update.
312 (insert_longjmp_resume_breakpoint): Update.
313 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
314 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
315 * infcall.c (call_function_by_hand_dummy): Update
316
317 2017-11-04 Tom Tromey <tom@tromey.com>
318
319 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
320
321 2017-11-04 Tom Tromey <tom@tromey.com>
322
323 * linux-tdep.c (linux_core_info_proc_mappings): Use
324 gdb::def_vector.
325 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
326 "size" argument.
327 (linux_corefile_thread): Update.
328 (linux_make_corefile_notes): Remove unused variable.
329
330 2017-11-04 Tom Tromey <tom@tromey.com>
331
332 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
333 gdb::byte_vector.
334
335 2017-11-04 Tom Tromey <tom@tromey.com>
336
337 * objfiles.c (do_free_objfile_cleanup): Remove.
338 * compile/compile-object-load.c (compile_object_load): Update.
339 * objfiles.h (make_cleanup_free_objfile): Remove.
340
341 2017-11-04 Tom Tromey <tom@tromey.com>
342
343 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
344 (adi_read_versions): Change "tags" to "gdb_byte *".
345 (adi_print_versions): Likewise.
346
347 2017-11-04 Tom Tromey <tom@tromey.com>
348
349 * breakpoint.c
350 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
351 from start_rbreak_breakpoints.
352 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
353 * breakpoint.h (class scoped_rbreak_breakpoints): New.
354 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
355 * symtab.c (do_end_rbreak_breakpoints): Remove.
356 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
357
358 2017-11-04 Tom Tromey <tom@tromey.com>
359
360 * cp-namespace.c (reset_directive_searched): Remove.
361 (cp_lookup_symbol_via_imports): Use scoped_restore.
362 * cp-support.c (reset_directive_searched): Remove.
363 (make_symbol_overload_list_using): Use scoped_restore.
364 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
365 (reset_directive_searched): Remove.
366
367 2017-11-04 Tom Tromey <tom@tromey.com>
368
369 * symfile.c (find_separate_debug_file_by_debuglink): Use
370 unique_xmalloc_ptr.
371
372 2017-11-04 Tom Tromey <tom@tromey.com>
373
374 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
375 type of "info".
376 (compute_stack_depth): Likewise.
377 (do_compile_dwarf_expr_to_c): Use std::vector.
378
379 2017-11-04 Tom Tromey <tom@tromey.com>
380
381 * compile/compile-object-load.c (link_callbacks_einfo): Use
382 std::string.
383
384 2017-11-04 Tom Tromey <tom@tromey.com>
385
386 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
387 Use scoped_free_pendings.
388 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
389 scoped_free_pendings.
390 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
391 (xcoff_initial_scan): Likewise.
392 * buildsym.c (reset_symtab_globals): Update comment.
393 (scoped_free_pendings): Rename from really_free_pendings.
394 (prepare_for_building): Update comment.
395 (buildsym_init): Likewise.
396 * buildsym.h (class scoped_free_pendings): New class.
397 (really_free_pendings): Don't declare.
398
399 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
400
401 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
402 output when converting a zero value to a special byteorder format.
403
404 2017-11-02 Yao Qi <yao.qi@linaro.org>
405
406 * frame.c (do_frame_register_read): Remove aspace.
407 * jit.c (jit_frame_sniffer): Likwise.
408 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
409 * regcache.c (regcache::regcache): Pass nullptr.
410 (regcache_print): Caller updated.
411 * regcache.h (regcache::regcache): Remove one constructor
412 parameter aspace.
413
414 2017-11-02 Yao Qi <yao.qi@linaro.org>
415
416 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
417
418 2017-11-02 Yao Qi <yao.qi@linaro.org>
419
420 * breakpoint.c (insert_single_step_breakpoints): Update.
421 * frame.c (struct frame_info) <aspace>: Add const.
422 (frame_save_as_regcache): Add const.
423 (get_frame_address_space): Return const address_space *.
424 * frame.h (get_frame_address_space): Update declaration.
425 * infrun.c (struct step_over_info) <aspace>: Add const.
426 (set_step_over_info): Make aspace const.
427 (displaced_step_prepare_throw): Change variable const.
428 (resume): Likewise.
429 (proceed): Likewise.
430 (adjust_pc_after_break): Likewise.
431 (save_waitstatus): Likewise.
432 (handle_signal_stop): Likewise.
433 (keep_going_pass_signal): Likewise.
434 * jit.c (jit_frame_sniffer): Add const.
435 * mips-tdep.c (mips_single_step_through_delay): Likewise.
436 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
437 * record-full.c (record_full_wait_1): Likewise.
438 * regcache.c (regcache::regcache): Change parameter to const.
439 * regcache.h (regcache::regcache): Likewise.
440 (regcache::aspace): Return const address_space *.
441 (regcache) <m_aspace>: Add const.
442
443 2017-11-02 Yao Qi <yao.qi@linaro.org>
444
445 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
446 * frame.c (create_sentinel_frame): Likewise.
447 * infrun.c (displaced_step_prepare_throw): Likewise.
448 (resume): Likewise.
449 (thread_still_needs_step_over_bp): Likewise.
450 (proceed): Likewise.
451 (do_target_wait): Likewise.
452 (adjust_pc_after_break): Likewise.
453 (handle_syscall_event): Likewise.
454 (save_waitstatus): Likewise.
455 (handle_inferior_event_1): Likewise.
456 (handle_signal_stop): Likewise.
457 (keep_going_pass_signal): Likewise.
458 * linux-nat.c (status_callback): Likewise.
459 (save_stop_reason): Likewise.
460 (resume_stopped_resumed_lwps): Likewise.
461 * record-full.c (record_full_exec_insn): Likewise.
462 (record_full_wait_1): Likewise.
463 * regcache.c (get_regcache_aspace): Remove.
464 * regcache.h (get_regcache_aspace): Remove.
465
466 2017-11-02 Yao Qi <yao.qi@linaro.org>
467
468 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
469 (init_regcache_descr): Use gdbarch_num_regs.
470 (regcache::regcache): Likewise.
471 (regcache::get_register_status): Likewise.
472 (regcache::assert_raw_regnum): Likewise.
473 (regcache::cooked_read): Likewise.
474 (regcache::cooked_read_value): Likewise.
475 (regcache::cooked_write): Likewise.
476 (regcache::dump): Likewise.
477 (regcache::num_raw_registers): New method.
478 * regcache.h (class regcache) <num_raw_registers>: New.
479
480 2017-11-02 Yao Qi <yao.qi@linaro.org>
481
482 * regcache.c (regcache::assert_regnum): New method.
483 (regcache::invalidate): Call assert_regnum.
484 (regcache::raw_update): Likewise.
485 (regcache::raw_write): Likewise.
486 (regcache::raw_read_part): Likewise.
487 (regcache::raw_write_part): Likewise.
488 (regcache::raw_supply): Likewise.
489 (regcache::raw_supply_integer): Likewise.
490 (regcache::raw_supply_zeroed): Likewise.
491 (regcache::raw_collect): Likewise.
492 (regcache::raw_collect_integer): Likewise.
493 * regcache.h (regcache::assert_regnum): Declare.
494
495 2017-11-02 Yao Qi <yao.qi@linaro.org>
496
497 * regcache.c (regcache::dump): Remove code.
498
499 2017-11-02 Yao Qi <yao.qi@linaro.org>
500
501 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
502 Remove.
503 <sizeof_cooked_register_status>: Remove.
504 (init_regcache_descr): Update.
505 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
506 (regcache::save): Likewise.
507 (regcache::dump): Likewise.
508
509 2017-11-01 James Bowman <james.bowman@ftdichip.com>
510
511 * ft32-tdep.c (ft32_fetch_instruction): New function.
512 (ft32_analyze_prologue): Use ft32_fetch_instruction().
513
514 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
515
516 * cli/cli-script.c (execute_control_command): Rename to ...
517 (execute_control_command_1): ... this.
518 (execute_control_command): New function.
519
520 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
521
522 * tracepoint.c (tfind_command): Remove const_cast.
523
524 2017-10-30 Mike Gulick <mgulick@mathworks.com>
525
526 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
527
528 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
529
530 * common/common-utils.h (in_inclusive_range): New function.
531 * arm-tdep.c (arm_record_extension_space): Use
532 in_inclusive_range.
533 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
534 * cris-tdep.c (cris_spec_reg_applicable): Use
535 in_inclusive_range.
536
537 2017-10-30 Pedro Alves <palves@redhat.com>
538 Simon Marchi <simon.marchi@ericsson.com>
539
540 * remote.c (remote_set_syscall_catchpoint): Build a std::string
541 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
542
543 2017-10-30 Pedro Alves <palves@redhat.com>
544
545 * common/common-utils.c (string_appendf, string_vappendf): New
546 functions.
547 * common/common-utils.h (string_appendf, string_vappendf): New
548 declarations.
549 * unittests/common-utils-selftests.c (string_appendf_func)
550 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
551 (string_vappendf_tests): New functions.
552 (_initialize_common_utils_selftests): Register "string_appendf" and
553 "string_vappendf tests".
554
555 2017-10-30 Pedro Alves <palves@redhat.com>
556
557 * unittests/common-utils-selftests.c (format_func): New typedef.
558 (string_printf_tests, string_vprintf_tests): Tests factored out
559 and merged to ...
560 (test_format_func): ... this new function.
561 (string_printf_tests, string_vprintf_tests): Reimplement on top of
562 test_format_func.
563
564 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
565
566 * darwin-nat.c: Remove include of gdb.h.
567
568 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
569
570 * xtensa-xtregs.c: Fix formatting issues.
571
572 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
573
574 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
575
576 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
577
578 PR python/21213
579 * python/py-infthread.c (thpy_get_inferior): Increment reference
580 of inferior before returning it.
581
582 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
583
584 * unittests/common-utils-selftests.c (format): Add
585 ATTRIBUTE_PRINTF.
586
587 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
588
589 * xml-syscall.c (struct syscall_desc): Add constructor.
590 <name>: Change type to std::string.
591 (syscall_desc_up): New typedef.
592 (syscall_desc_p): Remove typeder.
593 (DEF_VEC_P(syscall_desc_p)): Remove.
594 (struct syscall_group_desc): Add constructor.
595 <name>: Change type to std::string.
596 <syscalls>: Change type to std::vector.
597 (syscall_group_desc_up): New typedef.
598 (syscall_group_desc_p): Remove typedef.
599 (DEF_VEC_P(syscall_group_desc_p)): Remove.
600 (struct syscalls_info) <syscalls>: Change type to std::vector of
601 unique_ptr.
602 <groups>: Likewise.
603 <my_gdb_datadir>: Change type to std::string.
604 (syscalls_info_up): New typedef.
605 (allocate_syscalls_info): Remove.
606 (syscalls_info_free_syscalls_desc): Remove.
607 (syscalls_info_free_syscall_group_desc): Remove.
608 (free_syscalls_info): Remove.
609 (make_cleanup_free_syscalls_info): Remove.
610 (syscall_group_create_syscall_group_desc): Adjust.
611 (syscall_group_add_syscall): Adjust.
612 (syscall_create_syscall_desc): Adjust.
613 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
614 (init_syscalls_info): Adjust.
615 (syscall_group_get_group_by_name): Adjust.
616 (xml_get_syscall_number): Adjust.
617 (xml_get_syscall_name): Adjust.
618 (xml_list_of_syscalls): Adjust.
619 (xml_list_syscalls_by_group): Adjust.
620 (xml_list_of_groups): Adjust.
621
622 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
623
624 * probe.h: Don't include gdb_vecs.h.
625 (DEF_VEC_P (probe_p)): Remove.
626 (find_probes_in_objfile): Return an std::vector.
627 * probe.c (find_probes_in_objfile): Likewise.
628 * breakpoint.c (breakpoint_objfile_data)
629 <longjmp_probes>: Change type to std::vector.
630 <exception_probes>: Likewise.
631 (free_breakpoint_probes): Don't manually free vectors.
632 (create_longjmp_master_breakpoint): Adjust.
633 (create_exception_master_breakpoint): Adjust.
634 * solib-svr4.c (svr4_create_probe_breakpoints): Change
635 parameter type, adjust.
636 (svr4_create_solib_event_breakpoints): Adjust.
637
638 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
639
640 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
641 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
642 with new.
643 (free_breakpoint_probes): Rename to ...
644 (free_breakpoint_objfile_data): ... this, and call delete on
645 bp_objfile_data..
646
647 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
648
649 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
650 (loaded_script_ptr): Remove typedef.
651 (DEF_VEC_P (loaded_script_ptr)): Remove.
652 (struct collect_matching_scripts_data): Add constructor.
653 <scripts_p>: Change type to (pointer to) std::vector.
654 (collect_matching_scripts_data): Adjust.
655 (sort_scripts_by_name): Make suitable for std::sort.
656 (print_scripts): Don't sort vector, adjust to std::vector.
657 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
658
659 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
660
661 * symfile.c (filename_language): Make struct, not typedef. Add
662 constructor.
663 <ext>: Change type to std::string.
664 (DEF_VEC_O (filename_language)): Remove.
665 (filename_language_table): Change type to std::vector.
666 (add_filename_language): Adjust.
667 (set_ext_lang_command): Adjust.
668 (info_ext_lang_command): Adjust.
669 (deduce_language_from_filename): Adjust.
670 (class scoped_restore_filename_language_table): Remove.
671 (test_filename_language): Use scoped_restore.
672 (test_set_ext_lang_command): Use scoped_restore, adjust to
673 std::vector change.
674
675 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
676
677 * symfile.c: Include selftest.h.
678 (class scoped_restore_filename_language_table): New.
679 (test_filename_language): New test.
680 (test_set_ext_lang_command): New test.
681 (_initialize_symfile): Register tests.
682
683 2017-10-27 Keith Seitz <keiths@redhat.com>
684
685 * breakpoint.c (print_breakpoint_location): Use the symbol saved
686 in the bp_location, falling back to find_pc_sect_function when
687 needed.
688 (add_location_to_breakpoint): Save sal->symbol.
689 * breakpoint.h (struct bp_location) <symbol>: New field.
690 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
691 * symtab.h (struct symtab_and_line) <symbol>: New field.
692
693 2017-10-26 Patrick Frants <osscontribute@gmail.com>
694
695 PR gdb/13669
696 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
697 to rewind obstack.
698
699 2017-10-26 Pedro Alves <palves@redhat.com>
700
701 * remote.c (remote_async_terminal_ours_p): Delete.
702 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
703 Remove references to 'remote_async_terminal_ours_p'.
704
705 2017-10-26 Yao Qi <yao.qi@linaro.org>
706
707 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
708
709 2017-10-26 Yao Qi <yao.qi@linaro.org>
710
711 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
712 aspace const.
713 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
714 Likewise.
715 * breakpoint.c (bpstat_check_location): Remove cast.
716 (breakpoint_hit_catch_fork): Make aspce const.
717 (breakpoint_hit_catch_solib): Likewise.
718 (breakpoint_hit_catch_exec): Likewise.
719 (breakpoint_hit_ranged_breakpoint): Likewise.
720 (breakpoint_hit_watchpoint): Likewise.
721 (base_breakpoint_breakpoint_hit): Likewise.
722 (bkpt_breakpoint_hit): Likewise.
723 (dprintf_breakpoint_hit): Likewise.
724 (tracepoint_breakpoint_hit): Likewise.
725 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
726
727 2017-10-26 Yao Qi <yao.qi@linaro.org>
728
729 * breakpoint.c (breakpoint_location_address_match): Change
730 "struct address_space *" to "const address_space".
731 (breakpoint_location_address_range_overlap): Likewise.
732 (breakpoint_here_p): Likewise.
733 (breakpoint_in_range_p): Likewise.
734 (moribund_breakpoint_here_p): Likewise.
735 (bp_location_inserted_here_p): Likewise.
736 (software_breakpoint_inserted_here_p): Likewise.
737 (hardware_breakpoint_inserted_here_p): Likewise.
738 (hardware_watchpoint_inserted_in_range): Likewise.
739 (bpstat_check_location): Likewise.
740 (bpstat_stop_status): Likewise.
741 (breakpoint_address_match): Likewise.
742 (breakpoint_address_match_range): Likewise.
743 (breakpoint_location_address_match): Likewise.
744 (breakpoint_location_address_range_overlap): Likewise.
745 (insert_single_step_breakpoint): Likewise.
746 (breakpoint_has_location_inserted_here): Likewise.
747 (single_step_breakpoint_inserted_here_p): Likewise.
748 (pc_at_non_inline_function): Likewise.
749 * breakpoint.h (bpstat_stop_status): Update declaration.
750 (breakpoint_here_p): Likewise.
751 (breakpoint_in_range_p): Likewise.
752 (moribund_breakpoint_here_p): Likewise.
753 (breakpoint_inserted_here_p): Likewise.
754 (software_breakpoint_inserted_here_p): Likewise.
755 (hardware_breakpoint_inserted_here_p): Likewise.
756 (breakpoint_has_location_inserted_here): Likewise.
757 (single_step_breakpoint_inserted_here_p): Likewise.
758 (hardware_watchpoint_inserted_in_range): Likewise.
759 (breakpoint_address_match): Likewise.
760 (insert_single_step_breakpoint): Likewise.
761 (pc_at_non_inline_function): Likewise.
762 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
763 * record.c (record_check_stopped_by_breakpoint): Likewise.
764 * record.h (record_check_stopped_by_breakpoint): Likewise.
765 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
766
767 2017-10-25 Yao Qi <yao.qi@linaro.org>
768
769 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
770 regcache->arch () instead get_regcache_arch.
771 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
772 Likewise.
773 (aarch64_fbsd_store_inferior_registers): Likewise.
774 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
775 (store_gregs_to_thread): Likewise.
776 (fetch_fpregs_from_thread): Likewise.
777 (store_fpregs_to_thread): Likewise.
778 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
779 (aarch64_store_return_value): Likewise.
780 (aarch64_software_single_step): Likewise.
781 * aix-thread.c (aix_thread_wait): Likewise.
782 (supply_reg32): Likewise.
783 (supply_sprs64): Likewise.
784 (supply_sprs32): Likewise.
785 (fill_gprs64): Likewise.
786 (fill_gprs32): Likewise.
787 (fill_sprs64): Likewise.
788 (fill_sprs32): Likewise.
789 (store_regs_user_thread): Likewise.
790 (store_regs_kernel_thread): Likewise.
791 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
792 (alphabsd_store_inferior_registers): Likewise.
793 * alpha-tdep.c (alpha_extract_return_value): Likewise.
794 (alpha_store_return_value): Likewise.
795 (alpha_deal_with_atomic_sequence): Likewise.
796 (alpha_next_pc): Likewise.
797 (alpha_software_single_step): Likewise.
798 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
799 (amd64bsd_store_inferior_registers): Likewise.
800 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
801 Likewise.
802 (amd64_linux_store_inferior_registers): Likewise.
803 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
804 (amd64_collect_native_gregset): Likewise.
805 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
806 (amd64obsd_collect_uthread): Likewise.
807 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
808 (amd64_collect_fpregset): Likewise.
809 (amd64_supply_fxsave): Likewise.
810 (amd64_supply_xsave): Likewise.
811 (amd64_collect_fxsave): Likewise.
812 (amd64_collect_xsave): Likewise.
813 * arc-tdep.c (arc_write_pc): Likewise.
814 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
815 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
816 (arm_fbsd_store_inferior_registers): Likewise.
817 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
818 (store_vfp_regs): Likewise.
819 (arm_linux_fetch_inferior_registers): Likewise.
820 (arm_linux_store_inferior_registers): Likewise.
821 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
822 (arm_linux_sigreturn_next_pc): Likewise.
823 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
824 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
825 (fetch_register): Likewise.
826 (store_register): Likewise.
827 * arm-tdep.c (arm_is_thumb): Likewise.
828 (displaced_in_arm_mode): Likewise.
829 (bx_write_pc): Likewise.
830 (arm_get_next_pcs_addr_bits_remove): Likewise.
831 (arm_software_single_step): Likewise.
832 (arm_extract_return_value): Likewise.
833 (arm_store_return_value): Likewise.
834 (arm_write_pc): Likewise.
835 * bfin-tdep.c (bfin_extract_return_value): Likewise.
836 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
837 (bsd_uthread_store_registers): Likewise.
838 * core-regset.c (fetch_core_registers): Likewise.
839 * corelow.c (get_core_registers): Likewise.
840 * cris-tdep.c (cris_store_return_value): Likewise.
841 (cris_extract_return_value): Likewise.
842 (find_step_target): Likewise.
843 (find_step_target): Likewise.
844 (cris_software_single_step): Likewise.
845 * ctf.c (ctf_fetch_registers): Likewise.
846 * darwin-nat.c (cancel_breakpoint): Likewise.
847 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
848 * frv-tdep.c (frv_extract_return_value): Likewise.
849 * ft32-tdep.c (ft32_store_return_value): Likewise.
850 (ft32_extract_return_value): Likewise.
851 * go32-nat.c (fetch_register): Likewise.
852 (go32_fetch_registers): Likewise.
853 (go32_store_registers): Likewise.
854 (store_register): Likewise.
855 * h8300-tdep.c (h8300_extract_return_value): Likewise.
856 (h8300_store_return_value): Likewise.
857 * hppa-linux-nat.c (fetch_register): Likewise.
858 (store_register): Likewise.
859 (hppa_linux_fetch_inferior_registers): Likewise.
860 (hppa_linux_store_inferior_registers): Likewise.
861 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
862 (i386_darwin_store_inferior_registers): Likewise.
863 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
864 (gnu_store_registers): Likewise.
865 * i386-linux-nat.c (fetch_register): Likewise.
866 (store_register): Likewise.
867 (supply_gregset): Likewise.
868 (fill_gregset): Likewise.
869 (i386_linux_fetch_inferior_registers): Likewise.
870 (i386_linux_store_inferior_registers): Likewise.
871 (i386_linux_resume): Likewise.
872 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
873 Likewise.
874 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
875 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
876 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
877 (i386obsd_collect_uthread): Likewise.
878 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
879 (i386_supply_gregset): Likewise.
880 (i386_collect_gregset): Likewise.
881 (i386_supply_fpregset): Likewise.
882 (i386_collect_fpregset): Likewise.
883 (i386_mpx_bd_base): Likewise.
884 * i386-v4-nat.c (supply_fpregset): Likewise.
885 (fill_fpregset): Likewise.
886 * i387-tdep.c (i387_supply_fsave): Likewise.
887 (i387_collect_fsave): Likewise.
888 (i387_supply_fxsave): Likewise.
889 (i387_collect_fxsave): Likewise.
890 (i387_supply_xsave): Likewise.
891 (i387_collect_xsave): Likewise.
892 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
893 (ia64_linux_store_registers): Likewise.
894 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
895 (ia64_extract_return_value): Likewise.
896 (ia64_store_return_value): Likewise.
897 (find_func_descr): Likewise.
898 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
899 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
900 (inf_ptrace_store_registers): Likewise.
901 * infrun.c (use_displaced_stepping): Likewise.
902 (displaced_step_prepare_throw): Likewise.
903 (resume): Likewise.
904 (proceed): Likewise.
905 (do_target_wait): Likewise.
906 (adjust_pc_after_break): Likewise.
907 (handle_inferior_event_1): Likewise.
908 (handle_signal_stop): Likewise.
909 (save_infcall_suspend_state): Likewise.
910 (restore_infcall_suspend_state): Likewise.
911 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
912 * jit.c (jit_frame_prev_register): Likewise.
913 * linux-nat.c (save_stop_reason): Likewise.
914 (linux_nat_wait_1): Likewise.
915 (resume_stopped_resumed_lwps): Likewise.
916 * linux-record.c (record_linux_sockaddr): Likewise.
917 (record_linux_msghdr): Likewise.
918 (record_linux_system_call): Likewise.
919 * linux-tdep.c (linux_collect_thread_registers): Likewise.
920 * lm32-tdep.c (lm32_extract_return_value): Likewise.
921 (lm32_store_return_value): Likewise.
922 * m32c-tdep.c (m32c_read_flg): Likewise.
923 (m32c_pseudo_register_read): Likewise.
924 (m32c_pseudo_register_write): Likewise.
925 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
926 (m32r_linux_collect_gregset): Likewise.
927 * m32r-tdep.c (m32r_store_return_value): Likewise.
928 (m32r_extract_return_value): Likewise.
929 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
930 (m68kbsd_collect_fpregset): Likewise.
931 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
932 * m68k-linux-nat.c (fetch_register): Likewise.
933 (old_fetch_inferior_registers): Likewise.
934 (old_store_inferior_registers): Likewise.
935 (store_regs): Likewise.
936 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
937 (m68k_svr4_store_return_value): Likewise.
938 * m88k-tdep.c (m88k_store_arguments): Likewise.
939 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
940 (mi_cmd_data_write_register_values): Likewise.
941 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
942 (mips_fbsd_store_inferior_registers): Likewise.
943 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
944 (mips_fbsd_supply_gregs): Likewise.
945 (mips_fbsd_collect_fpregs): Likewise.
946 (mips_fbsd_collect_gregs): Likewise.
947 (mips_fbsd_supply_fpregset): Likewise.
948 (mips_fbsd_collect_fpregset): Likewise.
949 (mips_fbsd_supply_gregset): Likewise.
950 (mips_fbsd_collect_gregset): Likewise.
951 * mips-linux-nat.c (supply_gregset): Likewise.
952 (fill_gregset): Likewise.
953 (supply_fpregset): Likewise.
954 (fill_fpregset): Likewise.
955 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
956 (mips_fill_gregset): Likewise.
957 (mips_supply_fpregset): Likewise.
958 (mips_fill_fpregset): Likewise.
959 (mips64_supply_gregset): Likewise.
960 (micromips_linux_sigframe_validate): Likewise.
961 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
962 (mipsnbsd_fetch_inferior_registers): Likewise.
963 (mipsnbsd_store_inferior_registers): Likewise.
964 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
965 (mipsnbsd_supply_gregset): Likewise.
966 (mipsnbsd_iterate_over_regset_sections): Likewise.
967 (mipsnbsd_supply_reg): Likewise.
968 (mipsnbsd_supply_fpreg): Likewise.
969 * mips-tdep.c (mips_in_frame_stub): Likewise.
970 (mips_dummy_id): Likewise.
971 (is_octeon_bbit_op): Likewise.
972 (micromips_bc1_pc): Likewise.
973 (extended_mips16_next_pc): Likewise.
974 (mips16_next_pc): Likewise.
975 (deal_with_atomic_sequence): Likewise.
976 * moxie-tdep.c (moxie_process_readu): Likewise.
977 * nios2-tdep.c (nios2_get_next_pc): Likewise.
978 * nto-procfs.c (procfs_store_registers): Likewise.
979 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
980 (ppcfbsd_store_inferior_registers): Likewise.
981 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
982 (fetch_altivec_register): Likewise.
983 (get_spe_registers): Likewise.
984 (fetch_spe_register): Likewise.
985 (fetch_altivec_registers): Likewise.
986 (fetch_all_gp_regs): Likewise.
987 (fetch_all_fp_regs): Likewise.
988 (store_vsx_register): Likewise.
989 (store_altivec_register): Likewise.
990 (set_spe_registers): Likewise.
991 (store_spe_register): Likewise.
992 (store_altivec_registers): Likewise.
993 (store_all_gp_regs): Likewise.
994 (store_all_fp_regs): Likewise.
995 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
996 (ppc_linux_collect_gregset): Likewise.
997 (ppc_canonicalize_syscall): Likewise.
998 (ppc_linux_record_signal): Likewise.
999 (ppu2spu_prev_register): Likewise.
1000 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1001 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
1002 (ppcobsd_store_registers): Likewise.
1003 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
1004 Likewise.
1005 (ppc_ravenscar_generic_store_registers): Likewise.
1006 * procfs.c (procfs_fetch_registers): Likewise.
1007 (procfs_store_registers): Likewise.
1008 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
1009 (ravenscar_store_registers): Likewise.
1010 (ravenscar_prepare_to_store): Likewise.
1011 * record-btrace.c (record_btrace_fetch_registers): Likewise.
1012 * record-full.c (record_full_wait_1): Likewise.
1013 (record_full_registers_change): Likewise.
1014 (record_full_store_registers): Likewise.
1015 (record_full_core_fetch_registers): Likewise.
1016 (record_full_save): Likewise.
1017 (record_full_goto_insn): Likewise.
1018 * regcache.c (regcache_register_size): Likewise.
1019 (get_regcache_arch): Remove.
1020 (regcache_read_pc): Likewise.
1021 * regcache.h (get_regcache_arch): Remove.
1022 * remote-sim.c (gdbsim_fetch_register): Likewise.
1023 (gdbsim_store_register): Likewise.
1024 * remote.c (fetch_register_using_p): Likewise.
1025 (send_g_packet): Likewise.
1026 (remote_prepare_to_store): Likewise.
1027 (store_registers_using_G): Likewise.
1028 * reverse.c (save_bookmark_command): Likewise.
1029 (goto_bookmark_command): Likewise.
1030 * rs6000-aix-tdep.c (branch_dest): Likewise.
1031 * rs6000-nat.c (rs6000_ptrace64): Likewise.
1032 (fetch_register): Likewise.
1033 * rs6000-tdep.c (ppc_supply_reg): Likewise.
1034 (ppc_collect_reg): Likewise.
1035 (ppc_collect_gregset): Likewise.
1036 (ppc_collect_fpregset): Likewise.
1037 (ppc_collect_vsxregset): Likewise.
1038 (ppc_collect_vrregset): Likewise.
1039 (ppc_displaced_step_hw_singlestep): Likewise.
1040 (rs6000_pseudo_register_read): Likewise.
1041 (rs6000_pseudo_register_write): Likewise.
1042 * s390-linux-nat.c (supply_gregset): Likewise.
1043 (fill_gregset): Likewise.
1044 (s390_linux_fetch_inferior_registers): Likewise.
1045 * s390-linux-tdep.c (s390_write_pc): Likewise.
1046 (s390_software_single_step): Likewise.
1047 (s390_all_but_pc_registers_record): Likewise.
1048 (s390_linux_syscall_record): Likewise.
1049 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
1050 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
1051 (shnbsd_store_inferior_registers): Likewise.
1052 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
1053 (sh_extract_return_value_fpu): Likewise.
1054 (sh_store_return_value_nofpu): Likewise.
1055 (sh_corefile_supply_regset): Likewise.
1056 (sh_corefile_collect_regset): Likewise.
1057 * sh64-tdep.c (sh64_extract_return_value): Likewise.
1058 (sh64_store_return_value): Likewise.
1059 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
1060 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
1061 (sparc_store_inferior_registers): Likewise.
1062 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
1063 (sparc_ravenscar_prepare_to_store): Likewise.
1064 * sparc-tdep.c (sparc32_store_arguments): Likewise.
1065 (sparc_analyze_control_transfer): Likewise.
1066 (sparc_step_trap): Likewise.
1067 (sparc_software_single_step): Likewise.
1068 (sparc32_gdbarch_init): Likewise.
1069 (sparc_supply_rwindow): Likewise.
1070 (sparc_collect_rwindow): Likewise.
1071 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
1072 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
1073 (sparc64nbsd_collect_gregset): Likewise.
1074 (sparc64nbsd_supply_fpregset): Likewise.
1075 (sparc64nbsd_collect_fpregset): Likewise.
1076 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
1077 (sparc64_supply_gregset): Likewise.
1078 (sparc64_collect_gregset): Likewise.
1079 (sparc64_supply_fpregset): Likewise.
1080 (sparc64_collect_fpregset): Likewise.
1081 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
1082 * spu-tdep.c (spu_unwind_sp): Likewise.
1083 (spu2ppu_prev_register): Likewise.
1084 (spu_memory_remove_breakpoint): Likewise.
1085 * stack.c (return_command): Likewise.
1086 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
1087 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1088 * tracefile.c (trace_save_ctf): Likewise.
1089 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
1090 (do_windows_store_inferior_registers): Likewise.
1091 (windows_resume): Likewise.
1092 * xtensa-linux-nat.c (fill_gregset): Likewise.
1093 (supply_gregset_reg): Likewise.
1094 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
1095 (xtensa_register_read_masked): Likewise.
1096 (xtensa_supply_gregset): Likewise.
1097 (xtensa_extract_return_value): Likewise.
1098 (xtensa_store_return_value): Likewise.
1099
1100 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
1101
1102 * doublest.c (floatformat_from_string): New function.
1103 * doublest.h (floatformat_from_string): Add prototype.
1104
1105 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
1106 (OP_FLOAT): ... this.
1107 * expression.h: Do not include "doublest.h".
1108 (union exp_element): Replace doubleconst and decfloatconst by
1109 new element floatconst.
1110 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
1111 (ada_evaluate_subexp): Likewise.
1112 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
1113 OP_DOUBLE and OP_DECFLOAT.
1114 * expprint.c (print_subexp_standard): Likewise.
1115 (dump_subexp_body_standard): Likewise.
1116 * breakpoint.c (watchpoint_exp_is_const): Likewise.
1117
1118 * parse.c: Include "dfp.h".
1119 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
1120 (write_exp_elt_floatcst): New function.
1121 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
1122 and OP_DECFLOAT.
1123 (operator_check_standard): Likewise.
1124 (parse_float): Do not accept suffix. Take type as input. Return bool.
1125 Return target format buffer instead of host DOUBLEST.
1126 Use floatformat_from_string and decimal_from_string to parse
1127 either binary or decimal floating-point types.
1128 (parse_c_float): Remove.
1129 * parser-defs.h: Do not include "doublest.h".
1130 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
1131 (write_exp_elt_floatcst): Add prototype.
1132 (parse_float): Update prototype.
1133 (parse_c_float): Remove.
1134
1135 * c-exp.y: Do not include "dfp.h".
1136 (typed_val_float): Use byte buffer instead of DOUBLEST.
1137 (typed_val_decfloat): Remove.
1138 (DECFLOAT): Remove.
1139 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1140 (parse_number): Update to new parse_float interface.
1141 Parse suffixes and determine type before calling parse_float.
1142 Handle decimal and binary FP types the same way.
1143
1144 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1145 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
1146 (parse_number): Update to new parse_float interface.
1147 Parse suffixes and determine type before calling parse_float.
1148
1149 * f-exp.y: Replace dval by typed_val_float.
1150 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1151 (parse_number): Use parse_float instead of atof.
1152
1153 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1154 (parse_go_float): Remove.
1155 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1156 (parse_number): Call parse_float instead of parse_go_float.
1157 Parse suffixes and determine type before calling parse_float.
1158
1159 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1160 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1161 (parse_number): Update to new parse_float interface.
1162 Parse suffixes and determine type before calling parse_float.
1163
1164 * m2-exp.y: Replace dval by byte buffer val.
1165 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1166 (parse_number): Call parse_float instead of atof.
1167
1168 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1169 (lex_number): Call parse_float instead of strtod.
1170 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
1171 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
1172 Use write_exp_elt_floatcst.
1173 (unit_testing): Remove static variable.
1174 (rust_type): Do not check unit_testing.
1175 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
1176
1177 * ada-exp.y (type_float, type_double): Remove.
1178 (typed_val_float): Use byte buffer instead of DOUBLEST.
1179 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1180 * ada-lex.l (processReal): Use parse_float instead of sscanf.
1181
1182 2017-10-25 Alan Hayward <alan.hayward@arm.com>
1183
1184 * aarch64-tdep.h (enum aarch64_regnum): Remove.
1185 * arch/aarch64.h: New file.
1186
1187 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1188
1189 * dfp.h (decimal_from_string): Use const reference for argument.
1190 * dfp.c (decimal_from_string): Likewise.
1191
1192 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1193
1194 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
1195 * sh64-tdep.c (sh64_do_fp_register): Likewise.
1196 * mips-tdep.c (mips_print_fp_register): Likewise.
1197
1198 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1199
1200 * common/format.h (enum argclass): Replace decfloat_arg by
1201 dec32float_arg, dec64float_arg, and dec128float_arg.
1202 * common/format.c (parse_format_string): Update to return
1203 new decimal float argument classes.
1204
1205 * printcmd.c (printf_decfloat): Rename to ...
1206 (printf_floating): ... this. Add argclass argument, and use it
1207 instead of parsing the format string again. Add support for
1208 binary floating-point values, using floatformat_to_string.
1209 Convert value to the target format if it doesn't already match.
1210 (ui_printf): Call printf_floating instead of printf_decfloat,
1211 also for double_arg / long_double_arg. Pass argclass.
1212
1213 * dfp.c (decimal_to_string): Add format string argument.
1214 * dfp.h (decimal_to_string): Likewise.
1215
1216 * doublest.c (floatformat_to_string): Add format string argument.
1217 * doublest.h (floatformat_to_string): Likewise.
1218
1219 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1220
1221 * doublest.c (floatformat_precision): New routine.
1222 (floatformat_to_string): Likewise.
1223 * doublest.c (floatformat_to_string): Add prototype.
1224
1225 * printcmd.c (print_scalar_formatted): Only call print_floating
1226 on floating-point types.
1227 * valprint.c: Do not include "floatformat.h".
1228 (generic_val_print_decfloat): Remove.
1229 (generic_val_print): Call generic_val_print_float for both
1230 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
1231 (print_floating): Use floatformat_to_string. Handle decimal float.
1232 (print_decimal_floating): Remove, merge into floatformat_to_string.
1233 * value.h (print_decimal_floating): Remove.
1234
1235 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
1236
1237 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1238
1239 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
1240
1241 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1242
1243 * memattr.h: Don't include vec.h.
1244 (struct mem_attrib): Initialize fields.
1245 <unknown>: New static method.
1246 (struct mem_region): Add constructors, operator<, initialize
1247 fields.
1248 * memattr.c: Include algorithm.
1249 (default_mem_attrib, unknown_mem_attrib): Remove.
1250 (user_mem_region_list): New global.
1251 (target_mem_region_list, mem_region_list): Change type to
1252 std::vector<mem_region>.
1253 (mem_use_target): Now a function.
1254 (target_mem_regions_valid): Change type to bool.
1255 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
1256 (require_user_regions): Adjust.
1257 (require_target_regions): Adjust.
1258 (create_mem_region): Adjust.
1259 (lookup_mem_region): Adjust.
1260 (invalidate_target_mem_regions): Adjust.
1261 (mem_clear): Rename to...
1262 (user_mem_clear): ... this, and adjust.
1263 (mem_command): Adjust.
1264 (info_mem_command): Adjust.
1265 (mem_enable, enable_mem_command, mem_disable,
1266 disable_mem_command): Adjust.
1267 (mem_delete): Adjust.
1268 (delete_mem_command): Adjust.
1269 * memory-map.h (parse_memory_map): Return an std::vector.
1270 * memory-map.c (parse_memory_map): Likewise.
1271 (struct memory_map_parsing_data): Add constructor.
1272 <memory_map>: Point to std::vector.
1273 (memory_map_start_memory): Adjust.
1274 (memory_map_end_memory): Adjust.
1275 (memory_map_end_property): Adjust.
1276 (clear_result): Remove.
1277 * remote.c (remote_memory_map): Return an std::vector.
1278 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
1279 Remove.
1280 (target_debug_print_mem_region_vector): New.
1281 * target-delegates.c: Regenerate.
1282 * target.h (mem_region_vector): New typedef.
1283 (to_memory_map): Return mem_region_vector.
1284 (target_memory_map): Return an std::vector.
1285 * target.c (target_memory_map): Return an std::vector.
1286 (flash_erase_command): Adjust.
1287
1288 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1289
1290 * memory-map.c (struct memory_map_parsing_data) <property_name>:
1291 Change type to std::string.
1292 (memory_map_start_property): Adjust.
1293 (memory_map_end_property): Adjust.
1294
1295 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1296
1297 * infrun.h: Include common/byte-vector.h.
1298 (struct displaced_step_closure): New struct.
1299 (struct buf_displaced_step_closure): New struct.
1300 * infrun.c (displaced_step_closure::~displaced_step_closure):
1301 Provide default implementation.
1302 (displaced_step_clear): Deallocate step closure with delete.
1303 * aarch64-tdep.c (displaced_step_closure): Rename to ...
1304 (aarch64_displaced_step_closure): ... this, extend
1305 displaced_step_closure.
1306 (aarch64_displaced_step_data) <dsc>: Change type to
1307 aarch64_displaced_step_closure.
1308 (aarch64_displaced_step_copy_insn): Adjust to type change, use
1309 unique_ptr.
1310 (aarch64_displaced_step_fixup): Add cast for displaced step
1311 closure.
1312 * amd64-tdep.c (displaced_step_closure): Rename to ...
1313 (amd64_displaced_step_closure): ... this, extend
1314 displaced_step_closure.
1315 <insn_buf>: Change type to std::vector<gdb_byte>.
1316 <max_len>: Remove.
1317 (fixup_riprel): Change type of DSC parameter, adjust to type
1318 change of insn_buf.
1319 (fixup_displaced_copy): Change type of DSC parameter.
1320 (amd64_displaced_step_copy_insn): Instantiate
1321 amd64_displaced_step_closure.
1322 (amd64_displaced_step_fixup): Add cast for closure type, adjust
1323 to type change of insn_buf.
1324 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
1325 parameter DSC.
1326 (arm_linux_copy_svc): Likewise.
1327 (cleanup_kernel_helper_return): Likewise.
1328 (arm_catch_kernel_helper_return): Likewise.
1329 (arm_linux_displaced_step_copy_insn): Instantiate
1330 arm_displaced_step_closure.
1331 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
1332 (displaced_read_reg): Change type of parameter DSC.
1333 (branch_write_pc): Likewise.
1334 (load_write_pc): Likewise.
1335 (alu_write_pc): Likewise.
1336 (displaced_write_reg): Likewise.
1337 (arm_copy_unmodified): Likewise.
1338 (thumb_copy_unmodified_32bit): Likewise.
1339 (thumb_copy_unmodified_16bit): Likewise.
1340 (cleanup_preload): Likewise.
1341 (install_preload): Likewise.
1342 (arm_copy_preload): Likewise.
1343 (thumb2_copy_preload): Likewise.
1344 (install_preload_reg): Likewise.
1345 (arm_copy_preload_reg): Likewise.
1346 (cleanup_copro_load_store): Likewise.
1347 (install_copro_load_store): Likewise.
1348 (arm_copy_copro_load_store) Likewise.
1349 (thumb2_copy_copro_load_store): Likewise.
1350 (cleanup_branch): Likewise.
1351 (install_b_bl_blx): Likewise.
1352 (arm_copy_b_bl_blx): Likewise.
1353 (thumb2_copy_b_bl_blx): Likewise.
1354 (thumb_copy_b): Likewise.
1355 (install_bx_blx_reg): Likewise.
1356 (arm_copy_bx_blx_reg): Likewise.
1357 (thumb_copy_bx_blx_reg): Likewise.
1358 (cleanup_alu_imm): Likewise.
1359 (arm_copy_alu_imm): Likewise.
1360 (thumb2_copy_alu_imm): Likewise.
1361 (cleanup_alu_reg): Likewise.
1362 (install_alu_reg): Likewise.
1363 (arm_copy_alu_reg): Likewise.
1364 (thumb_copy_alu_reg): Likewise.
1365 (cleanup_alu_shifted_reg): Likewise.
1366 (install_alu_shifted_reg): Likewise.
1367 (arm_copy_alu_shifted_reg): Likewise.
1368 (cleanup_load): Likewise.
1369 (cleanup_store): Likewise.
1370 (arm_copy_extra_ld_st): Likewise.
1371 (install_load_store): Likewise.
1372 (thumb2_copy_load_literal): Likewise.
1373 (thumb2_copy_load_reg_imm): Likewise.
1374 (arm_copy_ldr_str_ldrb_strb): Likewise.
1375 (cleanup_block_load_all): Likewise.
1376 (cleanup_block_store_pc): Likewise.
1377 (cleanup_block_load_pc): Likewise.
1378 (arm_copy_block_xfer): Likewise.
1379 (thumb2_copy_block_xfer): Likewise.
1380 (cleanup_svc): Likewise.
1381 (install_svc): Likewise.
1382 (arm_copy_svc): Likewise.
1383 (thumb_copy_svc): Likewise.
1384 (arm_copy_undef): Likewise.
1385 (thumb_32bit_copy_undef): Likewise.
1386 (arm_copy_unpred): Likewise.
1387 (arm_decode_misc_memhint_neon): Likewise.
1388 (arm_decode_unconditional): Likewise.
1389 (arm_decode_miscellaneous): Likewise.
1390 (arm_decode_dp_misc): Likewise.
1391 (arm_decode_ld_st_word_ubyte): Likewise.
1392 (arm_decode_media): Likewise.
1393 (arm_decode_b_bl_ldmstm): Likewise.
1394 (arm_decode_ext_reg_ld_st): Likewise.
1395 (thumb2_decode_dp_shift_reg): Likewise.
1396 (thumb2_decode_ext_reg_ld_st): Likewise.
1397 (arm_decode_svc_copro): Likewise.
1398 (thumb2_decode_svc_copro): Likewise.
1399 (install_pc_relative): Likewise.
1400 (thumb_copy_pc_relative_16bit): Likewise.
1401 (thumb_decode_pc_relative_16bit): Likewise.
1402 (thumb_copy_pc_relative_32bit): Likewise.
1403 (thumb_copy_16bit_ldr_literal): Likewise.
1404 (thumb_copy_cbnz_cbz): Likewise.
1405 (thumb2_copy_table_branch): Likewise.
1406 (cleanup_pop_pc_16bit_all): Likewise.
1407 (thumb_copy_pop_pc_16bit): Likewise.
1408 (thumb_process_displaced_16bit_insn): Likewise.
1409 (decode_thumb_32bit_ld_mem_hints): Likewise.
1410 (thumb_process_displaced_32bit_insn): Likewise.
1411 (thumb_process_displaced_insn): Likewise.
1412 (arm_process_displaced_insn): Likewise.
1413 (arm_displaced_init_closure): Likewise.
1414 (arm_displaced_step_fixup): Add cast for closure.
1415 * arm-tdep.h: Include infrun.h.
1416 (displaced_step_closure): Rename to ...
1417 (arm_displaced_step_closure): ... this, extend
1418 displaced_step_closure.
1419 <u::svc::copy_svc_os>: Change type of parameter DSC.
1420 <cleanup>: Likewise.
1421 (arm_process_displaced_insn): Likewise.
1422 (arm_displaced_init_closure): Likewise.
1423 (displaced_read_reg): Likewise.
1424 (displaced_write_reg): Likewise.
1425 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1426 Adjust.
1427 * i386-tdep.h: Include infrun.h.
1428 (i386_displaced_step_closure): New typedef.
1429 * i386-tdep.c (i386_displaced_step_copy_insn): Use
1430 i386_displaced_step_closure.
1431 (i386_displaced_step_fixup): Adjust.
1432 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
1433 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
1434 and unique_ptr.
1435 (ppc_displaced_step_fixup): Adjust.
1436 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
1437 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
1438 and unique_ptr.
1439 (s390_displaced_step_fixup): Adjust.
1440
1441 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1442
1443 * interps.h (interp_resume, interp_suspend, interp_set_temp):
1444 Remove declarations.
1445
1446 2017-10-20 Tom Tromey <tom@tromey.com>
1447
1448 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
1449 std::vector.
1450 (gdb_bfd_record_inclusion): Update.
1451 (bfdp): Remove typedef.
1452
1453 2017-10-20 Tom Tromey <tom@tromey.com>
1454
1455 * gdb_bfd.c (gdb_bfd_ref): Use new.
1456 (struct gdb_bfd_data): Add constructor, destructor, and member
1457 initializers.
1458 (gdb_bfd_unref): Use delete.
1459
1460 2017-10-20 Tom Tromey <tom@tromey.com>
1461
1462 * exec.c (exec_file_attach): Use new_bfd_ref.
1463 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
1464 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1465 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
1466 new_bfd_ref.
1467 * gdb_bfd.h (new_bfd_ref): New function.
1468
1469 2017-10-20 Pedro Alves <palves@redhat.com>
1470
1471 * main.c (captured_command_loop): Add attribute noinline.
1472
1473 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
1474
1475 * interps.c (struct interp_factory): Add constructor.
1476 (interp_factory_p): Remove typedef.
1477 (DEF_VEC_P(interp_factory_p)): Remove.
1478 (interpreter_factories): Change type to std::vector.
1479 (interp_factory_register): Adjust.
1480 (interp_lookup): Adjust.
1481 (interpreter_completer): Adjust.
1482
1483 2017-10-19 Tom Tromey <tom@tromey.com>
1484
1485 * break-catch-syscall.c (catch_syscall_completer): Use
1486 std::string, gdb::unique_xmalloc_ptr.
1487
1488 2017-10-19 Tom Tromey <tom@tromey.com>
1489
1490 * infcall.c (call_function_by_hand_dummy): Use std::string.
1491
1492 2017-10-19 Tom Tromey <tom@tromey.com>
1493
1494 * mi/mi-main.c (mi_cmd_execute): Update.
1495 * top.h (prepare_execute_command): Return scoped_value_mark.
1496 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
1497 Add move constructor.
1498 * top.c (prepare_execute_command): Return scoped_value_mark.
1499 (execute_command): Update.
1500
1501 2017-10-19 Pedro Alves <palves@redhat.com>
1502
1503 * xml-support.c (xml_fetch_content_from_file): Check fread's
1504 return.
1505
1506 2017-10-19 Pedro Alves <palves@redhat.com>
1507
1508 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
1509 async.
1510 (handle_error_fd): New function.
1511 (ser_base_async): Add/delete an event loop file handler for
1512 error_fd.
1513
1514 2017-10-19 Pedro Alves <palves@redhat.com>
1515
1516 * xml-support.c (xml_fetch_content_from_file): Don't read in
1517 chunks. Instead use fseek to determine the file's size, and read
1518 it in one go.
1519
1520 2017-11-18 Keith Seitz <keiths@redhat.com>
1521
1522 * c-exp.y (oper): Canonicalize conversion operators of user-defined
1523 types.
1524 Add whitespace to front of type name.
1525
1526 2017-10-18 Keith Seitz <keiths@redhat.com>
1527
1528 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
1529 DW_AT_accessibility.
1530
1531 2017-10-18 Yao Qi <yao.qi@linaro.org>
1532
1533 * features/tic6x-c62x-linux.c: Remove.
1534
1535 2017-10-17 Tom Tromey <tom@tromey.com>
1536
1537 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
1538 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
1539 (do_mixed_source_and_assembly): Likewise.
1540
1541 2017-10-17 Tom Tromey <tom@tromey.com>
1542
1543 * regcache.c (regcache::xfer_part): Remove assertion.
1544
1545 2017-10-17 Pedro Alves <palves@redhat.com>
1546
1547 * xml-support.c (xml_fetch_content_from_file): Call
1548 unique_ptr::release() instead unique_ptr::get() when passing
1549 through xrealloc.
1550
1551 2017-10-17 Yao Qi <yao.qi@linaro.org>
1552
1553 * regcache.c (regcache::xfer_part): Remove parameters read and
1554 write, add parameter is_raw. All callers are updated.
1555
1556 2017-10-16 Keith Seitz <keiths@redhat.com>
1557
1558 * c-typeprint.c (enum access_specifier): Moved here from
1559 c_type_print_base.
1560 (output_access_specifier): New function.
1561 (c_type_print_base): Consider typedefs when assessing
1562 whether access labels are needed.
1563 Use output_access_specifier as needed.
1564 Output access specifier for typedefs, if needed.
1565 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
1566 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
1567 fields.
1568 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
1569 accessor macros.
1570
1571 2017-10-16 Tom Tromey <tom@tromey.com>
1572
1573 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
1574 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
1575 * target.c (target_fileio_read_stralloc): Update.
1576 * sparc64-tdep.c (adi_is_addr_mapped): Update.
1577 * target.h (target_fileio_read_stralloc): Return
1578 unique_xmalloc_ptr.
1579
1580 2017-10-16 Tom Tromey <tom@tromey.com>
1581
1582 * xml-syscall.c (xml_init_syscalls_info): Update.
1583 * xml-support.c (xinclude_start_include): Update.
1584 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
1585 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
1586 (xml_fetch_content_from_file): Likewise.
1587 * osdata.c (get_osdata): Update.
1588 * target.h (target_read_stralloc, target_get_osdata): Return
1589 unique_xmalloc_ptr.
1590 * solib-aix.c (solib_aix_get_library_list): Update.
1591 * solib-target.c (solib_target_current_sos): Update.
1592 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
1593 * xml-tdesc.c (fetch_available_features_from_target): Update.
1594 (target_fetch_description_xml): Update.
1595 (file_read_description_xml): Update.
1596 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
1597 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
1598 (remote_pid_to_exec_file): Update.
1599 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
1600 (target_get_osdata): Likewise.
1601
1602 2017-10-16 Tom Tromey <tom@tromey.com>
1603
1604 * remote.c (remote_register_number_and_offset): Use std::vector.
1605 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
1606 (putpkt_binary): Use gdb::def_vector.
1607 (compare_sections_command): Use gdb::byte_vector.
1608
1609 2017-10-16 Tom Tromey <tom@tromey.com>
1610
1611 * ppc-linux-nat.c (hwdebug_insert_point): Use
1612 gdb::unique_xmalloc_ptr, XDUP.
1613
1614 2017-10-16 Tom Tromey <tom@tromey.com>
1615
1616 * probe.c (parse_probes): Use std::string.
1617 (info_probes_for_ops, enable_probes_command)
1618 (disable_probes_command): Remove cleanups.
1619
1620 2017-10-16 Tom Tromey <tom@tromey.com>
1621
1622 * buildsym.c (block_compar): Remove.
1623 (end_symtab_get_static_block): Use std::vector.
1624
1625 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
1626
1627 * memrange.h (struct mem_range): Define operator< and operator==.
1628 (mem_range_s): Remove.
1629 (DEF_VEC_O (mem_range_s)): Remove.
1630 (normalize_mem_ranges): Change parameter type to std::vector.
1631 * memrange.c (compare_mem_ranges): Remove.
1632 (normalize_mem_ranges): Change parameter type to std::vector,
1633 adjust to vector change.
1634 * exec.c (section_table_available_memory): Return vector, remove
1635 parameter.
1636 (section_table_read_available_memory): Adjust to std::vector
1637 change.
1638 * remote.c (remote_read_bytes): Adjust to std::vector
1639 change.
1640 * tracepoint.h (traceframe_available_memory): Change parameter
1641 type to std::vector.
1642 * tracepoint.c (traceframe_available_memory): Change parameter
1643 type to std::vector, adjust.
1644 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
1645 std::vector change.
1646 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1647 unittests/memrange-selftests.c.
1648 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
1649 * gdb/unittests/memrange-selftests.c: New file.
1650
1651 2017-10-16 Pedro Alves <palves@redhat.com>
1652
1653 * elfread.c (probe_key_free): Rename range-for variable.
1654 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
1655 (find_probe_by_pc, collect_probes): Rename range-for variable.
1656
1657 2017-10-16 Yao Qi <yao.qi@linaro.org>
1658
1659 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1660 * features/tic6x-c62x.c: Remove.
1661 * features/tic6x-c64x-linux.c: Remove.
1662 * features/tic6x-c64x.c: Remove.
1663 * features/tic6x-c64xp-linux.c: Remove.
1664 * features/tic6x-c64xp.c: Remove.
1665 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1666 initialize_tdesc_tic6x_*_linux functions.
1667 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1668 initialize_tdesc_tic6x_* functions.
1669
1670 2017-10-16 Yao Qi <yao.qi@linaro.org>
1671
1672 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1673 tic6x-c62x.
1674 * regformats/tic6x-c62x.dat: Remove.
1675 * regformats/tic6x-c64x.dat: Remove.
1676 * regformats/tic6x-c64xp.dat: Remove.
1677
1678 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1679
1680 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1681 (the !HAVE_LIBEXPAT version).
1682
1683 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1684
1685 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1686 const.
1687
1688 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1689
1690 * target.h: Include tracepoint.h.
1691 (enum trace_find_type): Move to tracepoint.h.
1692 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1693 * tracepoint.h: Don't include target.h
1694 (enum trace_find_type): Move from target.h.
1695 (parse_traceframe_info): Return a unique ptr.
1696 * tracepoint.c (current_traceframe_info): Change type to unique
1697 ptr.
1698 (free_traceframe_info): Remove.
1699 (clear_traceframe_info): Don't manually free
1700 current_traceframe_info.
1701 (free_result): Remove.
1702 (parse_traceframe_info): Return a unique ptr.
1703 (get_traceframe_info): Adjust to unique ptr.
1704 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1705 * remote.c (remote_traceframe_info): Return a unique ptr.
1706 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1707 ptr.
1708 * target-debug.h (target_debug_print_traceframe_info_up): New
1709 macro.
1710 * target-delegates.c: Regenerate.
1711
1712 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1713
1714 * memrange.h (struct mem_range): Add constructors.
1715 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1716 std::vector<mem_range>.
1717 * tracepoint.c (free_traceframe_info): Don't manually free
1718 vector.
1719 (traceframe_info_start_memory): Adjust to vector change.
1720 (traceframe_available_memory): Likewise.
1721 * tracefile-tfile.c (build_traceframe_info): Likewise.
1722 * ctf.c (ctf_traceframe_info): Likewise.
1723
1724 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1725
1726 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1727 std::vector<int>.
1728 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1729 (traceframe_info_start_tvar): Adjust to vector change.
1730 (parse_traceframe_info): Allocate with new.
1731 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1732 vector change.
1733 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1734 change.
1735 tfile_traceframe_info): Allocate with new.
1736 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1737 change.
1738
1739 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1740
1741 * tracepoint.c (traceframe_info): Rename to...
1742 (current_traceframe_info): ...this.
1743 (clear_traceframe_info): Adjust.
1744 (get_traceframe_info): Adjust.
1745
1746 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1747
1748 * nat/linux-osdata.c: Include algorithm.
1749 (compare_processes): Remove.
1750 (struct pid_pgid_entry): New struct.
1751 (linux_xfer_osdata_processgroups): Use std::vector instead of
1752 XNEWVEC.
1753
1754 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1755
1756 * objfiles.h: Don't include symfile.h.
1757 (struct partial_symbol): Remove forward-declaration.
1758 (struct objfile) <global_psymbols, static_psymbols>: Change type
1759 to std::vector<partial_symbol *>.
1760 * objfiles.c (objfile::objfile): Don't memset those fields.
1761 (objfile::~objfile): Don't free those fields.
1762 * psympriv.h (struct psymbol_allocation_list): Remove
1763 forward-declaration.
1764 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1765 to std::vector.
1766 (start_psymtab_common): Change parameters to std::vector.
1767 * psymtab.c: Include algorithm.
1768 (require_partial_symbols): Call shrink_to_fit.
1769 (find_pc_sect_psymbol): Adjust to vector change.
1770 (match_partial_symbol): Likewise.
1771 (lookup_partial_symbol): Likewise.
1772 (psym_relocate): Likewise.
1773 (dump_psymtab): Likewise.
1774 (recursively_search_psymtabs): Likewise.
1775 (compare_psymbols): Remove.
1776 (sort_pst_symbols): Adjust to vector change.
1777 (start_psymtab_common): Likewise.
1778 (end_psymtab_common): Likewise.
1779 (psymbol_bcache_full): De-constify return value.
1780 (add_psymbol_to_bcache): Likewise.
1781 (extend_psymbol_list): Remove.
1782 (append_psymbol_to_list): Adjust to vector change.
1783 (add_psymbol_to_list): Likewise.
1784 (init_psymbol_list): Likewise.
1785 (maintenance_info_psymtabs): Likewise.
1786 (maintenance_check_psymtabs): Likewise.
1787 * symfile.h (struct psymbol_allocation_list): Remove.
1788 * symfile.c (reread_symbols): Adjust to vector change.
1789 * dbxread.c (start_psymtab): Change type of parameters.
1790 (dbx_symfile_read): Adjust to vector change.
1791 (read_dbx_symtab): Likewise.
1792 (start_psymtab): Change type of parameters.
1793 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1794 (create_partial_symtab): Likewise.
1795 (add_partial_symbol): Likewise.
1796 (write_one_signatured_type): Likewise.
1797 (recursively_write_psymbols): Likewise.
1798 * mdebugread.c (parse_partial_symbols): Likewise.
1799 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1800 (scan_xcoff_symtab): Adjust to vector change.
1801 (xcoff_initial_scan): Likewise.
1802
1803 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1804
1805 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1806
1807 2017-10-13 Yao Qi <yao.qi@linaro.org>
1808
1809 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1810 Remove s390x-*-expedite, add s390x-expedite.
1811
1812 2017-10-13 Yao Qi <yao.qi@linaro.org>
1813
1814 * features/s390-gs-linux64.c: Regenerated.
1815 * features/s390x-gs-linux64.c: Regenerated.
1816
1817 2017-10-13 Tom Tromey <tom@tromey.com>
1818
1819 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1820 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1821 delete.
1822 * symfile.c (symbol_file_add_with_addrs): Use new.
1823 (symbol_file_add_separate): Update comment.
1824 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1825 * jit.c (jit_object_close_impl): Use new.
1826 (jit_unregister_code): Use delete.
1827 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1828 (~objfile): Rename from free_objfile.
1829 (free_objfile_separate_debug, do_free_objfile_cleanup)
1830 (free_all_objfiles, objfile_purge_solibs): Use delete.
1831 * objfiles.h (struct objfile): Add constructor and destructor.
1832 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1833 (allocate_objfile, free_objfile): Don't declare.
1834 (struct objstats): Add initializers.
1835
1836 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1837
1838 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1839 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1840 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1841 * gdbarch.h: Regenerate.
1842 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1843 Adjust comment.
1844 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1845 (i386_displaced_step_fixup): Adjust comment.
1846 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1847
1848 2017-10-12 Tom Tromey <tom@tromey.com>
1849
1850 * prologue-value.h (pv_area::store_would_trash): Return bool.
1851 (pv_area::find_reg): Likewise.
1852 * prologue-value.c (pv_area::store_would_trash): Return bool.
1853 (pv_area::find_reg): Likewise.
1854
1855 2017-10-12 Tom Tromey <tom@tromey.com>
1856
1857 * s390-linux-tdep.c (s390_store, s390_load)
1858 (s390_check_for_saved, s390_analyze_prologue): Update.
1859 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1860 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1861 * prologue-value.h (class pv_area): Move from prologue-value.c.
1862 Change names of members. Add constructor, destructor, member
1863 functions.
1864 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1865 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1866 (pv_area_fetch, pv_area_scan): Don't declare.
1867 * prologue-value.c (struct pv_area::area_entry): Now member of
1868 pv_area.
1869 (struct pv_area): Move to prologue-value.h.
1870 (pv_area::pv_area): Rename from make_pv_area.
1871 (pv_area::~pv_area): Rename from free_pv_area.
1872 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1873 (clear_entries, find_entry, overlaps, store_would_trash, store)
1874 (fetch, find_reg, scan): Now member of pv_area.
1875 Remove "area" argument. Update.
1876 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1877 Update.
1878 * mn10300-tdep.c (push_reg, check_for_saved)
1879 (mn10300_analyze_prologue): Update.
1880 * mep-tdep.c (is_arg_spill, check_for_saved)
1881 (mep_analyze_prologue): Update.
1882 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1883 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1884 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1885 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1886 Update.
1887 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1888 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1889
1890 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1891
1892 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1893 * linux-nat.c (linux_nat_delete_thread): New variable.
1894 (lwp_free): Invoke linux_nat_delete_thread if set.
1895 (linux_nat_set_delete_thread): New function.
1896 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1897 thread delete callback.
1898 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1899 (_initialize_arm_linux_nat): Assign thread delete callback.
1900 * s390-linux-nat.c (s390_delete_thread): New function.
1901 (_initialize_s390_nat): Assign thread delete callback.
1902 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1903 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1904 function.
1905 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1906 declaration.
1907 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1908 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1909
1910 2017-10-09 Tom Tromey <tom@tromey.com>
1911
1912 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1913 std::string.
1914 * tui/tui-layout.c (enum tui_status): Use std::string.
1915
1916 2017-10-11 Tom Tromey <tom@tromey.com>
1917
1918 * gdbthread.h (thread_command): Constify.
1919 * inferior.h (detach_command): Constify.
1920 * top.h (set_history, show_history): Constify.
1921 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1922 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1923 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1924 * printcmd.c (set_command): Constify.
1925 (non_const_set_command): New function.
1926 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1927 * breakpoint.c (enable_command, disable_command, delete_command)
1928 (catch_command, tcatch_command, set_breakpoint_cmd)
1929 (show_breakpoint_cmd): Constify.
1930 * macrocmd.c (macro_command): Constify.
1931 * infcmd.c (unset_command, kill_command, detach_command)
1932 (info_proc_cmd): Constify.
1933 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1934 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1935 (info_auto_load_cmd): Constify.
1936 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1937 (unset_tdesc_cmd): Constify.
1938 * ada-lang.c (set_ada_command, show_ada_command)
1939 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1940 * guile/guile.c (set_guile_command, show_guile_command)
1941 (info_guile_command): Constify.
1942 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1943 Constify.
1944 * skip.c (skip_command): Constify.
1945 * compile/compile.c (_initialize_compile): Constify.
1946 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1947 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1948 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1949 (maint_btrace_pt_show_cmd): Constify.
1950 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1951 Constify.
1952 * python/python.c (user_show_python, user_set_python): Constify.
1953 * mips-tdep.c (set_mips_command, show_mips_command)
1954 (set_mipsfpu_command): Constify.
1955 * record-btrace.c (cmd_record_btrace_start)
1956 (cmd_set_record_btrace, cmd_show_record_btrace)
1957 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1958 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1959 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1960 Constify.
1961 * symfile.c (overlay_command): Constify.
1962 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1963 * cli/cli-logging.c (set_logging_command, show_logging_command):
1964 Constify.
1965 * cli/cli-dump.c (dump_command, append_command)
1966 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1967 (tekhex_dump_command, binary_dump_command)
1968 (binary_append_command): Constify.
1969 * cli/cli-decode.c (struct cmd_list_element): Change type of
1970 "fun".
1971 * cli/cli-cmds.c (info_command, show_command, set_debug)
1972 (show_debug): Constify.
1973 (show_command): Add non-const overload.
1974 * top.c (set_history, show_history): Constify.
1975 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1976 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1977 * target.c (target_command): Constify.
1978 * sparc64-tdep.c (info_adi_command): Constify.
1979 * record-full.c (cmd_record_full_start): Constify.
1980 (set_record_full_command): Constify. Fix typo.
1981 (show_record_full_command): Constify.
1982 * thread.c (thread_command, thread_apply_command): Constify.
1983 * memattr.c (dummy_cmd): Constify.
1984 * value.c (function_command): Constify.
1985 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
1986 * probe.c (info_probes_command): Constify.
1987 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
1988 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
1989 (show_thread_cmd, set_thread_default_cmd)
1990 (show_thread_default_cmd): Constify.
1991 (check_empty): Constify.
1992 * tracepoint.c (tfind_command): Constify.
1993 * cp-support.c (maint_cplus_command): Constify.
1994 * windows-tdep.c (info_w32_command): Constify.
1995 * record.c (cmd_record_start, set_record_command)
1996 (show_record_command, info_record_command, cmd_record_goto):
1997 Constify.
1998 * ravenscar-thread.c (set_ravenscar_command)
1999 (show_ravenscar_command): Constify.
2000 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
2001 Constify.
2002 (add_internal_problem_command): Remove casts.
2003 * arc-tdep.c (maintenance_print_arc_command): Constify.
2004 * valprint.c (set_print, show_print, set_print_raw)
2005 (show_print_raw): Constify.
2006 * maint.c (maintenance_command, maintenance_info_command)
2007 (maintenance_print_command, maintenance_set_cmd)
2008 (maintenance_show_cmd, set_per_command_cmd)
2009 (show_per_command_cmd, maintenance_check_command): Constify.
2010 * language.c (set_check, show_check): Constify.
2011 * typeprint.c (show_print_type, set_print_type): Constify.
2012 * go32-nat.c (go32_info_dos_command): Constify.
2013
2014 2017-10-11 Tom Tromey <tom@tromey.com>
2015
2016 * breakpoint.c (prepare_re_set_context): Remove.
2017 (breakpoint_re_set_one): Update. Don't use cleanups.
2018 (breakpoint_re_set): Use scoped_restore, std::string, and
2019 scoped_restore_current_language.
2020
2021 2017-10-11 Tom Tromey <tom@tromey.com>
2022
2023 * breakpoint.c (commands_command_1): Use std::string.
2024 (cleanup_executing_breakpoints): Remove.
2025 (bpstat_do_actions_1): Use scoped_restore.
2026 (bpstat_check_watchpoint): Use std::string.
2027 (decode_static_tracepoint_spec): Likewise.
2028 (break_range_command): Likewise.
2029 (watch_command_1): Likewise.
2030 (compare_breakpoints): Change argument types.
2031 (clear_command): Use std::vector.
2032 (cleanup_executing_breakpoints): Remove.
2033 (update_global_location_list): Use unique_xmalloc_ptr.
2034 (strace_command): Remove unused declaration.
2035
2036 2017-10-11 John Baldwin <jhb@FreeBSD.org>
2037
2038 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
2039 * NEWS: Mention new FreeBSD/arm native configuration.
2040 * configure.host: Add arm*-*-freebsd*.
2041 * configure.nat: Likewise.
2042 * arm-fbsd-nat.c: New file.
2043
2044 2017-10-11 John Baldwin <jhb@FreeBSD.org>
2045
2046 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
2047 (ALLDEPFILES): Add arm-fbsd-tdep.c.
2048 * NEWS: Mention new FreeBSD/arm target.
2049 * configure.tgt: Add arm*-*-freebsd*.
2050 * arm-fbsd-tdep.c: New file.
2051 * arm-fbsd-tdep.h: New file.
2052
2053 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
2054
2055 * linux-tdep.c (linux_make_corefile_notes): Remove call to
2056 `gdbarch_elfcore_write_linux_prpsinfo'.
2057 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
2058 method.
2059 (elf_internal_linux_prpsinfo): Remove declaration.
2060 * gdbarch.h: Regenerate.
2061 * gdbarch.c: Regenerate.
2062
2063 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
2064
2065 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
2066 `set_gdbarch_elfcore_write_linux_prpsinfo'.
2067
2068 2017-10-11 Pedro Alves <palves@redhat.com>
2069
2070 * breakpoint.c (reattach_breakpoints): Delete.
2071 * breakpoint.h (reattach_breakpoints): Delete.
2072
2073 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
2074
2075 * symfile.c (registered_sym_fns): Make struct, not typedef.
2076 (DEF_VEC_O (registered_sym_fns)): Remove.
2077 (symtab_fns): Change type to std::vector.
2078 (add_symtab_fns): Adjust.
2079 (find_sym_fns): Adjust.
2080
2081 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
2082
2083 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
2084 * arc-tdep.h (arc_arch_is_em): New function.
2085 (arc_arch_is_hs): Likewise.
2086
2087 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
2088
2089 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
2090 parentheses in the declaration.
2091 (macro_lookup_inclusion): Likewise.
2092 (macro_lookup_definition): Likewise.
2093 * p-lang.h (pascal_builtin_types): Likewise.
2094 * tui/tui-data.c (tui_win_list): Likewise.
2095 * tui/tui-data.h (tui_win_list): Likewise.
2096 * utils.h (make_cleanup_free_section_addr_info): Likewise.
2097
2098 2017-10-11 Mark Rages <markrages@gmail.com>
2099
2100 * target-memory.c (block_boundaries): Fix for block address not
2101 aligned on block size.
2102
2103 2017-10-10 Pedro Alves <palves@redhat.com>
2104 Tom Tromey <tom@tromey.com>
2105
2106 * breakpoint.c (struct captured_breakpoint_query_args)
2107 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
2108 (print_breakpoint): New.
2109 * breakpoint.h (print_breakpoint): Declare.
2110 * common/common-exceptions.h (enum return_reason): Remove
2111 references to catch_exceptions.
2112 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
2113 Delete.
2114 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
2115 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
2116 * gdb.h: Delete.
2117 * gdbthread.h (thread_select): Declare.
2118 * mi/mi-cmd-break.c: Don't include gdb.h.
2119 (breakpoint_notify): Use print_breakpoint.
2120 * mi/mi-cmd-catch.c: Don't include gdb.h.
2121 * mi/mi-interp.c: Don't include gdb.h.
2122 (mi_print_breakpoint_for_event): New.
2123 (mi_breakpoint_created, mi_breakpoint_modified): Use
2124 mi_print_breakpoint_for_event.
2125 * mi/mi-main.c: Don't include gdb.h.
2126 (mi_cmd_thread_select): Parse the global thread ID here. Use
2127 thread_select instead of gdb_thread_select.
2128 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
2129 of using gdb_list_thread_ids.
2130 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
2131 FILEIO_ENOSYS here.
2132 (remote_fileio_request): Use TRY/CATCH instead of
2133 catch_exceptions.
2134 * symfile-mem.c (struct symbol_file_add_from_memory_args)
2135 (symbol_file_add_from_memory_wrapper): Delete.
2136 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
2137 * thread.c: Don't include gdb.h.
2138 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
2139 (thread_alive): Use thread_select.
2140 (do_captured_thread_select): Delete, parts salvaged as ...
2141 (thread_select): ... this new function.
2142 (gdb_thread_select): Delete.
2143
2144 2017-10-10 Pedro Alves <palves@redhat.com>
2145 Tom Tromey <tom@tromey.com>
2146
2147 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
2148 and reverse logic.
2149 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
2150 No longer macros. Instead ...
2151 (enum wp_check_result): They're now values of this new
2152 enumeration.
2153 (watchpoint_check): Change return type to wp_check_result and
2154 parameter type to bpstat.
2155 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
2156 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
2157 catch_errors. Reverse logic of watchpoint_check call.
2158 (breakpoint_re_set_one): Now returns void and takes a breakpoint
2159 pointer as parameter.
2160 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
2161 * common/common-exceptions.c (throw_exception_sjlj): Update
2162 comments to avoid mentioning catch_errors.
2163 * exceptions.c (catch_errors): Delete.
2164 * exceptions.h: Update comments to avoid mentioning catch_errors.
2165 (catch_errors_ftype, catch_errors): Delete.
2166 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
2167 (hook_stop_stub): Delete.
2168 (restore_selected_frame): Change return type to void, and
2169 parameter type to const frame_id &.
2170 (restore_infcall_control_state): Use TRY/CATCH instead of
2171 catch_errors.
2172 * main.c (captured_command_loop): Return void and remove
2173 parameter. Remove references to catch_errors.
2174 (captured_main): Use TRY/CATCH instead of catch_errors.
2175 * objc-lang.c (objc_submethod_helper_data)
2176 (find_objc_msgcall_submethod_helper): Delete.
2177 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
2178 catch_errors.
2179 * record-full.c (record_full_message): Return void.
2180 (record_full_message_args, record_full_message_wrapper): Delete.
2181 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
2182 instead of catch_errors.
2183 * solib-aix.c (solib_aix_open_symbol_file_object): Change
2184 parameter type to int.
2185 * solib-darwin.c (open_symbol_file_object): Ditto.
2186 * solib-dsbt.c (open_symbol_file_object): Ditto.
2187 * solib-frv.c (open_symbol_file_object): Ditto.
2188 * solib-svr4.c (open_symbol_file_object): Ditto.
2189 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
2190 * solib.c (update_solib_list): Use TRY/CATCH instead of
2191 catch_errors.
2192 * solist.h (struct target_so_ops) <open_symbol_file_object>:
2193 Change type.
2194 * symmisc.c (struct print_symbol_args): Remove.
2195 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
2196 (print_symbol): Change type.
2197 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
2198 and remove parameters.
2199 (catch_errors): New.
2200 (get_windows_debug_event): Adjust.
2201
2202 2017-10-09 Tom Tromey <tom@tromey.com>
2203
2204 * mi/mi-main.c (free_splay_tree): Remove.
2205 (list_available_thread_groups): Use splay_tree_up.
2206 * common/gdb_splay_tree.h: New file.
2207
2208 2017-10-09 Tom Tromey <tom@tromey.com>
2209
2210 * mi/mi-main.c (do_nothing): Remove.
2211 (list_available_thread_groups): Update.
2212
2213 2017-10-09 Pedro Alves <palves@redhat.com>
2214
2215 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
2216 reading registers when switching context.
2217
2218 2017-10-09 John Baldwin <jhb@FreeBSD.org>
2219
2220 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
2221 (fbsd_convert_siginfo): Likewise.
2222 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
2223
2224 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
2225
2226 * configure.ac (try_guile_versions): Remove guile-2.2.
2227 * configure: Regenerate.
2228
2229 2017-10-09 Tom Tromey <tom@tromey.com>
2230
2231 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
2232 (COMPILE.pre): Use $(CXX).
2233
2234 2017-10-09 Pedro Alves <palves@redhat.com>
2235
2236 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
2237 Use bool.
2238 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
2239 * cp-support.h (cp_remove_params): Now returns a
2240 gdb::unique_xmalloc_ptr.
2241 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
2242 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
2243 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
2244 returning a gdb::unique_xmalloc_ptr.
2245 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
2246 * stack.c (find_frame_funname): Adjust to cp_remove_params
2247 returning a gdb::unique_xmalloc_ptr.
2248
2249 2017-10-08 Tom Tromey <tom@tromey.com>
2250
2251 * dwarf2read.c (dwarf2_get_dwz_file): Use
2252 gdb::unique_xmalloc_ptr.
2253 (find_slot_in_mapped_hash): Likewise.
2254 (dwarf2_physname): Likewise.
2255 (create_dwo_unit_in_dwp_v1): Use std::string.
2256 (create_dwo_unit_in_dwp_v2): Likewise.
2257 (lookup_dwo_cutu): Likewise.
2258 (inherit_abstract_dies): Use std::vector.
2259 (read_array_type): Likewise.
2260 (dwarf_decode_macros): Remove unused declaration.
2261 (unsigned_int_compar): Remove.
2262 (dwarf2_build_psymtabs_hard): Use scoped_restore.
2263 (psymtabs_addrmap_cleanup): Remove.
2264
2265 2017-10-08 Tom Tromey <tom@tromey.com>
2266
2267 * frame-unwind.c (frame_unwind_try_unwinder): Update.
2268 * frame.h (frame_cleanup_after_sniffer): Declare.
2269 (frame_prepare_for_sniffer): Return void.
2270 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
2271 type of argument.
2272 (frame_prepare_for_sniffer): Return void.
2273
2274 2017-10-08 Tom Tromey <tom@tromey.com>
2275
2276 * utils.h (make_cleanup_value_free): Remove.
2277 * utils.c (do_value_free, struct cleanup): Remove.
2278 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
2279 Use gdb_value_up.
2280 * value.h (struct value_deleter): New.
2281 (gdb_value_up): New typedef.
2282
2283 2017-10-08 Tom Tromey <tom@tromey.com>
2284
2285 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
2286 (make_cleanup_free_search_symbols): Remove.
2287 (search_symbols): Return std::vector.
2288 (symbol_search::compare_search_syms): Now member of
2289 symbol_search. Change arguments.
2290 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
2291 (symtab_symbol_info, rbreak_command): Update.
2292 * symtab.h (struct symbol_search) <next>: Remove.
2293 Add constructors.
2294 (symbol_search::operator<): New function.
2295 (symbol_search::operator==): New function.
2296 (search_symbols): Remove std::vector.
2297 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
2298 (symbol_search::compare_search_syms): Declare.
2299
2300 2017-10-06 Yao Qi <yao.qi@linaro.org>
2301
2302 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
2303 arch/aarch64-insn.o.
2304 Remove one rule.
2305 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
2306
2307 2017-10-06 Yao Qi <yao.qi@linaro.org>
2308
2309 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
2310 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
2311 arch/arm-linux.o respectively.
2312 * configure.tgt: Likewise.
2313
2314 2017-10-06 Yao Qi <yao.qi@linaro.org>
2315
2316 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
2317 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
2318
2319 2017-10-06 Pedro Alves <palves@redhat.com>
2320
2321 * windows-nat.c: Include <algorithm>.
2322
2323 2017-10-06 Yao Qi <yao.qi@linaro.org>
2324
2325 * configure.tgt (i386_tobjs): New variable.
2326 (amd64_tobjs): New variable.
2327 Set $cpu_obs and $os_obs.
2328
2329 2017-10-06 Yao Qi <yao.qi@linaro.org>
2330
2331 * Makefile.in (CONFIG_SRC_SUBDIR): New.
2332 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
2333 (clean): Remove object files and dependency files.
2334 (distclean): Remove the directory.
2335 * configure.ac: Invoke AC_CONFIG_COMMANDS.
2336 * configure: Re-generated.
2337 * configure.tgt: Replace amd64.o with arch/amd64.o.
2338
2339 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
2340
2341 PR build/22188
2342 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
2343 and SETEND.
2344
2345 2017-10-05 Pedro Alves <palves@redhat.com>
2346
2347 * linux-nat.c (linux_child_follow_fork): When following the parent
2348 and detaching the child, consult the parent thread's architecture
2349 instead of the child's.
2350
2351 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2352
2353 * ax.h: Do not include "doublest.h".
2354 (union agent_val): Remove.
2355
2356 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2357
2358 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
2359 (decimal_to_string): Return std::string object.
2360 (decimal_from_string): Accept std::string object. Return bool.
2361 (decimal_from_integral, decimal_from_doublest): Remove.
2362 (decimal_from_longest): Add prototype.
2363 (decimal_from_ulongest): Likewise.
2364 (decimal_to_longest): Likewise.
2365 (decimal_from_doublest): Likewise.
2366 * dfp.c: Do not include "gdbtypes.h" or "value.h".
2367 (MAX_DECIMAL_STRING): Move here.
2368 (decimal_to_string): Return std::string object.
2369 (decimal_from_string): Accept std::string object. Return bool.
2370 (decimal_from_integral): Remove, replace by ...
2371 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
2372 (decimal_to_longest): New function.
2373 (decimal_from_floating): Remove, replace by ...
2374 (decimal_from_doublest): ... this new function.
2375 (decimal_to_doublest): Update to new decimal_to_string interface.
2376
2377 * value.c (unpack_long): Use decimal_to_longest.
2378 * valops.c (value_cast): Use decimal_from_doublest instead of
2379 decimal_from_floating. Use decimal_from_[u]longest isntead of
2380 decimal_from_integral.
2381 * valarith.c (value_args_as_decimal): Likewise.
2382 * valprint.c (print_decimal_floating): Update to new
2383 decimal_to_string interface.
2384 * printcmd.c (printf_decfloat): Likewise.
2385 * c-exp.y (parse_number): Update to new decimal_from_string interface.
2386
2387 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2388
2389 * doublest.h: Do not include "floatformat.h". Remove stale comments.
2390 * gdbtypes.c: Include "floatformat.h".
2391 * value.c: Likewise.
2392 * m68k-tdep.c: Likewise.
2393
2394 * findvar.c: Do not include "floatformat.h".
2395 * amd64-darwin-tdep.c: Likewise.
2396 * arm-linux-tdep.c: Likewise.
2397 * i386-darwin-tdep.c: Likewise.
2398 * i387-tdep.c: Likewise.
2399 * m68k-linux-tdep.c: Likewise.
2400 * mep-tdep.c: Likewise.
2401 * mips-tdep.c: Likewise.
2402 * nios2-tdep.c: Likewise.
2403 * s390-linux-tdep.c: Likewise.
2404 * sparc-obsd-tdep.c: Likewise.
2405 * sparc-tdep.c: Likewise.
2406 * sparc64-tdep.c: Likewise.
2407 * spu-tdep.c: Likewise.
2408 * tic6x-tdep.c: Likewise.
2409 * tilegx-tdep.c: Likewise.
2410 * vax-tdep.c: Likewise.
2411 * xstormy16-tdep.c: Likewise.
2412 * xtensa-tdep.c: Likewise.
2413
2414 * top.c: Do not include "doublest.h".
2415 * aarch64-tdep.c: Likewise.
2416 * alpha-tdep.c: Likewise.
2417 * arm-linux-tdep.c: Likewise.
2418 * m68k-linux-tdep.c: Likewise.
2419 * tilegx-tdep.c: Likewise.
2420 * xstormy16-tdep.c: Likewise.
2421
2422 2017-10-05 John Baldwin <jhb@FreeBSD.org>
2423
2424 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
2425 (mipsn32_fbsd_sigframe): Define.
2426 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
2427 for FreeBSD/mipsn32.
2428
2429 2017-10-05 John Baldwin <jhb@FreeBSD.org>
2430
2431 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
2432 AT_HWCAP.
2433
2434 2017-10-05 Tristan Gingold <tgingold@free.fr>
2435
2436 * MAINTAINERS (Misc): Update my email address.
2437
2438 2017-10-04 Pedro Alves <palves@redhat.com>
2439
2440 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
2441 it instead of target_gdbarch.
2442 (get_remote_state, get_remote_packet_size): Adjust
2443 get_remote_arch_state calls, passing down target_gdbarch
2444 explicitly.
2445 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
2446 'gdbarch' and use it instead of target_gdbarch.
2447 (get_memory_packet_size): Adjust get_remote_arch_state calls,
2448 passing down target_gdbarch explicitly.
2449 (struct stop_reply) <arch>: New field.
2450 (remote_parse_stop_reply): Use the stopped thread's architecture,
2451 not the current inferior's. Save the architecture in the
2452 stop_reply.
2453 (process_stop_reply): Use the stop reply's architecture.
2454 (process_g_packet, remote_fetch_registers)
2455 (remote_prepare_to_store, store_registers_using_G)
2456 (remote_store_registers): Adjust get_remote_arch_state calls,
2457 using the regcache's architecture.
2458 (remote_get_trace_status): Adjust get_remote_arch_state calls,
2459 passing down target_gdbarch explicitly.
2460 * spu-multiarch.c (spu_thread_architecture): Defer to the target
2461 beneath instead of calling target_gdbarch.
2462 * target.c (default_thread_architecture): Use the specified
2463 inferior's architecture, instead of the current inferior's
2464 architecture (via target_gdbarch).
2465
2466 2017-10-04 Pedro Alves <palves@redhat.com>
2467
2468 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
2469 case.
2470 (regcache_print): Handle !target_has_registers here instead.
2471
2472 2017-10-04 Pedro Alves <palves@redhat.com>
2473
2474 * frame.c (create_test_frame): Delete.
2475 * frame.h (create_test_frame): Delete.
2476 * gdbarch-selftests.c: Include gdbthread.h and target.h.
2477 (class regcache_test): Delete.
2478 (test_target_has_registers, test_target_has_stack)
2479 (test_target_has_memory, test_target_prepare_to_store)
2480 (test_target_store_registers): New functions.
2481 (test_target_ops): New class.
2482 (register_to_value_test): Error out if there's already a
2483 process_stratum (or higher) target pushed. Create a fuller mock
2484 environment, with mock target_ops, inferior, address space, thread
2485 and inferior_ptid.
2486 * progspace.c (struct address_space): Move to ...
2487 * progspace.h (struct address_space): ... here.
2488 * regcache.h (regcache::~regcache, regcache::raw_write)
2489 [GDB_SELF_TEST]: No longer virtual.
2490
2491 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
2492
2493 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
2494
2495 2017-10-04 Pedro Alves <palves@redhat.com>
2496
2497 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
2498 out of 'between TRY and CATCH'.
2499
2500 2017-10-04 Pedro Alves <palves@redhat.com>
2501
2502 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
2503 * common/common-exceptions.h (TRY): Open an outermost scope.
2504 Expand intro comment.
2505 (CATCH): Reindent.
2506 (END_CATCH): Close the outermost scope.
2507 * completer.c (complete_line_internal): Add missing END_CATCH.
2508
2509 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2510
2511 * NEWS (Changes since GDB 8.0): Add entry about new
2512 'set-cwd-on-gdbserver' feature.
2513 (New remote packets): Add entry for QSetWorkingDir.
2514 * common/common-inferior.h (set_inferior_cwd): New prototype.
2515 * infcmd.c (set_inferior_cwd): Remove "static".
2516 (show_cwd_command): Expand text to include remote debugging.
2517 * remote.c: Add PACKET_QSetWorkingDir.
2518 (remote_protocol_features) <QSetWorkingDir>: New entry for
2519 PACKET_QSetWorkingDir.
2520 (extended_remote_set_inferior_cwd): New function.
2521 (extended_remote_create_inferior): Call
2522 "extended_remote_set_inferior_cwd".
2523 (_initialize_remote): Call "add_packet_config_cmd" for
2524 QSetWorkingDir.
2525
2526 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2527
2528 * NEWS (New commands): Mention "set/show cwd".
2529 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
2530 "cd" command's help text.
2531 * common/common-inferior.h (get_inferior_cwd): New prototype.
2532 * infcmd.c (inferior_cwd_scratch): New global variable.
2533 (set_inferior_cwd): New function.
2534 (get_inferior_cwd): Likewise.
2535 (set_cwd_command): Likewise.
2536 (show_cwd_command): Likewise.
2537 (_initialize_infcmd): Add "set/show cwd" commands.
2538 * inferior.h (class inferior) <cwd>: New field.
2539 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
2540 (fork_inferior): Change inferior's cwd before its execution.
2541 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
2542 to CreateProcess.
2543
2544 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2545
2546 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
2547 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
2548 (COMMON_OBS): Add gdb_tilde_expand.o.
2549 * common/gdb_tilde_expand.c: New file.
2550 * common/gdb_tilde_expand.h: Likewise.
2551
2552 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
2553
2554 * gdbarch.sh (objfile): Remove duplicate declaration.
2555 * gdbarch.h: Regenerate.
2556
2557 2017-10-03 Tom Tromey <tom@tromey.com>
2558
2559 * utils.c (internal_vproblem): Use string_vprintf.
2560
2561 2017-10-03 Tom Tromey <tom@tromey.com>
2562
2563 * printcmd.c (info_symbol_command): Use std::string.
2564
2565 2017-10-03 Tom Tromey <tom@tromey.com>
2566
2567 * top.c (gdb_safe_append_history): Use std::string.
2568
2569 2017-10-03 Tom Tromey <tom@tromey.com>
2570
2571 * event-top.c (stdin_event_handler): Update.
2572 * main.c (captured_main_1): Update.
2573 * top.h (make_delete_ui_cleanup): Remove.
2574 (struct ui): Add constructor and destructor.
2575 (new_ui, delete_ui): Remove.
2576 * top.c (make_delete_ui_cleanup): Remove.
2577 (new_ui_command): Use std::unique_ptr.
2578 (delete_ui_cleanup): Remove.
2579 (ui::ui): Rename from new_ui. Update.
2580 (free_ui): Remove.
2581 (ui::~ui): Rename from delete_ui. Update.
2582
2583 2017-10-03 Tom Tromey <tom@tromey.com>
2584
2585 * symfile.c (load_progress): Use gdb::byte_vector.
2586
2587 2017-10-03 Tom Tromey <tom@tromey.com>
2588
2589 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
2590 declaration.
2591 * printcmd.c (x_command): Remove unused declaration.
2592 * symfile.c (symbol_file_command): Remove unused declaration.
2593
2594 2017-10-03 Tom Tromey <tom@tromey.com>
2595
2596 * utils.c (internal_vproblem): Use std::string.
2597 (defaulted_query): Likewise.
2598
2599 2017-10-03 Tom Tromey <tom@tromey.com>
2600
2601 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
2602 * top.c (execute_command_to_string): Update.
2603 * utils.c (make_cleanup_restore_page_info): Remove.
2604 (do_restore_page_info_cleanup): Remove.
2605 (set_batch_flag_and_restore_page_info):
2606 New.
2607 (make_cleanup_restore_page_info): Remove.
2608 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2609 (~set_batch_flag_and_restore_page_info): New
2610 (make_cleanup_restore_uinteger): Remove.
2611 (make_cleanup_restore_integer): Remove.
2612 (struct restore_integer_closure): Remove.
2613 (restore_integer): Remove.
2614 * utils.h (struct set_batch_flag_and_restore_page_info): New
2615 class.
2616 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2617 (make_cleanup_restore_page_info): Remove.
2618 (make_cleanup_restore_uinteger) Remove.
2619 (make_cleanup_restore_integer) Remove.
2620
2621 2017-10-03 Tom Tromey <tom@tromey.com>
2622
2623 * record-full.h (record_full_gdb_operation_disable_set): Return
2624 scoped_restore_tmpl<int>.
2625 * infrun.c (adjust_pc_after_break): Update.
2626 (handle_signal_stop): Update.
2627 * record-full.c (record_full_gdb_operation_disable_set): Return
2628 scoped_restore_tmpl<int>.
2629 (record_full_wait_1, record_full_insert_breakpoint)
2630 (record_full_remove_breakpoint, record_full_save)
2631 (record_full_goto_insn): Update.
2632
2633 2017-10-02 Tom Tromey <tom@tromey.com>
2634
2635 PR rust/22236:
2636 * rust-lang.c (rust_val_print_str): New function.
2637 (val_print_struct): Call it.
2638 (rust_subscript): Preserve name of slice type.
2639
2640 2017-10-02 Tom Tromey <tom@tromey.com>
2641
2642 * rust-lang.c (rust_subscript): Handle slices in
2643 EVAL_AVOID_SIDE_EFFECTS case.
2644
2645 2017-10-02 Tom Tromey <tom@tromey.com>
2646
2647 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
2648
2649 2017-10-02 Tom Tromey <tom@tromey.com>
2650
2651 * rust-lang.h (rust_slice_type): Add "extern".
2652
2653 2017-10-02 Tom Tromey <tom@tromey.com>
2654 Pedro Alves <palves@redhat.com>
2655
2656 * ada-lang.h (ada_exc_info::operator<): Make const.
2657 (ada_exc_info::operator==): Make const.
2658 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2659 Make const.
2660
2661 2017-09-29 Tom Tromey <tom@tromey.com>
2662
2663 * target.c (read_whatever_is_readable): Change type of "result".
2664 Update.
2665 (free_memory_read_result_vector): Remove.
2666 (read_memory_robust): Change return type. Update.
2667 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2668 bin2hex, std::string.
2669 * target.h (memory_read_result_s): Remove typedef.
2670 (free_memory_read_result_vector): Remove.
2671 (read_memory_robust): Return std::vector.
2672
2673 2017-09-29 Tom Tromey <tom@tromey.com>
2674
2675 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2676
2677 2017-09-29 Tom Tromey <tom@tromey.com>
2678
2679 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2680 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2681 operator< and operator==.
2682 (ada_exceptions_list): Return a std::vector.
2683 * ada-lang.c (ada_exc_info::operator<): Rename from
2684 compare_ada_exception_info.
2685 (ada_exc_info::operator==): New.
2686 (sort_remove_dups_ada_exceptions_list): Change type of
2687 "exceptions".
2688 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2689 (ada_add_global_exceptions): Likewise.
2690 (ada_exceptions_list_1): Return a std::vector.
2691 (ada_exceptions_list): Likewise.
2692
2693 2017-09-29 Tom Tromey <tom@tromey.com>
2694
2695 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2696 'std::set *'.
2697 (print_one_inferior): Update.
2698 (free_vector_of_ints): Remove.
2699 (list_available_thread_groups): Change "ids" to std::set.
2700 (mi_cmd_list_thread_groups): Update.
2701 (struct collect_cores_data) <core>: Now a std::set.
2702 (collect_cores): Update.
2703 (unique): Remove.
2704 (print_one_inferior): Update.
2705
2706 2017-09-29 Tom Tromey <tom@tromey.com>
2707
2708 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2709 (mi_execute_async_cli_command): Likewise.
2710 (mi_cmd_trace_frame_collected): Use field_fmt.
2711
2712 2017-09-29 Tom Tromey <tom@tromey.com>
2713
2714 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2715 gdb::byte_vector.
2716
2717 2017-09-29 Tom Tromey <tom@tromey.com>
2718
2719 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2720
2721 2017-09-29 Tom Tromey <tom@tromey.com>
2722
2723 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2724
2725 2017-09-29 Tom Tromey <tom@tromey.com>
2726
2727 * varobj.h (varobj_gen_name): Return std::string.
2728 * varobj.c (varobj_gen_name): Return std::string.
2729 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2730 (mi_cmd_var_delete): Don't copy "name".
2731
2732 2017-09-29 Tom Tromey <tom@tromey.com>
2733
2734 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2735 (mi_cmd_break_insert_1): Update.
2736
2737 2017-09-29 Tom Tromey <tom@tromey.com>
2738
2739 * target.h (make_scoped_defer_target_commit_resume): Update.
2740 * target.c (make_scoped_defer_target_commit_resume): Rename from
2741 make_cleanup_defer_target_commit_resume. Return a
2742 scoped_restore.
2743 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2744
2745 2017-09-29 Tom Tromey <tom@tromey.com>
2746
2747 * main.c (captured_main_1): Remove unused declaration.
2748 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2749
2750 2017-09-29 Tom Tromey <tom@tromey.com>
2751
2752 * symtab.c (search_symbols): Remove unused outer cleanup.
2753 (make_source_files_completion_list): Remove unused declaration.
2754
2755 2017-09-29 Tom Tromey <tom@tromey.com>
2756
2757 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2758
2759 2017-09-29 Tom Tromey <tom@tromey.com>
2760
2761 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2762 gdb::byte_vector.
2763
2764 2017-09-29 Tom Tromey <tom@tromey.com>
2765
2766 * complaints.c (vcomplaint): Use std::string.
2767
2768 2017-09-29 Tom Tromey <tom@tromey.com>
2769
2770 * tracepoint.c (trace_variable_command): Use std::string.
2771 (encode_actions_1): Remove unused declarations.
2772 (create_tsv_from_upload): Use std::string.
2773
2774 2017-09-29 Tom Tromey <tom@tromey.com>
2775
2776 * cp-support.c (gdb_demangle): Use std::string.
2777
2778 2017-09-29 Tom Tromey <tom@tromey.com>
2779
2780 * stack.c (parse_frame_specification): Use std::string
2781 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2782
2783 2017-09-29 Tom Tromey <tom@tromey.com>
2784
2785 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2786
2787 2017-09-29 Tom Tromey <tom@tromey.com>
2788
2789 * utils.c (vfprintf_maybe_filtered): Use std::string.
2790 (vfprintf_unfiltered): Likewise.
2791
2792 2017-09-29 Tom Tromey <tom@tromey.com>
2793
2794 * event-top.c (top_level_prompt): Return std::string.
2795 (display_gdb_prompt): Update.
2796
2797 2017-09-29 Tom Tromey <tom@tromey.com>
2798
2799 * unittests/common-utils-selftests.c (format): New function.
2800 (string_vprintf_tests): New function.
2801 (_initialize_common_utils_selftests): Register new tests.
2802 * common/common-utils.c (string_vprintf): New function.
2803 * common/common-utils.h (string_vprintf): Declare.
2804
2805 2017-09-29 Pedro Alves <palves@redhat.com>
2806
2807 * common/rsp-low.c (unpack_varlen_hex): Constify.
2808 * common/rsp-low.h (unpack_varlen_hex): Constify.
2809 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2810 Constify.
2811 * remote.c (remote_set_permissions, read_ptid)
2812 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2813 (remote_static_tracepoint_marker_at)
2814 (remote_static_tracepoint_markers_by_strid)
2815 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2816 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2817 (parse_tracepoint_definition, parse_tsv_definition)
2818 (parse_static_tracepoint_marker_definition): Constify.
2819 * tracepoint.h (parse_static_tracepoint_marker_definition)
2820 (parse_trace_status, parse_tracepoint_status)
2821 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2822
2823 2017-09-29 Pedro Alves <palves@redhat.com>
2824
2825 * remote.c (target_buf, target_buf_size): Delete.
2826 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2827 Use the connection's packet buffer instead.
2828 All callers adjusted.
2829 (_initialize_remote): Remove references to target_buf and
2830 target_buf_size.
2831
2832 2017-09-28 Pedro Alves <palves@redhat.com>
2833
2834 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2835 unittests/common-utils-selftests.c.
2836 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2837 (COMMON_OBS): Remove utils-selftests.o.
2838 * utils-selftests.c: Move to ...
2839 * unittests/common-utils-selftests.c: ... here and rename self
2840 test to "string_printf".
2841
2842 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2843
2844 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2845 having NULL cus or tus.
2846
2847 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2848
2849 * arm-tdep.c: (convert_from_extended): Remove.
2850 (convert_to_extended): Likewise.
2851 (arm_extract_return_value): Use convert_typed_floating.
2852 (arm_store_return_value): Likewise.
2853
2854 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2855 * sh-tdep.c: Do not include "floatformat.h".
2856 (sh_littlebyte_bigword_type): New function.
2857 (sh_register_convert_to_virtual): Use convert_typed_floating.
2858 (sh_register_convert_to_raw): Likewise.
2859 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2860 (sh64_littlebyte_bigword_type): New function.
2861 (sh64_extract_return_value): Use convert_typed_floating.
2862 (sh64_register_convert_to_virtual): Likewise.
2863 (sh64_register_convert_to_raw): Likewise.
2864
2865 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2866
2867 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2868 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2869
2870 * gdbtypes.h (union type_specific): Make field floatformat hold
2871 just a single struct floatformat, not an array.
2872 (floatformat_from_type): Move here.
2873 * gdbtypes.c (floatformat_from_type): Move here. Update to
2874 changed TYPE_FLOATFORMAT definition.
2875 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2876 (recursive_dump_type): Likewise.
2877 (init_float_type): Install correct floatformat for byte order.
2878 (arch_float_type): Likewise.
2879
2880 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2881
2882 * gdbtypes.c (init_type): Change incoming argument from
2883 length-in-bytes to length-in-bits. Assert length is a
2884 multiple of TARGET_CHAR_BITS.
2885 (arch_type, arch_flags_type): Likewise.
2886 (init_integer_type): Update call to init_type.
2887 (init_character_type): Likewise.
2888 (init_boolean_type): Likewise.
2889 (init_float_type): Likewise.
2890 (init_decfloat_type): Likewise.
2891 (init_complex_type): Likewise.
2892 (init_pointer_type): Likewise.
2893 (objfile_type): Likewise.
2894 (arch_integer_type): Update call to arch_type.
2895 (arch_character_type): Likewise.
2896 (arch_boolean_type): Likewise.
2897 (arch_float_type): Likewise.
2898 (arch_decfloat_type): Likewise.
2899 (arch_complex_type): Likewise.
2900 (arch_pointer_type): Likewise.
2901 (gdbtypes_post_init): Likewise.
2902
2903 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2904 (read_base_type): Likewise.
2905 * mdebugread.c (basic_type): Likewise.
2906 * stabsread.c (dbx_init_float_type): Likewise.
2907 (rs6000_builtin_type): Likewise.
2908 (read_range_type): Likewise. Also, fix call to init_integer_type
2909 with erroneous length argument.
2910
2911 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2912 * d-lang.c (build_d_types): Likewise.
2913 * f-lang.c (build_fortran_types): Likewise.
2914 * go-lang.c (build_go_types): Likewise.
2915 * opencl-lang.c (build_opencl_types): Likewise.
2916 * jit.c (finalize_symtab): Likewise.
2917 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2918 (build_std_type_info_type): Likewise.
2919 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2920 update call to arch_flags_type.
2921
2922 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2923 arch_type.
2924 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2925 * windows-tdep.c (windows_get_tlb_type): Likewise.
2926
2927 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2928 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2929 * m32c-tdep.c (make_types): Likewise.
2930 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2931 (rl78_psw_type): Update call to arch_flags_type.
2932 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2933 * rx-tdep.c (rx_psw_type): Likewise.
2934 (rx_fpsw_type): Likewise.
2935 * sparc-tdep.c (sparc_psr_type): Likewise.
2936 (sparc_fsr_type): Likewise.
2937 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2938 (sparc64_ccr_type): Likewise.
2939 (sparc64_fsr_type): Likewise.
2940 (sparc64_fprs_type): Likewise.
2941
2942 2017-09-27 Tom Tromey <tom@tromey.com>
2943
2944 * findcmd.c (find_command): Constify.
2945
2946 2017-09-27 Tom Tromey <tom@tromey.com>
2947
2948 * ada-tasks.c (task_command_1, task_command): Constify.
2949
2950 2017-09-27 Tom Tromey <tom@tromey.com>
2951
2952 * symtab.c (maintenance_print_symbol_cache)
2953 (maintenance_flush_symbol_cache)
2954 (maintenance_print_symbol_cache_statistics): Constify.
2955
2956 2017-09-27 Tom Tromey <tom@tromey.com>
2957
2958 * inferior.c (detach_inferior_command, kill_inferior_command)
2959 (inferior_command): Constify.
2960
2961 2017-09-27 Tom Tromey <tom@tromey.com>
2962
2963 * regcache.c (regcache_print, maintenance_print_registers)
2964 (maintenance_print_raw_registers)
2965 (maintenance_print_cooked_registers)
2966 (maintenance_print_register_groups)
2967 (maintenance_print_remote_registers): Constify.
2968
2969 2017-09-27 Tom Tromey <tom@tromey.com>
2970
2971 * printcmd.c (map_display_numbers, undisplay_command)
2972 (enable_disable_display_command, enable_display_command)
2973 (disable_display_command): Constify.
2974
2975 2017-09-27 Tom Tromey <tom@tromey.com>
2976
2977 * breakpoint.h (delete_command): Don't declare.
2978 * breakpoint.c (delete_command, enable_once_command)
2979 (enable_count_command, enable_delete_command, breakpoint_1)
2980 (maintenance_info_breakpoints, stopin_command, stopat_command)
2981 (delete_command, delete_trace_command, save_breakpoints)
2982 (save_breakpoints_command, save_tracepoints_command): Constify.
2983
2984 2017-09-27 Tom Tromey <tom@tromey.com>
2985
2986 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2987 (skip_ws, extract_identifier, macro_define_command)
2988 (macro_undef_command, macro_list_command): Constify.
2989
2990 2017-09-27 Tom Tromey <tom@tromey.com>
2991
2992 * infcmd.c (environment_info, set_environment_command)
2993 (unset_environment_command, path_info, info_proc_cmd_1)
2994 (info_proc_cmd_mappings, info_proc_cmd_stat)
2995 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
2996 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
2997
2998 2017-09-27 Tom Tromey <tom@tromey.com>
2999
3000 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
3001 Constify.
3002
3003 2017-09-27 Tom Tromey <tom@tromey.com>
3004
3005 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
3006
3007 2017-09-27 Tom Tromey <tom@tromey.com>
3008
3009 * demangle.c (demangle_command): Constify.
3010
3011 2017-09-27 Tom Tromey <tom@tromey.com>
3012
3013 * progspace.c (maintenance_info_program_spaces_command):
3014 Constify.
3015
3016 2017-09-27 Tom Tromey <tom@tromey.com>
3017
3018 * compile/compile.c (check_raw_argument, compile_file_command)
3019 (compile_code_command, compile_print_command): Constify.
3020
3021 2017-09-27 Tom Tromey <tom@tromey.com>
3022
3023 * reggroups.c (maintenance_print_reggroups): Constify.
3024
3025 2017-09-27 Tom Tromey <tom@tromey.com>
3026
3027 * dwarf2read.c (save_gdb_index_command): Constify.
3028
3029 2017-09-27 Tom Tromey <tom@tromey.com>
3030
3031 * stap-probe.c (info_probes_stap_command): Constify.
3032
3033 2017-09-27 Tom Tromey <tom@tromey.com>
3034
3035 * fork-child.c (unset_exec_wrapper_command): Constify.
3036
3037 2017-09-27 Tom Tromey <tom@tromey.com>
3038
3039 * btrace.c (get_uint, get_context_size, no_chunk)
3040 (maint_btrace_packet_history_cmd)
3041 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
3042 (maint_info_btrace_cmd): Constify.
3043
3044 2017-09-27 Tom Tromey <tom@tromey.com>
3045
3046 * reverse.c (delete_bookmark_command): Constify.
3047
3048 2017-09-27 Tom Tromey <tom@tromey.com>
3049
3050 * remote.c (set_memory_packet_size)
3051 (set_memory_write_packet_size, show_memory_write_packet_size)
3052 (set_memory_read_packet_size, show_memory_read_packet_size)
3053 (compare_sections_command, packet_command, remote_put_command)
3054 (remote_get_command, remote_delete_command): Constify.
3055
3056 2017-09-27 Tom Tromey <tom@tromey.com>
3057
3058 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
3059 (set_mipsfpu_double_command, set_mipsfpu_none_command)
3060 (set_mipsfpu_auto_command): Constify.
3061
3062 2017-09-27 Tom Tromey <tom@tromey.com>
3063
3064 * cli/cli-cmds.h (cd_command): Constify.
3065 * cli/cli-cmds.c (cd_command): Constify.
3066
3067 2017-09-27 Tom Tromey <tom@tromey.com>
3068
3069 * thread.c (thread_name_command, thread_find_command): Constify.
3070
3071 2017-09-27 Tom Tromey <tom@tromey.com>
3072
3073 * probe.c (enable_probes_command, disable_probes_command):
3074 Constify.
3075
3076 2017-09-27 Tom Tromey <tom@tromey.com>
3077
3078 * symfile.c (symbol_file_command): Constify.
3079 * gdbcore.h (deprecated_file_changed_hook): Constify.
3080 * exec.c (deprecated_file_changed_hook, exec_file_command)
3081 (file_command): Constify.
3082 * defs.h (symbol_file_command): Constify.
3083
3084 2017-09-27 Tom Tromey <tom@tromey.com>
3085
3086 * remote-fileio.c (set_system_call_allowed)
3087 (show_system_call_allowed): Constify.
3088
3089 2017-09-27 Tom Tromey <tom@tromey.com>
3090
3091 * tracepoint.c (delete_trace_variable_command)
3092 (tfind_end_command, tfind_start_command, tfind_pc_command)
3093 (tfind_tracepoint_command, tfind_line_command)
3094 (tfind_range_command, tfind_outside_command): Constify.
3095
3096 2017-09-27 Tom Tromey <tom@tromey.com>
3097
3098 * ax-gdb.c (maint_agent_printf_command, agent_command)
3099 (agent_eval_command): Constify.
3100
3101 2017-09-27 Tom Tromey <tom@tromey.com>
3102
3103 * tracepoint.c (info_scope_command): Constify.
3104 * python/python.c (gdbpy_decode_line): Constify.
3105 * python/py-breakpoint.c (bppy_init): Constify.
3106 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
3107 * location.h: (new_linespec_location)
3108 (string_to_event_location_basic, string_to_event_location):
3109 Constify.
3110 * location.c (new_linespec_location)
3111 (string_to_event_location_basic, string_to_event_location):
3112 Constify.
3113 * linespec.h (decode_line_with_current_source)
3114 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
3115 * linespec.c (linespec_lex_to_end)
3116 (decode_line_with_current_source)
3117 (decode_line_with_last_displayed): Constify.
3118 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
3119 Constify.
3120 * cli/cli-cmds.c (edit_command, list_command): Constify.
3121 * breakpoint.h (until_break_command, watch_command_wrapper)
3122 (awatch_command_wrapper, rwatch_command_wrapper)
3123 (init_ada_exception_breakpoint): Constify.
3124 * breakpoint.c (break_command_1, dprintf_command)
3125 (break_range_command, watch_command_wrapper)
3126 (rwatch_command_wrapper, awatch_command_wrapper)
3127 (until_break_command, init_ada_exception_breakpoint)
3128 (strace_marker_create_sals_from_location, trace_command)
3129 (ftrace_command, strace_command, struct tracepoint): Constify.
3130 * ax-gdb.c (agent_command_1): Constify.
3131 * ada-lang.c (ada_exception_sal): Constify.
3132
3133 2017-09-27 Tom Tromey <tom@tromey.com>
3134
3135 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
3136 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
3137 (get_context_size, no_chunk, get_insn_history_modifiers)
3138 (cmd_record_insn_history, get_call_history_modifiers)
3139 (cmd_record_call_history): Constify.
3140
3141 2017-09-27 Tom Tromey <tom@tromey.com>
3142
3143 * source.c (show_substitute_path_command)
3144 (unset_substitute_path_command, set_substitute_path_command):
3145 Constify.
3146
3147 2017-09-27 Tom Tromey <tom@tromey.com>
3148
3149 * typeprint.c (maintenance_print_type): Constify.
3150 * maint.c (maintenance_dump_me, maintenance_demangle)
3151 (maintenance_time_display, maintenance_info_sections)
3152 (maintenance_print_statistics, maintenance_deprecate)
3153 (maintenance_undeprecate): Constify.
3154 (maintenance_do_deprecate): Constify. Use std::string.
3155 (maintenance_selftest): Constify.
3156 * gdbtypes.h (maintenance_print_type): Constify.
3157
3158 2017-09-27 Tom Tromey <tom@tromey.com>
3159
3160 * hppa-tdep.c (unwind_command): Constify.
3161
3162 2017-09-27 Tom Tromey <tom@tromey.com>
3163
3164 * target-descriptions.c (unset_tdesc_filename_cmd)
3165 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
3166 Constify.
3167
3168 2017-09-27 Tom Tromey <tom@tromey.com>
3169
3170 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
3171
3172 2017-09-27 Tom Tromey <tom@tromey.com>
3173
3174 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
3175
3176 2017-09-27 Tom Tromey <tom@tromey.com>
3177
3178 * tui/tui-regs.c (tui_reg_command): Constify.
3179
3180 2017-09-27 Tom Tromey <tom@tromey.com>
3181
3182 * skip.c (skip_file_command, skip_function_command)
3183 (skip_enable_command, skip_disable_command, skip_delete_command):
3184 Constify.
3185
3186 2017-09-27 Tom Tromey <tom@tromey.com>
3187
3188 * record-btrace.c (cmd_record_btrace_bts_start)
3189 (cmd_record_btrace_pt_start): Constify.
3190
3191 2017-09-27 Tom Tromey <tom@tromey.com>
3192
3193 * symmisc.c (maintenance_print_symbols)
3194 (maintenance_print_msymbols, maintenance_print_objfiles)
3195 (maintenance_info_symtabs, maintenance_check_symtabs)
3196 (maintenance_expand_symtabs, maintenance_info_line_tables):
3197 Constify.
3198
3199 2017-09-27 Tom Tromey <tom@tromey.com>
3200
3201 * top.c (new_ui_command): Constify.
3202
3203 2017-09-27 Tom Tromey <tom@tromey.com>
3204
3205 * symfile.c (add_symbol_file_command)
3206 (remove_symbol_file_command, list_overlays_command)
3207 (map_overlay_command, unmap_overlay_command)
3208 (overlay_auto_command, overlay_manual_command)
3209 (overlay_off_command, overlay_load_command): Constify.
3210
3211 2017-09-27 Tom Tromey <tom@tromey.com>
3212
3213 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3214 (info_spu_mailbox_command, info_spu_dma_command)
3215 (info_spu_proxydma_command): Constify.
3216
3217 2017-09-27 Tom Tromey <tom@tromey.com>
3218
3219 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
3220
3221 2017-09-27 Tom Tromey <tom@tromey.com>
3222
3223 * cli/cli-script.c (user_defined_command): Constify.
3224
3225 2017-09-27 Tom Tromey <tom@tromey.com>
3226
3227 * cli/cli-dump.c (dump_memory_command, dump_value_command)
3228 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
3229 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
3230 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
3231 (dump_binary_value, append_binary_memory, append_binary_value):
3232 Constify.
3233 (struct dump_context) <func>: Constify.
3234 (add_dump_command): Update.
3235
3236 2017-09-27 Tom Tromey <tom@tromey.com>
3237
3238 * cli/cli-cmds.c (show_version, show_configuration)
3239 (source_command, show_user): Constify.
3240
3241 2017-09-27 Tom Tromey <tom@tromey.com>
3242
3243 * target.c (maintenance_print_target_stack): Constify.
3244
3245 2017-09-27 Tom Tromey <tom@tromey.com>
3246
3247 * interps.c (interpreter_exec_cmd): Constify.
3248
3249 2017-09-27 Tom Tromey <tom@tromey.com>
3250
3251 * record-full.c (cmd_record_full_restore): Constify.
3252
3253 2017-09-27 Tom Tromey <tom@tromey.com>
3254
3255 * memattr.c (enable_mem_command, disable_mem_command)
3256 (delete_mem_command): Constify.
3257
3258 2017-09-27 Tom Tromey <tom@tromey.com>
3259
3260 * value.c (show_convenience): Constify.
3261
3262 2017-09-27 Tom Tromey <tom@tromey.com>
3263
3264 * gdbcore.h (core_file_command): Update.
3265 * corefile.c (core_file_command): Constify.
3266
3267 2017-09-27 Tom Tromey <tom@tromey.com>
3268
3269 * user-regs.c (maintenance_print_user_registers): Constify.
3270
3271 2017-09-27 Tom Tromey <tom@tromey.com>
3272
3273 * cp-namespace.c (maintenance_cplus_namespace): Constify.
3274
3275 2017-09-27 Tom Tromey <tom@tromey.com>
3276
3277 * cp-support.c (first_component_command): Constify.
3278
3279 2017-09-27 Tom Tromey <tom@tromey.com>
3280
3281 * psymtab.c (maintenance_print_psymbols)
3282 (maintenance_info_psymtabs, maintenance_check_psymtabs):
3283 Constify.
3284
3285 2017-09-27 Tom Tromey <tom@tromey.com>
3286
3287 * windows-tdep.c (display_tib): Constify.
3288
3289 2017-09-27 Tom Tromey <tom@tromey.com>
3290
3291 * linux-fork.c (delete_checkpoint_command)
3292 (detach_checkpoint_command): Constify.
3293
3294 2017-09-27 Tom Tromey <tom@tromey.com>
3295
3296 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
3297
3298 2017-09-27 Tom Tromey <tom@tromey.com>
3299
3300 * arc-tdep.c (dump_arc_instruction_command): Constify.
3301
3302 2017-09-27 Tom Tromey <tom@tromey.com>
3303
3304 * valprint.c (set_radix, show_radix): Constify.
3305
3306 2017-09-27 Tom Tromey <tom@tromey.com>
3307
3308 * dtrace-probe.c (info_probes_dtrace_command): Constify.
3309
3310 2017-09-27 Tom Tromey <tom@tromey.com>
3311
3312 * command.h (not_just_help_class_command): Update.
3313 * cli/cli-decode.h (not_just_help_class_command): Update.
3314 * cli/cli-decode.c (not_just_help_class_command): Constify.
3315
3316 2017-09-27 Tom Tromey <tom@tromey.com>
3317
3318 * gdb_bfd.c (maintenance_info_bfds): Constify.
3319
3320 2017-09-27 Tom Tromey <tom@tromey.com>
3321
3322 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
3323 overloads.
3324 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
3325 (do_const_cfunc): New function.
3326 (cmd_cfunc_eq): New overload.
3327 (cli_user_command_p): Check do_const_cfunc.
3328 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
3329 const_cfunc.
3330 * command.h (add_cmd): Add const overload and no-function
3331 overload.
3332 (set_cmd_cfunc): Add const overload.
3333 (cmd_const_cfunc_ftype): Declare.
3334 (cmd_cfunc_eq): Add const overload.
3335 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
3336 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
3337 overload.
3338
3339 2017-09-27 Tom Tromey <tom@tromey.com>
3340
3341 * macroexp.c (get_next_token_for_substitution): New function.
3342 (substitute_args): Call it. Check for __VA_OPT__.
3343
3344 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3345 Pedro Alves <palves@redhat.com>
3346
3347 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
3348 producer_is_icc_lt_14.
3349 (producer_is_icc_lt_14): New function.
3350 (check_producer): Add code for checking version of ICC.
3351 (producer_is_icc): Move to producer.c.
3352 (read_structure_type): Restrict ICC workaround to ICC<14.
3353 * producer.c: Include selftest.h.
3354 (producer_is_icc, producer_parsing_tests, _initialize_producer):
3355 New functions.
3356 * producer.h (producer_is_icc): New declaration.
3357
3358 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3359
3360 * Makefile.in (SFILES): Add producer.c.
3361 (COMMON_OBS): Add producer.o
3362 * amd64-tdep.c (producer.h): Add new include.
3363 * dwarf2read.c (producer.h): Add new include.
3364 * producer.c: New file.
3365 * producer.h: New file.
3366 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
3367 producer.c.
3368 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
3369 producer.h.
3370
3371 2017-09-26 Matthias Klose <doko@ubuntu.com>
3372
3373 * configure.ac: Search ncursesw before ncurses.
3374 Check ncursesw/ncurses.h before ncurses/ncurses.h.
3375 * gdb_curses.h: Include <ncursesw/ncurses.h>
3376 * config.in, configure: Regenerate.
3377
3378 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3379
3380 PR gdb/22185
3381 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
3382 obsolete.
3383 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
3384 Remove i386sol2 support.
3385 * configure.nat <i386sol2>: Remove.
3386 <sol2-64>: Fold into ...
3387 <sol2>: ... this.
3388 Move common settings to default section.
3389 Add sol-thread.o.
3390 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
3391 x86_64-*-solaris2.1[0-9]*>: Rename to ...
3392 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
3393 <i[34567]86-*-solaris*>: Remove.
3394 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
3395
3396 * configure.ac: Remove wctype in libw check.
3397 (_MSE_INT_H): Don't define on Solaris 7-9.
3398 <solaris*>: Remove libthread_db.so.1 check.
3399 * configure: Regenerate.
3400 * config.in: Regenerate.
3401
3402 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
3403 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
3404 (gdb_ps_size_t): Remove.
3405 Use base types in users.
3406 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
3407
3408 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
3409
3410 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3411
3412 PR build/22206
3413 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
3414 (adi_is_addr_mapped): Likewise.
3415 (PSR_ICC): Don't redefine.
3416 (PSR_IMPL): Likewise.
3417
3418 2017-09-25 Tom Tromey <tom@tromey.com>
3419
3420 * regcache.c (regcache::dump): Use string_printf.
3421
3422 2017-09-25 Tom Tromey <tom@tromey.com>
3423
3424 * regcache.c (class regcache_invalidator): New.
3425 (struct register_to_invalidate): Remove.
3426 (make_cleanup_regcache_invalidate): Remove.
3427 (regcache::raw_write): Use regcache_invalidator.
3428
3429 2017-09-25 Tom Tromey <tom@tromey.com>
3430
3431 * spu-tdep.c (spu2ppu_sniffer): Update.
3432 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
3433 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
3434 Remove.
3435 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
3436 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
3437 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
3438 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
3439 (frame_pop): Update.
3440
3441 2017-09-25 Tom Tromey <tom@tromey.com>
3442
3443 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
3444 * regcache.h (regcache_xfree): Don't declare.
3445 * regcache.c (regcache_xfree): Remove.
3446 (do_regcache_xfree): Use delete.
3447 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
3448 * linux-fork.c (free_fork): Use delete.
3449 (fork_save_infrun_state): Likewise.
3450 * jit.c (jit_dealloc_cache): Use delete.
3451 * infrun.c (discard_infcall_suspend_state): Use delete.
3452
3453 2017-09-25 Tom Tromey <tom@tromey.com>
3454
3455 * regcache.h (regcache_xmalloc): Don't declare.
3456 (regcache_raw_set_cached_value): Update comment.
3457 * regcache.c (regcache_xmalloc): Remove.
3458 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
3459 * jit.c (jit_frame_sniffer): Use new.
3460 * frame.c (frame_save_as_regcache): Use new.
3461
3462 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3463
3464 * NEWS: Advertise support for guarded-storage registers on IBM z.
3465
3466 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3467
3468 * s390-linux-nat.c (have_regset_gs): New static variable.
3469 (s390_linux_fetch_inferior_registers): Handle guarded-storage
3470 control block and guarded-storage broadcast control regsets.
3471 (s390_read_description): Detect whether the target has
3472 guarded-storage support, return appropriate tdesc.
3473 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
3474 (features/s390x-gs-linux64.c): Likewise.
3475 (struct gdbarch_tdep) <have_gs>: New field.
3476 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
3477 (s390_gsbc_regset): New variables.
3478 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
3479 and s390_gsbc_regset, if applicable.
3480 (s390_core_read_description): Check whether core file was from a
3481 target with guarded-storage support; include appropriate regsets.
3482 (s390_gdbarch_init): Add registers for guarded-storage support.
3483 (_initialize_s390_tdep): Initialize new target descriptions that
3484 include registers for guarded-storage support.
3485 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
3486 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
3487 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
3488 (S390_NUM_REGS): Adjust macro definition.
3489 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
3490 (tdesc_s390x_gs_linux64): New declarations.
3491
3492 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3493
3494 * features/s390-gs-linux64.xml: New file.
3495 * features/s390-gs.xml: New file.
3496 * features/s390-gsbc.xml: New file.
3497 * features/s390x-gs-linux64.xml: New file.
3498 * features/Makefile (WHICH): Add s390-gs-linux64 and
3499 s390x-gs-linux64.
3500 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
3501 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
3502 * features/s390-gs-linux64.c: New generated file.
3503 * features/s390x-gs-linux64.c: New file.
3504 * regformats/s390-gs-linux64.dat: New file.
3505 * regformats/s390x-gs-linux64.dat: New file.
3506
3507 2017-09-23 Tom Tromey <tom@tromey.com>
3508
3509 * defs.h (make_cleanup_override_quit_handler): Don't declare.
3510
3511 2017-09-22 Tom Tromey <tom@tromey.com>
3512
3513 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
3514 type to scoped_restore_tmpl.
3515 <scoped_input_handler>: Initialize m_quit_handler directly.
3516
3517 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3518
3519 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
3520 (cd_command): Likewise. Free "current_directory" before
3521 assigning to it.
3522 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
3523 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
3524 * top.c (gdb_dirbuf): Remove global declaration.
3525 * top.h (gdb_dirbuf): Likewise.
3526
3527 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3528
3529 * gnulib/aclocal.m4: Regenerate.
3530 * gnulib/config.in: Regenerate.
3531 * gnulib/configure: Regenerate.
3532 * gnulib/import/Makefile.am: Regenerate.
3533 * gnulib/import/Makefile.in: Regenerate.
3534 * gnulib/import/assure.h: New file.
3535 * gnulib/import/at-func.c: Likewise
3536 * gnulib/import/chdir-long.c: New file.
3537 * gnulib/import/chdir-long.h: New file.
3538 * gnulib/import/cloexec.c: New file.
3539 * gnulib/import/cloexec.h: New file.
3540 * gnulib/import/close.c: New file.
3541 * gnulib/import/closedir.c: New file.
3542 * gnulib/import/dirent-private.h: New file.
3543 * gnulib/import/dup-safer.c: New file.
3544 * gnulib/import/dup.c: New file.
3545 * gnulib/import/dup2.c: New file.
3546 * gnulib/import/error.c: New file.
3547 * gnulib/import/error.h: New file.
3548 * gnulib/import/exitfail.c: New file.
3549 * gnulib/import/exitfail.h: New file.
3550 * gnulib/import/fchdir.c: New file.
3551 * gnulib/import/fcntl.c: New file.
3552 * gnulib/import/fcntl.in.h: New file.
3553 * gnulib/import/fd-hook.c: New file.
3554 * gnulib/import/fd-hook.h: New file.
3555 * gnulib/import/fd-safer.c: New file.
3556 * gnulib/import/fdopendir.c: New file.
3557 * gnulib/import/filename.h: New file.
3558 * gnulib/import/filenamecat-lgpl.c: New file.
3559 * gnulib/import/filenamecat.h: New file.
3560 * gnulib/import/fstat.c: New file.
3561 * gnulib/import/fstatat.c: New file.
3562 * gnulib/import/getcwd-lgpl.c: New file.
3563 * gnulib/import/getcwd.c: New file.
3564 * gnulib/import/getdtablesize.c: New file.
3565 * gnulib/import/getlogin_r.c: New file.
3566 * gnulib/import/getprogname.c: New file.
3567 * gnulib/import/getprogname.h: New file.
3568 * gnulib/import/gettext.h: New file.
3569 * gnulib/import/glob-libc.h: New file.
3570 * gnulib/import/glob.c: New file.
3571 * gnulib/import/glob.in.h: New file.
3572 * gnulib/import/intprops.h: New file.
3573 * gnulib/import/m4/chdir-long.m4: New file.
3574 * gnulib/import/m4/close.m4: New file.
3575 * gnulib/import/m4/closedir.m4: New file.
3576 * gnulib/import/m4/d-ino.m4: New file.
3577 * gnulib/import/m4/d-type.m4: New file.
3578 * gnulib/import/m4/dup.m4: New file.
3579 * gnulib/import/m4/dup2.m4: New file.
3580 * gnulib/import/m4/error.m4: New file.
3581 * gnulib/import/m4/fchdir.m4: New file.
3582 * gnulib/import/m4/fcntl.m4: New file.
3583 * gnulib/import/m4/fcntl_h.m4: New file.
3584 * gnulib/import/m4/fdopendir.m4: New file.
3585 * gnulib/import/m4/filenamecat.m4: New file.
3586 * gnulib/import/m4/fstat.m4: New file.
3587 * gnulib/import/m4/fstatat.m4: New file.
3588 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
3589 * gnulib/import/m4/getcwd-path-max.m4: New file.
3590 * gnulib/import/m4/getcwd.m4: New file.
3591 * gnulib/import/m4/getdtablesize.m4: New file.
3592 * gnulib/import/m4/getlogin_r.m4: New file.
3593 * gnulib/import/m4/getprogname.m4: New file.
3594 * gnulib/import/m4/glob.m4: New file.
3595 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3596 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3597 * gnulib/import/m4/mempcpy.m4: New file.
3598 * gnulib/import/m4/memrchr.m4: New file.
3599 * gnulib/import/m4/mode_t.m4: New file.
3600 * gnulib/import/m4/msvc-inval.m4: New file.
3601 * gnulib/import/m4/msvc-nothrow.m4: New file.
3602 * gnulib/import/m4/open.m4: New file.
3603 * gnulib/import/m4/openat.m4: New file.
3604 * gnulib/import/m4/opendir.m4: New file.
3605 * gnulib/import/m4/readdir.m4: New file.
3606 * gnulib/import/m4/realloc.m4: New file.
3607 * gnulib/import/m4/rewinddir.m4: New file.
3608 * gnulib/import/m4/save-cwd.m4: New file.
3609 * gnulib/import/m4/strdup.m4: New file.
3610 * gnulib/import/m4/strerror.m4: New file.
3611 * gnulib/import/m4/unistd-safer.m4: New file.
3612 * gnulib/import/mempcpy.c: New file.
3613 * gnulib/import/memrchr.c: New file.
3614 * gnulib/import/msvc-inval.c: New file.
3615 * gnulib/import/msvc-inval.h: New file.
3616 * gnulib/import/msvc-nothrow.c: New file.
3617 * gnulib/import/msvc-nothrow.h: New file.
3618 * gnulib/import/open.c: New file.
3619 * gnulib/import/openat-die.c: New file.
3620 * gnulib/import/openat-priv.h: New file.
3621 * gnulib/import/openat-proc.c: New file.
3622 * gnulib/import/openat.c: New file.
3623 * gnulib/import/openat.h: New file.
3624 * gnulib/import/opendir.c: New file.
3625 * gnulib/import/pipe-safer.c: New file.
3626 * gnulib/import/readdir.c: New file.
3627 * gnulib/import/realloc.c: New file.
3628 * gnulib/import/rewinddir.c: New file.
3629 * gnulib/import/save-cwd.c: New file.
3630 * gnulib/import/save-cwd.h: New file.
3631 * gnulib/import/strdup.c: New file.
3632 * gnulib/import/strerror-override.c: New file.
3633 * gnulib/import/strerror-override.h: New file.
3634 * gnulib/import/strerror.c: New file.
3635 * gnulib/import/unistd--.h: New file.
3636 * gnulib/import/unistd-safer.h: New file.
3637 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3638 "getcwd" and "glob".
3639 * ser-tcp.c: Undefine "close" before redefining it.
3640
3641 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3642
3643 * guile/scm-value.c (gdbscm_value_address): Initialize address,
3644 get rid of res_val.
3645
3646 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3647
3648 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
3649 <sol2,sparc>: Likewise.
3650 <sol2-64,i386>: Likewise.
3651
3652 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
3653 -Wdeprecated-declarations on *-*-solaris*.
3654 * configure: Regenerate.
3655
3656 * procfs.c: Include "nat/inferior.h".
3657 (procfs_info_proc): Fix typo.
3658
3659 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3660
3661 * remote.c (vector): Include.
3662 (struct private_thread_info): Add field, thread_handle.
3663 (free_private_thread_info): Deallocate storage associated with
3664 thread handle.
3665 (get_private_info_thread): Initialize `thread_handle' field.
3666 (struct thread_item): Add field, thread_handle.
3667 (clear_threads_listing_context): Deallocate storage associated
3668 with thread handle.
3669 (start_thread): Add support for "handle" attribute.
3670 (thread_attributes): Add "handle".
3671 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3672 field.
3673 (remote_update_thread_list): Update thread_handle.
3674 (remote_thread_handle_to_thread_info): New function.
3675 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3676
3677 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3678
3679 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3680 function.
3681 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3682 * python/python-internal.h (thread_object_type): Declare.
3683
3684 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3685
3686 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3687 (target_thread_handle_to_thread_info): Declare.
3688 * target.c (target_thread_handle_to_thread_info): New function.
3689 * target-delegates.c: Regenerate.
3690 * gdbthread.h (find_thread_by_handle): Declare.
3691 * thread.c (find_thread_by_handle): New function.
3692 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3693 function.
3694 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3695
3696 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3697
3698 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3699
3700 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3701
3702 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3703
3704 2017-09-21 Yao Qi <yao.qi@linaro.org>
3705
3706 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3707 to gdb_target_obs.
3708
3709 2017-09-20 Tom Tromey <tom@tromey.com>
3710
3711 * breakpoint.c (struct counted_command_line): Remove.
3712 (breakpoint_commands): Update.
3713 (alloc_counted_command_line, incref_counted_command_line)
3714 (decref_counted_command_line, do_cleanup_counted_command_line)
3715 (make_cleanup_decref_counted_command_line): Remove.
3716 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3717 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3718 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3719 (save_breakpoints): Update.
3720 * breakpoint.h (counted_command_line): Now a typedef to
3721 shared_ptr.
3722 (struct breakpoint) <commands>: Now a counted_command_line.
3723 (struct bpstats) <command>: Likewise.
3724
3725 2017-09-20 Tom Tromey <tom@tromey.com>
3726
3727 * breakpoint.c (struct commands_info, do_map_commands_command):
3728 Remove.
3729 (commands_command_1): Update.
3730 (iterate_over_related_breakpoints): Take a function_view.
3731 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3732 (delete_command): Update.
3733 (map_breakpoint_numbers): Take a function_view.
3734 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3735 (disable_command): Update.
3736 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3737 (enable_command): Update.
3738 (struct disp_data, do_enable_breakpoint_disp)
3739 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3740 (do_map_enable_delete_breakpoint): Remove.
3741 (enable_once_command, enable_count_command, enable_delete_command)
3742 (delete_trace_variable_command): Update.
3743
3744 2017-09-20 Tom Tromey <tom@tromey.com>
3745
3746 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3747 (bpstat_clear): Use delete.
3748 (bpstats): New constructors.
3749 (bpstat_copy, bpstat_stop_status): Use new.
3750 (dprintf_after_condition_true): Update.
3751 * breakpoint.h (bpstats::bpstats): Add constructors.
3752 (bpstats::~bpstats): Add destructor.
3753
3754 2017-09-20 Pedro Alves <palves@redhat.com>
3755
3756 * eval.c (make_params): Delete, refactored as ...
3757 (class fake_method): ... this new type's ctor.
3758 (fake_method::~fake_method): New.
3759 (evaluate_subexp_standard): Use 'fake_method'.
3760
3761 2017-09-20 Tom Tromey <tom@tromey.com>
3762
3763 * windows-nat.c (get_windows_debug_event, windows_wait)
3764 (do_initial_windows_stuff, windows_attach): Update.
3765 * utils.c (vwarning, internal_vproblem): Update.
3766 (ui_unregister_input_event_handler_cleanup)
3767 (prepare_to_handle_input): Remove.
3768 (class scoped_input_handler): New.
3769 (defaulted_query, prompt_for_continue): Update.
3770 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3771 Update.
3772 * top.c (undo_terminal_modifications_before_exit): Update.
3773 * target/target.h (target_terminal_init, target_terminal_inferior)
3774 (target_terminal_ours): Don't declare.
3775 (class target_terminal): New.
3776 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3777 (target_terminal_ours_for_output)
3778 (make_cleanup_restore_target_terminal): Don't declare.
3779 (target_terminal_info): Remove.
3780 * target.c (enum terminal_state, terminal_state): Remove.
3781 (target_terminal::terminal_state): Define.
3782 (target_terminal::init): Rename from target_terminal_init.
3783 (target_terminal::inferior): Rename from
3784 target_terminal_inferior.
3785 (target_terminal::ours): Rename from target_terminal_ours.
3786 (target_terminal::ours_for_output): Rename from
3787 target_terminal_ours_for_output.
3788 (target_terminal::info): New method.
3789 (cleanup_restore_target_terminal)
3790 (make_cleanup_restore_target_terminal): Remove.
3791 * solib.c (handle_solib_event): Update.
3792 * remote.c (remote_serial_quit_handler): Update.
3793 (remote_terminal_inferior, remote_wait_as): Update.
3794 * record-full.c (record_full_wait_1): Update.
3795 * nto-procfs.c (procfs_create_inferior): Update.
3796 * nat/fork-inferior.c (startup_inferior): Update.
3797 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3798 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3799 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3800 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3801 (mi_breakpoint_created, mi_breakpoint_deleted)
3802 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3803 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3804 (mi_user_selected_context_changed, report_initial_inferior):
3805 Update.
3806 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3807 (linux_nat_terminal_inferior): Update.
3808 * infrun.c (follow_fork_inferior)
3809 (handle_vfork_child_exec_or_exit, do_target_resume)
3810 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3811 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3812 Update.
3813 * inflow.c (child_terminal_init, info_terminal_command): Update.
3814 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3815 (attach_command): Update.
3816 * infcall.c (call_thread_fsm_should_stop): Update.
3817 * gnu-nat.c (gnu_attach): Update.
3818 * extension.c (struct active_ext_lang_state)
3819 (restore_active_ext_lang): Update.
3820 * exceptions.c (print_flush): Update.
3821 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3822 (struct quit_handler_cleanup_data, restore_quit_handler)
3823 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3824 Remove.
3825 * cp-support.c (gdb_demangle): Update.
3826 * breakpoint.c (update_inserted_breakpoint_locations)
3827 (insert_breakpoint_locations, handle_jit_event)
3828 (disable_breakpoints_in_unloaded_shlib): Update.
3829 * annotate.c (annotate_breakpoints_invalid)
3830 (annotate_frames_invalid): Update.
3831
3832 2017-09-20 Tom Tromey <tom@tromey.com>
3833
3834 * main.c (catch_command_errors): Rename from
3835 catch_command_errors_const.
3836 (captured_main_1): Update.
3837
3838 2017-09-20 Pedro Alves <palves@redhat.com>
3839
3840 * cli/cli-cmds.c (list_command): Use print_sal_location.
3841 (print_sal_location): New function.
3842 (ambiguous_line_spec): Use print_sal_location.
3843 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3844 * symtab.c (find_function_start_sal): Likewise.
3845 * symtab.h (symtab_and_line::symbol): New field.
3846
3847 2017-09-20 Pedro Alves <palves@redhat.com>
3848
3849 * linespec.c (minsym_found): Handle non-text minsyms.
3850 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3851
3852 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3853
3854 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3855 backslash.
3856
3857 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3858
3859 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3860 vmovups instead vmovaps.
3861 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3862
3863 2017-09-19 John Baldwin <jhb@FreeBSD.org>
3864
3865 * NEWS (Changes since GDB 8.0): Add starti.
3866 * infcmd.c (enum run_break): New.
3867 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3868 case.
3869 (run_command): Use enum run_how.
3870 (start_command): Likewise.
3871 (starti_command): New function.
3872 (RUN_ARGS_HELP): New macro.
3873 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3874 commands. Add starti command.
3875
3876 2017-09-19 Yao Qi <yao.qi@linaro.org>
3877
3878 * Makefile.in (monitor.o): Remove the rule.
3879
3880 2017-09-19 Yao Qi <yao.qi@linaro.org>
3881
3882 * annotate.h (struct annotate_arg_emitter): Use
3883 DISABLE_COPY_AND_ASSIGN.
3884 * common/refcounted-object.h (refcounted_object): Likewise.
3885 * completer.h (struct completion_result): Likewise.
3886 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3887 * filename-seen-cache.h (filename_seen_cache): Likewise.
3888 * gdbcore.h (thread_section_name): Likewise.
3889 * gdb_regex.h (compiled_regex): Likewise.
3890 * gdbthread.h (scoped_restore_current_thread): Likewise.
3891 * inferior.h (scoped_restore_current_inferior): Likewise.
3892 * jit.c (jit_reader): Likewise.
3893 * linespec.h (struct linespec_result): Likewise.
3894 * mi/mi-parse.h (struct mi_parse): Likewise.
3895 * nat/fork-inferior.c (execv_argv): Likewise.
3896 * progspace.h (scoped_restore_current_program_space): Likewise.
3897 * python/python-internal.h (class gdbpy_enter): Likewise.
3898 * regcache.h (regcache): Likewise.
3899 * target-descriptions.c (struct tdesc_reg): Likewise.
3900 (struct tdesc_type): Likewise.
3901 (struct tdesc_feature): Likewise.
3902 * ui-out.h (ui_out_emit_type): Likewise.
3903
3904 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3905
3906 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3907 label abort_expression.
3908
3909 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3910
3911 * common/buffer.c (buffer_xml_printf): Adjust.
3912 * common/xml-utils.c (xml_escape_text): Change return type to
3913 std::string, update code accordingly.
3914 * common/xml-utils.h (xml_escape_text): Change return type to
3915 std::string.
3916 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3917 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3918 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3919 Adjust.
3920
3921 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3922
3923 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3924 (SUBDIR_UNITTESTS_OBS): Add new object file.
3925 * unittests/xml-utils-selftests.c: New file.
3926
3927 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3928
3929 * common/selftest.h (selftest): New struct/interface.
3930 (register_test): Add name parameter, add new overload.
3931 (run_tests): Add filter parameter.
3932 (for_each_selftest_ftype): New typedef.
3933 (for_each_selftest): New declaration.
3934 * common/selftest.c (tests): Change type to
3935 map<string, unique_ptr<selftest>>.
3936 (simple_selftest): New struct.
3937 (register_test): New function.
3938 (register_test): Add name parameter and use it.
3939 (run_tests): Add filter parameter and use it. Add prints.
3940 Adjust to vector -> map change.
3941 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3942 registering selftests.
3943 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3944 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3945 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3946 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3947 * findvar.c (_initialize_findvar): Likewise.
3948 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3949 * maint.c (maintenance_selftest): Update call to run_tests.
3950 (maintenance_info_selftests): New function.
3951 (_initialize_maint_cmds): Register "maintenance info selftests"
3952 command. Update "maintenance selftest" doc.
3953 * regcache.c (_initialize_regcache): Add names when registering
3954 selftests.
3955 * rust-exp.y (_initialize_rust_exp): Likewise.
3956 * selftest-arch.c (gdbarch_selftest): New struct.
3957 (gdbarch_tests): Remove.
3958 (register_test_foreach_arch): Add name parameter. Call
3959 register_test.
3960 (tests_with_arch): Remove, move most content to
3961 gdbarch_selftest::operator().
3962 (_initialize_selftests_foreach_arch): Remove.
3963 * selftest-arch.h (register_test_foreach_arch): Add name
3964 parameter.
3965 (run_tests_with_arch): New declaration.
3966 * utils-selftests.c (_initialize_utils_selftests): Add names
3967 when registering selftests.
3968 * utils.c (_initialize_utils): Likewise.
3969 * unittests/array-view-selftests.c
3970 (_initialize_array_view_selftests): Likewise.
3971 * unittests/environ-selftests.c (_initialize_environ_selftests):
3972 Likewise.
3973 * unittests/function-view-selftests.c
3974 (_initialize_function_view_selftests): Likewise.
3975 * unittests/offset-type-selftests.c
3976 (_initialize_offset_type_selftests): Likewise.
3977 * unittests/optional-selftests.c
3978 (_initialize_optional_selftests): Likewise.
3979 * unittests/scoped_restore-selftests.c
3980 (_initialize_scoped_restore_selftests): Likewise.
3981 * NEWS: Document "maintenance selftest" and "maint info
3982 selftests".
3983
3984 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3985
3986 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
3987 scoped_restore.
3988
3989 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3990
3991 * mi/mi-main.c (mi_load_progress): Make uiout variable
3992 a unique_ptr.
3993
3994 2017-09-15 Pedro Alves <palves@redhat.com>
3995
3996 * compile/compile-c-types.c (convert_enum, convert_int)
3997 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
3998
3999 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4000
4001 * dwarf2read.c (copy_string): Remove.
4002 (parse_macro_definition): Replace copy_string with savestring.
4003
4004 2017-09-15 Yao Qi <yao.qi@linaro.org>
4005
4006 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
4007 gdb_target_obs.
4008 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
4009 Likewise.
4010 (i[34567]86-*-linux*): Likewise.
4011
4012 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4013
4014 * dwarf2expr.h (dwarf_stack_value): Add constructor.
4015 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
4016 <stack>: Change type to std::vector.
4017 <stack_len, stack_allocated>: Remove.
4018 <grow_stack>: Remove.
4019 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4020 (dwarf_expr_context::~dwarf_expr_context): Remove.
4021 (dwarf_expr_context::grow_stack): Remove.
4022 (dwarf_expr_context::push): Adjust.
4023 (dwarf_expr_context::pop): Adjust.
4024 (dwarf_expr_context::fetch): Adjust.
4025 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
4026 (dwarf_expr_context::stack_empty_p): Adjust.
4027 (dwarf_expr_context::execute_stack_op): Adjust.
4028
4029 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4030
4031 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
4032 return type to bool.
4033 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
4034
4035 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4036
4037 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
4038 Change type to bool.
4039 (dwarf_stack_value) <in_stack_memory>: Likewise.
4040 (dwarf_expr_context) <push_address>: Change parameter type to
4041 bool.
4042 <fetch_in_stack_memory>: Change return type to bool.
4043 <push>: Change parameter type to bool.
4044 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
4045 to bool.
4046 (dwarf_expr_context::push_address): Likewise.
4047 (dwarf_expr_context::fetch_in_stack_memory): Change return type
4048 to bool.
4049 (dwarf_expr_context::execute_stack_op): Adjust.
4050 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
4051
4052 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4053
4054 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
4055 (struct dwarf_expr_context) <n_pieces>: Remove.
4056 <pieces>: Change type to std::vector.
4057 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4058 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
4059 pieces.
4060 (dwarf_expr_context::add_piece): Adjust.
4061 * dwarf2loc.c (struct piece_closure): Initialize fields.
4062 <n_pieces>: Remove.
4063 <pieces>: Change type to std::vector.
4064 (allocate_piece_closure): Adjust, change parameter to
4065 std::vector rvalue and std::move it to piece_closure.
4066 (rw_pieced_value): Adjust.
4067 (check_pieced_synthetic_pointer): Adjust.
4068 (indirect_synthetic_pointer): Adjust.
4069 (coerce_pieced_ref): Adjust.
4070 (free_pieced_value_closure): Adjust. Use delete to free
4071 piece_closure.
4072 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
4073 to allocate_piece_closure.
4074 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
4075
4076 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4077
4078 * probe.h (probe_ops_cp): Remove typedef.
4079 (DEF_VEC_P (probe_ops_cp)): Remove.
4080 (all_probe_ops): Change type to std::vector.
4081 * probe.c (info_probes_for_ops): Adjust to vector change.
4082 (probe_linespec_to_ops): Likewise.
4083 (all_probe_ops): Change type to std::vector.
4084 (_initialize_probe): Adjust to vector change.
4085 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
4086 * elfread.c (elf_get_probes): Likewise.
4087 * stap-probe.c (_initialize_stap_probe): Likewise.
4088
4089 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4090
4091 * probe.h (struct bound_probe): Define constructors.
4092 * probe.c (bound_probe_s): Remove typedef.
4093 (DEF_VEC_O (bound_probe_s)): Remove VEC.
4094 (collect_probes): Change return type to std::vector, remove
4095 cleanup.
4096 (compare_probes): Return bool, change parameter type. Change
4097 semantic to "less than".
4098 (gen_ui_out_table_header_info): Change parameter to std::vector
4099 and update.
4100 (exists_probe_with_pops): Likewise.
4101 (info_probes_for_ops): Update to std::vector change.
4102 (enable_probes_command): Likewise.
4103 (disable_probes_command): Likewise.
4104
4105 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4106
4107 * probe.h (struct probe_ops) <get_probes>: Change parameter from
4108 vec to std::vector.
4109 * probe.c (parse_probes_in_pspace): Update.
4110 (find_probes_in_objfile): Update.
4111 (find_probe_by_pc): Update.
4112 (collect_probes): Update.
4113 (probe_any_get_probes): Update.
4114 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
4115 return type to reference to std::vector.
4116 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
4117 std::vector and update.
4118 (dtrace_process_dof): Likewise.
4119 (dtrace_get_probes): Likewise.
4120 * elfread.c (elf_get_probes): Change return type to std::vector,
4121 store an std::vector in bfd_data.
4122 (probe_key_free): Update to std::vector.
4123 * stap-probe.c (handle_stap_probe): Change parameter to
4124 std::vector and update.
4125 (stap_get_probes): Likewise.
4126 * symfile-debug.c (debug_sym_get_probes): Change return type to
4127 std::vector and update.
4128
4129 2017-09-11 Tom Tromey <tom@tromey.com>
4130
4131 * breakpoint.c (program_breakpoint_here_p): Update.
4132 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
4133 from make_show_memory_breakpoints_cleanup. Return a
4134 scoped_restore_tmpl<int>.
4135 (restore_show_memory_breakpoints): Remove.
4136 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
4137 * mem-break.c (memory_validate_breakpoint): Update.
4138 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
4139 (ia64_memory_remove_breakpoint): Update.
4140 (ia64_breakpoint_from_pc): Update.
4141 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
4142 from make_show_memory_breakpoints_cleanup.
4143
4144 2017-09-11 Tom Tromey <tom@tromey.com>
4145
4146 * d-namespace.c (d_lookup_symbol): Use std::string.
4147 (find_symbol_in_baseclass): Likewise.
4148
4149 2017-09-11 Tom Tromey <tom@tromey.com>
4150
4151 * ctf.c (ctf_start): Use std::string.
4152
4153 2017-09-11 Tom Tromey <tom@tromey.com>
4154
4155 * ada-lang.c (is_known_support_routine): Update.
4156 (ada_unhandled_exception_name_addr_from_raise): Update.
4157 * guile/scm-frame.c (gdbscm_frame_name): Update.
4158 * python/py-frame.c (frapy_name): Update.
4159 (frapy_function): Update.
4160 * stack.h (find_frame_funname): Update.
4161 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
4162 (print_frame): Update.
4163
4164 2017-09-11 Tom Tromey <tom@tromey.com>
4165
4166 * findcmd.c (put_bits): Take a gdb::byte_vector.
4167 (parse_find_args): Return gdb::byte_vector. "args" now const.
4168 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
4169 cleanups.
4170 (find_command): Update.
4171
4172 2017-09-11 Tom Tromey <tom@tromey.com>
4173
4174 * cli/cli-script.c (class scoped_restore_hook_in): New.
4175 (clear_hook_in_cleanup): Remove.
4176 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
4177 scoped_restore_hook_in.
4178
4179 2017-09-11 Tom Tromey <tom@tromey.com>
4180
4181 * cli/cli-script.c (restore_interp): Remove.
4182 (read_command_lines): Use scoped_restore_interp.
4183 * interps.c (scoped_restore_interp::set_temp): Rename from
4184 interp_set_temp.
4185 * interps.h (class scoped_restore_interp): New.
4186 (interp_set_temp): Remove.
4187
4188 2017-09-11 Tom Tromey <tom@tromey.com>
4189
4190 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
4191 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
4192 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
4193 scoped_restore.
4194 (mi_cmd_break_insert_1): Update.
4195 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
4196 scoped_restore.
4197
4198 2017-09-11 Tom Tromey <tom@tromey.com>
4199
4200 * demangle.c (demangle_command): Update.
4201 * breakpoint.c (disable_command): Update.
4202 (enable_command): Update.
4203 (find_location_by_number): Make "number" const. Use
4204 get_number_trailer.
4205 * cli/cli-utils.c (extract_arg): Return std::string.
4206 * probe.c (parse_probe_linespec): Update. Change types.
4207 (collect_probes): Take string arguments.
4208 (parse_probe_linespec): Likewise.
4209 (info_probes_for_ops): Update.
4210 (enable_probes_command): Update.
4211 (disable_probes_command): Update.
4212 * break-catch-sig.c (catch_signal_split_args): Update.
4213 * mi/mi-parse.c (mi_parse): Update.
4214
4215 2017-09-11 Tom Tromey <tom@tromey.com>
4216
4217 * language.h (language_enum): Make argument const.
4218 * language.c (language_enum): Make argument const.
4219
4220 2017-09-11 Tom Tromey <tom@tromey.com>
4221
4222 * common/common-utils.h (skip_to_space): Remove macro, redeclare
4223 as function.
4224 (skip_to_space): Rename from skip_to_space_const.
4225 * common/common-utils.c (skip_to_space): New function.
4226 (skip_to_space): Rename from skip_to_space_const.
4227 * cli/cli-utils.h (get_number): Rename from get_number_const.
4228 (extract_arg): Rename from extract_arg_const.
4229 * cli/cli-utils.c (get_number): Rename from get_number_const.
4230 (extract_arg): Rename from extract_arg_const.
4231 (number_or_range_parser::get_number): Use ::get_number.
4232 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
4233 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
4234 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
4235 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
4236 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
4237 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
4238 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
4239 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
4240
4241 2017-09-11 Tom Tromey <tom@tromey.com>
4242
4243 * python/python.c (do_start_initialization): Use
4244 py-event-types.def to initialize types.
4245 Define all object type structures.
4246 * python/python-internal.h: Don't declare event initialization
4247 functions.
4248 * python/py-threadevent.c (thread_event_object_type): Don't
4249 define.
4250 * python/py-stopevent.c (stop_event_object_type): Don't define.
4251 * python/py-signalevent.c (signal_event_object_type): Don't
4252 declare or define.
4253 * python/py-newobjfileevent.c (new_objfile_event_object_type)
4254 (clear_objfiles_event_object_type): Don't declare or define.
4255 * python/py-infevents.c (inferior_call_pre_event_object_type)
4256 (inferior_call_post_event_object_type)
4257 (register_changed_event_object_type)
4258 (memory_changed_event_object_type): Don't declare or define.
4259 * python/py-inferior.c (new_thread_event_object_type)
4260 (new_inferior_event_object_type)
4261 (inferior_deleted_event_object_type): Don't declare or define.
4262 * python/py-exitedevent.c (exited_event_object_type): Don't
4263 declare or define.
4264 * python/py-evts.c (gdbpy_initialize_py_events): Use
4265 py-all-events.def.
4266 * python/py-events.h (thread_event_object_type): Don't declare.
4267 (events_object): Use py-all-events.def.
4268 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
4269 py-event-types.def.
4270 * python/py-event-types.def: New file.
4271 * python/py-continueevent.c (create_continue_event_object): Don't
4272 declare or define.
4273 * python/py-bpevent.c (breakpoint_event_object_type): Don't
4274 declare or define.
4275 * python/py-all-events.def: New file.
4276
4277 2017-09-11 Tom Tromey <tom@tromey.com>
4278
4279 * python/py-threadevent.c (create_thread_event_object): Return
4280 gdbpy_ref.
4281 * python/py-stopevent.h (create_stop_event_object)
4282 (create_breakpoint_event_object, create_signal_event_object):
4283 Update.
4284 * python/py-stopevent.c (create_stop_event_object): Return
4285 gdbpy_ref.
4286 (emit_stop_event): Update.
4287 * python/py-signalevent.c (create_signal_event_object): Return
4288 gdbpy_ref.
4289 * python/py-infevents.c (create_inferior_call_event_object):
4290 Update.
4291 * python/py-event.h (create_event_object)
4292 (create_thread_event_object): Update.
4293 * python/py-event.c (create_event_object): Return gdbpy_ref.
4294 * python/py-continueevent.c: Return gdbpy_ref.
4295 * python/py-bpevent.c (create_breakpoint_event_object): Return
4296 gdbpy_ref.
4297
4298 2017-09-11 Tom Tromey <tom@tromey.com>
4299
4300 PR python/15622:
4301 * NEWS: Add entry.
4302 * python/python.c (do_start_initialization): Initialize new event
4303 types.
4304 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
4305 (gdbpy_initialize_inferior_deleted_event)
4306 (gdbpy_initialize_new_thread_event): Declare.
4307 * python/py-threadevent.c (create_thread_event_object): Add option
4308 "thread" parameter.
4309 * python/py-inferior.c (new_thread_event_object_type)
4310 (new_inferior_event_object_type)
4311 (inferior_deleted_event_object_type): Declare.
4312 (python_new_inferior, python_inferior_deleted): New functions.
4313 (add_thread_object): Emit new_thread event.
4314 (gdbpy_initialize_inferior): Attach new functions to corresponding
4315 observers.
4316 (new_thread, new_inferior, inferior_deleted): Define new event
4317 types.
4318 * python/py-evts.c (gdbpy_initialize_py_events): Add new
4319 registries.
4320 * python/py-events.h (events_object) <new_inferior,
4321 inferior_deleted, new_thread>: New fields.
4322 * python/py-event.h (create_thread_event_breakpoint): Add optional
4323 "thread" parameter.
4324
4325 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
4326
4327 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
4328 check current_ui instead.
4329 (internal_vproblem): Likewise.
4330
4331 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
4332
4333 * thread.c (print_thread_info_1): Remove unnecessary calls to
4334 uiout->is_mi_like_p.
4335
4336 2017-09-09 Tom Tromey <tom@tromey.com>
4337
4338 * namespace.h (add_using_directive): Update.
4339 * namespace.c (add_using_directive): Change type of excludes to
4340 std::vector.
4341 * dwarf2read.c (read_import_statement): Use std::vector.
4342 (read_namespace): Update.
4343 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4344
4345 2017-09-09 Tom Tromey <tom@tromey.com>
4346
4347 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
4348
4349 2017-09-09 Tom Tromey <tom@tromey.com>
4350
4351 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
4352
4353 2017-09-09 Tom Tromey <tom@tromey.com>
4354
4355 * stack.c (func_command): Use gdb::def_vector.
4356
4357 2017-09-09 Tom Tromey <tom@tromey.com>
4358
4359 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
4360 ui_out_emit_list, ui_out_emit_tuple.
4361 (mi_cmd_var_update): Likewise.
4362
4363 2017-09-09 Tom Tromey <tom@tromey.com>
4364
4365 * mi/mi-interp.c (mi_user_selected_context_changed): Use
4366 ui_out_redirect_pop.
4367 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
4368 ui_out_redirect_pop.
4369 * utils.c (do_ui_out_redirect_pop)
4370 (make_cleanup_ui_out_redirect_pop): Remove.
4371 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
4372 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
4373 * ui-out.h (ui_out_redirect_pop): New class.
4374
4375 2017-09-09 Tom Tromey <tom@tromey.com>
4376
4377 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
4378 (list_available_thread_groups, mi_cmd_list_thread_groups)
4379 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
4380 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
4381 Likewise.
4382
4383 2017-09-09 Tom Tromey <tom@tromey.com>
4384
4385 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4386 ui_out_emit_tuple.
4387
4388 2017-09-09 Tom Tromey <tom@tromey.com>
4389
4390 * target.c (flash_erase_command): Use ui_out_emit_tuple.
4391 * stack.c (print_frame): Use ui_out_emit_tuple.
4392 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
4393 (info_spu_mailbox_command, info_spu_dma_command)
4394 (info_spu_proxydma_command): Likewise.
4395 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
4396 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
4397 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
4398 ui_out_emit_tuple.
4399 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
4400
4401 2017-09-09 Tom Tromey <tom@tromey.com>
4402
4403 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
4404 (class ui_out_emit_table): Update comment.
4405 * ui-out.c (do_cleanup_table_end)
4406 (make_cleanup_ui_out_table_begin_end): Remove.
4407 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
4408 (info_spu_dma_cmdlist): Likewise.
4409 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
4410 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
4411 ui_out_emit_table.
4412
4413 2017-09-09 Tom Tromey <tom@tromey.com>
4414
4415 * thread.c (print_thread_info_1): Use ui_out_emit_table,
4416 ui_out_emit_list, gdb::optional.
4417
4418 2017-09-09 John Baldwin <jhb@FreeBSD.org>
4419
4420 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
4421 prototype.
4422 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
4423 prototype.
4424 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
4425 prototype.
4426 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
4427 * ada-exp.y: Remove _initialize_ada_exp prototype.
4428 * ada-lang.c: Remove _initialize_ada_language prototype.
4429 * ada-tasks.c: Remove _initialize_tasks prototype.
4430 * addrmap.c: Remove _initialize_addrmap prototype.
4431 * agent.c: Remove _initialize_agent prototype.
4432 * aix-thread.c: Remove _initialize_aix_thread prototype.
4433 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
4434 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
4435 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
4436 prototype.
4437 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
4438 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
4439 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
4440 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
4441 prototype.
4442 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
4443 prototype.
4444 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
4445 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
4446 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
4447 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
4448 prototype.
4449 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
4450 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
4451 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
4452 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
4453 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4454 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
4455 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
4456 prototype.
4457 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
4458 prototype.
4459 * annotate.c: Remove _initialize_annotate prototype.
4460 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
4461 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
4462 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
4463 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
4464 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
4465 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
4466 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
4467 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
4468 prototype.
4469 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
4470 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
4471 * auto-load.c: Remove _initialize_auto_load prototype.
4472 * auxv.c: Remove _initialize_auxv prototype.
4473 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
4474 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
4475 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
4476 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
4477 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
4478 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
4479 prototype.
4480 * break-catch-throw.c: Remove _initialize_break_catch_throw
4481 prototype.
4482 * breakpoint.c: Remove _initialize_breakpoint prototype.
4483 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
4484 * btrace.c: Remove _initialize_btrace prototype.
4485 * charset.c: Remove _initialize_charset prototype.
4486 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
4487 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
4488 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
4489 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
4490 * cli/cli-script.c: Remove _initialize_cli_script prototype.
4491 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
4492 * coffread.c: Remove _initialize_coffread prototype.
4493 * compile/compile.c: Remove _initialize_compile prototype.
4494 * complaints.c: Remove _initialize_complaints prototype.
4495 * completer.c: Remove _initialize_completer prototype.
4496 * copying.awk: Remove _initialize_copying prototype.
4497 * copying.c: Regenerate.
4498 * core-regset.c: Remove _initialize_core_regset prototype.
4499 * corefile.c: Remove _initialize_core prototype.
4500 * corelow.c: Remove _initialize_corelow prototype.
4501 * cp-abi.c: Remove _initialize_cp_abi prototype.
4502 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
4503 * cp-support.c: Remove _initialize_cp_support prototype.
4504 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
4505 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
4506 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
4507 * ctf.c: Remove _initialize_ctf prototype.
4508 * d-lang.c: Remove _initialize_d_language prototype.
4509 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
4510 prototype.
4511 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
4512 * dbxread.c: Remove _initialize_dbxread prototype.
4513 * dcache.c: Remove _initialize_dcache prototype.
4514 * demangle.c: Remove _initialize_demangler prototype.
4515 * disasm-selftests.c: Remove _initialize_disasm_selftests
4516 prototype.
4517 * disasm.c: Remove _initialize_disasm prototype.
4518 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
4519 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
4520 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
4521 prototype.
4522 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
4523 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
4524 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
4525 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
4526 * elfread.c: Remove _initialize_elfread prototype.
4527 * exec.c: Remove _initialize_exec prototype.
4528 * extension.c: Remove _initialize_extension prototype.
4529 * f-lang.c: Remove _initialize_f_language prototype.
4530 * f-valprint.c: Remove _initialize_f_valprint prototype.
4531 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
4532 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
4533 * filesystem.c: Remove _initialize_filesystem prototype.
4534 * findcmd.c: Remove _initialize_mem_search prototype.
4535 * fork-child.c: Remove _initialize_fork_child prototype.
4536 * frame-base.c: Remove _initialize_frame_base prototype.
4537 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
4538 * frame.c: Remove _initialize_frame prototype.
4539 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
4540 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
4541 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
4542 * gcore.c: Remove _initialize_gcore prototype.
4543 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
4544 * gdbarch.c: Regenerate.
4545 * gdbarch.sh: Remove _initialize_gdbarch prototype.
4546 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
4547 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
4548 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
4549 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
4550 * go-lang.c: Remove _initialize_go_language prototype.
4551 * go32-nat.c: Remove _initialize_go32_nat prototype.
4552 * guile/guile.c: Remove _initialize_guile prototype.
4553 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
4554 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
4555 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
4556 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
4557 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
4558 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
4559 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
4560 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
4561 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
4562 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
4563 prototype.
4564 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
4565 prototype.
4566 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
4567 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
4568 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
4569 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
4570 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
4571 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
4572 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
4573 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
4574 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
4575 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
4576 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
4577 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
4578 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
4579 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4580 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
4581 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
4582 prototype.
4583 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
4584 prototype.
4585 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
4586 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
4587 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
4588 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
4589 * infcall.c: Remove _initialize_infcall prototype.
4590 * infcmd.c: Remove _initialize_infcmd prototype.
4591 * inferior.c: Remove _initialize_inferiors prototype.
4592 * inflow.c: Remove _initialize_inflow prototype.
4593 * infrun.c: Remove _initialize_infrun prototype.
4594 * interps.c: Remove _initialize_interpreter prototype.
4595 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
4596 * jit.c: Remove _initialize_jit prototype.
4597 * language.c: Remove _initialize_language prototype.
4598 * linux-fork.c: Remove _initialize_linux_fork prototype.
4599 * linux-nat.c: Remove _initialize_linux_nat prototype.
4600 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
4601 * linux-thread-db.c: Remove _initialize_thread_db prototype.
4602 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
4603 * m2-lang.c: Remove _initialize_m2_language prototype.
4604 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
4605 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
4606 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
4607 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
4608 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
4609 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4610 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4611 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
4612 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
4613 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
4614 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4615 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4616 * machoread.c: Remove _initialize_machoread prototype.
4617 * macrocmd.c: Remove _initialize_macrocmd prototype.
4618 * macroscope.c: Remove _initialize_macroscope prototype.
4619 * maint.c: Remove _initialize_maint_cmds prototype.
4620 * mdebugread.c: Remove _initialize_mdebugread prototype.
4621 * memattr.c: Remove _initialize_mem prototype.
4622 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
4623 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
4624 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
4625 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
4626 * mi/mi-main.c: Remove _initialize_mi_main prototype.
4627 * microblaze-linux-tdep.c: Remove
4628 _initialize_microblaze_linux_tdep prototype.
4629 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
4630 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
4631 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
4632 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
4633 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
4634 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
4635 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
4636 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
4637 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
4638 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
4639 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
4640 prototype.
4641 * mipsread.c: Remove _initialize_mipsread prototype.
4642 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
4643 prototype.
4644 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
4645 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
4646 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
4647 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
4648 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
4649 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
4650 prototype.
4651 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
4652 * nto-procfs.c: Remove _initialize_procfs prototype.
4653 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
4654 * objc-lang.c: Remove _initialize_objc_language prototype.
4655 * objfiles.c: Remove _initialize_objfiles prototype.
4656 * observer.c: Remove observer_test_first_notification_function,
4657 observer_test_second_notification_function,
4658 observer_test_third_notification_function, and
4659 _initialize_observer prototypes.
4660 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4661 * osabi.c: Remove _initialize_gdb_osabi prototype.
4662 * osdata.c: Remove _initialize_osdata prototype.
4663 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4664 * parse.c: Remove _initialize_parse prototype.
4665 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4666 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4667 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4668 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4669 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4670 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4671 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4672 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4673 * printcmd.c: Remove _initialize_printcmd prototype.
4674 * probe.c: Remove _initialize_probe prototype.
4675 * proc-api.c: Remove _initialize_proc_api prototype.
4676 * proc-events.c: Remove _initialize_proc_events prototype.
4677 * proc-service.c: Remove _initialize_proc_service prototype.
4678 * procfs.c: Remove _initialize_procfs prototype.
4679 * psymtab.c: Remove _initialize_psymtab prototype.
4680 * python/python.c: Remove _initialize_python prototype.
4681 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4682 * record-btrace.c: Remove _initialize_record_btrace prototype.
4683 * record-full.c: Remove _initialize_record_full prototype.
4684 * record.c: Remove _initialize_record prototype.
4685 * regcache.c: Remove _initialize_regcache prototype.
4686 * reggroups.c: Remove _initialize_reggroup prototype.
4687 * remote-notif.c: Remove _initialize_notif prototype.
4688 * remote-sim.c: Remove _initialize_remote_sim prototype.
4689 * remote.c: Remove _initialize_remote prototype.
4690 * reverse.c: Remove _initialize_reverse prototype.
4691 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4692 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4693 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4694 prototype.
4695 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4696 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4697 * rust-exp.y: Remove _initialize_rust_exp prototype.
4698 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4699 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4700 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4701 * score-tdep.c: Remove _initialize_score_tdep prototype.
4702 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4703 prototype.
4704 * ser-go32.c: Remove _initialize_ser_dos prototype.
4705 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4706 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4707 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4708 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4709 * serial.c: Remove _initialize_serial prototype.
4710 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4711 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4712 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4713 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4714 * skip.c: Remove _initialize_step_skip prototype.
4715 * sol-thread.c: Remove _initialize_sol_thread prototype.
4716 * solib-aix.c: Remove _initialize_solib_aix prototype.
4717 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4718 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4719 * solib-frv.c: Remove _initialize_frv_solib prototype.
4720 * solib-spu.c: Remove _initialize_spu_solib prototype.
4721 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4722 * solib-target.c: Remove _initialize_solib_target prototype.
4723 * solib.c: Remove _initialize_solib prototype.
4724 * source.c: Remove _initialize_source prototype.
4725 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4726 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4727 prototype.
4728 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4729 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4730 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4731 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4732 prototype.
4733 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4734 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4735 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4736 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4737 prototype.
4738 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4739 prototype.
4740 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4741 prototype.
4742 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4743 prototype.
4744 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4745 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4746 prototype.
4747 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4748 prototype.
4749 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4750 prototype.
4751 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4752 prototype.
4753 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4754 prototype.
4755 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4756 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4757 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4758 * stabsread.c: Remove _initialize_stabsread prototype.
4759 * stack.c: Remove _initialize_stack prototype.
4760 * stap-probe.c: Remove _initialize_stap_probe prototype.
4761 * std-regs.c: Remove _initialize_frame_reg prototype.
4762 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4763 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4764 * symfile.c: Remove _initialize_symfile prototype.
4765 * symmisc.c: Remove _initialize_symmisc prototype.
4766 * symtab.c: Remove _initialize_symtab prototype.
4767 * target-dcache.c: Remove _initialize_target_dcache prototype.
4768 * target-descriptions.c: Remove _initialize_target_descriptions
4769 prototype.
4770 * thread.c: Remove _initialize_thread prototype.
4771 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4772 prototype.
4773 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4774 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4775 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4776 prototype.
4777 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4778 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4779 * tracefile.c: Remove _initialize_tracefile prototype.
4780 * tracepoint.c: Remove _initialize_tracepoint prototype.
4781 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4782 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4783 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4784 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4785 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4786 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4787 * tui/tui.c: Remove _initialize_tui prototype.
4788 * typeprint.c: Remove _initialize_typeprint prototype.
4789 * user-regs.c: Remove _initialize_user_regs prototype.
4790 * utils.c: Remove _initialize_utils prototype.
4791 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4792 * valarith.c: Remove _initialize_valarith prototype.
4793 * valops.c: Remove _initialize_valops prototype.
4794 * valprint.c: Remove _initialize_valprint prototype.
4795 * value.c: Remove _initialize_values prototype.
4796 * varobj.c: Remove _initialize_varobj prototype.
4797 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4798 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4799 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4800 * windows-nat.c: Remove _initialize_windows_nat,
4801 _initialize_check_for_gdb_ini, and _initialize_loadable
4802 prototypes.
4803 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4804 * xcoffread.c: Remove _initialize_xcoffread prototype.
4805 * xml-support.c: Remove _initialize_xml_support prototype.
4806 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4807 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4808 prototype.
4809 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4810 prototype.
4811 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4812
4813 2017-09-08 Keith Seitz <keiths@redhat.com>
4814
4815 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4816 field.
4817
4818 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4819
4820 * f-valprint.c (f_val_print): Remove check for one byte
4821 sized integers. Remove printing of character type.
4822
4823 2017-09-08 Frank Penczek <frank.penczek@intel.com>
4824 Christoph Weinmann <christoph.t.weinmann@intel.com>
4825 Bernhard Heckel <bernhard.heckel@intel.com>
4826
4827 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4828 to maintain proper indentation when printing pointers/refs.
4829
4830 2017-09-07 Joel Brobecker <brobecker@adacore.com>
4831
4832 GDB 8.0.1 released.
4833
4834 2017-09-07 Joel Brobecker <brobecker@adacore.com>
4835
4836 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4837
4838 2017-09-05 Tom Tromey <tom@tromey.com>
4839
4840 * parse.c (funcall_chain): Now a std::vector.
4841 (start_arglist, end_arglist): Simplify.
4842 (free_funcalls): Remove.
4843 (parse_exp_in_context_1): Remove cleanup.
4844
4845 2017-09-05 Tom Tromey <tom@tromey.com>
4846
4847 * go-exp.y (go_parse): Don't create a cleanup.
4848
4849 2017-09-05 Tom Tromey <tom@tromey.com>
4850
4851 * d-exp.y (PrimaryExpression): Use std::string.
4852 (d_parse): Don't create a cleanup.
4853
4854 2017-09-05 Tom Tromey <tom@tromey.com>
4855
4856 * utils.c (do_clear_parser_state): Remove.
4857 (make_cleanup_clear_parser_state): Remove.
4858 * p-exp.y (pascal_parse): Use scoped_restore.
4859 * m2-exp.y (m2_parse): Use scoped_restore.
4860 * f-exp.y (f_parse): Use scoped_restore.
4861 * d-exp.y (d_parse): Use scoped_restore.
4862 * c-exp.y (c_parse): Use scoped_restore.
4863 * ada-exp.y (ada_parse): Use scoped_restore.
4864 * utils.h (make_cleanup_clear_parser_state): Remove.
4865
4866 2017-09-06 Keith Seitz <keiths@redhat.com>
4867
4868 * dwarf2read.c (dw2_linkage_name_attr): New function.
4869 (dw2_linkage_name): New function.
4870 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4871 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4872 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4873
4874 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4875
4876 * config/djgpp/djconfig.sh: Correct shell portability issue.
4877
4878 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4879
4880 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4881
4882 2017-09-06 John Baldwin <jhb@FreeBSD.org>
4883
4884 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4885 * NEWS: Mention new FreeBSD/mips native configuration.
4886 * configure.host: Add aarch64*-*-freebsd*.
4887 * configure.nat: Likewise.
4888 * aarch64-fbsd-nat.c: New file.
4889
4890 2017-09-06 John Baldwin <jhb@FreeBSD.org>
4891
4892 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4893 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4894 * NEWS: Mention new FreeBSD/aarch64 target.
4895 * configure.tgt: Add aarch64*-*-freebsd*.
4896 * aarch64-fbsd-tdep.c: New file.
4897 * aarch64-fbsd-tdep.h: New file.
4898
4899 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4900
4901 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4902
4903 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4904
4905 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4906 of TLS symbols.
4907
4908 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4909
4910 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4911 call.
4912
4913 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4914
4915 * infrun.c (follow_exec): Call add_thread after
4916 target_find_description.
4917
4918 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4919
4920 * infrun.c (handle_inferior_event_1): When exec'ing, read
4921 stop_pc after follow_exec.
4922
4923 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4924
4925 * remote.c (process_g_packet): Update error message.
4926
4927 2017-09-05 Yao Qi <yao.qi@linaro.org>
4928
4929 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4930 targets.
4931
4932 2017-09-05 Pedro Alves <palves@redhat.com>
4933
4934 * eval.c (eval_call, evaluate_funcall): New functions, factored
4935 out from ...
4936 (evaluate_subexp_standard): ... this.
4937
4938 2017-09-05 Yao Qi <yao.qi@linaro.org>
4939
4940 * amd64-tdep.c (amd64_target_description): Create target
4941 descriptions.
4942 (_initialize_amd64_tdep): Don't call functions
4943 initialize_tdesc_amd64_*. Add self tests.
4944 * arch/amd64.c (amd64_create_target_description): Add parameter
4945 is_linux. Call set_tdesc_osabi if is_linux is true.
4946 * arch/amd64.h (amd64_create_target_description): Update the
4947 declaration.
4948 * arch/i386.c (i386_create_target_description): Add parameter
4949 is_linux. Call set_tdesc_osabi if is_linux is true.
4950 * arch/i386.h (i386_create_target_description): Update
4951 declaration.
4952 * configure.tgt: Add i386.o to gdb_target_obs.
4953 * features/Makefile (XMLTOC): Remove i386/*.xml.
4954 * features/i386/amd64-avx-avx512.c: Remove.
4955 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4956 * features/i386/amd64-avx-mpx.c: Remove.
4957 * features/i386/amd64-avx.c: Remove.
4958 * features/i386/amd64-mpx.c: Remove.
4959 * features/i386/amd64.c: Remove.
4960 * features/i386/i386-avx-avx512.c: Remove.
4961 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4962 * features/i386/i386-avx-mpx.c: Remove.
4963 * features/i386/i386-avx.c: Remove.
4964 * features/i386/i386-mmx.c: Remove.
4965 * features/i386/i386-mpx.c: Remove.
4966 * features/i386/i386.c: Remove.
4967 * i386-tdep.c: Don't include features/i386/i386*.c., include
4968 target-descriptions.h and arch/i386.h.
4969 (i386_target_description): Create target descriptions.
4970 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4971 functions. Do self tests.
4972
4973 2017-09-05 Yao Qi <yao.qi@linaro.org>
4974
4975 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4976 * features/i386/amd64-avx-avx512-linux.c: Removed.
4977 * features/i386/amd64-avx-linux.c: Removed.
4978 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4979 * features/i386/amd64-avx-mpx-linux.c: Removed.
4980 * features/i386/amd64-linux.c: Removed.
4981 * features/i386/amd64-mpx-linux.c: Removed.
4982 * features/i386/x32-avx-avx512-linux.c: Removed.
4983 * features/i386/x32-avx-linux.c: Removed.
4984 * features/i386/x32-linux.c: Removed.
4985
4986 2017-09-05 Yao Qi <yao.qi@linaro.org>
4987
4988 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
4989 features/i386/*.c.
4990 (amd64_linux_read_description): Call
4991 amd64_create_target_description.
4992 * arch/amd64.c: New file.
4993 * arch/amd64.h: New file.
4994 * configure.tgt (x86_64-*-linux*): Append amd64.o.
4995 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
4996
4997 2017-09-05 Yao Qi <yao.qi@linaro.org>
4998
4999 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
5000 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
5001 (amd64_linux_read_description): Create target descriptions.
5002 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
5003 functions. Add unit tests.
5004 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
5005 x32-core.xml.
5006 * features/i386/64bit-avx.c: Generated.
5007 * features/i386/64bit-avx512.c: Generated.
5008 * features/i386/64bit-core.c: Generated.
5009 * features/i386/64bit-linux.c: Generated.
5010 * features/i386/64bit-mpx.c: Generated.
5011 * features/i386/64bit-pkeys.c: Generated.
5012 * features/i386/64bit-segments.c: Generated.
5013 * features/i386/64bit-sse.c: Generated.
5014 * features/i386/x32-core.c: Generated.
5015 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
5016 c files for amd64-linux and x32-linux.
5017
5018 2017-09-05 Yao Qi <yao.qi@linaro.org>
5019
5020 * amd64-linux-tdep.c (amd64_linux_read_description): New
5021 function.
5022 (amd64_linux_core_read_description): Call
5023 amd64_linux_read_description.
5024 (amd64_linux_init_abi): Likewise.
5025 (amd64_x32_linux_init_abi): Likewise.
5026 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
5027 * x86-linux-nat.c (x86_linux_read_description): Call
5028 amd64_linux_read_description.
5029
5030 2017-09-05 Yao Qi <yao.qi@linaro.org>
5031
5032 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
5033 comments.
5034
5035 2017-09-05 Yao Qi <yao.qi@linaro.org>
5036
5037 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
5038 * features/i386/i386-avx-avx512-linux.c: Remove.
5039 * features/i386/i386-avx-linux.c: Remove.
5040 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
5041 * features/i386/i386-avx-mpx-linux.c: Remove.
5042 * features/i386/i386-linux.c: Remove.
5043 * features/i386/i386-mmx-linux.c: Remove.
5044 * features/i386/i386-mpx-linux.c: Remove.
5045
5046 2017-09-05 Yao Qi <yao.qi@linaro.org>
5047
5048 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
5049 (SFILES): Add arch/i386.c.
5050 (HFILES_NO_SRCDIR): Add arch/i386.h.
5051 * arch/i386.c: New file.
5052 * arch/i386.h: New file.
5053 * arch/tdesc.h (allocate_target_description): Declare.
5054 (set_tdesc_architecture): Declare.
5055 (set_tdesc_osabi): Declare.
5056 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
5057 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
5058 include arch/i386.h.
5059 (i386_linux_read_description): Remove code and call
5060 i386_create_target_description.
5061 (set_tdesc_architecture): New function.
5062 (set_tdesc_osabi): New function.
5063 * target-descriptions.h (allocate_target_description): Remove.
5064
5065 2017-09-05 Yao Qi <yao.qi@linaro.org>
5066
5067 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
5068 * target-descriptions.c (tdesc_create_feature): Likewise, and
5069 adjust code.
5070 * features/i386/32bit-avx.c: Re-generated.
5071 * features/i386/32bit-avx512.c: Re-generated.
5072 * features/i386/32bit-core.c: Re-generated.
5073 * features/i386/32bit-linux.c: Re-generated.
5074 * features/i386/32bit-mpx.c: Re-generated.
5075 * features/i386/32bit-pkeys.c: Re-generated.
5076 * features/i386/32bit-sse.c: Re-generated.
5077
5078 2017-09-05 Yao Qi <yao.qi@linaro.org>
5079
5080 * regformats/regdef.h (struct reg): Override operator == and !=.
5081
5082 2017-09-05 Yao Qi <yao.qi@linaro.org>
5083
5084 * arch/tdesc.h: New file.
5085 * regformats/regdat.sh: Generate code using tdesc_create_reg.
5086 * target-descriptions.c: Update comments.
5087 * target-descriptions.h: Include "arch/tdesc.h". Remove the
5088 declarations.
5089 * features/i386/32bit-avx.c: Re-generated.
5090 * features/i386/32bit-avx512.c: Re-generated.
5091 * features/i386/32bit-core.c: Re-generated.
5092 * features/i386/32bit-linux.c: Re-generated.
5093 * features/i386/32bit-mpx.c: Re-generated.
5094 * features/i386/32bit-pkeys.c: Re-generated.
5095 * features/i386/32bit-sse.c: Re-generated.
5096
5097 2017-09-05 Yao Qi <yao.qi@linaro.org>
5098
5099 * regformats/regdat.sh: Update generated code.
5100
5101 2017-09-05 Yao Qi <yao.qi@linaro.org>
5102
5103 * regformats/regdat.sh: Adjust code order.
5104
5105 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5106
5107 * expprint.c (dump_subexp_body_standard): Use constant format
5108 string in fprintf_filtered call.
5109
5110 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5111
5112 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
5113 NetBSD/i386.
5114 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
5115
5116 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5117
5118 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
5119
5120 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5121
5122 * bsd-kvm.o: Define _KMEMUSER.
5123 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
5124 * configure: Regenerate.
5125
5126 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5127
5128 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
5129 * i386-fbsd-nat.c: Likewise.
5130
5131 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5132
5133 * unittests/array-view-selftests.c: Add include of <array>.
5134
5135 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5136
5137 * spu-tdep.c (flush_ea_cache): Add missing argument to
5138 call_function_by_hand.
5139
5140 2017-09-04 Pedro Alves <palves@redhat.com>
5141
5142 * NEWS (Safer support for debugging with no debug info): New.
5143
5144 2017-09-04 Pedro Alves <palves@redhat.com>
5145
5146 * c-exp.y (function_method, function_method_void): Add current
5147 instance flags to TYPE_INSTANCE.
5148 * dwarf2read.c (check_modifier): New.
5149 (compute_delayed_physnames): Assert that only C++ adds delayed
5150 physnames. Mark fn_fields as const/volatile depending on
5151 physname.
5152 * eval.c (make_params): New type_instance_flags parameter. Use
5153 it as the new type's instance flags.
5154 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
5155 flags element and pass it to make_params.
5156 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
5157 instance flags element.
5158 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
5159 * gdbtypes.h: Include "enum-flags.h".
5160 (type_instance_flags): New enum-flags type.
5161 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
5162 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
5163 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
5164 (follow_type_instance_flags): New function.
5165 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
5166 * parser-defs.h (follow_type_instance_flags): Declare.
5167 * valops.c (value_struct_elt_for_reference): const/volatile must
5168 match too.
5169
5170 2017-09-04 Pedro Alves <palves@redhat.com>
5171
5172 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
5173 function/method scopes; lookup the nested name as a function local
5174 static variable.
5175
5176 2017-09-04 Pedro Alves <palves@redhat.com>
5177
5178 (%type <voidval>): Add function_method.
5179 * c-exp.y (exp): New production for calls with no arguments.
5180 (function_method, function_method_void_or_typelist): New
5181 productions.
5182 (exp): New production for "method()::static_var".
5183 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
5184 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5185 Handle OP_FUNC_STATIC_VAR.
5186 * parse.c (operator_length_standard):
5187 Handle OP_FUNC_STATIC_VAR.
5188
5189 2017-09-04 Pedro Alves <palves@redhat.com>
5190
5191 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
5192 handling.
5193 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5194 Ditto.
5195 * parse.c (operator_length_standard, operator_check_standard):
5196 Ditto.
5197 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
5198
5199 2017-09-04 Pedro Alves <palves@redhat.com>
5200
5201 * ax-gdb.c: Include "typeprint.h".
5202 (gen_expr_for_cast): New function.
5203 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
5204 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
5205 type is unknown.
5206 * dwarf2read.c (new_symbol_full): Fallback to int instead of
5207 nodebug_data_symbol.
5208 * eval.c: Include "typeprint.h".
5209 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
5210 Error out if symbol has unknown type.
5211 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
5212 evaluate_subexp_for_cast.
5213 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
5214 OP_VAR_MSYM_VALUE.
5215 (evaluate_subexp_for_cast): New function.
5216 * gdbtypes.c (init_nodebug_var_type): New function.
5217 (objfile_type): Use it to initialize types of variables with no
5218 debug info.
5219 * typeprint.c (error_unknown_type): New.
5220 * typeprint.h (error_unknown_type): New declaration.
5221 * compile/compile-c-types.c (convert_type_basic): Handle
5222 TYPE_CODE_ERROR; warn and fallback to int for variables with
5223 unknown type.
5224
5225 2017-09-04 Pedro Alves <palves@redhat.com>
5226
5227 * eval.c (evaluate_var_value): New function, factored out from ...
5228 (evaluate_subexp_standard): ... here.
5229
5230 2017-09-04 Pedro Alves <palves@redhat.com>
5231
5232 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
5233 Remove useless assignments to 'op'.
5234
5235 2017-09-04 Pedro Alves <palves@redhat.com>
5236
5237 * eval.c (eval_skip_value): New function.
5238 (evaluate_subexp_standard): Use it.
5239
5240 2017-09-04 Pedro Alves <palves@redhat.com>
5241
5242 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
5243 function name from symbol/minsym and pass it to
5244 error_call_unknown_return_type.
5245
5246 2017-09-04 Pedro Alves <palves@redhat.com>
5247
5248 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
5249 * ax-gdb.c (gen_msym_var_ref): New function.
5250 (gen_expr): Handle OP_VAR_MSYM_VALUE.
5251 * eval.c (evaluate_var_msym_value): New function.
5252 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
5253 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
5254 to call_function_by_hand.
5255 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5256 Handle OP_VAR_MSYM_VALUE.
5257 (union exp_element) <msymbol>: New field.
5258 * minsyms.h (struct type): Forward declare.
5259 (find_minsym_type_and_address): Declare.
5260 * parse.c (write_exp_elt_msym): New function.
5261 (write_exp_msymbol): Delete, refactored as ...
5262 (find_minsym_type_and_address): ... this new function.
5263 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
5264 (operator_length_standard, operator_check_standard): Handle
5265 OP_VAR_MSYM_VALUE.
5266 * std-operator.def (OP_VAR_MSYM_VALUE): New.
5267
5268 2017-09-04 Pedro Alves <palves@redhat.com>
5269
5270 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
5271 TYPE_GNU_IFUNC specially here. Throw error if return type is
5272 unknown.
5273 * ada-typeprint.c (print_func_type): Handle functions with unknown
5274 return type.
5275 * c-typeprint.c (c_type_print_base): Handle functions and methods
5276 with unknown return type.
5277 * compile/compile-c-symbols.c (convert_symbol_bmsym)
5278 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
5279 * compile/compile-c-types.c: Include "objfiles.h".
5280 (convert_func): For functions with unknown return type, warn and
5281 default to int.
5282 * compile/compile-object-run.c (compile_object_run): Adjust call
5283 to call_function_by_hand_dummy.
5284 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
5285 call_function_by_hand.
5286 * eval.c (evaluate_subexp_standard): Adjust calls to
5287 call_function_by_hand. Handle functions and methods with unknown
5288 return type. Pass expect_type to call_function_by_hand.
5289 * f-typeprint.c (f_type_print_base): Handle functions with unknown
5290 return type.
5291 * gcore.c (call_target_sbrk): Adjust call to
5292 call_function_by_hand.
5293 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
5294 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
5295 an integer address type instead of nodebug.
5296 * guile/scm-value.c (gdbscm_value_call): Adjust call to
5297 call_function_by_hand.
5298 * infcall.c (error_call_unknown_return_type): New function.
5299 (call_function_by_hand): New "default_return_type" parameter.
5300 Pass it down.
5301 (call_function_by_hand_dummy): New "default_return_type"
5302 parameter. Use it instead of defaulting to int. If there's no
5303 default and the return type is unknown, throw an error. If
5304 there's a default return type, and the called function has no
5305 debug info, then assume the function is prototyped.
5306 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
5307 New "default_return_type" parameter.
5308 (error_call_unknown_return_type): New declaration.
5309 * linux-fork.c (call_lseek): Cast return type of lseek.
5310 (inferior_call_waitpid, checkpoint_command): Adjust calls to
5311 call_function_by_hand.
5312 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
5313 calls to call_function_by_hand.
5314 * m2-typeprint.c (m2_procedure): Handle functions with unknown
5315 return type.
5316 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5317 (value_nsstring, print_object_command): Adjust calls to
5318 call_function_by_hand.
5319 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
5320 functions with unknown return type.
5321 (pascal_type_print_func_varspec_suffix): New function.
5322 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
5323 TYPE_CODE_METHOD>: Use it.
5324 * python/py-value.c (valpy_call): Adjust call to
5325 call_function_by_hand.
5326 * rust-lang.c (rust_evaluate_funcall): Adjust call to
5327 call_function_by_hand.
5328 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
5329 call_function_by_hand.
5330 * valops.c (value_allocate_space_in_inferior): Adjust call to
5331 call_function_by_hand.
5332 * typeprint.c (type_print_unknown_return_type): New function.
5333 * typeprint.h (type_print_unknown_return_type): New declaration.
5334
5335 2017-09-04 Pedro Alves <palves@redhat.com>
5336
5337 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
5338 types with more than one parameter as prototyped.
5339
5340 2017-09-04 Pedro Alves <palves@redhat.com>
5341
5342 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
5343 (disassemble_command): Use gdb_disassembly_flags instead of bare
5344 int.
5345 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
5346 (dump_insns, do_mixed_source_and_assembly_deprecated)
5347 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
5348 Use gdb_disassembly_flags instead of bare int.
5349 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
5350 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
5351 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
5352 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
5353 (enum gdb_disassembly_flag): ... values of this new enumeration.
5354 (gdb_disassembly_flags): Define.
5355 (gdb_disassembly)
5356 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
5357 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
5358 gdb_disassembly_flags instead of bare int.
5359 * record-btrace.c (btrace_insn_history)
5360 (record_btrace_insn_history, record_btrace_insn_history_range)
5361 (record_btrace_insn_history_from): Use gdb_disassembly_flags
5362 instead of bare int.
5363 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
5364 Use gdb_disassembly_flags instead of bare int.
5365 * target-debug.h (target_debug_print_gdb_disassembly_flags):
5366 Define.
5367 * target-delegates.c: Regenerate.
5368 * target.c (target_insn_history, target_insn_history_from)
5369 (target_insn_history_range): Use gdb_disassembly_flags instead of
5370 bare int.
5371 * target.h: Include "disasm.h".
5372 (struct target_ops) <to_insn_history, to_insn_history_from,
5373 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
5374 int.
5375 (target_insn_history, target_insn_history_from)
5376 (target_insn_history_range): Use gdb_disassembly_flags instead of
5377 bare int.
5378
5379 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5380
5381 * cli/cli-script.c (build_command_line): For if/while commands,
5382 check whether args is empty.
5383
5384 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5385
5386 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
5387 (enum command_control_type): Likewise.
5388 (struct command_line): Likewise.
5389 (free_command_lines): Likewise.
5390 (struct command_lines_deleter): Likewise.
5391 (command_line_up): Likewise.
5392 (read_command_lines): Likewise.
5393 (read_command_lines_1): Likewise.
5394 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
5395 (enum command_control_type): Likewise.
5396 (struct command_line): Likewise.
5397 (free_command_lines): Likewise.
5398 (struct command_lines_deleter): Likewise.
5399 (command_line_up): Likewise.
5400 (read_command_lines): Likewise.
5401 (read_command_lines_1): Likewise.
5402 * breakpoint.h: Include cli/cli-script.h.
5403 * extension-priv.h: Likewise.
5404 * gdbcmd.h: Likewise.
5405
5406 2017-09-04 Pedro Alves <palves@redhat.com>
5407
5408 * ada-lang.c (is_known_support_routine): Move sal declaration to
5409 where it is initialized.
5410 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
5411 (parse_breakpoint_sals, decode_static_tracepoint_spec)
5412 (clear_command, update_static_tracepoint): Remove init_sal
5413 references. Move declarations closer to initializations.
5414 * cli/cli-cmds.c (list_command): Move sal declarations closer to
5415 initializations.
5416 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
5417 references. Move sal declarations closer to initializations.
5418 * frame.c (find_frame_sal): Return a symtab_and_line via function
5419 return instead of output parameter. Remove init_sal references.
5420 * frame.h (find_frame_sal): Return a symtab_and_line via function
5421 return instead of output parameter.
5422 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
5423 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
5424 instead of memset.
5425 (gdbscm_find_pc_line): Remove init_sal reference.
5426 * infcall.c (call_function_by_hand_dummy): Remove init_sal
5427 references. Move declarations closer to initializations.
5428 * infcmd.c (set_step_frame): Update. Move declarations closer to
5429 initializations.
5430 (finish_backward): Remove init_sal references. Move declarations
5431 closer to initializations.
5432 * infrun.c (process_event_stop_test, handle_step_into_function)
5433 (insert_hp_step_resume_breakpoint_at_frame)
5434 (insert_step_resume_breakpoint_at_caller): Likewise.
5435 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
5436 (symbol_to_sal): Likewise.
5437 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
5438 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
5439 to its initialization.
5440 * reverse.c (save_bookmark_command): Use new/delete. Remove
5441 init_sal references. Move declarations closer to initializations.
5442 * source.c (get_current_source_symtab_and_line): Remove brace
5443 initialization.
5444 (set_current_source_symtab_and_line): Now takes the sal by const
5445 reference. Remove brace initialization.
5446 (line_info): Remove init_sal reference.
5447 * source.h (set_current_source_symtab_and_line): Now takes a
5448 symtab_and_line via const reference.
5449 * stack.c (set_current_sal_from_frame): Adjust.
5450 (print_frame_info): Adjust.
5451 (get_last_displayed_sal): Return the sal via function return
5452 instead of via output parameter. Simplify.
5453 (frame_info): Adjust.
5454 * stack.h (get_last_displayed_sal): Return the sal via function
5455 return instead of via output parameter.
5456 * symtab.c (init_sal): Delete.
5457 (find_pc_sect_line): Remove init_sal references. Move
5458 declarations closer to initializations.
5459 (find_function_start_sal): Remove init_sal references. Move
5460 declarations closer to initializations.
5461 * symtab.h (struct symtab_and_line): In-class initialize all
5462 fields.
5463 * tracepoint.c (set_traceframe_context)
5464 (print_one_static_tracepoint_marker): Remove init_sal references.
5465 Move declarations closer to initializations.
5466 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
5467 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
5468 declarations closer to initializations.
5469 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
5470 init_sal references. Adjust.
5471
5472 2017-09-04 Pedro Alves <palves@redhat.com>
5473
5474 * ax-gdb.c (agent_command_1): Use range-for.
5475 * break-catch-throw.c (re_set_exception_catchpoint): Update.
5476 * breakpoint.c: Include "common/array-view.h".
5477 (init_breakpoint_sal, create_breakpoint_sal): Change sals
5478 parameter from struct symtabs_and_lines to
5479 array_view<symtab_and_line>. Adjust. Use range-for. Update.
5480 (breakpoint_sals_to_pc): Change sals parameter from struct
5481 symtabs_and_lines to std::vector reference.
5482 (check_fast_tracepoint_sals): Change sals parameter from struct
5483 symtabs_and_lines to std::array_view. Use range-for.
5484 (decode_static_tracepoint_spec): Return a std::vector instead of
5485 symtabs_and_lines. Update.
5486 (create_breakpoint): Update.
5487 (break_range_command, until_break_command, clear_command): Update.
5488 (base_breakpoint_decode_location, bkpt_decode_location)
5489 (bkpt_probe_create_sals_from_location)
5490 (bkpt_probe_decode_location, tracepoint_decode_location)
5491 (tracepoint_probe_decode_location)
5492 (strace_marker_create_sals_from_location): Return a std::vector
5493 instead of symtabs_and_lines.
5494 (strace_marker_create_breakpoints_sal): Update.
5495 (strace_marker_decode_location): Return a std::vector instead of
5496 symtabs_and_lines. Update.
5497 (update_breakpoint_locations): Change struct symtabs_and_lines
5498 parameters to gdb::array_view. Adjust.
5499 (location_to_sals): Return a std::vector instead of
5500 symtabs_and_lines. Update.
5501 (breakpoint_re_set_default): Use std::vector instead of struct
5502 symtabs_and_lines.
5503 (decode_location_default): Return a std::vector instead of
5504 symtabs_and_lines. Update.
5505 * breakpoint.h: Include "common/array-view.h".
5506 (struct breakpoint_ops) <decode_location>: Now returns a
5507 std::vector instead of returning a symtabs_and_lines via output
5508 parameter.
5509 (update_breakpoint_locations): Change sals parameters to use
5510 gdb::array_view.
5511 * cli/cli-cmds.c (edit_command, list_command): Update to use
5512 std::vector and gdb::array_view.
5513 (ambiguous_line_spec): Adjust to use gdb::array_view and
5514 range-for.
5515 (compare_symtabs): Rename to ...
5516 (cmp_symtabs): ... this. Change parameters to symtab_and_line
5517 const reference and adjust.
5518 (filter_sals): Rewrite using std::vector and standard algorithms.
5519 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
5520 (jump_command): Update to use std::vector.
5521 * linespec.c (struct linespec_state) <canonical_names>: Update
5522 comment.
5523 (add_sal_to_sals_basic): Delete.
5524 (add_sal_to_sals, filter_results, convert_results_to_lsals)
5525 (decode_line_2, create_sals_line_offset)
5526 (convert_address_location_to_sals, convert_linespec_to_sals)
5527 (convert_explicit_location_to_sals, parse_linespec)
5528 (event_location_to_sals, decode_line_full, decode_line_1)
5529 (decode_line_with_current_source)
5530 (decode_line_with_last_displayed, decode_objc)
5531 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
5532 (linespec_result::~linespec_result): Adjust to use std::vector
5533 instead of symtabs_and_lines.
5534 * linespec.h (linespec_sals::sals): Now a std::vector.
5535 (struct linespec_result): Use std::vector, bool, and in-class
5536 initialization.
5537 (decode_line_1, decode_line_with_current_source)
5538 (decode_line_with_last_displayed): Return std::vector.
5539 * macrocmd.c (info_macros_command): Use std::vector.
5540 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
5541 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
5542 std::vector.
5543 * probe.h (parse_probes): Return a std::vector.
5544 * python/python.c (gdbpy_decode_line): Use std::vector and
5545 gdb::array_view.
5546 * source.c (select_source_symtab, line_info): Use std::vector.
5547 * stack.c (func_command): Use std::vector.
5548 * symtab.h (struct symtabs_and_lines): Delete.
5549 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
5550
5551 2017-09-04 Pedro Alves <palves@redhat.com>
5552
5553 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5554 unittests/array-view-selftests.c.
5555 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
5556 * common/array-view.h: New file.
5557 * unittests/array-view-selftests.c: New file.
5558
5559 2017-09-04 Pedro Alves <palves@redhat.com>
5560
5561 * cli/cli-cmds.c (edit_command): Pass message to
5562 ambiguous_line_spec.
5563 (list_command): Pass message to ambiguous_line_spec. Say
5564 "first"/"last" instead of "start" and "end" to be consistent with
5565 the manual.
5566 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
5567 them to print formatted message.
5568
5569 2017-09-04 Pedro Alves <palves@redhat.com>
5570
5571 * btrace.c (ftrace_add_pt): Pass btrace_insn to
5572 ftrace_update_insns by reference instead of pointer.
5573
5574 2017-09-04 Yao Qi <yao.qi@linaro.org>
5575
5576 * i386-go32-tdep.c: Include x86-xstate.h.
5577 (i386_go32_init_abi): Call i386_target_description.
5578 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
5579 if xcr0 is X86_XSTATE_X87_MASK.
5580 * i386-tdep.h (tdesc_i386): Remove the declaration.
5581 (tdesc_i386_mmx): Likewise.
5582
5583 2017-09-04 Yao Qi <yao.qi@linaro.org>
5584
5585 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
5586 X86_XSTATE_SSE_MASK instead of 0.
5587
5588 2017-09-04 Yao Qi <yao.qi@linaro.org>
5589
5590 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
5591 i386_target_description.
5592 * i386-fbsd-nat.c (i386fbsd_read_description): Call
5593 i386_target_description.
5594 * i386-tdep.c (i386_gdbarch_init): Likewise.
5595
5596 2017-09-04 Yao Qi <yao.qi@linaro.org>
5597
5598 * amd64-darwin-tdep.c: Include "x86-xstate.h".
5599 (x86_darwin_init_abi_64): Call amd64_target_description.
5600 * amd64-dicos-tdep.c: Likewise.
5601 * amd64-fbsd-nat.c: Likewise.
5602 * amd64-fbsd-tdep.c: Likewise.
5603 * amd64-nbsd-tdep.c: Likewise.
5604 * amd64-obsd-tdep.c: Likewise.
5605 * amd64-sol2-tdep.c: Likewise.
5606 * amd64-windows-tdep.c: Likewise.
5607 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
5608
5609 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5610
5611 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
5612 (btrace_function) <insn>: Change type to use std::vector.
5613 * btrace.c (ftrace_debug, ftrace_call_num_insn,
5614 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
5615 ftrace_update_insns, ftrace_compute_global_level_offset,
5616 btrace_stitch_bts, btrace_clear, btrace_insn_get,
5617 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
5618 change to std::vector.
5619 (ftrace_update_insns): Adjust to change to std::vector, change
5620 type of INSN parameter.
5621 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
5622 * record-btrace.c (btrace_call_history_insn_range,
5623 btrace_compute_src_line_range,
5624 record_btrace_frame_prev_register): Adjust to change to
5625 std::vector.
5626 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
5627 to change to std::vector.
5628
5629 2017-09-03 Tom Tromey <tom@tromey.com>
5630
5631 * corefile.c (reopen_exec_file): Use std::string.
5632
5633 2017-09-03 Tom Tromey <tom@tromey.com>
5634
5635 * compile/compile.c (compile_register_name_mangled): Return
5636 std::string.
5637 * compile/compile-loc2c.c (pushf_register_address): Update.
5638 (pushf_register): Update.
5639 * compile/compile-c-types.c (convert_array): Update.
5640 * compile/compile-c-symbols.c (generate_vla_size): Update.
5641 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
5642 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
5643 (convert_one_symbol): Update.
5644 (generate_c_for_for_one_variable): Update.
5645 * compile/compile-c-support.c (c_get_range_decl_name): Return a
5646 std::string.
5647 (generate_register_struct): Update.
5648 * compile/compile-internal.h (c_get_range_decl_name): Return a
5649 std::string.
5650 (compile_register_name_mangled): Return std::string.
5651
5652 2017-09-03 Tom Tromey <tom@tromey.com>
5653
5654 * utils.c (perror_string): Return a std::string.
5655 (throw_perror_with_name, perror_warning_with_name): Update.
5656
5657 2017-09-03 Tom Tromey <tom@tromey.com>
5658
5659 * demangle.c (demangle_command): Use std::string,
5660 unique_xmalloc_ptr.
5661
5662 2017-09-03 Tom Tromey <tom@tromey.com>
5663
5664 * cli/cli-setshow.c (do_set_command): Use std::string.
5665
5666 2017-09-03 Tom Tromey <tom@tromey.com>
5667
5668 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5669
5670 2017-09-03 Tom Tromey <tom@tromey.com>
5671
5672 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5673
5674 2017-09-03 Tom Tromey <tom@tromey.com>
5675
5676 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5677 gdb::unique_xmalloc_ptr.
5678
5679 2017-09-03 Tom Tromey <tom@tromey.com>
5680
5681 * thread.c (print_thread_info_1): Use string_printf.
5682 (thread_apply_command, thread_apply_all_command): Use
5683 std::string.
5684
5685 2017-09-03 Tom Tromey <tom@tromey.com>
5686
5687 * valprint.c (val_print_string): Update.
5688 * gdbcore.h (memory_error_message): Return std::string.
5689 * corefile.c (memory_error_message): Return std::string.
5690 (memory_error): Update.
5691 * breakpoint.c (insert_bp_location): Update.
5692
5693 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5694
5695 * target/waitstatus.h (target_waitstatus_to_string): Change
5696 return type to std::string.
5697 * target/waitstatus.c (target_waitstatus_to_string): Return
5698 std::string.
5699 * target.h (target_waitstatus_to_string): Remove declaration.
5700 * infrun.c (resume, clear_proceed_status_thread,
5701 print_target_wait_results, do_target_wait, save_waitstatus,
5702 stop_all_threads): Adjust.
5703 * record-btrace.c (record_btrace_wait): Adjust.
5704 * target-debug.h
5705 (target_debug_print_struct_target_waitstatus_p): Adjust.
5706
5707 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5708
5709 PR gdb/22046
5710 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5711 detection.
5712
5713 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5714
5715 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5716 for setting/unsetting environment variables on the remote target.
5717 (New remote packets): Add entries for QEnvironmentHexEncoded,
5718 QEnvironmentUnset and QEnvironmentReset.
5719 * common/environ.c (gdb_environ::operator=): Extend method to
5720 handle m_user_set_env_list and m_user_unset_env_list.
5721 (gdb_environ::clear): Likewise.
5722 (match_var_in_string): Change type of first parameter from 'char
5723 *' to 'const char *'.
5724 (gdb_environ::set): Extend method to handle
5725 m_user_set_env_list and m_user_unset_env_list.
5726 (gdb_environ::unset): Likewise.
5727 (gdb_environ::clear_user_set_env): New method.
5728 (gdb_environ::user_set_envp): Likewise.
5729 (gdb_environ::user_unset_envp): Likewise.
5730 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5731 m_user_unset_env_list on move constructor/assignment.
5732 (unset): Add new default parameter 'update_unset_list = true'.
5733 (clear_user_set_env): New method.
5734 (user_set_envp): Likewise.
5735 (user_unset_envp): Likewise.
5736 (m_user_set_env_list): New std::set.
5737 (m_user_unset_env_list): Likewise.
5738 * common/rsp-low.c (hex2str): New function.
5739 (bin2hex): New overload for bin2hex function.
5740 * common/rsp-low.c (hex2str): New prototype.
5741 (str2hex): New overload prototype.
5742 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5743 QEnvironmentUnset and QEnvironmentReset.
5744 (remote_protocol_features): Add QEnvironmentHexEncoded,
5745 QEnvironmentUnset and QEnvironmentReset packets.
5746 (send_environment_packet): New function.
5747 (extended_remote_environment_support): Likewise.
5748 (extended_remote_create_inferior): Call
5749 extended_remote_environment_support.
5750 (_initialize_remote): Add QEnvironmentHexEncoded,
5751 QEnvironmentUnset and QEnvironmentReset packet configs.
5752 * unittests/environ-selftests.c (gdb_selftest_env_var):
5753 New variable.
5754 (test_vector_initialization): New function.
5755 (test_init_from_host_environ): Likewise.
5756 (test_reinit_from_host_environ): Likewise.
5757 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5758 Likewise.
5759 (test_unset_set_empty_vector): Likewise.
5760 (test_vector_clear): Likewise.
5761 (test_std_move): Likewise.
5762 (test_move_constructor):
5763 (test_self_move): Likewise.
5764 (test_set_unset_reset): Likewise.
5765 (run_tests): Rewrite in terms of the functions above.
5766
5767 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
5768
5769 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5770 (adi_available): Use a temp variable of type CORE_ADDR as argument
5771 3 when calling target_auxv_search.
5772 (adi_normalize_address): Use masks and xor operators to calculate
5773 normalized address.
5774 (adi_read_versions, adi_write_versions, adi_print_versions)
5775 (do_examine, do_assign): Use paddress.
5776
5777 2017-08-29 John Baldwin <jhb@FreeBSD.org>
5778
5779 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5780 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5781 out of loop and add supply of FIR.
5782 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5783 add collect of FIR.
5784
5785 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5786
5787 PR gdb/21827
5788 * cli/cli-script.c (define_command): Don't convert command name
5789 to lower case.
5790
5791 2017-08-25 Joel Brobecker <brobecker@adacore.com>
5792
5793 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5794 Update all callers accordingly. Remove all code blocks handling
5795 the case where DISPP is not NULL.
5796
5797 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5798
5799 PR symtab/22003
5800 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5801 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5802 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5803
5804 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5805
5806 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5807 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5808 (read_comp_units_from_section): New parameter abbrev_section, use
5809 read_and_check_comp_unit_head, allocate signatured_type if needed.
5810 (create_all_comp_units): Update read_comp_units_from_section caller.
5811
5812 2017-08-23 Pedro Alves <palves@redhat.com>
5813
5814 PR remote/21852
5815 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5816 to null_ptid and switch to thread without reading the registers
5817 after adding the inferior.
5818
5819 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5820
5821 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5822 compile-gcc.
5823 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5824 (compile_to_object): Implement compile_gcc.
5825 (_initialize_compile): Install "set compile-gcc". Initialize
5826 compile_gcc.
5827
5828 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5829
5830 * compile/compile.c (compile_to_object): Conditionally call
5831 set_verbose. Conditionally call compile or compile_v0.
5832
5833 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
5834
5835 * sparc64-tdep.h: (adi_normalize_address): New export.
5836 * sparc-nat.h: (open_adi_tag_fd): New export.
5837 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5838 * sparc64-linux-tdep.c:
5839 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5840 (sparc64_linux_handle_segmentation_fault): New function.
5841 (sparc64_linux_init_abi): Register
5842 sparc64_linux_handle_segmentation_fault
5843 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5844 (sparc64_addr_bits_remove): New function.
5845 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5846 (MAX_PROC_NAME_SIZE): New macro.
5847 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5848 (sparc64adilist): New variable.
5849 (adi_proc_list): New variable.
5850 (find_adi_info): New function.
5851 (add_adi_info): New function.
5852 (get_adi_info_proc): New function.
5853 (get_adi_info): New function.
5854 (info_adi_command): New function.
5855 (read_maps_entry): New function.
5856 (adi_available): New function.
5857 (adi_normalize_address): New function.
5858 (adi_align_address): New function.
5859 (adi_convert_byte_count): New function.
5860 (adi_tag_fd): New function.
5861 (adi_is_addr_mapped): New function.
5862 (adi_read_versions): New function.
5863 (adi_write_versions): New function.
5864 (adi_print_versions): New function.
5865 (do_examine): New function.
5866 (do_assign): New function.
5867 (adi_examine_command): New function.
5868 (adi_assign_command): New function.
5869 (_initialize_sparc64_adi_tdep): New function.
5870
5871 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5872
5873 * breakpoint.c (breakpoints_info): Rename to ...
5874 (info_breakpoints_command): ... this.
5875 (watchpoints_info): Rename to ...
5876 (info_watchpoints_command): ... this.
5877 (tracepoints_info): Rename to ...
5878 (info_tracepoints_command): ... this.
5879 (_initialize_breakpoint): Adjust.
5880 * dcache.c (dcache_info): Rename to ...
5881 (info_display_command): ... this.
5882 (_initialize_dcache): Adjust.
5883 * frame.h (args_info): Rename to ...
5884 (info_args_command): ... this.
5885 (locals_info): Rename to ...
5886 (info_locals_command): ... this.
5887 * infcmd.c (nofp_registers_info): Rename to ...
5888 (info_registers_command): ... this.
5889 (float_info): Rename to ...
5890 (info_float_command): ... this.
5891 (program_info): Rename to ...
5892 (info_program_command): ... this.
5893 (all_registers_info): Rename to ...
5894 (info_all_registers_command): ... this.
5895 (vector_info): Rename to ...
5896 (info_vector_command): ... this.
5897 (float_info): Rename to ...
5898 (info_float_command): ... this.
5899 (_initialize_infcmd): Adjust.
5900 * inferior.h (term_info): Rename to ...
5901 (info_terminal_command): ... this.
5902 * inflow.c (term_info): Rename to ...
5903 (info_terminal_command): ... this.
5904 (_initialize_inflow): Adjust.
5905 * infrun.c (signals_info): Rename to ...
5906 (info_signals_command): ... this.
5907 (_initialize_infrun): Adjust.
5908 * objc-lang.c (classes_info): Rename to ...
5909 (info_classes_command): ... this.
5910 (selectors_info): Rename to ...
5911 (info_selectors_command): ... this.
5912 (_initialize_objc_language): Adjust.
5913 * printcmd.c (sym_info): Rename to ...
5914 (info_symbol_command): ... this.
5915 (address_info): Rename to ...
5916 (info_address_command): ... this.
5917 (display_info): Rename to ...
5918 (info_display_command): ... this.
5919 (_initialize_printcmd): Adjust.
5920 * reverse.c (bookmarks_info): Rename to ...
5921 (info_breakpoints_command): ... this.
5922 (_initialize_reverse): Adjust.
5923 * ser-go32.c (dos_info): Rename to ...
5924 (info_serial_command): ... this.
5925 (_initialize_ser_dos): Adjust.
5926 * skip.c (skip_info): Rename to ...
5927 (info_skip_command): ... this.
5928 (_initialize_step_skip): Adjust.
5929 * source.c (line_info): Rename to ...
5930 (info_line_command): ... this.
5931 (source_info): Rename to ...
5932 (info_source_command)
5933 * stack.c (frame_info): Rename to ...
5934 (info_frame_command): ... this.
5935 (locals_info): Rename to ...
5936 (info_locals_command): ... this.
5937 (args_info): Rename to ...
5938 (info_args_command): ... this.
5939 (_initialize_stack): Adjust.
5940 * symtab.c (sources_info): Rename to ...
5941 (info_sources_command): ... this.
5942 (variables_info): Rename to ...
5943 (info_variables_command): ... this.
5944 (functions_info): Rename to ...
5945 (info_functions_command): ... this.
5946 (types_info): Rename to ...
5947 (info_types_command): ... this.
5948 (_initialize_symtab): Adjust.
5949 * target.c (target_info): Rename to ...
5950 (info_target_command): ... this.
5951 (initialize_targets): Adjust.
5952 * tracepoint.c (tvariables_info): Rename to ...
5953 (info_tvariables_command): ... this.
5954 (scope_info): Rename to ...
5955 (info_scope_command): ... this.
5956 (trace_dump_actions): Adjust.
5957 (_initialize_tracepoint): Adjust.
5958
5959 2017-08-22 Tom Tromey <tom@tromey.com>
5960
5961 * breakpoint.h (install_breakpoint): Update.
5962 * breakpoint.c (add_solib_catchpoint): Update.
5963 (install_breakpoint): Change argument to a std::unique_ptr.
5964 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5965 (create_breakpoint_sal, create_breakpoint): Update.
5966 (watch_command_1, catch_exec_command_1)
5967 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5968 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5969 Return the breakpoint.
5970 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5971 (new_single_step_breakpoint): Update.
5972 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5973 std::unique_ptr.
5974 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5975 std::unique_ptr.
5976 * break-catch-sig.c (create_signal_catchpoint): Use
5977 std::unique_ptr.
5978 * ada-lang.c (create_ada_exception_catchpoint): Use
5979 std::unique_ptr.
5980
5981 2017-08-22 Tom Tromey <tom@tromey.com>
5982
5983 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
5984
5985 2017-08-22 Tom Tromey <tom@tromey.com>
5986
5987 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
5988 (lookup_partial_symbol): Update.
5989
5990 2017-08-22 Tom Tromey <tom@tromey.com>
5991
5992 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
5993 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
5994 (find_and_open_source, symtab_to_fullname): Update.
5995 * psymtab.c (psymtab_to_fullname): Update.
5996
5997 2017-08-22 Tom Tromey <tom@tromey.com>
5998
5999 * exec.c (exec_file_attach): Update.
6000 * linux-thread-db.c (try_thread_db_load): Update.
6001 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
6002 * utils.c (gdb_realpath): Change return type.
6003 (gdb_realpath_keepfile): Update.
6004 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
6005 (_initialize_utils): Register the new self test.
6006 * source.c (openp): Update.
6007 (find_and_open_source): Update.
6008 * nto-tdep.c (nto_find_and_open_solib): Update.
6009 * main.c (set_gdb_data_directory): Update.
6010 (captured_main_1): Update.
6011 * dwarf2read.c (dwarf2_get_dwz_file): Update
6012 (dw2_map_symbol_filenames): Update.
6013 * auto-load.c (auto_load_safe_path_vec_update): Update.
6014 (filename_is_in_auto_load_safe_path_vec): Change type of
6015 "filename_realp".
6016 (auto_load_objfile_script): Update.
6017 (file_is_auto_load_safe): Update. Use std::string.
6018 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
6019
6020 2017-08-22 Tom Tromey <tom@tromey.com>
6021
6022 * utils.c (gdb_realpath_keepfile): Return a
6023 gdb::unique_xmalloc_ptr.
6024 * exec.c (exec_file_attach): Update.
6025 * utils.h (gdb_realpath_keepfile): Return a
6026 gdb::unique_xmalloc_ptr.
6027
6028 2017-08-22 Tom Tromey <tom@tromey.com>
6029
6030 * compile/compile.c (compile_file_command): Use
6031 gdb::unique_xmalloc_ptr, std::string.
6032 * utils.c (gdb_abspath): Change return type.
6033 * source.c (openp): Update.
6034 * objfiles.c (allocate_objfile): Update.
6035 * main.c (set_gdb_data_directory): Update.
6036 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
6037
6038 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
6039
6040 * cli-cmds.c (list_commands): List actual code around more than
6041 one location.
6042
6043 2017-08-21 John Baldwin <jhb@FreeBSD.org>
6044
6045 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
6046
6047 2017-08-21 Pedro Alves <palves@redhat.com>
6048
6049 PR gdb/19487
6050 * c-exp.y (variable production): Handle function aliases.
6051 * minsyms.c (msymbol_is_text): New function.
6052 * minsyms.h (msymbol_is_text): Declare.
6053 * symtab.c (find_function_alias_target): New function.
6054 * symtab.h (find_function_alias_target): Declare.
6055
6056 2017-08-21 Pedro Alves <palves@redhat.com>
6057
6058 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
6059 typedefs.
6060 * typeprint.c (whatis_exp): If handling "whatis", and expression
6061 is OP_TYPE, strip one typedef level. Otherwise don't strip
6062 typedefs here.
6063 * valops.c (value_cast): Save "to" type before resolving
6064 stubs/typedefs. Use that type as resulting value's type.
6065
6066 2017-08-18 Tom Tromey <tom@tromey.com>
6067 Pedro Alves <palves@redhat.com>
6068
6069 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
6070 * sol-thread.c (sol_thread_resume, sol_thread_wait)
6071 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
6072 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
6073 * proc-service.c (ps_xfer_memory): Use scoped_restore.
6074 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
6075 (linux_get_siginfo_data): Add "thread" argument. Use
6076 scoped_restore.
6077 * linux-nat.c (linux_child_follow_fork)
6078 (check_stopped_by_watchpoint): Use scoped_restore.
6079 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
6080 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
6081 (restore_inferior_ptid, save_inferior_ptid): Remove.
6082 * btrace.c (btrace_fetch): Use scoped_restore.
6083 * bsd-uthread.c (bsd_uthread_fetch_registers)
6084 (bsd_uthread_store_registers): Use scoped_restore.
6085 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
6086 scoped_restore.
6087 * aix-thread.c (aix_thread_resume, aix_thread_wait)
6088 (aix_thread_xfer_partial): Use scoped_restore.
6089 * inferior.h (save_inferior_ptid): Remove.
6090
6091 2017-08-18 Yao Qi <yao.qi@linaro.org>
6092
6093 PR tdep/21818
6094 * arm-tdep.c (gdb_print_insn_arm): Mark
6095 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
6096
6097 2017-08-18 Yao Qi <yao.qi@linaro.org>
6098
6099 * NEWS: Mention GDBserver's new option "--selftest".
6100 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
6101 * selftest.c: Move it to common/selftest.c.
6102 * selftest.h: Move it to common/selftest.h.
6103 * selftest-arch.c (reset): New function.
6104 (tests_with_arch): Call reset.
6105
6106 2017-08-18 Yao Qi <yao.qi@linaro.org>
6107
6108 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
6109 instead of exception_fprintf and printf_filtered.
6110
6111 2017-08-18 Yao Qi <yao.qi@linaro.org>
6112
6113 * selftest.c (register_self_test): Rename it to
6114 selftests::register_test.
6115 (run_self_tests): selftest::run_tests.
6116 * selftest.h: Update declarations.
6117 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
6118 selftests::register_test_foreach_arch.
6119 * selftest-arch.h: Update declaration.
6120 * aarch64-tdep.c: Update.
6121 * arm-tdep.c: Likewise.
6122 * disasm-selftests.c: Likewise.
6123 * dwarf2loc.c: Likewise.
6124 * dwarf2-frame.c: Likewise.
6125 * findvar.c: Likewise.
6126 * gdbarch-selftests.c: Likewise.
6127 * maint.c (maintenance_selftest): Likewise.
6128 * regcache.c: Likewise.
6129 * rust-exp.y: Likewise.
6130 * selftest-arch.c: Likewise.
6131 * unittests/environ-selftests.c: Likewise.
6132 * unittests/function-view-selftests.c: Likewise.
6133 * unittests/offset-type-selftests.c: Likewise.
6134 * unittests/optional-selftests.c: Likewise.
6135 * unittests/scoped_restore-selftests.c: Likewise.
6136 * utils-selftests.c: Likewise.
6137
6138 2017-08-17 Pedro Alves <palves@redhat.com>
6139
6140 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
6141 local.
6142
6143 2017-08-17 Pedro Alves <palves@redhat.com>
6144
6145 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
6146 field.
6147 (reset_die_in_process): Delete, replaced by ...
6148 (process_die_scope): ... this new class. Make it responsible for
6149 freeing cu->line_header too.
6150 (process_die): Use process_die_scope.
6151 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
6152 cu->line_header_die_owner. Don't release the line header if it's
6153 owned by the CU.
6154 (setup_type_unit_groups): Make the CU/DIE own the line header.
6155 Don't release the line header here.
6156
6157 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
6158
6159 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
6160
6161 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
6162
6163 * NEWS: Mention new shortcuts for nexti and stepi in TUI
6164 Single-Key mode
6165
6166 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
6167
6168 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
6169 mode command list.
6170
6171 2017-08-15 Stafford Horne <shorne@gmail.com>
6172
6173 * MAINTAINERS (Write After Approval): Add Stafford Horne.
6174
6175 2017-08-15 Stafford Horne <shorne@gmail.com>
6176
6177 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
6178
6179 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
6180
6181 PR gdb/21954
6182 * infcmd.c (unset_environment_command): Use the 'clear' method on
6183 the environment instead of resetting it.
6184
6185 2017-08-15 John Baldwin <jhb@FreeBSD.org>
6186
6187 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
6188 platforms.
6189
6190 2017-08-14 Tom Tromey <tom@tromey.com>
6191
6192 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
6193 (print_binary_chars): Likewise.
6194 (BITS_IN_BYTES): Remove.
6195
6196 2017-08-14 Tom Tromey <tom@tromey.com>
6197
6198 PR gdb/21675
6199 * valprint.c (LOW_ZERO): Change value to 034.
6200 (print_octal_chars): Add static_asserts for octal constants.
6201 * printcmd.c (print_scalar_formatted): Add 'd' case.
6202
6203 2017-08-11 Tom Tromey <tom@tromey.com>
6204
6205 * symfile.c (add_symbol_file_command): Use std::vector.
6206
6207 2017-08-14 Tom Tromey <tom@tromey.com>
6208
6209 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
6210 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
6211 std::move.
6212 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
6213
6214 2017-08-11 Pedro Alves <palves@redhat.com>
6215
6216 * infrun.c (process_event_stop_test): Adjust
6217 function_name_is_marked_for_skip call.
6218 * skip.c: Include <list>.
6219 (skiplist_entry): Make it a class with private fields, and
6220 getters/setters.
6221 (skiplist_entry_chain): Delete.
6222 (skiplist_entries): New.
6223 (skiplist_entry_count): Delete.
6224 (highest_skiplist_entry_num): New.
6225 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
6226 (add_skiplist_entry): Delete.
6227 (skiplist_entry::skiplist_entry): New.
6228 (skiplist_entry::add_entry): New.
6229 (skip_file_command, skip_function): Adjust.
6230 (compile_skip_regexp): Delete.
6231 (skip_command): Don't compile regexp here. Adjust to use
6232 skiplist_entry::add_entry.
6233 (skip_info): Adjust to use range-for and getters.
6234 (skip_enable_command, skip_disable_command): Adjust to use
6235 range-for and setters.
6236 (skip_delete_command): Adjust to use std::list.
6237 (add_skiplist_entry): Delete.
6238 (skip_file_p): Delete, refactored as ...
6239 (skiplist_entry::do_skip_file_p): ... this new method.
6240 (skip_gfile_p): Delete, refactored as ...
6241 (skiplist_entry::do_gskip_file_p): ... this new method.
6242 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
6243 (skiplist_entry::skip_function_p): ... this new method.
6244 (function_name_is_marked_for_skip): Now returns bool, and takes
6245 the function sal by const reference. Adjust to use range-for and
6246 skiplist_entry methods.
6247 (_initialize_step_skip): Remove references to
6248 skiplist_entry_chain, skiplist_entry_count.
6249 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
6250 takes the function sal by const reference.
6251
6252 2017-08-11 Yao Qi <yao.qi@linaro.org>
6253
6254 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
6255 (dwarf2_frame_cache): Remove reset_cache_cleanup.
6256 (dwarf2_frame_cache):
6257 * frame-unwind.c (frame_unwind_try_unwinder): Catch
6258 RETURN_MASK_ALL and set *this_case to NULL.
6259 * frame-unwind.h: Update comments.
6260
6261 2017-08-11 Yao Qi <yao.qi@linaro.org>
6262
6263 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
6264 (dwarf2_frame_state_copy_regs): Remove.
6265 (dwarf2_frame_state_free_regs): Remove.
6266 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
6267 (dwarf2_restore_rule): Call method .alloc_regs instead of
6268 dwarf2_frame_state_alloc_regs.
6269 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
6270 constructor. Call std::move.
6271 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
6272 (dwarf2_frame_cache): Likewise.
6273
6274 [GDB_SELF_TEST]: Include selftest.h and
6275 selftest-arch.h.
6276 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
6277 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
6278 execute_cfa_program_test.
6279
6280 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
6281 copy ctor, assignment operator, move assignment.
6282 <alloc_regs>: New method.
6283 <swap>: New method.
6284 (struct dwarf2_frame_state): Delete dtor.
6285 (dwarf2_frame_state_alloc_regs): Remove declaration.
6286 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
6287 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
6288
6289 2017-08-11 Yao Qi <yao.qi@linaro.org>
6290
6291 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
6292 (dwarf2_frame_state::dwarf2_frame_state): New.
6293 (dwarf2_frame_state::~dwarf2_frame_state): New.
6294 (dwarf2_fetch_cfa_info): Update.
6295 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
6296 rather than a pointer. Update code.
6297 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
6298 dtor.
6299 <data_align, code_align, retaddr_column>: Change them to const.
6300 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
6301 to bool.
6302
6303 2017-08-11 Yao Qi <yao.qi@linaro.org>
6304
6305 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
6306 <loc.exp>: New field.
6307 * dwarf2-frame.c (execute_cfa_program): Update.
6308 (dwarf2_frame_prev_register): Update.
6309
6310 2017-08-10 Pedro Alves <palves@redhat.com>
6311
6312 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
6313
6314 2017-08-09 John Baldwin <jhb@FreeBSD.org>
6315
6316 * fbsd-nat.c (struct fbsd_fork_info): Remove.
6317 (fbsd_pending_children): Use std::list.
6318 (fbsd_remember_child): Likewise.
6319 (fbsd_is_child_pending): Likewise.
6320 (fbsd_pending_vfork_done): Use std::forward_list.
6321 (fbsd_add_vfork_done): Likewise.
6322 (fbsd_is_vfork_done_pending): Likewise.
6323 (fbsd_next_vfork_done): Likewise.
6324
6325 2017-08-09 John Baldwin <jhb@FreeBSD.org>
6326
6327 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
6328 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
6329 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
6330 for `mapfilename'.
6331 (fbsd_xfer_partial): Use gdb::byte_vector.
6332 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
6333
6334 2017-08-09 John Baldwin <jhb@FreeBSD.org>
6335
6336 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
6337 "filestuff.h".
6338 (fbsd_find_memory_regions): Fix `mapfile' initialization.
6339
6340 2017-08-09 Tom Tromey <tom@tromey.com>
6341
6342 * skip.c (skiplist_entry): New constructor.
6343 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
6344 (skiplist_entry::file_is_glob): Now bool.
6345 (skiplist_entry::file, skiplist_entry::function): Now
6346 std::string.
6347 (make_skip_entry): Return a unique_ptr. Use new.
6348 (free_skiplist_entry, free_skiplist_entry_cleanup)
6349 (make_free_skiplist_entry_cleanup): Remove.
6350 (skip_command, skip_disable_command, add_skiplist_entry)
6351 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
6352 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
6353 (function_name_is_marked_for_skip): Update.
6354 (skip_delete_command): Update. Use delete.
6355
6356 2017-08-09 Jiong Wang <jiong.wang@arm.com>
6357
6358 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
6359 (aarch64_linux_core_read_description): New function.
6360 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
6361
6362 2017-08-09 Pedro Alves <palves@redhat.com>
6363
6364 * cp-name-parser.y (cp_comp_to_string): Return a
6365 gdb::unique_xmalloc_ptr<char>.
6366 * cp-support.c (replace_typedefs_qualified_name)
6367 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
6368 (cp_canonicalize_string_full): Use op= instead of explicit
6369 convertion.
6370 (cp_class_name_from_physname, method_name_from_physname)
6371 (cp_func_name, cp_remove_params): Adjust to use
6372 gdb::unique_xmalloc_ptr<char>.
6373 * cp-support.h (cp_comp_to_string): Return a
6374 gdb::unique_xmalloc_ptr<char>.
6375 * python/py-type.c (typy_lookup_type): Adjust to use
6376 gdb::unique_xmalloc_ptr<char>.
6377
6378 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
6379
6380 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
6381
6382 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
6383 Yao Qi <yao.qi@linaro.org>
6384
6385 * cp-support.c (cp_canonicalize_string_full): Use
6386 gdb::unique_xmalloc_ptr<char>.
6387 (cp_canonicalize_string): Likewise.
6388
6389 2017-08-09 Yao Qi <yao.qi@linaro.org>
6390
6391 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
6392 * regformats/i386/amd64-avx-avx512.dat: Remove.
6393 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
6394 * regformats/i386/amd64-avx-mpx.dat:Remove.
6395 * regformats/i386/amd64-avx.dat: Remove.
6396 * regformats/i386/amd64-mpx.dat: Remove.
6397 * regformats/i386/i386-avx-avx512.dat: Remove.
6398 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
6399 * regformats/i386/i386-avx-mpx.dat: Remove.
6400 * regformats/i386/i386-mmx.dat: Remove.
6401 * regformats/i386/i386-mpx.dat: Remove.
6402
6403 2017-08-09 Yao Qi <yao.qi@linaro.org>
6404
6405 * amd64-tdep.h (tdesc_x32): Remove the declaration.
6406 * amd64-tdep.c: Don't include features/i386/x32*.c.
6407 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
6408 functions.
6409 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
6410 and i386/x32-avx-avx512.
6411 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
6412 and i386/x32.xml.
6413 * features/i386/x32-avx-avx512.c: Removed.
6414 * features/i386/x32-avx-avx512.xml: Removed.
6415 * features/i386/x32-avx.c: Removed.
6416 * features/i386/x32-avx.xml: Removed.
6417 * features/i386/x32.c: Removed.
6418 * features/i386/x32.xml: Removed.
6419 * regformats/i386/x32-avx-avx512.dat: Removed.
6420 * regformats/i386/x32-avx.dat: Removed.
6421 * regformats/i386/x32.dat: Removed.
6422
6423 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6424
6425 PR breakpoints/21886
6426 * mem-break.c (default_memory_insert_breakpoint): Use
6427 `->placed_address' rather than `->reqstd_address' for the
6428 breakpoint location.
6429
6430 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6431
6432 * arch-utils.c (default_print_insn): Remove arch/mach/endian
6433 assertions.
6434
6435 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6436
6437 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
6438 a union of `tdep_info', `tdesc_data' and `id'.
6439 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
6440 rather than `info.tdep_info'.
6441 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
6442 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6443 * i386-tdep.c (i386_gdbarch_init): Likewise.
6444 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
6445 * mips-tdep.c (mips_gdbarch_init): Likewise.
6446 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6447 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6448 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
6449 `info.tdep_info'.
6450 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
6451 `info.tdep_info'.
6452 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6453 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
6454 `info.tdep_info'.
6455 * spu-tdep.c (spu_gdbarch_init): Likewise.
6456 * gdbarch.h: Regenerate.
6457
6458 2017-08-07 Leszek Swirski <leszeks@google.com>
6459
6460 PR symtab/20899
6461 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
6462
6463 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
6464
6465 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
6466 (gdbsim_open): Rename gdb_argv args object to argv.
6467
6468 2017-08-05 Tom Tromey <tom@tromey.com>
6469
6470 * compile/compile-object-load.c (compile_object_load): Use
6471 gdb::unique_xmalloc_ptr.
6472 * cli/cli-dump.c (scan_filename): Rename from
6473 scan_filename_with_cleanup. Change return type.
6474 (scan_expression): Rename from scan_expression_with_cleanup.
6475 Change return type.
6476 (dump_memory_to_file, dump_value_to_file, restore_command):
6477 Use gdb::unique_xmalloc_ptr. Update.
6478 * cli/cli-cmds.c (find_and_open_script): Use
6479 gdb::unique_xmalloc_ptr.
6480 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
6481 * symmisc.c (maintenance_print_symbols)
6482 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
6483 * symfile.c (symfile_bfd_open, generic_load)
6484 (add_symbol_file_command, remove_symbol_file_command): Use
6485 gdb::unique_xmalloc_ptr.
6486 * source.c (openp): Use gdb::unique_xmalloc_ptr.
6487 * psymtab.c (maintenance_print_psymbols): Use
6488 gdb::unique_xmalloc_ptr.
6489 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
6490 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
6491 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
6492 (reload_shared_libraries_1): Likewise.
6493
6494 2017-08-05 Tom Tromey <tom@tromey.com>
6495
6496 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
6497 (rust_op_vector, rust_set_vector): New typedefs.
6498 (current_parser): New global.
6499 (work_obstack): Change to pointer type. Update all users.
6500 (rust_ast, pstate): Remove globals.
6501 (struct rust_parser): New.
6502 (%union) <params, field_inits>: Change type.
6503 (start, tuple_expr, unit_expr, struct_expr_list, literal)
6504 (field_expr, expr_list, maybe_expr_list, type_list): Update.
6505 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
6506 (convert_params_to_types, convert_params_to_expression): Change
6507 type of "params".
6508 (ast_string): Change type of "fields".
6509 (rust_parse): Make a rust_parser. Remove cleanups.
6510 (rust_lex_tests): Make and install an auto_obstack.
6511
6512 2017-08-04 Yao Qi <yao.qi@linaro.org>
6513
6514 * configure.srv (ipa_x32_linux_regobj): New.
6515 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
6516 instead of X86_TDESC_AVX512.
6517 (initialize_low_tracepoint): Call
6518 init_registers_x32_avx_avx512_linux.
6519
6520 2017-08-04 Yao Qi <yao.qi@linaro.org>
6521
6522 * utils.h (gdb_argv): Add namespace std for nullptr_t.
6523
6524 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
6525
6526 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
6527
6528 2017-08-03 Tom Tromey <tom@tromey.com>
6529
6530 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
6531 Remove.
6532 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
6533
6534 2017-08-03 Tom Tromey <tom@tromey.com>
6535
6536 * python/py-param.c (compute_enum_values): Use gdb_argv.
6537
6538 2017-08-03 Tom Tromey <tom@tromey.com>
6539
6540 * utils.h (struct gdb_argv_deleter): New.
6541 (gdb_argv): New class.
6542 * utils.c (gdb_argv::reset): New method.
6543 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
6544 * tracefile.c (tsave_command): Use gdb_argv.
6545 * top.c (new_ui_command): Use gdb_argv.
6546 * symmisc.c (maintenance_print_symbols)
6547 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
6548 * symfile.c (symbol_file_command, generic_load)
6549 (remove_symbol_file_command): Use gdb_argv.
6550 * stack.c (backtrace_command): Use gdb_argv.
6551 * source.c (add_path, show_substitute_path_command)
6552 (unset_substitute_path_command, set_substitute_path_command):
6553 Use gdb_argv.
6554 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
6555 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
6556 * remote.c (extended_remote_run, remote_put_command)
6557 (remote_get_command, remote_delete_command): Use gdb_argv.
6558 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
6559 (gdbsim_open): Use gdb_argv.
6560 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
6561 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
6562 * procfs.c (procfs_info_proc): Use gdb_argv.
6563 * interps.c (interpreter_exec_cmd): Use gdb_argv.
6564 * infrun.c (handle_command): Use gdb_argv.
6565 * inferior.c (add_inferior_command, clone_inferior_command):
6566 Use gdb_argv.
6567 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
6568 * exec.c (exec_file_command): Use gdb_argv.
6569 * cli/cli-cmds.c (alias_command): Use gdb_argv.
6570 * compile/compile.c (build_argc_argv): Use gdb_argv.
6571
6572 2017-08-03 Tom Tromey <tom@tromey.com>
6573
6574 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
6575
6576 2017-08-03 Tom Tromey <tom@tromey.com>
6577
6578 * python/python.c (compute_python_string): Return std::string.
6579 (gdbpy_eval_from_control_command): Update.
6580 (do_start_initialization): Use std::string.
6581 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
6582 xstrprintf.
6583 * python/py-breakpoint.c (local_setattro): Use string_printf, not
6584 xstrprintf.
6585
6586 2017-08-03 Tom Tromey <tom@tromey.com>
6587
6588 * top.h (do_restore_instream_cleanup): Remove.
6589 * top.c (do_restore_instream_cleanup): Remove.
6590 (read_command_file): Use scoped_restore.
6591 * cli/cli-script.c (execute_user_command): Use scoped_restore.
6592
6593 2017-08-03 Tom Tromey <tom@tromey.com>
6594
6595 * cli/cli-script.c (execute_user_command)
6596 (execute_control_command): Use scoped_restore.
6597
6598 2017-08-03 Tom Tromey <tom@tromey.com>
6599
6600 * cli/cli-script.c (do_restore_user_call_depth): Remove.
6601 (execute_user_command): Remove user_call_depth; use
6602 user_args_stack's size instead.
6603
6604 2017-08-03 Tom Tromey <tom@tromey.com>
6605
6606 * top.h (in_user_command): Remove.
6607 * top.c (in_user_command): Remove.
6608 * cli/cli-script.c (do_restore_user_call_depth)
6609 (execute_user_command): Update.
6610
6611 2017-08-03 Tom Tromey <tom@tromey.com>
6612
6613 * valops.c (search_struct_method): Use gdb::byte_vector.
6614 * valarith.c (value_concat): Use std::vector.
6615 * target.c (memory_xfer_partial): Use gdb::byte_vector.
6616 (simple_search_memory): Likewise.
6617 * printcmd.c (find_string_backward): Use gdb::byte_vector.
6618 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
6619 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
6620 * elfread.c (elf_rel_plt_read): Use std::string.
6621 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
6622 * cli/cli-dump.c (restore_section_callback): Use
6623 gdb::byte_vector.
6624
6625 2017-08-03 Tom Tromey <tom@tromey.com>
6626
6627 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
6628
6629 2017-08-03 Tom Tromey <tom@tromey.com>
6630
6631 * tui/tui-regs.c (tui_restore_gdbout): Remove.
6632 (tui_register_format): Use scoped_restore.
6633
6634 2017-08-03 Tom Tromey <tom@tromey.com>
6635
6636 * reverse.c (exec_direction_default): Remove.
6637 (exec_reverse_once): Use scoped_restore.
6638 * remote.c (restore_remote_timeout): Remove.
6639 (remote_flash_erase, remote_flash_write, remote_flash_done)
6640 (readchar, remote_serial_write): Use scoped_restore.
6641 * cli/cli-script.c (struct source_cleanup_lines_args)
6642 (source_cleanup_lines): Remove.
6643 (script_from_file): Use scoped_restore.
6644 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
6645 (source_command): Use scoped_restore.
6646
6647 2017-08-03 Tom Tromey <tom@tromey.com>
6648
6649 * utils.h (make_cleanup_free_so): Remove.
6650 * utils.c (do_free_so, make_cleanup_free_so): Remove.
6651 * solist.h (struct so_deleter): New.
6652 (so_list_up): New typedef.
6653 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
6654
6655 2017-08-03 Tom Tromey <tom@tromey.com>
6656
6657 * utils.h (make_cleanup_restore_current_language): Remove.
6658 * utils.c (do_restore_current_language)
6659 (make_cleanup_restore_current_language): Remove.
6660 * parse.c (parse_exp_in_context_1)
6661 (parse_expression_with_language): Use
6662 scoped_restore_current_language.
6663 * mi/mi-main.c (mi_cmd_execute): Use
6664 scoped_restore_current_language.
6665 * language.h (scoped_restore_current_language): New class.
6666
6667 2017-08-03 Tom Tromey <tom@tromey.com>
6668
6669 * compile/compile.c (cleanup_unlink_file): Remove.
6670 (compile_to_object): Use gdb::unlinker.
6671 (eval_compile_command): Likewise.
6672
6673 2017-08-03 Tom Tromey <tom@tromey.com>
6674
6675 * utils.h (make_cleanup_fclose): Remove.
6676 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6677
6678 2017-08-03 Tom Tromey <tom@tromey.com>
6679
6680 * top.c (open_terminal_stream): Return gdb_file_up.
6681 (new_ui_command): Update.
6682
6683 2017-08-03 Tom Tromey <tom@tromey.com>
6684
6685 * source.c (print_source_lines_base, forward_search_command)
6686 (reverse_search_command): Use gdb_file_up.
6687
6688 2017-08-03 Tom Tromey <tom@tromey.com>
6689
6690 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6691
6692 2017-08-03 Tom Tromey <tom@tromey.com>
6693
6694 * cli/cli-cmds.c (find_and_open_script): Change return type.
6695 Remove "streamp" and "full_path" parameters.
6696 (source_script_with_search): Update.
6697 * auto-load.c (source_script_file): Update.
6698 * cli/cli-cmds.h (find_and_open_script): Change type.
6699 (open_script): New struct.
6700
6701 2017-08-03 Tom Tromey <tom@tromey.com>
6702
6703 * xml-support.c (xml_fetch_content_from_file): Update.
6704 * ui-file.c (stdio_file::open): Update.
6705 * tracefile-tfile.c (tfile_start): Update.
6706 * remote.c (remote_file_put, remote_file_get): Update.
6707 * nat/linux-procfs.c (linux_proc_get_int)
6708 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6709 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6710 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6711 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6712 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6713 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6714 * linux-nat.c (linux_proc_pending_signals): Update.
6715 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6716 (file_closer): Remove.
6717 * compile/compile.c (compile_to_object): Update.
6718 * common/filestuff.h (struct gdb_file_deleter): New.
6719 (gdb_file_up): New typedef.
6720 (gdb_fopen_cloexec): Change return type.
6721 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6722 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6723 (dump_binary_file, restore_binary_file): Update.
6724 * auto-load.c (auto_load_objfile_script_1): Update.
6725
6726 2017-08-03 Tom Tromey <tom@tromey.com>
6727
6728 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6729 (info_static_tracepoint_markers_command): Likewise.
6730 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6731 * skip.c (skip_info): Use ui_out_emit_table.
6732 * progspace.c (print_program_space): Use ui_out_emit_table.
6733 * osdata.c (info_osdata): Use ui_out_emit_table.
6734 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6735 ui_out_emit_table.
6736 * linux-thread-db.c (info_auto_load_libthread_db): Use
6737 ui_out_emit_table.
6738 * inferior.c (print_inferior): Use ui_out_emit_table.
6739 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6740 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6741 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6742 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6743 * ui-out.h (class ui_out_emit_table): New.
6744
6745 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6746
6747 * mips-tdep.c (mips_fpu_type_str): New function.
6748 (mips_dump_tdep): Call it.
6749
6750 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6751
6752 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6753 `->mips_fpu_type'.
6754
6755 2017-07-31 Xavier Roirand <roirand@adacore.com>
6756
6757 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6758
6759 2017-07-27 Xavier Roirand <roirand@adacore.com>
6760
6761 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6762
6763 2017-07-26 Yao Qi <yao.qi@linaro.org>
6764
6765 * cli/cli-cmds.c (maintenancechecklist): New variable.
6766 * gdbcmd.h (maintenancechecklist): Declare it.
6767 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6768 Call i386_linux_read_description with different masks.
6769 * maint.c (maintenance_check_command): New function.
6770 (_initialize_maint_cmds): Call add_prefix_cmd.
6771 * target-descriptions.c (tdesc_reg): override operator != and ==.
6772 (tdesc_type): Likewise.
6773 (tdesc_feature): Likewise.
6774 (target_desc): Likewise.
6775 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6776 (maintenance_check_xml_descriptions): New function.
6777 (_initialize_target_descriptions) Add command "xml-descriptions".
6778 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6779
6780 2017-07-26 Yao Qi <yao.qi@linaro.org>
6781
6782 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6783 Include features/i386/32bit-*.c.
6784 (i386_linux_read_description): Generate target description if it
6785 doesn't exist.
6786 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6787 functions.
6788 * features/i386/32bit-linux.c: Re-generated.
6789 * features/i386/32bit-sse.c: Likewise.
6790 * target-descriptions.c (print_c_feature::visit): Print code to
6791 set register number if needed.
6792 (print_c_feature) <m_next_regnum>: New field.
6793
6794 2017-07-26 Yao Qi <yao.qi@linaro.org>
6795
6796 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6797 (FEATURE_XMLFILES): New.
6798 (FEATURE_CFILES): New.
6799 New rules.
6800 (clean-cfiles): Remove generated c files.
6801 * features/i386/32bit-avx.c: Generated.
6802 * features/i386/32bit-avx512.c: Generated.
6803 * features/i386/32bit-core.c: Generated.
6804 * features/i386/32bit-linux.c: Generated.
6805 * features/i386/32bit-mpx.c: Generated.
6806 * features/i386/32bit-pkeys.c: Generated.
6807 * features/i386/32bit-sse.c: Generated.
6808 * target-descriptions.c: Include algorithm.
6809 (tdesc_element_visitor): Add method visit_end.
6810 (print_c_tdesc): Implement visit_end.
6811 (print_c_tdesc:: m_filename_after_features): Move it to
6812 protected.
6813 (print_c_feature): New class.
6814 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6815 name starts with "i386/32bit-".
6816
6817 2017-07-26 Yao Qi <yao.qi@linaro.org>
6818
6819 * target-descriptions.c (tdesc_element_visitor): New class.
6820 (tdesc_element): New class.
6821 (tdesc_reg): Inherit from tdesc_element.
6822 (tdesc_reg::accept): New function.
6823 (tdesc_type): Inherit from tdesc_element.
6824 (tdesc_type::accept): New function.
6825 (tdesc_feature): Inherit from tdesc_element.
6826 (tdesc_feature::accept): New function.
6827 (target_desc): Inherit from tdesc_element.
6828 (target_desc::target_desc): New.
6829 (target_desc::~target_desc): New.
6830 (target_desc::accept): New.
6831 (allocate_target_description): Use new.
6832 (free_target_description): Use delete.
6833 (print_c_tdesc): New class.
6834 (maint_print_c_tdesc_cmd): Adjust.
6835
6836 * features/aarch64.c: Re-generated.
6837 * features/arc-arcompact.c: Re-generated.
6838 * features/arc-v2.c: Re-generated.
6839 * features/arm/arm-with-iwmmxt.c: Re-generated.
6840 * features/arm/arm-with-m.c: Re-generated.
6841 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6842 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6843 * features/arm/arm-with-neon.c: Re-generated.
6844 * features/arm/arm-with-vfpv2.c: Re-generated.
6845 * features/arm/arm-with-vfpv3.c: Re-generated.
6846 * features/i386/amd64-avx-avx512.c: Re-generated.
6847 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6848 * features/i386/amd64-avx.c: Re-generated.
6849 * features/i386/amd64-avx-linux.c: Re-generated.
6850 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6851 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6852 * features/i386/amd64-avx-mpx.c: Re-generated.
6853 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6854 * features/i386/amd64.c: Re-generated.
6855 * features/i386/amd64-linux.c: Re-generated.
6856 * features/i386/amd64-mpx.c: Re-generated.
6857 * features/i386/amd64-mpx-linux.c: Re-generated.
6858 * features/i386/i386-avx-avx512.c: Re-generated.
6859 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6860 * features/i386/i386-avx.c: Re-generated.
6861 * features/i386/i386-avx-linux.c: Re-generated.
6862 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6863 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6864 * features/i386/i386-avx-mpx.c: Re-generated.
6865 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6866 * features/i386/i386.c: Re-generated.
6867 * features/i386/i386-linux.c: Re-generated.
6868 * features/i386/i386-mmx.c: Re-generated.
6869 * features/i386/i386-mmx-linux.c: Re-generated.
6870 * features/i386/i386-mpx.c: Re-generated.
6871 * features/i386/i386-mpx-linux.c: Re-generated.
6872 * features/i386/x32-avx-avx512.c: Re-generated.
6873 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6874 * features/i386/x32-avx.c: Re-generated.
6875 * features/i386/x32-avx-linux.c: Re-generated.
6876 * features/i386/x32.c: Re-generated.
6877 * features/i386/x32-linux.c: Re-generated.
6878 * features/microblaze.c: Re-generated.
6879 * features/microblaze-with-stack-protect.c: Re-generated.
6880 * features/mips64-dsp-linux.c: Re-generated.
6881 * features/mips64-linux.c: Re-generated.
6882 * features/mips-dsp-linux.c: Re-generated.
6883 * features/mips-linux.c: Re-generated.
6884 * features/nds32.c: Re-generated.
6885 * features/nios2.c: Re-generated.
6886 * features/nios2-linux.c: Re-generated.
6887 * features/rs6000/powerpc-32.c: Re-generated.
6888 * features/rs6000/powerpc-32l.c: Re-generated.
6889 * features/rs6000/powerpc-403.c: Re-generated.
6890 * features/rs6000/powerpc-403gc.c : Re-generated.
6891 * features/rs6000/powerpc-405.c: Re-generated.
6892 * features/rs6000/powerpc-505.c: Re-generated.
6893 * features/rs6000/powerpc-601.c: Re-generated.
6894 * features/rs6000/powerpc-602.c: Re-generated.
6895 * features/rs6000/powerpc-603.c: Re-generated.
6896 * features/rs6000/powerpc-604.c: Re-generated.
6897 * features/rs6000/powerpc-64.c: Re-generated.
6898 * features/rs6000/powerpc-64l.c: Re-generated.
6899 * features/rs6000/powerpc-7400.c: Re-generated.
6900 * features/rs6000/powerpc-750.c: Re-generated.
6901 * features/rs6000/powerpc-860.c: Re-generated.
6902 * features/rs6000/powerpc-altivec32.c: Re-generated.
6903 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6904 * features/rs6000/powerpc-altivec64.c: Re-generated.
6905 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6906 * features/rs6000/powerpc-cell32l.c: Re-generated.
6907 * features/rs6000/powerpc-cell64l.c: Re-generated.
6908 * features/rs6000/powerpc-e500.c: Re-generated.
6909 * features/rs6000/powerpc-e500l.c: Re-generated.
6910 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6911 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6912 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6913 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6914 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6915 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6916 * features/rs6000/powerpc-vsx32.c: Re-generated.
6917 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6918 * features/rs6000/powerpc-vsx64.c: Re-generated.
6919 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6920 * features/rs6000/rs6000.c: Re-generated.
6921 * features/s390-linux32.c: Re-generated.
6922 * features/s390-linux32v1.c: Re-generated.
6923 * features/s390-linux32v2.c: Re-generated.
6924 * features/s390-linux64.c: Re-generated.
6925 * features/s390-linux64v1.c: Re-generated.
6926 * features/s390-linux64v2.c: Re-generated.
6927 * features/s390-te-linux64.c: Re-generated.
6928 * features/s390-tevx-linux64.c: Re-generated.
6929 * features/s390-vx-linux64.c: Re-generated.
6930 * features/s390x-linux64.c: Re-generated.
6931 * features/s390x-linux64v1.c: Re-generated.
6932 * features/s390x-linux64v2.c: Re-generated.
6933 * features/s390x-te-linux64.c: Re-generated.
6934 * features/s390x-tevx-linux64.c: Re-generated.
6935 * features/s390x-vx-linux64.c: Re-generated.
6936 * features/sparc/sparc32-solaris.c: Re-generated.
6937 * features/sparc/sparc64-solaris.c: Re-generated.
6938 * features/tic6x-c62x.c: Re-generated.
6939 * features/tic6x-c62x-linux.c: Re-generated.
6940 * features/tic6x-c64x.c: Re-generated.
6941 * features/tic6x-c64x-linux.c: Re-generated.
6942 * features/tic6x-c64xp.c: Re-generated.
6943 * features/tic6x-c64xp-linux.c: Re-generated.
6944
6945 2017-07-26 Yao Qi <yao.qi@linaro.org>
6946
6947 * i386-linux-tdep.c (i386_linux_read_description): New function.
6948 (i386_linux_core_read_description): Call
6949 i386_linux_read_description.
6950 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6951 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6952 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6953 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6954 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6955 * x86-linux-nat.c (x86_linux_read_description): Call
6956 i386_linux_read_description.
6957
6958 2017-07-26 Yao Qi <yao.qi@linaro.org>
6959
6960 * NEWS: Mention it.
6961 * features/Makefile (%.c: %.xml): Pass the xml file name to
6962 command "maint print c-tdesc".
6963 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6964 name from 'arg'.
6965
6966 2017-07-26 Yao Qi <yao.qi@linaro.org>
6967
6968 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6969 in-class initialization.
6970 (tdesc_create_feature): Call new instead of XCNEW.
6971 (free_target_description): Ue delete.
6972
6973 2017-07-25 John Baldwin <jhb@FreeBSD.org>
6974
6975 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6976
6977 2017-07-25 Yao Qi <yao.qi@linaro.org>
6978
6979 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
6980 constant.
6981 (amd64_x32_init_abi): Likewise.
6982 * amd64-tdep.h (amd64_init_abi): Update declaration.
6983 (amd64_x32_init_abi): Likewise.
6984
6985 2017-07-25 Yao Qi <yao.qi@linaro.org>
6986
6987 PR tdep/21717
6988 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
6989 condition for FPSCR.
6990 (arm_linux_store_inferior_registers): Likewise.
6991
6992 2017-07-22 Tom Tromey <tom@tromey.com>
6993
6994 * break-catch-syscall.c (struct catch_syscall_inferior_data)
6995 <syscalls_counts>: Now a std::vector.
6996 (get_catch_syscall_inferior_data): Use "new".
6997 (catch_syscall_inferior_data_cleanup): Use "delete".
6998 (insert_catch_syscall, remove_catch_syscall)
6999 (clear_syscall_counts): Update.
7000
7001 2017-07-22 Tom Tromey <tom@tromey.com>
7002
7003 * break-catch-syscall.c (syscall_catchpoint)
7004 <syscalls_to_be_caught>: Now a std::vector<int>
7005 (~syscall_catchpoint): Remove.
7006 (insert_catch_syscall, remove_catch_syscall)
7007 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
7008 (print_mention_catch_syscall, print_recreate_catch_syscall):
7009 Update.
7010 (create_syscall_event_catchpoint): Change type of "filter"
7011 parameter.
7012 (catch_syscall_split_args): Return a std::vector.
7013 (catch_syscall_command_1, catching_syscall_number_1): Update.
7014
7015 2017-07-22 Tom Tromey <tom@tromey.com>
7016
7017 * break-catch-throw.c (struct exception_catchpoint)
7018 <exception_rx>: Now a std::string.
7019 (~exception_catchpoint): Remove.
7020 (print_one_detail_exception_catchpoint): Update.
7021 (handle_gnu_v3_exceptions): Change type of except_rx.
7022 (extract_exception_regexp): Return a std::string.
7023 (catch_exception_command_1): Update.
7024
7025 2017-07-22 Tom Tromey <tom@tromey.com>
7026
7027 * break-catch-sig.c (gdb_signal_type): Remove typedef.
7028 (struct signal_catchpoint) <signals_to_be_caught>: Now a
7029 std::vector.
7030 <catch_all>: Now a bool.
7031 (~signal_catchpoint): Remove.
7032 (signal_catchpoint_insert_location)
7033 (signal_catchpoint_remove_location)
7034 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
7035 (signal_catchpoint_print_mention)
7036 (signal_catchpoint_print_recreate)
7037 (signal_catchpoint_explains_signal): Update.
7038 (create_signal_catchpoint): Change type of "filter" and
7039 "catch_all".
7040 (catch_signal_split_args): Return a std::vector. Change type of
7041 "catch_all".
7042 (catch_signal_command): Update.
7043
7044 2017-07-20 Pedro Alves <palves@redhat.com>
7045
7046 * ada-lang.c (ada_language_defn): Make extern.
7047 (_initialize_ada_language): Remove add_language call.
7048 * c-lang.c (c_language_defn, cplus_language_defn)
7049 (asm_language_defn, minimal_language_defn): Make extern.
7050 (_initialize_c_language): Delete.
7051 * completer.c (compare_cstrings): Delete, moved to utils.h.
7052 * d-lang.c (d_language_defn): Make extern.
7053 (_initialize_d_language): Remove add_language calls.
7054 * defs.h (enum language): Add comment.
7055 * f-lang.c (f_language_defn): Make extern.
7056 (_initialize_f_language): Remove add_language call.
7057 * go-lang.c (go_language_defn): Make extern.
7058 (_initialize_go_language): Remove add_language call.
7059 * language.c: Include <algorithm>.
7060 (languages): Redefine as const array.
7061 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
7062 (set_language_command): Handle "local". Use for-range loop.
7063 (set_language): Remove loop.
7064 (language_enum): Rewrite.
7065 (language_def, language_str): Remove loops.
7066 (add_language): Delete.
7067 (add_set_language_command): New, based on add_languages.
7068 (skip_language_trampoline): Adjust.
7069 (local_language_defn): Delete.
7070 (language_gdbarch_post_init): Adjust.
7071 (_initialize_language): Remove add_language calls. Call
7072 add_set_language_command.
7073 * language.h (add_language): Delete.
7074 (auto_language_defn)
7075 (unknown_language_defn, minimal_language_defn, ada_language_defn)
7076 (asm_language_defn, c_language_defn, cplus_language_defn)
7077 (d_language_defn, f_language_defn, go_language_defn)
7078 (m2_language_defn, objc_language_defn, opencl_language_defn)
7079 (pascal_language_defn, rust_language_defn): Declare.
7080 * m2-lang.c (m2_language_defn): Make extern.
7081 (_initialize_m2_language): Remove add_language call.
7082 * objc-lang.c (objc_language_defn): Make extern.
7083 (_initialize_objc_language): Remove add_language call.
7084 * opencl-lang.c (opencl_language_defn): Make extern.
7085 (_initialize_opencl_language): Remove add_language call.
7086 * p-lang.c (pascal_language_defn): Make extern.
7087 (_initialize_pascal_language): Delete.
7088 * rust-lang.c (rust_language_defn): Make extern.
7089 (_initialize_rust_language): Delete.
7090 * utils.h (compare_cstrings): New static inline function.
7091
7092 2017-07-20 Pedro Alves <palves@redhat.com>
7093
7094 * ada-lang.c (ada_to_fixed_type_1): Adjust.
7095 (get_var_value): Constify parameters.
7096 (get_int_var_value): Change prototype.
7097 (to_fixed_range_type): Adjust.
7098 * ada-lang.h (get_int_var_value): Change prototype.
7099
7100 2017-07-20 Pedro Alves <palves@redhat.com>
7101
7102 * dwarf2read.c (dw2_lookup_symbol): Use
7103 SYMBOL_MATCHES_SEARCH_NAME.
7104 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
7105
7106 2017-07-20 Pedro Alves <palves@redhat.com>
7107
7108 * block.c (block_iter_name_step, block_iter_name_first)
7109 (block_iter_name_next): Delete.
7110 (block_lookup_symbol_primary): Adjust to use
7111 dict_iter_match_first/dict_iter_match_next.
7112 * block.h (block_iter_name_first, block_iter_name_next): Delete
7113 declarations.
7114 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
7115 dict_iter_match_first/dict_iter_match_next.
7116
7117 2017-07-20 Pedro Alves <palves@redhat.com>
7118
7119 * cp-support.c (cp_find_first_component_aux): Add missing case for
7120 end of string.
7121
7122 2017-07-18 David Blaikie <dblaikie@gmail.com>
7123
7124 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
7125 of dwo_cu's dwo_file.
7126
7127 2017-07-18 Yao Qi <yao.qi@linaro.org>
7128
7129 * remote.c (store_registers_using_G): Remove one line comment.
7130
7131 2017-07-18 Yao Qi <yao.qi@linaro.org>
7132
7133 * regcache.c (regcache_cpy): Simplify it.
7134 (regcache::cpy_no_passthrough): Remove it.
7135 * regcache.h (cpy_no_passthrough): Remove it.
7136 (regcache_dup, regcache_cpy): Update comments.
7137
7138 2017-07-18 Pedro Alves <palves@redhat.com>
7139
7140 * remote-sim.c (sim_command_completer): Adjust to work with a
7141 completion_tracker instead of a VEC.
7142
7143 2017-07-17 Pedro Alves <palves@redhat.com>
7144
7145 * completer.c (complete_source_filenames): New function.
7146 (complete_address_and_linespec_locations): New function.
7147 (location_completer): Use complete_address_and_linespec_locations.
7148 (completion_tracker::build_completion_result): Honor the tracker's
7149 request to suppress append.
7150 * completer.h (completion_tracker::suppress_append_ws)
7151 (completion_tracker::set_suppress_append_ws): New methods.
7152 (completion_tracker::m_suppress_append_ws): New field.
7153 (complete_source_filenames): New declaration.
7154 * linespec.c (linespec_complete_what): New.
7155 (struct ls_parser) <complete_what, completion_word,
7156 completion_quote_char, completion_quote_end, completion_tracker>:
7157 New fields.
7158 (string_find_incomplete_keyword_at_end): New.
7159 (linespec_lexer_lex_string): Record quote char. If in completion
7160 mode, don't throw.
7161 (linespec_lexer_consume_token): Advance the completion word point.
7162 (linespec_lexer_peek_token): Save/restore completion info.
7163 (save_stream_and_consume_token): New.
7164 (set_completion_after_number): New.
7165 (linespec_parse_basic): Set what to complete next depending on
7166 token. Handle function and label completions specially.
7167 (parse_linespec): Disable objc shortcut in completion mode. Set
7168 what to complete next depending on token type. Skip keyword if in
7169 completion mode.
7170 (complete_linespec_component, linespec_complete): New.
7171 * linespec.h (linespec_complete): Declare.
7172
7173 2017-07-17 Pedro Alves <palves@redhat.com>
7174
7175 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
7176 Handle 'operator<' / 'operator<<'.
7177
7178 2017-07-17 Pedro Alves <palves@redhat.com>
7179
7180 * completer.c (collect_explicit_location_matches): Handle
7181 MATCH_LABEL.
7182 (convert_explicit_location_to_linespec): New, factored out from
7183 ...
7184 (convert_explicit_location_to_sals): ... this.
7185 (complete_label): New.
7186 (linespec_complete_label, find_label_symbols_in_block): New.
7187 (find_label_symbols): Add completion_mode parameter and adjust to
7188 call find_label_symbols_in_block.
7189 * linespec.h (linespec_complete_label): Declare.
7190
7191 2017-07-17 Pedro Alves <palves@redhat.com>
7192
7193 * ada-lang.c (ada_collect_symbol_completion_matches): Add
7194 complete_symbol_mode parameter.
7195 * cli/cli-cmds.c (complete_command): Get the completion result out
7196 of the handle_brkchars tracker if used a custom word point.
7197 * completer.c: Include "linespec.h".
7198 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
7199 (advance_to_expression_complete_word_point): New.
7200 (completion_tracker::completes_to_completion_word): New.
7201 (complete_files_symbols): Pass down
7202 complete_symbol_mode::EXPRESSION.
7203 (explicit_options, probe_options): New.
7204 (collect_explicit_location_matches): Complete on the
7205 explictit_loc->foo instead of word. Use
7206 linespec_complete_function. Handle MATCH_LINE. Handle offering
7207 keyword and options completions.
7208 (backup_text_ptr): Delete.
7209 (skip_keyword): New.
7210 (complete_explicit_location): Remove 'word' parameter. Add
7211 language, quoted_arg_start and quoted_arg_end parameters.
7212 Rewrite, parsing left to right.
7213 (location_completer): Rewrite.
7214 (location_completer_handle_brkchars): New function.
7215 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
7216 (enum complete_line_internal_reason): Adjust comments.
7217 (completion_tracker::discard_completions): New.
7218 (completer_handle_brkchars_func_for_completer): Handle
7219 location_completer.
7220 (gdb_custom_word_point_brkchars)
7221 (gdb_org_rl_basic_quote_characters): New.
7222 (gdb_completion_word_break_characters_throw)
7223 (completion_find_completion_word): Handle trackers that use a
7224 custom word point.
7225 (completion_tracker::advance_custom_word_point_by): New.
7226 (completion_tracker::build_completion_result): Don't rely on
7227 readline appending the quote char.
7228 (gdb_rl_attempted_completion_function_throw): Handle trackers that
7229 use a custom word point.
7230 (gdb_rl_attempted_completion_function): Restore
7231 rl_basic_quote_characters.
7232 * completer.h (class completion_tracker): Extend intro comment.
7233 (completion_tracker::set_quote_char)
7234 (completion_tracker::quote_char)
7235 (completion_tracker::set_use_custom_word_point)
7236 (completion_tracker::use_custom_word_point)
7237 (completion_tracker::custom_word_point)
7238 (completion_tracker::set_custom_word_point)
7239 (completion_tracker::advance_custom_word_point_by)
7240 (completion_tracker::completes_to_completion_word)
7241 (completion_tracker::discard_completions): New methods.
7242 (completion_tracker::m_quote_char)
7243 (completion_tracker::m_use_custom_word_point)
7244 (completion_tracker::m_custom_word_point): New fields.
7245 (advance_to_expression_complete_word_point): Declare.
7246 * f-lang.c (f_collect_symbol_completion_matches): Add
7247 complete_symbol_mode parameter.
7248 * language.h (struct language_defn)
7249 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
7250 parameter.
7251 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
7252 (linespec_complete_function): New function.
7253 (linespec_lexer_lex_keyword): Adjust.
7254 * linespec.h (linespec_keywords, linespec_complete_function): New
7255 declarations.
7256 * location.c (find_end_quote): New function.
7257 (explicit_location_lex_one): Add explicit_completion_info
7258 parameter. Save quoting info. Don't throw if being called for
7259 completion. Don't handle Ada operators here.
7260 (is_cp_operator, skip_op_false_positives, first_of)
7261 (explicit_location_lex_one_function): New function.
7262 (string_to_explicit_location): Replace 'dont_throw' parameter with
7263 an explicit_completion_info pointer parameter. Handle it. Don't
7264 use explicit_location_lex_one to lex function names. Use
7265 explicit_location_lex_one_function instead.
7266 * location.h (struct explicit_completion_info): New.
7267 (string_to_explicit_location): Replace 'dont_throw' parameter with
7268 an explicit_completion_info pointer parameter.
7269 * symtab.c (default_collect_symbol_completion_matches_break_on):
7270 Add complete_symbol_mode parameter. Handle LINESPEC mode.
7271 (default_collect_symbol_completion_matches)
7272 (collect_symbol_completion_matches): Add complete_symbol_mode
7273 parameter.
7274 (collect_symbol_completion_matches_type): Pass down
7275 complete_symbol_mode::EXPRESSION.
7276 (collect_file_symbol_completion_matches): Add complete_symbol_mode
7277 parameter. Handle LINESPEC mode.
7278 * symtab.h (complete_symbol_mode): New.
7279 (default_collect_symbol_completion_matches_break_on)
7280 (default_collect_symbol_completion_matches)
7281 (collect_symbol_completion_matches)
7282 (collect_file_symbol_completion_matches): Add complete_symbol_mode
7283 parameter.
7284
7285 2017-07-17 Pedro Alves <palves@redhat.com>
7286
7287 * utils.c (enum class strncmp_iw_mode): New.
7288 (strcmp_iw): Rename to ...
7289 (strncmp_iw_with_mode): ... this. Add string2_len and mode
7290 parameters. Handle them.
7291 (strncmp_iw): New.
7292 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
7293 * utils.h (strncmp_iw): Declare.
7294 (strcmp_iw): Move describing comments here.
7295
7296 2017-07-17 Pedro Alves <palves@redhat.com>
7297
7298 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
7299 CP_OPERATOR_STR.
7300 * c-typeprint.c (is_type_conversion_operator): Use
7301 CP_OPERATOR_STR.
7302 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
7303 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
7304 CP_OPERATOR_LEN.
7305 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
7306 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
7307 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
7308 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
7309 CP_OPERATOR_STR.
7310 * location.c: Include "cp-support.h".
7311 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
7312 CP_OPERATOR_STR.
7313 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
7314 CP_OPERATOR_LEN.
7315
7316 2017-07-17 Pedro Alves <palves@redhat.com>
7317
7318 * cli/cli-cmds.c (complete_command): Use a completion tracker
7319 along with completion_find_completion_word for handle_brkchars
7320 phase.
7321 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
7322 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
7323 (struct gdb_rl_completion_word_info): New.
7324 (gdb_rl_find_completion_word): New.
7325 (completion_find_completion_word): New.
7326 * completer.h (completion_find_completion_word): Declare.
7327
7328 2017-07-17 Pedro Alves <palves@redhat.com>
7329
7330 * ada-lang.c (symbol_completion_match): Adjust comments.
7331 (symbol_completion_add): Replace vector parameter with
7332 completion_tracker parameter. Use it.
7333 (ada_make_symbol_completion_list): Rename to...
7334 (ada_collect_symbol_completion_matches): ... this. Add
7335 completion_tracker parameter and use it.
7336 (ada_language_defn): Adjust.
7337 * break-catch-syscall.c (catch_syscall_completer): Adjust
7338 prototype and work with completion_tracker instead of VEC.
7339 * breakpoint.c (condition_completer): Adjust prototype and work
7340 with completion_tracker instead of VEC.
7341 * c-lang.c (c_language_defn, cplus_language_defn)
7342 (asm_language_defn, minimal_language_defn): Adjust to renames.
7343 * cli/cli-cmds.c (complete_command): Rework using
7344 completion_tracker. Catch exceptions when completing.
7345 * cli/cli-decode.c (integer_unlimited_completer)
7346 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
7347 with completion_tracker instead of VEC.
7348 * command.h (struct completion_tracker): Forward declare.
7349 (completer_ftype, completer_handle_brkchars_ftype): Change
7350 types.
7351 (complete_on_cmdlist, complete_on_enum): Adjust.
7352 * completer.c: Include <algorithm>.
7353 (struct gdb_completer_state): New.
7354 (current_completion): New global.
7355 (readline_line_completion_function): Delete.
7356 (noop_completer, filename_completer)
7357 (filename_completer_handle_brkchars, complete_files_symbols)
7358 (linespec_location_completer): Adjust to work with a
7359 completion_tracker instead of a VEC.
7360 (string_or_empty): New.
7361 (collect_explicit_location_matches): Adjust to work with a
7362 completion_tracker instead of a VEC.
7363 (explicit_location_completer): Rename to ...
7364 (complete_explicit_location): ... this and adjust to work with a
7365 completion_tracker instead of a VEC.
7366 (location_completer): Adjust to work with a completion_tracker
7367 instead of a VEC.
7368 (add_struct_fields): Adjust to work with a completion_list instead
7369 of VEC.
7370 (expression_completer): Rename to ...
7371 (complete_expression): ... this and adjust to work with a
7372 completion_tracker instead of a VEC. Use complete_files_symbols.
7373 (expression_completer): Reimplement on top of complete_expression.
7374 (symbol_completer): Adjust to work with a completion_tracker
7375 instead of a VEC.
7376 (enum complete_line_internal_reason): Add describing comments.
7377 (complete_line_internal_normal_command): Adjust to work with a
7378 completion_tracker instead of a VEC.
7379 (complete_line_internal): Rename to ...
7380 (complete_line_internal_1): ... this and adjust to work with a
7381 completion_tracker instead of a VEC. Assert TEXT is NULL in the
7382 handle_brkchars phase.
7383 (new_completion_tracker): Delete.
7384 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
7385 complete_line_internal_1.
7386 (free_completion_tracker): Delete.
7387 (INITIAL_COMPLETION_HTAB_SIZE): New.
7388 (completion_tracker::completion_tracker)
7389 (completion_tracker::~completion_tracker): New.
7390 (maybe_add_completion): Delete.
7391 (completion_tracker::maybe_add_completion)
7392 (completion_tracker::add_completion)
7393 (completion_tracker::add_completions): New.
7394 (throw_max_completions_reached_error): Delete.
7395 (complete_line): Adjust to work with a completion_tracker instead
7396 of a VEC. Don't create a completion_tracker_t or check for max
7397 completions here.
7398 (command_completer, command_completer_handle_brkchars)
7399 (signal_completer, reg_or_group_completer_1)
7400 (reg_or_group_completer, default_completer_handle_brkchars):
7401 Adjust to work with a completion_tracker.
7402 (gdb_completion_word_break_characters_throw): New.
7403 (gdb_completion_word_break_characters): Reimplement.
7404 (line_completion_function): Delete.
7405 (completion_tracker::recompute_lowest_common_denominator)
7406 (expand_preserving_ws)
7407 (completion_tracker::build_completion_result)
7408 (completion_result::completion_result)
7409 (completion_result::completion_result)
7410 (completion_result::~completion_result)
7411 (completion_result::completion_result)
7412 (completion_result::release_match_list, compare_cstrings)
7413 (completion_result::sort_match_list)
7414 (completion_result::reset_match_list)
7415 (gdb_rl_attempted_completion_function_throw)
7416 (gdb_rl_attempted_completion_function): New.
7417 * completer.h (completion_list, struct completion_result)
7418 (class completion_tracker): New.
7419 (complete_line): Add completion_tracker parameter.
7420 (readline_line_completion_function): Delete.
7421 (gdb_rl_attempted_completion_function): New.
7422 (noop_completer, filename_completer, expression_completer)
7423 (location_completer, symbol_completer, command_completer)
7424 (signal_completer, reg_or_group_completer): Update prototypes.
7425 (completion_tracker_t, new_completion_tracker)
7426 (make_cleanup_free_completion_tracker): Delete.
7427 (enum maybe_add_completion_enum): Delete.
7428 (maybe_add_completion): Delete.
7429 (throw_max_completions_reached_error): Delete.
7430 * corefile.c (complete_set_gnutarget): Adjust to work with a
7431 completion_tracker instead of a VEC.
7432 * cp-abi.c (cp_abi_completer): Adjust to work with a
7433 completion_tracker instead of a VEC.
7434 * d-lang.c (d_language_defn): Adjust.
7435 * disasm.c (disassembler_options_completer): Adjust to work with a
7436 completion_tracker instead of a VEC.
7437 * f-lang.c (f_make_symbol_completion_list): Rename to ...
7438 (f_collect_symbol_completion_matches): ... this. Adjust to work
7439 with a completion_tracker instead of a VEC.
7440 (f_language_defn): Adjust.
7441 * go-lang.c (go_language_defn): Adjust.
7442 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
7443 Adjust to work with a completion_tracker instead of a VEC.
7444 * infrun.c (handle_completer): Likewise.
7445 * interps.c (interpreter_completer): Likewise.
7446 * interps.h (interpreter_completer): Likewise.
7447 * language.c (unknown_language_defn, auto_language_defn)
7448 (local_language_defn): Adjust.
7449 * language.h (language_defn::la_make_symbol_completion_list):
7450 Rename to ...
7451 (language_defn::la_collect_symbol_completion_matches): ... this
7452 and adjust to work with a completion_tracker instead of a VEC.
7453 * m2-lang.c (m2_language_defn): Adjust.
7454 * objc-lang.c (objc_language_defn): Adjust.
7455 * opencl-lang.c (opencl_language_defn): Adjust.
7456 * p-lang.c (pascal_language_defn): Adjust.
7457 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
7458 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
7459 with a completion_tracker.
7460 * rust-lang.c (rust_language_defn): Adjust.
7461 * symtab.c (free_completion_list, do_free_completion_list)
7462 (return_val, completion_tracker): Delete.
7463 (completion_list_add_name, completion_list_add_symbol)
7464 (completion_list_add_msymbol, completion_list_objc_symbol)
7465 (completion_list_add_fields, add_symtab_completions): Add
7466 completion_tracker parameter and use it.
7467 (default_make_symbol_completion_list_break_on_1): Rename to...
7468 (default_collect_symbol_completion_matches_break_on): ... this.
7469 Add completion_tracker parameter and use it instead of allocating
7470 a completion tracker here.
7471 (default_make_symbol_completion_list_break_on): Delete old
7472 implementation.
7473 (default_make_symbol_completion_list): Delete.
7474 (default_collect_symbol_completion_matches): New.
7475 (make_symbol_completion_list): Delete.
7476 (collect_symbol_completion_matches): New.
7477 (make_symbol_completion_type): Rename to ...
7478 (collect_symbol_completion_matches_type): ... this. Add
7479 completion_tracker parameter and use it instead of VEC.
7480 (make_file_symbol_completion_list_1): Rename to...
7481 (collect_file_symbol_completion_matches): ... this. Add
7482 completion_tracker parameter and use it instead of VEC.
7483 (make_file_symbol_completion_list): Delete.
7484 (add_filename_to_list): Use completion_list instead of a VEC.
7485 (add_partial_filename_data::list): Now a completion_list.
7486 (make_source_files_completion_list): Work with a completion_list
7487 instead of a VEC.
7488 * symtab.h: Include "completer.h".
7489 (default_make_symbol_completion_list_break_on)
7490 (default_make_symbol_completion_list, make_symbol_completion_list)
7491 (make_symbol_completion_type, make_file_symbol_completion_list)
7492 (make_source_files_completion_list): Delete.
7493 (default_collect_symbol_completion_matches_break_on)
7494 (default_collect_symbol_completion_matches)
7495 (collect_symbol_completion_matches)
7496 (collect_symbol_completion_matches_type)
7497 (collect_file_symbol_completion_matches)
7498 (make_source_files_completion_list): New.
7499 * top.c (init_main): Don't install a rl_completion_entry_function
7500 hook. Install a rl_attempted_completion_function hook instead.
7501 * tui/tui-layout.c (layout_completer): Adjust to work with a
7502 completion_tracker.
7503 * tui/tui-regs.c (tui_reggroup_completer):
7504 * tui/tui-win.c (window_name_completer, focus_completer)
7505 (winheight_completer): Adjust to work with a completion_tracker.
7506 * value.c: Include "completer.h".
7507 (complete_internalvar): Adjust to work with a completion_tracker.
7508 * value.h (complete_internalvar): Likewise.
7509
7510 2017-07-17 Pedro Alves <palves@redhat.com>
7511
7512 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
7513 renames.
7514 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
7515 comments to completer_ftype's declaration.
7516 <completer_handle_brkchars>: Change type to
7517 completer_handle_brkchars_ftype.
7518 * command.h (completer_ftype): Add describing comment and give
7519 names to parameters.
7520 (completer_ftype_void): Rename to ...
7521 (completer_handle_brkchars_ftype) ... this. Add describing comment.
7522 (set_cmd_completer_handle_brkchars): Adjust.
7523 * completer.c (filename_completer_handle_brkchars): New function.
7524 (complete_line_internal_normal_command): New function, factored
7525 out from ...
7526 (complete_line_internal): ... here.
7527 (command_completer_handle_brkchars)
7528 (default_completer_handle_brkchars)
7529 (completer_handle_brkchars_func_for_completer): New functions.
7530 * completer.h (set_gdb_completion_word_break_characters): Delete
7531 declaration.
7532 (completer_handle_brkchars_func_for_completer): New declaration.
7533 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
7534 completer_handle_brkchars_func_for_completer.
7535
7536 2017-07-17 Pedro Alves <palves@redhat.com>
7537
7538 * completer.c (symbol_completer): New function, based on
7539 make_symbol_completion_list_fn.
7540 * completer.h (symbol_completer): New declaration.
7541 * guile/scm-cmd.c (cmdscm_completers): Adjust.
7542 * python/py-cmd.c (completers): Adjust.
7543 * symtab.c (make_symbol_completion_list_fn): Delete.
7544 * symtab.h (make_symbol_completion_list_fn): Delete.
7545 * cli/cli-decode.c (add_cmd): Adjust.
7546
7547 2017-07-17 Pedro Alves <palves@redhat.com>
7548
7549 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
7550 * dwarf2read.c: Include "filename-seen-cache.h".
7551 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
7552 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
7553 * filename-seen-cache.c: New file.
7554 * filename-seen-cache.h: New file.
7555 * symtab.c: Include "filename-seen-cache.h".
7556 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
7557 (create_filename_seen_cache, clear_filename_seen_cache)
7558 (delete_filename_seen_cache, filename_seen): Delete, parts moved
7559 to filename-seen-cache.h/filename-seen-cache.c.
7560 (output_source_filename, sources_info)
7561 (maybe_add_partial_symtab_filename)
7562 (make_source_files_completion_list): Adjust to use
7563 filename_seen_cache.
7564
7565 2017-07-17 Pedro Alves <palves@redhat.com>
7566
7567 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
7568 fields.
7569 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
7570 dwarf2_debug_sections*)): New.
7571 (dwarf2_per_objfile::dwarf2_per_objfile(const
7572 dwarf2_per_objfile&)): Declare as deleted.
7573 (dwarf2_per_objfile::operator=): Declare as deleted.
7574 (dwarf2_per_objfile::dwarf2_per_objfile)
7575 (dwarf2_per_objfile::~dwarf2_per_objfile)
7576 (dwarf2_per_objfile::free_cached_comp_units): New.
7577 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
7578 ctor. Call dwarf2_per_objfile's ctor manually.
7579 (dwarf2_locate_sections): Deleted/refactored as ...
7580 (dwarf2_per_objfile::locate_sections): ... this new method.
7581 (free_cached_comp_units): Defer to
7582 dwarf2_per_objfile::free_cached_comp_units.
7583 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
7584
7585 2017-07-14 Tom Tromey <tom@tromey.com>
7586
7587 PR rust/21764:
7588 * rust-exp.y (convert_ast_to_expression): Add "want_type"
7589 parameter.
7590 <UNOP_SIZEOF>: Split into separate case.
7591 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
7592
7593 2017-07-14 Tom Tromey <tom@tromey.com>
7594
7595 PR rust/21763:
7596 * symtab.c (symbol_matches_domain): Add language_rust to special
7597 case.
7598 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
7599 treat LOC_TYPEDEF symbols as variables.
7600
7601 2017-07-14 Pedro Alves <palves@redhat.com>
7602
7603 * symtab.c (make_file_symbol_completion_list_1): Iterate over
7604 symtabs matching all symtabs with SRCFILE as file name instead of
7605 only considering the first hit, with lookup_symtab.
7606
7607 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7608
7609 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
7610 operator_name parameters.
7611 (gen_expr): Update function call.
7612
7613 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7614
7615 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
7616 parameter.
7617 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
7618 Likewise.
7619 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
7620 parameter, use agent_expr::gdbarch instead, update function
7621 calls.
7622 (locexpr_tracepoint_var_ref): Likewise.
7623 (loclist_tracepoint_var_ref): Likewise.
7624 * ax-gdb.c (gen_trace_static_fields): Likewise.
7625 (gen_traced_pop): Likewise.
7626 (gen_frame_args_address): Likewise.
7627 (gen_frame_locals_address): Likewise.
7628 (gen_var_ref): Likewise.
7629 (gen_struct_ref_recursive): Likewise.
7630 (gen_static_field): Likewise.
7631 (gen_maybe_namespace_elt): Likewise.
7632 (gen_expr): Likewise.
7633 (gen_trace_for_var): Likewise.
7634 (gen_trace_for_expr): Likewise.
7635 (gen_trace_for_return_address): Likewise.
7636
7637 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7638
7639 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
7640 parameter.
7641 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
7642
7643 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7644
7645 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
7646 from ax, update calls.
7647 (gen_usual_arithmetic): Likewise.
7648 (gen_integral_promotions): Likewise.
7649 (gen_bitfield_ref): Likewise.
7650 (gen_primitive_field): Likewise.
7651 (gen_struct_ref_recursive): Likewise.
7652 (gen_struct_ref): Likewise.
7653 (gen_maybe_namespace_elt): Likewise.
7654 (gen_struct_elt_for_reference): Likewise.
7655 (gen_namespace_elt): Likewise.
7656 (gen_aggregate_elt_ref): Likewise.
7657 (gen_expr): Get gdbarch from ax, update calls.
7658 (gen_expr_binop_rest): Likewise.
7659
7660 2017-07-13 Pedro Alves <palves@redhat.com>
7661
7662 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7663 as default tdesc.
7664 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7665 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7666 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7667 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7668 tdep.
7669 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7670 Get final tdesc from the tdep.
7671 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7672 default tdesc.
7673 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7674 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7675 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7676 Use it as default tdesc.
7677 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7678 down to amd_init_abi. No longer handle fallback tdesc here.
7679 * amd64-tdep.h (tdesc_x32): Declare.
7680 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7681 parameter.
7682 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7683 as default tdesc.
7684
7685 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7686
7687 * s390-linux-tdep.c (s390_process_record): Add support for
7688 instructions new in arch12.
7689
7690 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7691
7692 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7693 PT_GETFSBASE and PT_GETGSBASE.
7694 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7695 PT_SETGSBASE.
7696
7697 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7698
7699 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7700 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7701 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7702 those rules.
7703 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7704 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7705 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7706 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7707 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7708 * features/i386/amd64.xml: Add 64bit-segments.xml.
7709 * features/i386/amd64-avx-avx512.c: Regenerated.
7710 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7711 * features/i386/amd64-avx-mpx.c: Regenerated.
7712 * features/i386/amd64-avx.c: Regenerated.
7713 * features/i386/amd64-mpx.c: Regenerated.
7714 * features/i386/amd64.c: Regenerated.
7715 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7716 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7717 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7718 * regformats/i386/amd64-avx.dat: Regenerated.
7719 * regformats/i386/amd64-mpx.dat: Regenerated.
7720 * regformats/i386/amd64.dat: Regenerated.
7721
7722 2017-07-10 Yao Qi <yao.qi@linaro.org>
7723
7724 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7725 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7726
7727 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7728
7729 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7730 unsetenv.
7731 * gnulib/aclocal.m4: Regenerate.
7732 * gnulib/config.in: Regenerate.
7733 * gnulib/configure: Regenerate.
7734 * gnulib/import/Makefile.am: Regenerate.
7735 * gnulib/import/Makefile.in: Regenerate.
7736 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7737 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7738 * gnulib/import/m4/environ.m4: New file.
7739 * gnulib/import/m4/setenv.m4: New file.
7740 * gnulib/import/setenv.c: New file.
7741 * gnulib/import/unsetenv.c: New file.
7742
7743 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7744
7745 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7746 address when op is DW_OP_addr.
7747
7748 2017-07-09 Tom Tromey <tom@tromey.com>
7749
7750 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7751 check and apply to outer type.
7752
7753 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7754
7755 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7756 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7757 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7758 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7759
7760 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7761
7762 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7763
7764 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7765
7766 * corelow.c (get_core_siginfo): Remove.
7767 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7768 instead of get_core_siginfo.
7769 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7770 * gdbarch.h: Re-generate.
7771 * gdbarch.c: Re-generate.
7772 * linux-tdep.c (linux_core_xfer_siginfo): New.
7773 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7774
7775 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7776
7777 * corelow.c (thread_section_name): Move to ...
7778 * gdbcore.h (thread_section_name): ... here.
7779
7780 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7781
7782 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7783 (struct siginfo32): New.
7784 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7785 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7786 via ptrace(PT_LWPINFO).
7787
7788 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7789
7790 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7791 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7792 (fbsd_get_siginfo_type): New.
7793 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7794 (_initialize_fbsd_tdep): New.
7795
7796 2017-07-06 David Blaikie <dblaikie@gmail.com>
7797
7798 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7799 a singular dwo_unit*) to support multiple CUs in the same way that
7800 multiple TUs are supported.
7801 (create_cus_hash_table): Replace create_dwo_cu with a function for
7802 parsing multiple CUs from a DWO file.
7803 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7804 create_dwo_cu.
7805 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7806 htab_find, rather than comparing the signature to a singleton CU in
7807 the dwo_file.
7808
7809 2017-07-06 Pedro Alves <palves@redhat.com>
7810
7811 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7812
7813 2017-07-04 Pedro Alves <palves@redhat.com>
7814
7815 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7816 * gdbtypes.h (TYPE_STATIC): Delete.
7817 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7818 is_synchronized, is_native>: Delete.
7819 <dummy>: Bump.
7820 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7821 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7822 (TYPE_FN_FIELD_ABSTRACT): Delete.
7823
7824 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7825
7826 * buffer.h (buffer_finish): Fix spelling mistakes.
7827
7828 2017-07-01 Eli Zaretskii <eliz@gnu.org>
7829
7830 * .dir-locals.el: Automatically switch to C-style comments in
7831 versions of Emacs that support the feature.
7832
7833 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7834 Pedro Alves <palves@redhat.com>
7835
7836 PR cli/21688
7837 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7838 (process_next_line): New variable 'inline_cmd'.
7839 Adjust 'if' clauses for "python", "compile" and "guile" to use
7840 'command_name_equals' and check for '!inline_cmd'.
7841
7842 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7843
7844 PR cli/21688
7845 * cli/cli-script.c (command_name_equals_not_inline): New function.
7846 (process_next_line): Adjust 'if' clauses for "python", "compile"
7847 and "guile" to use command_name_equals_not_inline.
7848
7849 2017-06-29 Pedro Alves <palves@redhat.com>
7850
7851 * completer.c (expression_completer): Call
7852 linespec_location_completer instead of location_completer.
7853
7854 2017-06-29 Pedro Alves <palves@redhat.com>
7855
7856 * completer.c (expression_completer): Remove code that recomputes
7857 'text' from 'word'.
7858
7859 2017-06-29 Yao Qi <yao.qi@linaro.org>
7860
7861 * regformats/regdat.sh: Generate code with
7862 "ifndef IN_PROCESS_AGENT".
7863
7864 2017-06-28 Pedro Alves <palves@redhat.com>
7865
7866 * command.h: Include "common/scoped_restore.h".
7867
7868 2017-06-28 Yao Qi <yao.qi@linaro.org>
7869
7870 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7871 instead of obstack_grow.
7872
7873 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7874
7875 PR gdb/21337
7876 * symfile.c (reread_symbols): Call objfiles_changed just before
7877 read_symbols.
7878
7879 2017-06-27 Pedro Alves <palves@redhat.com>
7880
7881 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7882 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7883 (completion_list_add_symbol, completion_list_add_msymbol):
7884 ... these new functions.
7885 (add_symtab_completions)
7886 (default_make_symbol_completion_list_break_on_1): Adjust.
7887
7888 2017-06-27 Pedro Alves <palves@redhat.com>
7889
7890 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7891 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7892 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7893 dtor.
7894 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7895 'storage_obstack' field an auto_obstack. In-class initialize all
7896 non-bitfield fields. Make minsyms_read bool.
7897 * symfile.c (read_symbols): Adjust.
7898
7899 2017-06-27 Alan Hayward <alan.hayward@arm.com>
7900
7901 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7902 (gdbsim_store_register): Likewise.
7903
7904 2017-06-27 Pedro Alves <palves@redhat.com>
7905
7906 * c-exp.y (name_obstack): Now an auto_obstack.
7907 (yylex): Use auto_obstack::clear.
7908 (c_parse): Use auto_obstack::clear instead of reinitializing and
7909 freeing the obstack.
7910 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7911 * d-exp.y (name_obstack): Now an auto_obstack.
7912 (yylex): Use auto_obstack::clear.
7913 (d_parse): Use auto_obstack::clear instead of reinitializing and
7914 freeing the obstack.
7915 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7916 auto_obstack.
7917 * dwarf2read.c (create_addrmap_from_index)
7918 (dwarf2_build_psymtabs_hard)
7919 (update_enumeration_type_from_children): Likewise.
7920 * gdb_obstack.h (auto_obstack): New type.
7921 * go-exp.y (name_obstack): Now an auto_obstack.
7922 (build_packaged_name): Use auto_obstack::clear.
7923 (go_parse): Use auto_obstack::clear instead of reinitializing and
7924 freeing the obstack.
7925 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7926 auto_obstack.
7927 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7928 * rust-exp.y (work_obstack): Now an auto_obstack.
7929 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7930 reinitializing and freeing the obstack.
7931 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7932 (host_char_to_target): Use auto_obstack.
7933 * utils.h (make_cleanup_obstack_free): Delete declaration.
7934 * valprint.c (generic_emit_char, generic_printstr): Use
7935 auto_obstack.
7936
7937 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7938
7939 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7940 thread.
7941 (darwin_init_thread_list): Don't update dummy thread.
7942 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7943
7944 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7945
7946 * record-full.c (netorder16): Remove.
7947
7948 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7949
7950 * common/diagnostics.h: Define macros for GCC.
7951 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7952 * common/vec.h: Include diagnostics.h.
7953 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7954 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7955 warning.
7956
7957 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7958
7959 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7960 New macro.
7961 * ada-lex.l: Ignore deprecated register warnings.
7962
7963 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7964
7965 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7966 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7967
7968 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7969
7970 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7971 its own line.
7972
7973 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7974
7975 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7976
7977 2017-06-23 Alan Hayward <alan.hayward@arm.com>
7978
7979 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
7980 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
7981 (xtensa_register_read_masked): Likewise.
7982
7983 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
7984
7985 * common/environ.c (gdb_environ::unset): Update comment.
7986
7987 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7988
7989 * python/py-unwind.c (pyuw_sniffer): Allocate space for
7990 registers.
7991
7992 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7993
7994 * record-full.c (record_full_exec_insn): Use byte_vector.
7995
7996 2017-06-22 Yao Qi <yao.qi@linaro.org>
7997
7998 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
7999 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
8000
8001 2017-06-22 Alan Hayward <alan.hayward@arm.com>
8002
8003 * remote.c (cached_reg): Move from here...
8004 * regcache.h (cached_reg): ...to here.
8005 * python/py-unwind.c (struct reg_info): Remove.
8006 (cached_frame_info): Use cached_reg_t.
8007 (pyuw_prev_register): Likewise.
8008 (pyuw_sniffer): Use cached_reg_t and allocate registers.
8009 (pyuw_dealloc_cache): Free all registers.
8010
8011 2017-06-22 Pedro Alves <palves@redhat.com>
8012 Simon Marchi <simon.marchi@ericsson.com>
8013
8014 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
8015 warning.
8016 * common/diagnostics.h: New file.
8017
8018 2017-06-22 Pedro Alves <palves@redhat.com>
8019
8020 * common/agent.h: Add include guards.
8021
8022 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
8023
8024 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
8025 talk about addressable units instead of bytes.
8026
8027 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
8028
8029 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
8030 of '::const_iterator'.
8031
8032 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
8033
8034 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8035 'unittests/environ-selftests.c'.
8036 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
8037 * charset.c (find_charset_names): Declare object 'iconv_env'.
8038 Update code to use 'iconv_env' object. Remove call to
8039 'free_environ'.
8040 * common/environ.c: Include <utility>.
8041 (make_environ): Delete function.
8042 (free_environ): Delete function.
8043 (gdb_environ::clear): New function.
8044 (gdb_environ::operator=): New function.
8045 (gdb_environ::get): Likewise.
8046 (environ_vector): Delete function.
8047 (set_in_environ): Delete function.
8048 (gdb_environ::set): New function.
8049 (unset_in_environ): Delete function.
8050 (gdb_environ::unset): New function.
8051 (gdb_environ::envp): Likewise.
8052 * common/environ.h: Include <vector>.
8053 (struct gdb_environ): Delete; transform into...
8054 (class gdb_environ): ... this class.
8055 (free_environ): Delete prototype.
8056 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
8057 environ_vector): Likewise.
8058 * infcmd.c (run_command_1): Update code to call
8059 'envp' from 'gdb_environ' class.
8060 (environment_info): Update code to call methods from 'gdb_environ'
8061 class.
8062 (unset_environment_command): Likewise.
8063 (path_info): Likewise.
8064 (path_command): Likewise.
8065 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
8066 (inferior::inferior): Initialize 'environment' using the host's
8067 information.
8068 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
8069 Include "environ.h".
8070 (class inferior) <environment>: Change type from 'struct
8071 gdb_environ' to 'gdb_environ'.
8072 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
8073 methods from 'gdb_environ' class.
8074 * solib.c (solib_find_1): Likewise
8075 * unittests/environ-selftests.c: New file.
8076
8077 2017-06-20 Yao Qi <yao.qi@linaro.org>
8078
8079 * features/i386/i386-linux.xml: Exchange the order of including
8080 32bit-linux.xml and 32bit-sse.xml.
8081 * features/i386/i386-linux.c: Regenerated.
8082
8083 2017-06-20 Yao Qi <yao.qi@linaro.org>
8084
8085 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
8086 Delete copy ctor and assignment operator.
8087 (tdesc_type): Likewise.
8088 (tdesc_feature): Likewise.
8089 (tdesc_free_reg): Remove.
8090 (tdesc_create_reg): Use new.
8091 (tdesc_free_type): Remove.
8092 (tdesc_create_vector): Use new.
8093 (tdesc_create_union): Likewise.
8094 (tdesc_create_flags): Likewise.
8095 (tdesc_create_enum): Likewise.
8096 (tdesc_free_feature): Delete.
8097 (free_target_description): Use delete.
8098
8099 2017-06-19 John Baldwin <jhb@FreeBSD.org>
8100
8101 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
8102 registers.
8103
8104 2017-06-19 Pedro Alves <palves@redhat.com>
8105
8106 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
8107 after gdb::unlinker.
8108
8109 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
8110
8111 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
8112 gdb_environ to access an environment variable.
8113
8114 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8115
8116 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
8117 gdb_byte*.
8118
8119 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8120
8121 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
8122
8123 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8124
8125 * configure: Re-generate.
8126 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
8127
8128 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8129
8130 * configure: Re-generate.
8131 * warning.m4: Pass -Werror to compiler when checking for
8132 supported warning flags.
8133
8134 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8135
8136 * Makefile.in (COMPILE.pre): Add "-x c++".
8137
8138 2017-06-16 Alan Hayward <alan.hayward@arm.com>
8139 Pedro Alves <palves@redhat.com>
8140 Yao Qi <yao.qi@linaro.org>
8141
8142 * defs.h (RequireLongest): New.
8143 (extract_integer): Declare function template.
8144 (extract_signed_integer): Remove the declaration, but define it
8145 static inline.
8146 (extract_unsigned_integer): Likewise.
8147 (store_integer): Declare function template.
8148 (store_signed_integer): Remove the declaration, but define it
8149 static inline.
8150 (store_unsigned_integer): Likewise.
8151 * findvar.c (extract_integer): New function template.
8152 (extract_signed_integer): Remove.
8153 (extract_unsigned_integer): Remove.
8154 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
8155 instantiations.
8156 (store_integer): New function template.
8157 (store_signed_integer): Remove.
8158 (store_unsigned_integer): Remove.
8159 (store_integer): Explicit instantiations.
8160 * regcache.c (regcache_raw_read_signed): Update.
8161 (regcache::raw_read): New function.
8162 (regcache::raw_read_signed): Remove.
8163 (regcache::raw_read_unsigned): Remove.
8164 (regcache_raw_read_unsigned): Update.
8165 (regcache_raw_write_unsigned): Update.
8166 (regcache::raw_write_signed): Remove.
8167 (regcache::raw_write): New function.
8168 (regcache_cooked_read_signed): Update.
8169 (regcache::raw_write_unsigned): Remove.
8170 (regcache::cooked_read_signed): Remove.
8171 (regcache_cooked_read_unsigned): Update.
8172 (regcache::cooked_read_unsigned): Remove.
8173 (regcache_cooked_write_signed): Update.
8174 (regcache_cooked_write_unsigned): Update.
8175 * regcache.h (regcache) <raw_read_signed>: Remove.
8176 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
8177 <raw_read, raw_write>: New.
8178 <cooked_read_signed, cooked_write_signed>: Remove.
8179 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
8180 <cooked_read, cooked_write>: New.
8181 * sh64-tdep.c (sh64_pseudo_register_read): Update.
8182 (sh64_pseudo_register_write): Update.
8183
8184 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
8185
8186 * arc-tdep.c (arc_disassembler_options): New variable.
8187 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
8188 of default_print_insn.
8189 (arc_delayed_print_insn): Set info->section when needed,
8190 use default_print_insn to retrieve a disassembler.
8191
8192 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
8193
8194 PR gdb/21574
8195 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
8196 to mention $SHELL and startup-with-shell.
8197
8198 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
8199
8200 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
8201
8202 2017-06-14 Yao Qi <yao.qi@linaro.org>
8203
8204 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
8205 default_print_insn instead of print_insn_aarch64.
8206 * arm-tdep.c (gdb_print_insn_arm): Call
8207 default_print_insn instead of print_insn_big_arm
8208 and print_insn_little_arm.
8209 * i386-tdep.c (i386_print_insn): Call default_print_insn
8210 instead of print_insn_i386.
8211 * ia64-tdep.c (ia64_print_insn): Call
8212 default_print_insn instead of print_insn_ia64.
8213 * mips-tdep.c (gdb_print_insn_mips): Call
8214 default_print_insn instead of print_insn_big_mips
8215 and print_insn_little_mips.
8216 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
8217 instead of print_insn_spu.
8218
8219 2017-06-14 Pedro Alves <palves@redhat.com>
8220
8221 * ada-lang.c: Include "common/byte-vector.h".
8222 (ada_value_primitive_packed_val): Use gdb::byte_vector.
8223 * charset.c (wchar_iterator::iterate): Resize the vector instead
8224 of reserving it.
8225 * common/byte-vector.h: Include "common/def-vector.h".
8226 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
8227 * cli/cli-dump.c: Include "common/byte-vector.h".
8228 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
8229 * common/byte-vector.h: New file.
8230 * common/def-vector.h: New file.
8231 * common/default-init-alloc.h: New file.
8232 * dwarf2loc.c: Include "common/byte-vector.h".
8233 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
8234 instead of reserving it.
8235 * dwarf2read.c: Include "common/byte-vector.h".
8236 (data_buf::m_vec): Now a gdb::byte_vector.
8237 * gdb_regex.c: Include "common/def-vector.h".
8238 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
8239 * mi/mi-main.c: Include "common/byte-vector.h".
8240 (mi_cmd_data_read_memory): Use gdb::byte_vector.
8241 * printcmd.c: Include "common/byte-vector.h".
8242 (print_scalar_formatted): Use gdb::byte_vector.
8243 * valprint.c: Include "common/byte-vector.h".
8244 (maybe_negate_by_bytes, print_decimal_chars): Use
8245 gdb::byte_vector.
8246
8247 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8248
8249 * darwin-nat.c: Include "nat/fork-inferior.h".
8250
8251 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8252
8253 * configure.nat: Factor out Darwin bits that are not
8254 architecture-specific. Add fork-inferior.o.
8255
8256 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8257
8258 * configure.nat: Factor out AIX bits that are not
8259 architecture-specific. Add fork-inferior.o.
8260
8261 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8262
8263 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
8264 (read_pieced_value, write_pieced_value): ...here. Reduce to
8265 wrappers that just call rw_pieced_value.
8266
8267 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8268
8269 * dwarf2loc.c (write_pieced_value): When writing the data for a
8270 memory piece, use write_memory_with_notification instead of
8271 write_memory.
8272
8273 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8274
8275 * valops.c (read_value_memory): Change embedded_offset to
8276 represent a bit offset instead of a byte offset.
8277 * value.h (read_value_memory): Adjust comment.
8278
8279 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8280
8281 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
8282 dest_offset_bits and source_offset_bits.
8283 (write_pieced_value): Likewise.
8284
8285 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8286
8287 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
8288 given by DW_OP_bit_piece.
8289 (write_pieced_value): Likewise.
8290
8291 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8292
8293 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
8294 some other preparations to the places where sufficient information
8295 is available.
8296 (write_pieced_value): Likewise.
8297
8298 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8299
8300 * dwarf2loc.c (bits_to_bytes): New function.
8301 (read_pieced_value): Fix offset calculations for register pieces
8302 on big-endian targets.
8303 (write_pieced_value): Likewise.
8304
8305 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8306
8307 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
8308 (write_pieced_value): Likewise.
8309
8310 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8311
8312 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
8313 transfer the source value's least significant bits, instead of its
8314 lowest-addressed ones. Rename type_len to max_offset.
8315 (read_pieced_value): Mirror above changes to write_pieced_value as
8316 applicable.
8317
8318 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8319
8320 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
8321 truncate full bytes from dest_offset_bits before using it as an
8322 offset into the buffer.
8323
8324 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8325
8326 * dwarf2loc.c (write_pieced_value): Include transfer size in
8327 byte-wise check.
8328
8329 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8330
8331 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
8332 calculation of this_size.
8333
8334 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8335
8336 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
8337 when targeting a bit-field.
8338 (write_pieced_value): Likewise.
8339
8340 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8341
8342 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
8343 (allocate_piece_closure): Drop addr_size parameter.
8344 (dwarf2_evaluate_loc_desc_full): Adjust call to
8345 allocate_piece_closure.
8346
8347 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8348
8349 PR gdb/21226
8350 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
8351 the LSB end, independent of endianness.
8352
8353 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8354
8355 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
8356 size capping.
8357
8358 2017-06-13 Yao Qi <yao.qi@linaro.org>
8359
8360 * mips-linux-nat.c: Move include features/mips*-linux.c to
8361 mips-linux-tdep.c.
8362 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
8363 to mips-linux-tdep.c.
8364 * mips-linux-tdep.c: Include features/mips*-linux.c
8365 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
8366 functions.
8367 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
8368 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
8369 (tdesc_mips64_dsp_linux): Declare.
8370
8371 2017-06-12 Tom Tromey <tom@tromey.com>
8372
8373 * valprint.h (val_print_type_code_int): Remove.
8374 * valprint.c (generic_val_print_int): Always call
8375 val_print_scalar_formatted.
8376 (val_print_type_code_int): Remove.
8377 * printcmd.c (print_scalar_formatted): Handle options->format==0.
8378 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
8379 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
8380 * ada-valprint.c (ada_val_print_num): Use
8381 val_print_scalar_formatted.
8382
8383 2017-06-12 Tom Tromey <tom@tromey.com>
8384
8385 * printcmd.c (print_scalar_formatted): Unify the two switches.
8386 Don't convert scalars to LONGEST.
8387
8388 2017-06-12 Tom Tromey <tom@tromey.com>
8389
8390 PR exp/16225:
8391 * valprint.h (print_decimal_chars): Update.
8392 * valprint.c (maybe_negate_by_bytes): New function.
8393 (print_decimal_chars): Add "is_signed" argument.
8394 * printcmd.c (print_scalar_formatted): Update.
8395
8396 2017-06-12 Tom Tromey <tom@tromey.com>
8397
8398 PR exp/16225:
8399 * valprint.h (print_binary_chars, print_hex_chars): Update.
8400 * valprint.c (val_print_type_code_int): Update.
8401 (print_binary_chars): Add "zero_pad" argument.
8402 (emit_octal_digit): New function.
8403 (print_octal_chars): Don't zero-pad.
8404 (print_decimal_chars): Likewise.
8405 (print_hex_chars): Add "zero_pad" argument.
8406 * sh64-tdep.c (sh64_do_fp_register): Update.
8407 * regcache.c (regcache::dump): Update.
8408 * printcmd.c (print_scalar_formatted): Update.
8409 * infcmd.c (default_print_one_register_info): Update.
8410
8411 2017-06-12 Pedro Alves <palves@redhat.com>
8412 Alan Hayward <alan.hayward@arm.com>
8413
8414 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
8415 (mips_eabi_push_dummy_call): Rename local 'regsize' to
8416 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
8417 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
8418 Assert that abi_regsize bytes fit in 'ref_valbuf'.
8419
8420 2017-06-12 Pedro Alves <palves@redhat.com>
8421
8422 * dwarf2read.c (mapped_symtab::data): Now a vector of
8423 symtab_index_entry instead of vector of
8424 std::unique_ptr<symtab_index_entry>. All users adjusted to check
8425 whether an element's name is NULL instead of checking whether the
8426 element itself is NULL.
8427 (find_slot): Change return type. Adjust.
8428 (hash_expand, , add_index_entry, uniquify_cu_indices)
8429 (write_hash_table): Adjust.
8430
8431 2017-06-12 Pedro Alves <palves@redhat.com>
8432
8433 * dwarf2read.c (recursively_count_psymbols): New function.
8434 (write_psymtabs_to_index): Call it to compute number of psyms and
8435 pass estimate size of psyms_seen to unordered_set's ctor.
8436
8437 2017-06-12 Pedro Alves <palves@redhat.com>
8438
8439 * dwarf2read.c (write_hash_table): Check if key already exists
8440 before emplacing.
8441
8442 2017-06-12 Pedro Alves <palves@redhat.com>
8443
8444 * dwarf2read.c (data_buf::append_space): Rename to...
8445 (data_buf::grow): ... this, and make private. Adjust all callers.
8446 (data_buf::append_uint): New method.
8447 (add_address_entry, write_one_signatured_type)
8448 (write_psymtabs_to_index): Use it.
8449
8450 2017-06-12 Pedro Alves <palves@redhat.com>
8451
8452 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
8453 (file_write (FILE *, const std::vector<Elem>&)): Delete.
8454 (data_buf::file_write): Call ::fwrite directly.
8455
8456 2017-06-12 Pedro Alves <palves@redhat.com>
8457
8458 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
8459 std::vector::erase.
8460
8461 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8462
8463 Code cleanup: C++ify .gdb_index producer.
8464 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
8465 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
8466 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
8467 (create_strtab, add_string): Remove.
8468 (file_write, data_buf): New.
8469 (struct symtab_index_entry): Use std::vector for cu_indices.
8470 (struct mapped_symtab): Use std::vector for data.
8471 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
8472 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
8473 Remove.
8474 (find_slot): Change return type. Update it to the new data structures.
8475 (hash_expand, add_index_entry): Update it to the new data structures.
8476 (offset_type_compare): Remove.
8477 (uniquify_cu_indices): Update it to the new data structures.
8478 (c_str_view, c_str_view_hasher, vector_hasher): New.
8479 (add_indices_to_cpool): Remove.
8480 (write_hash_table): Update it to the new data structures.
8481 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
8482 (eq_psymtab_cu_index): Remove.
8483 (psym_index_map): New typedef.
8484 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
8485 reference and std::unordered_map for cu_index_htab.
8486 (add_address_entry, add_address_entry_worker, write_address_map)
8487 (write_psymbols): Update it to the new data structures.
8488 (write_obstack): Remove.
8489 (struct signatured_type_index_data): Change types_list to a data_buf
8490 reference and psyms_seen to a std::unordered_set reference.
8491 (write_one_signatured_type, recursively_write_psymbols)
8492 (write_psymtabs_to_index): Update it to the new data structures.
8493
8494 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
8495
8496 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
8497 separate-debug-file commands.
8498 * symfile.h (separate_debug_file_debug): New global.
8499 * symfile.c (separate_debug_file_debug): New global.
8500 (separate_debug_file_exists, find_separate_debug_file): Add
8501 debug output.
8502 (_initialize_symfile): Add "set debug separate-debug-file"
8503 command.
8504 * build-id.c (build_id_to_debug_bfd,
8505 find_separate_debug_file_by_buildid): Add debug output.
8506
8507 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8508
8509 * gdbarch.sh (displaced_step_free_closure): Remove.
8510 * gdbarch.h, gdbarch.c: Re-generate.
8511 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
8512 displaced_step_free_closure.
8513 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8514 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8515 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8516 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8517 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8518 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8519 * arch-utils.h (simple_displaced_step_free_closure): Remove.
8520 * arch-utils.c (simple_displaced_step_free_closure): Remove.
8521 * infrun.c (displaced_step_clear): Call xfree instead of
8522 gdbarch_displaced_step_free_closure.
8523
8524 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
8525
8526 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
8527 NULL".
8528
8529 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8530
8531 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
8532 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
8533 (mn10300_push_dummy_call): Likewise.
8534
8535 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8536
8537 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
8538
8539 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8540
8541 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
8542
8543 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8544
8545 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
8546 able to start inferiors using a shell.
8547 (New remote packets): Announce new packet "QStartupWithShell".
8548 * remote.c: Add PACKET_QStartupWithShell.
8549 (extended_remote_create_inferior): Handle new
8550 PACKET_QStartupWithShell.
8551 (remote_protocol_features) <QStartupWithShell>: New entry for
8552 PACKET_QStartupWithShell.
8553 (_initialize_remote): Call "add_packet_config_cmd" for
8554 QStartupShell.
8555
8556 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8557 Pedro Alves <palves@redhat.com>
8558
8559 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
8560 and "nat/fork-inferior.h".
8561 * common/common-inferior.h: New file, with contents from
8562 "gdb/inferior.h".
8563 * commom/common-utils.c: Include "common-utils.h".
8564 (stringify_argv): New function.
8565 * common/common-utils.h (stringify_argv): New prototype.
8566 * configure.nat: Add "fork-inferior.o" as a dependency for
8567 "*linux*", "fbsd*" and "nbsd*" hosts.
8568 * corefile.c (get_exec_file): Update comment.
8569 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
8570 instead of "startup_inferior".
8571 (darwin_create_inferior): Call "add_thread_silent" after
8572 "fork_inferior".
8573 * fork-child.c: Cleanup unnecessary includes.
8574 (SHELL_FILE): Move to "common/common-fork-child.c".
8575 (environ): Likewise.
8576 (exec_wrapper): Initialize.
8577 (get_exec_wrapper): New function.
8578 (breakup_args): Move to "common/common-fork-child.c"; rename to
8579 "breakup_args_for_exec".
8580 (escape_bang_in_quoted_argument): Move to
8581 "common/common-fork-child.c".
8582 (saved_ui): New variable.
8583 (prefork_hook): New function.
8584 (postfork_hook): Likewise.
8585 (postfork_child_hook): Likewise.
8586 (gdb_startup_inferior): Likewise.
8587 (fork_inferior): Move to "common/common-fork-child.c". Update
8588 function to support gdbserver.
8589 (startup_inferior): Likewise.
8590 * gdbcore.h (get_exec_file): Remove declaration.
8591 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
8592 instead of "startup_inferior". Call "add_thread_silent" after
8593 "fork_inferior".
8594 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
8595 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
8596 instead of "startup_inferior". Call "add_thread_silent" after
8597 "fork_inferior".
8598 * inferior.h: Include "common-inferior.h".
8599 (trace_start_error): Move to "common/common-utils.h".
8600 (trace_start_error_with_name): Likewise.
8601 (fork_inferior): Move prototype to "nat/fork-inferior.h".
8602 (startup_inferior): Likewise.
8603 (gdb_startup_inferior): New prototype.
8604 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
8605 * nat/fork-inferior.h: New file.
8606 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
8607 instead of "startup_inferior". Call "add_thread_silent" after
8608 "fork_inferior".
8609 * target.h (target_terminal_init): Move prototype to
8610 "target/target.h".
8611 (target_terminal_inferior): Likewise.
8612 (target_terminal_ours): Likewise.
8613 * target/target.h (target_terminal_init): New prototype, moved
8614 from "target.h".
8615 (target_terminal_inferior): Likewise.
8616 (target_terminal_ours): Likewise.
8617 * utils.c (gdb_flush_out_err): New function.
8618
8619 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8620
8621 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
8622 * common/common-gdbthread.h: New file, with parts from
8623 "gdb/gdbthread.h".
8624 * gdbthread.h: Include "common-gdbthread.h".
8625 (switch_to_thread): Moved to "common/common-gdbthread.h".
8626
8627 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8628
8629 * Makefile.in (SFILES): Add "common/job-control.c".
8630 (HFILES_NO_SRCDIR): Add "common/job-control.h".
8631 (COMMON_OBS): Add "job-control.o".
8632 * common/job-control.c: New file, with contents from
8633 "gdb/inflow.c".
8634 * common/job-control.h: New file, with contents from "terminal.h".
8635 * fork-child.c: Include "job-control.h".
8636 * inflow.c: Include "job-control.h".
8637 (gdb_setpgid): Move to "common/common-inflow.c".
8638 (_initialize_inflow): Move setting of "job_control" to
8639 "handle_job_control".
8640 * terminal.h (job_control): Moved to "common/common-terminal.h".
8641 (gdb_setpgid): Likewise.
8642 * top.c: Include "job_control.h".
8643 * utils.c: Likewise.
8644 (job_control): Moved to "job-control.c".
8645
8646 2017-06-07 Pedro Alves <palves@redhat.com>
8647
8648 * Makefile.in (SFILES): Add gdb_regex.c.
8649 (COMMON_OBS): Add gdb_regex.o.
8650 * ada-lang.c (ada_add_standard_exceptions)
8651 (ada_add_exceptions_from_frame, name_matches_regex)
8652 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
8653 parameter type to compiled_regex. Adjust.
8654 (ada_exceptions_list): Use compiled_regex.
8655 * break-catch-throw.c (exception_catchpoint::pattern): Now a
8656 std::unique_ptr<compiled_regex>.
8657 (exception_catchpoint::~exception_catchpoint): Remove regfree
8658 call.
8659 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8660 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8661 * breakpoint.c (solib_catchpoint::compiled): Now a
8662 std::unique_ptr<compiled_regex>.
8663 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8664 (check_status_catch_solib): Adjust to use compiled_regex.
8665 (add_solib_catchpoint): Adjust to use compiled_regex.
8666 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8667 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8668 compiled_regex reference. Adjust to use it.
8669 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8670 declaration. Include "gdb_regex.h".
8671 (apropos_cmd): Change regex parameter to compiled_regex reference.
8672 * gdb_regex.c: New file.
8673 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8674 declarations.
8675 (class compiled_regex): New.
8676 * linux-tdep.c: Include "common/gdb_optional.h".
8677 (struct mapping_regexes): New, factored out from
8678 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8679 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8680 gdb::optional and remove cleanups. Adjust to compiled_regex.
8681 * probe.c: Include "common/gdb_optional.h".
8682 (collect_probes): Use compiled_regex and gdb::optional and remove
8683 cleanups.
8684 * skip.c: Include "common/gdb_optional.h".
8685 (skiplist_entry::compiled_function_regexp): Now a
8686 gdb::optional<compiled_regex>.
8687 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8688 (free_skiplist_entry): Remove regfree call.
8689 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8690 compiled_regex and gdb::optional.
8691 * symtab.c: Include "common/gdb_optional.h".
8692 (search_symbols): Use compiled_regex and gdb::optional.
8693 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8694 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8695 to gdb_regex.c.
8696
8697 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8698
8699 * regcache.c (regcache::save): Avoid buffer use.
8700 (regcache::dump): Likewise.
8701
8702 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8703
8704 * sh-tdep.c (sh_pseudo_register_read): Remove
8705 MAX_REGISTER_SIZE.
8706 (sh_pseudo_register_write): Likewise.
8707 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8708 (sh64_pseudo_register_write): Likewise
8709
8710 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8711
8712 * aarch64-tdep.c (aarch64_store_return_value): Use
8713 V_REGISTER_SIZE.
8714 (aarch64_pseudo_read_value): Likewise.
8715 (aarch64_pseudo_write): Likewise.
8716
8717 2017-06-06 Yao Qi <yao.qi@linaro.org>
8718
8719 * regformats/regdef.h (set_register_cache): Remove the
8720 declaration.
8721
8722 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8723
8724 * frame.c (frame_unwind_register_signed): Use
8725 frame_unwind_register_value.
8726
8727 2017-06-06 Pedro Alves <palves@redhat.com>
8728
8729 PR breakpoints/21553
8730 * breakpoint.c (create_breakpoints_sal_default)
8731 (init_breakpoint_sal, create_breakpoint_sal): Use
8732 gdb::unique_xmalloc_ptr for string parameters.
8733 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8734 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8735 (base_breakpoint_create_breakpoints_sal)
8736 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8737 (strace_marker_create_breakpoints_sal)
8738 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8739 string parameters.
8740 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8741 gdb::unique_xmalloc_ptr for string parameters.
8742 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8743 parameters.
8744
8745 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8746
8747 * alpha-tdep.c (alpha_register_to_value): Use
8748 get_frame_register_value.
8749 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8750
8751 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8752
8753 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8754 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8755 (ia64_value_to_register): Likewise.
8756 (ia64_extract_return_value): Likewise.
8757 (ia64_store_return_value): Likewise.
8758 (ia64_push_dummy_call): Likewise.
8759
8760 2017-06-04 Joel Brobecker <brobecker@adacore.com>
8761
8762 GDB 8.0 released.
8763
8764 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8765
8766 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8767
8768 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8769
8770 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8771 parameter.
8772 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8773
8774 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8775
8776 * event-loop.c (poll_timers): Unallocate timer using delete
8777 instead of xfree.
8778
8779 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8780
8781 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8782 (struct breakpoint) <~breakpoint>: New.
8783 (struct watchpoint): Inherit from breakpoint.
8784 <~watchpoint>: New.
8785 <base>: Remove.
8786 (struct tracepoint): Inherit from breakpoint.
8787 <base>: Remove.
8788 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8789 (struct longjmp_breakpoint): Inherit from breakpoint.
8790 <~longjmp_breakpoint>: New.
8791 <base>: Remove.
8792 (new_breakpoint_from_type): Remove casts.
8793 (watchpoint_in_thread_scope): Remove reference to base field.
8794 (watchpoint_del_at_next_stop): Likewise.
8795 (update_watchpoint): Likewise.
8796 (watchpoint_check): Likewise.
8797 (bpstat_check_watchpoint): Likewise.
8798 (set_longjmp_breakpoint): Likewise.
8799 (struct fork_catchpoint): Inherit from breakpoint.
8800 <base>: Remove.
8801 (struct solib_catchpoint): Inherit from breakpoint.
8802 <~solib_catchpoint>: New.
8803 <base>: Remove.
8804 (dtor_catch_solib): Change to ...
8805 (solib_catchpoint::~solib_catchpoint): ... this.
8806 (breakpoint_hit_catch_solib): Remove reference to base field.
8807 (add_solib_catchpoint): Likewise.
8808 (create_fork_vfork_event_catchpoint): Likewise.
8809 (struct exec_catchpoint): Inherit from breakpoint.
8810 <~exec_catchpoint>: New.
8811 <base>: Remove.
8812 (dtor_catch_exec): Change to ...
8813 (exec_catchpoint::~exec_catchpoint): ... this.
8814 (dtor_watchpoint): Change to ...
8815 (watchpoint::~watchpoint): ... this.
8816 (watch_command_1): Remove reference to base field.
8817 (catch_exec_command_1): Likewise.
8818 (base_breakpoint_dtor): Change to ...
8819 (breakpoint::~breakpoint): ... this.
8820 (base_breakpoint_ops): Remove dtor field value.
8821 (longjmp_bkpt_dtor): Change to ...
8822 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8823 (strace_marker_create_breakpoints_sal): Remove reference to base
8824 field.
8825 (delete_breakpoint): Don't manually call breakpoint destructor.
8826 (create_tracepoint_from_upload): Remove reference to base field.
8827 (trace_pass_set_count): Likewise.
8828 (initialize_breakpoint_ops): Don't initialize
8829 momentary_breakpoint_ops, don't set dtors.
8830 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8831 <~ada_catchpoint>: New.
8832 <base>: Remove.
8833 (create_excep_cond_exprs): Remove reference to base field.
8834 (dtor_exception): Change to ...
8835 (ada_catchpoint::~ada_catchpoint): ... this.
8836 (dtor_catch_exception): Remove.
8837 (dtor_catch_exception_unhandled): Remove.
8838 (dtor_catch_assert): Remove.
8839 (create_ada_exception_catchpoint): Remove reference to base
8840 field.
8841 (initialize_ada_catchpoint_ops): Don't set dtors.
8842 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8843 breakpoint.
8844 <~signal_catchpoint>: New.
8845 <base>: Remove.
8846 (signal_catchpoint_dtor): Change to ...
8847 (signal_catchpoint::~signal_catchpoint): ... this.
8848 (create_signal_catchpoint): Remove reference to base field.
8849 (initialize_signal_catchpoint_ops): Don't set dtor.
8850 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8851 from breakpoint.
8852 <~syscall_catchpoint>: New.
8853 <base>: Remove.
8854 (dtor_catch_syscall): Change to ...
8855 (syscall_catchpoint::~syscall_catchpoint): ... this.
8856 (create_syscall_event_catchpoint): Remove reference to base
8857 field.
8858 (initialize_syscall_catchpoint_ops): Don't set dtor.
8859 * break-catch-throw.c (struct exception_catchpoint): Inherit
8860 from breakpoint.
8861 <~exception_catchpoint>: New.
8862 <base>: Remove.
8863 (dtor_exception_catchpoint): Change to ...
8864 (exception_catchpoint::~exception_catchpoint): ... this.
8865 (handle_gnu_v3_exceptions): Remove reference to base field.
8866 (initialize_throw_catchpoint_ops): Don't set dtor.
8867 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8868 field.
8869 * remote.c (remote_get_tracepoint_status): Likewise.
8870 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8871 * tracefile.c (tracefile_fetch_registers): Likewise.
8872 * tracepoint.c (actions_command): Likewise.
8873 (validate_actionline): Likewise.
8874 (tfind_1): Likewise.
8875 (get_traceframe_location): Likewise.
8876 (find_matching_tracepoint_location): Likewise.
8877 (parse_tracepoint_status): Likewise.
8878 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8879
8880 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8881
8882 * breakpoint.c (struct longjmp_breakpoint): New struct.
8883 (is_tracepoint_type): Change return type to bool.
8884 (is_longjmp_type): New function.
8885 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8886 (set_raw_breakpoint_without_location): Use
8887 new_breakpoint_from_type.
8888 (set_raw_breakpoint): Likewise.
8889
8890 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8891
8892 * breakpoint.c (new_breakpoint_from_type): New function.
8893 (create_breakpoint_sal): Use new_breakpoint_from_type and
8894 unique_ptr.
8895 (create_breakpoint): Likewise.
8896
8897 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8898
8899 * memattr.c (mem_info_command): Rename to ...
8900 (info_mem_command): ... this.
8901 (mem_enable_command): Rename to ...
8902 (enable_mem_command): ... this.
8903 (mem_disable_command): Rename to ...
8904 (disable_mem_command): ... this.
8905 (mem_delete_command): Rename to ...
8906 (delete_mem_command): ... this.
8907 (_initialize_mem): Adjust function names.
8908
8909 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8910
8911 * btrace.c (handle_pt_insn_events): New.
8912 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8913 STATUS. Split into this and ...
8914 (handle_pt_insn_event_flags): ... this.
8915
8916 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8917
8918 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8919 and struct pt_insn.resynced.
8920 * configure: Regenerated.
8921 * config.in: Regenerated.
8922
8923 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8924
8925 * btrace.c (ftrace_find_call_by_number): New function.
8926 (ftrace_new_function): Store objects, not pointers.
8927 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8928 ftrace_new_gap, ftrace_update_function,
8929 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8930 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8931 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8932 btrace_ends_with_single_insn, btrace_call_get): Account for
8933 btrace_thread_info::functions now storing objects.
8934 * btrace.h (struct btrace_thread_info): Add constructor.
8935 (struct btrace_thread_info) <functions>: Make std::vector.
8936 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8937 Initialize with default values.
8938 * record-btrace.c (record_btrace_frame_sniffer): Account for
8939 btrace_thread_info::functions now storing objects.
8940
8941 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8942
8943 * btrace.c: Remove typedef bfun_s.
8944 (ftrace_new_gap): Directly add gaps to the list of gaps.
8945 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8946 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8947 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8948 instead of gdb VEC.
8949
8950 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8951
8952 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8953 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8954 with btrace_thread_info::next_segment and
8955 btrace_thread_info::prev_segment.
8956 * btrace.h: Remove struct btrace_func_link.
8957 (struct btrace_function): Replace pair of function segment pointers
8958 with pair of indices.
8959 * python/py-record-btrace.c (btpy_call_prev_sibling,
8960 btpy_call_next_sibling): Replace references to
8961 btrace_thread_info::segment with btrace_thread_info::next_segment and
8962 btrace_thread_info::prev_segment.
8963 * record-btrace.c (record_btrace_frame_this_id): Use
8964 btrace_find_call_by_number.
8965
8966 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8967
8968 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8969 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8970 btrace_insn_next, btrace_insn_prev): Remove references to
8971 btrace_thread_info::flow.
8972 * btrace.h (struct btrace_function): Remove FLOW.
8973
8974 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8975
8976 * btrace.c (ftrace_find_call_by_number): New function.
8977 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8978 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8979 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
8980 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
8981 index.
8982 * btrace.h (struct btrace_function): Turn UP into an index.
8983 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
8984 as an index.
8985 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
8986 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
8987 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
8988
8989 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8990
8991 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8992 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8993 ftrace_update_function, ftrace_compute_global_level_offset,
8994 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
8995 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
8996 btrace_insn_end, btrace_is_empty): Remove references to
8997 btrace_thread_info::begin and btrace_thread_info::end.
8998 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
8999 (struct btrace_thread_info) <functions>: Adjust comment.
9000 * record-btrace.c (record_btrace_start_replaying): Remove reference to
9001 btrace_thread_info::begin.
9002
9003 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9004
9005 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9006 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9007 ftrace_update_function): Remove arguments that implicitly were always
9008 BTINFO->END.
9009 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
9010 Don't pass BTINFO->END.
9011
9012 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9013
9014 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
9015 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
9016 btrace_find_insn_by_number): Replace function segment pointer with
9017 index.
9018 (btrace_insn_cmp): Simplify.
9019 * btrace.h: (struct btrace_insn_iterator) Rename index to
9020 insn_index. Replace function segment pointer with index into function
9021 segment vector.
9022 * record-btrace.c (record_btrace_call_history): Replace function
9023 segment pointer use with index.
9024 (record_btrace_frame_sniffer): Retrieve function call segment through
9025 vector.
9026 (record_btrace_set_replay): Remove defunc't safety check.
9027
9028 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9029
9030 * btrace.c (btrace_ends_with_single_insn): New function.
9031 (btrace_call_get, btrace_call_number, btrace_call_begin,
9032 btrace_call_end, btrace_call_next, btrace_call_prev,
9033 btrace_find_call_by_number): Use index into call segment vector
9034 instead of pointer.
9035 (btrace_call_cmp): Simplify.
9036 * btrace.h (struct btrace_call_iterator): Replace function call segment
9037 pointer with index into vector.
9038 * record-btrace.c (record_btrace_call_history): Use index instead of
9039 pointer.
9040
9041 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9042
9043 * btrace.c (btrace_insn_begin, btrace_insn_end,
9044 btrace_find_insn_by_number): Add btinfo to iterator.
9045 * btrace.h (struct btrace_insn_iterator): Add btinfo.
9046
9047 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9048
9049 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
9050 and save pointers directly.
9051 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
9052 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
9053 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
9054 changed signature of functions.
9055 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
9056 (btrace_fetch): Remove code that adds btrace_function pointers to
9057 vector of btrace_functions.
9058 (btrace_clear): Simplify freeing vector of btrace_functions.
9059
9060 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9061
9062 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
9063 Replace VEC_* with std::vector functions.
9064 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
9065 (struct btrace_thread_info)<functions>: Change type to std::vector.
9066
9067 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
9068
9069 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
9070 "Removed targets and native configurations" up. Merge duplicate
9071 "New commands" sub-sections. Add "New options" sub-sections.
9072
9073 2017-05-26 Alan Hayward <alan.hayward@arm.com>
9074
9075 * defs.h (copy_integer_to_size): New declaration.
9076 * findvar.c (copy_integer_to_size): New function.
9077 (do_cint_test): New selftest function.
9078 (copy_integer_to_size_test): Likewise.
9079 (_initialize_findvar): Likewise.
9080 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
9081 (mips_fbsd_collect_reg): Use raw_collect_integer.
9082 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
9083 (mips64_fill_gregset): Use raw_collect_integer
9084 (mips64_fill_fpregset): Use raw_supply_integer.
9085 * regcache.c (regcache::raw_supply_integer): New function.
9086 (regcache::raw_collect_integer): Likewise.
9087 * regcache.h: (regcache::raw_supply_integer): New declaration.
9088 (regcache::raw_collect_integer): Likewise.
9089
9090 2017-05-24 Yao Qi <yao.qi@linaro.org>
9091
9092 * Makefile.in (SFILES): Add gdbarch-selftests.c.
9093 (COMMON_OBS): Add gdbarch-selftests.o.
9094 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
9095 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
9096 * gdbarch-selftests.c: New file.
9097 * regcache.h (regcache) <~regcache>: Mark it virtual if
9098 GDB_SELF_TEST.
9099 <raw_write>: Likewise.
9100
9101 2017-05-24 Yao Qi <yao.qi@linaro.org>
9102
9103 * regcache.c (current_regcache): Change it to
9104 regcache::current_regcache.
9105 (regcache_observer_target_changed): Update.
9106 (regcache_thread_ptid_changed): Make it a regcache static
9107 method.
9108 (regcache_thread_ptid_changed): Update.
9109 (class regcache_access): New.
9110 (current_regcache_test): Update.
9111 (_initialize_regcache): Update.
9112 * regcache.h: Include forward_list.
9113 (regcache): Declare regcache_thread_ptid_changed and declare
9114 registers_changed_ptid as friend.
9115
9116 2017-05-24 Yao Qi <yao.qi@linaro.org>
9117
9118 * i387-tdep.c (i387_register_to_value): Use register_size
9119 instead of TYPE_LENGTH.
9120 * m68k-tdep.c (m68k_register_to_value): Likewise.
9121
9122 2017-05-24 Yao Qi <yao.qi@linaro.org>
9123
9124 * i387-tdep.c (i387_convert_register_p): Return false if type
9125 code isn't TYPE_CODE_FLT.
9126
9127 2017-05-24 Yao Qi <yao.qi@linaro.org>
9128
9129 * alpha-tdep.c (alpha_convert_register_p): Return true if type
9130 length is 4.
9131 (alpha_register_to_value): Remove type length check.
9132 (alpha_value_to_register): Likewise.
9133
9134 2017-05-24 Yao Qi <yao.qi@linaro.org>
9135
9136 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
9137 TYPE_CODE_FLT.
9138
9139 2017-05-24 Yao Qi <yao.qi@linaro.org>
9140
9141 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
9142 TYPE_CODE_FLT or not.
9143
9144 2017-05-24 Yao Qi <yao.qi@linaro.org>
9145
9146 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
9147 * avr-tdep.c (avr_gdbarch_init): Likewise.
9148 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9149 * cris-tdep.c (cris_gdbarch_init): Likewise.
9150 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
9151 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9152 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9153 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9154 * mep-tdep.c (mep_gdbarch_init): Likewise.
9155 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9156 * mips-tdep.c (mips_gdbarch_init): Likewise.
9157 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9158 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9159 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
9160 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9161 * v850-tdep.c (v850_gdbarch_init): Likewise.
9162
9163 2017-05-24 Yao Qi <yao.qi@linaro.org>
9164
9165 * selftest-arch.c (tests_with_arch): Call registers_changed
9166 and reinit_frame_cache.
9167 * selftest.c (run_self_tests): Likewise.
9168
9169 2017-05-24 Yao Qi <yao.qi@linaro.org>
9170
9171 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
9172 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
9173
9174 2017-05-24 Yao Qi <yao.qi@linaro.org>
9175
9176 * rl78-tdep.c (rl78_gdbarch_init): Don't call
9177 set_gdbarch_print_insn.
9178
9179 2017-05-24 Yao Qi <yao.qi@linaro.org>
9180
9181 * h8300-tdep.c (h8300_gdbarch_init): Don't call
9182 set_gdbarch_print_insn.
9183
9184 2017-05-24 Yao Qi <yao.qi@linaro.org>
9185
9186 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9187 set_gdbarch_print_insn.
9188 * arc-tdep.c (arc_gdbarch_init): Likewise.
9189 * arch-utils.c: include dis-asm.h.
9190 (default_print_insn): New function.
9191 * arch-utils.h (default_print_insn): Declare.
9192 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
9193 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9194 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
9195 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
9196 * frv-tdep.c (frv_gdbarch_init): Likewise.
9197 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
9198 * gdbarch.sh (print_insn): Use default_print_insn.
9199 * gdbarch.c: Regenerated.
9200 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9201 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
9202 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9203 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
9204 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9205 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
9206 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
9207 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9208 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
9209 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9210 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9211 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9212 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
9213 * mt-tdep.c (mt_gdbarch_init): Likewise.
9214 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9215 * nios2-tdep.c (nios2_print_insn): Remove.
9216 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
9217 * rx-tdep.c (rx_gdbarch_init): Likewise.
9218 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9219 * score-tdep.c (score_print_insn): Remove.
9220 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
9221 * sh-tdep.c (sh_gdbarch_init): Likewise.
9222 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9223 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9224 * tic6x-tdep.c (tic6x_print_insn): Remove.
9225 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
9226 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
9227 * v850-tdep.c (v850_gdbarch_init): Likewise.
9228 * vax-tdep.c (vax_gdbarch_init): Likewise.
9229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9230 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
9231
9232 2017-05-23 John Baldwin <jhb@FreeBSD.org>
9233
9234 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
9235 (MIPS_FP0_REGNUM): Remove.
9236 (MIPS_FSR_REGNUM): Remove.
9237 (mips_fbsd_supply_fpregs): Use mips_regnum.
9238 (mips_fbsd_supply_gregs): Likewise.
9239 (mips_fbsd_collect_fpregs): Likewise.
9240 (mips_fbsd_collect_gregs): Likewise.
9241
9242 2017-05-23 John Baldwin <jhb@FreeBSD.org>
9243
9244 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
9245 (getpfpregs_supplies): New function.
9246 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
9247 getfpregs_supplies.
9248 (mips_fbsd_store_inferior_registers): Likewise.
9249
9250 2017-05-22 Pedro Alves <palves@redhat.com>
9251
9252 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
9253 maintainer.
9254
9255 2017-05-22 Alan Hayward <alan.hayward@arm.com>
9256
9257 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
9258 (store_register): Likewise.
9259 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
9260 (get_decimal_float_return_value): Likewise.
9261 (do_ppc_sysv_return_value): Likewise.
9262 (ppc64_sysv_abi_push_integer): Likewise.
9263 (ppc64_sysv_abi_push_freg): Likewise.
9264 (ppc64_sysv_abi_return_value_base): Likewise.
9265 (ppc64_sysv_abi_return_value): Likewise.
9266 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
9267 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
9268 * rs6000-nat.c: Likewise.
9269 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
9270 (rs6000_value_to_register): Likewise.
9271 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
9272
9273 2017-05-21 Tom Tromey <tom@tromey.com>
9274
9275 PR rust/21466:
9276 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
9277 arrays as "[T]", not "[T; ]".
9278
9279 2017-05-19 Tom Tromey <tom@tromey.com>
9280
9281 PR rust/21484:
9282 * rust-lang.c (exp_descriptor_rust): New function.
9283 (rust_language_defn): Use it.
9284 * p-lang.c (pascal_language_defn): Update.
9285 * opencl-lang.c (opencl_language_defn): Update.
9286 * objc-lang.c (objc_language_defn): Update.
9287 * m2-lang.c (m2_language_defn): Update.
9288 * language.h (struct language_defn)
9289 <la_watch_location_expression>: New member.
9290 * language.c (unknown_language_defn, auto_language_defn)
9291 (local_language_defn): Update.
9292 * go-lang.c (go_language_defn): Update.
9293 * f-lang.c (f_language_defn): Update.
9294 * d-lang.c (d_language_defn): Update.
9295 * c-lang.h (c_watch_location_expression): Declare.
9296 * c-lang.c (c_watch_location_expression): New function.
9297 (c_language_defn, cplus_language_defn, asm_language_defn)
9298 (minimal_language_defn): Use it.
9299 * breakpoint.c (watch_command_1): Call
9300 la_watch_location_expression.
9301 * ada-lang.c (ada_language_defn): Update.
9302
9303 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9304
9305 PR tui/21482
9306 * gdb_curses.h (NOMACROS): Define.
9307 (NCURSES_NOMACROS): Define.
9308
9309 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9310
9311 PR tui/21482
9312 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
9313 arg to char *.
9314 * tui/tui-wingeneral.c (box_win): Likewise.
9315 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
9316 (tui_show_source_line): Likewise.
9317 (tui_show_exec_info_content): Likewise.
9318
9319 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
9320
9321 * sparc-tdep.c (sparc_structure_return_p)
9322 (sparc_arg_on_registers_p): New functions.
9323 (sparc32_store_arguments): Use them.
9324 * sparc64-tdep.c (sparc64_16_byte_align_p)
9325 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
9326 Handle TYPE_CODE_ARRAY.
9327
9328 2017-05-17 Yao Qi <yao.qi@linaro.org>
9329
9330 * cli/cli-decode.c (add_alias_cmd): New function.
9331 * command.h (add_alias_cmd): Declare.
9332 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
9333 instead call add_alias_cmd.
9334
9335 2017-05-17 Pedro Alves <palves@redhat.com>
9336
9337 * Makefile.in (nat_extra_makefile_frag): Rename to ...
9338 (nat_makefile_frag): ... this. All references updated.
9339 * configure.ac: Likewise.
9340 * configure.nat: Likewise. Enhance comments.
9341 * configure: Regenerate.
9342
9343 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9344
9345 * procfs.c (procfs_create_inferior): Change prototype to match
9346 definition.
9347
9348 2017-05-13 Eli Zaretskii <eliz@gnu.org>
9349
9350 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
9351 C++ compiler warning.
9352
9353 2017-05-12 Tom Tromey <tom@tromey.com>
9354
9355 PR rust/21483:
9356 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
9357 recurse, just call value_struct_elt directly.
9358
9359 2017-05-12 Tom Tromey <tom@tromey.com>
9360
9361 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
9362 OP_RUST_ARRAY>: Fix.
9363
9364 2017-05-12 Tom Tromey <tom@tromey.com>
9365
9366 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
9367
9368 2017-05-09 Yao Qi <yao.qi@linaro.org>
9369
9370 * regcache.c: Include <forward_list>.
9371 (struct regcache_list): Remove.
9372 (current_regcache): Update.
9373 (get_thread_arch_aspace_regcache): Update for std::forward_list.
9374 (regcache_thread_ptid_changed): Likewise.
9375 (registers_changed_ptid): Likewise.
9376 (current_regcache_size): Likewise.
9377
9378 2017-05-09 Yao Qi <yao.qi@linaro.org>
9379
9380 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
9381 (current_regcache_size): New function.
9382 (current_regcache_test): New function.
9383 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
9384
9385 2017-05-08 Alan Hayward <alan.hayward@arm.com>
9386
9387 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
9388 (print_gp_register_row): Use get_frame_register_value.
9389
9390 2017-05-08 Alan Hayward <alan.hayward@arm.com>
9391
9392 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
9393 (mips_supply_fpregset): Likewise.
9394 (mips64_supply_gregset): Likewise.
9395
9396 2017-05-08 Alan Hayward <alan.hayward@arm.com>
9397
9398 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
9399 regcache->raw_supply_zeroed.
9400
9401 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9402
9403 * configure.nat: Rearrange 'case' statements to match
9404 host before cpu.
9405
9406 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9407
9408 * Makefile.in: Remove "@host_makefile_frag@". Add variables
9409 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
9410 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
9411 "@nat_extra_makefile_frag@".
9412 (Makefile): Remove dependency on "@frags@".
9413 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
9414 (data-directory/Makefile): Likewise.
9415 * config/aarch64/linux.mh: Deleted; moved contents to
9416 "gdb/configure.nat".
9417 * config/alpha/alpha-linux.mh: Likewise.
9418 * config/alpha/nbsd.mh: Likewise.
9419 * config/arm/linux.mh: Likewise.
9420 * config/arm/nbsdelf.mh: Likewise.
9421 * config/i386/cygwin.mh: Likewise.
9422 * config/i386/cygwin64.mh: Likewise.
9423 * config/i386/darwin.mh: Likewise.
9424 * config/i386/fbsd.mh: Likewise.
9425 * config/i386/fbsd64.mh: Likewise.
9426 * config/i386/go32.mh: Likewise.
9427 * config/i386/i386gnu.mh: Likewise.
9428 * config/i386/i386sol2.mh: Likewise.
9429 * config/i386/linux.mh: Likewise.
9430 * config/i386/linux64.mh: Likewise.
9431 * config/i386/mingw.mh: Likewise.
9432 * config/i386/mingw64.mh: Likewise.
9433 * config/i386/nbsd64.mh: Likewise.
9434 * config/i386/nbsdelf.mh: Likewise.
9435 * config/i386/nto.mh: Likewise.
9436 * config/i386/obsd.mh: Likewise.
9437 * config/i386/obsd64.mh: Likewise.
9438 * config/i386/sol2-64.mh: Likewise.
9439 * config/ia64/linux.mh: Likewise.
9440 * config/m32r/linux.mh: Likewise.
9441 * config/m68k/linux.mh: Likewise.
9442 * config/m68k/nbsdelf.mh: Likewise.
9443 * config/m68k/obsd.mh: Likewise.
9444 * config/m88k/obsd.mh: Likewise.
9445 * config/mips/fbsd.mh: Likewise.
9446 * config/mips/linux.mh: Likewise.
9447 * config/mips/nbsd.mh: Likewise.
9448 * config/mips/obsd64.mh: Likewise.
9449 * config/pa/linux.mh: Likewise.
9450 * config/pa/nbsd.mh: Likewise.
9451 * config/pa/obsd.mh: Likewise.
9452 * config/powerpc/aix.mh: Likewise.
9453 * config/powerpc/fbsd.mh: Likewise.
9454 * config/powerpc/linux.mh: Likewise.
9455 * config/powerpc/nbsd.mh: Likewise.
9456 * config/powerpc/obsd.mh: Likewise.
9457 * config/powerpc/ppc64-linux.mh: Likewise.
9458 * config/powerpc/spu-linux.mh: Likewise.
9459 * config/s390/linux.mh: Likewise.
9460 * config/sh/nbsd.mh: Likewise.
9461 * config/sparc/fbsd.mh: Likewise.
9462 * config/sparc/linux.mh: Likewise.
9463 * config/sparc/linux64.mh: Likewise.
9464 * config/sparc/nbsd64.mh: Likewise.
9465 * config/sparc/nbsdelf.mh: Likewise.
9466 * config/sparc/obsd64.mh: Likewise.
9467 * config/sparc/sol2.mh: Likewise.
9468 * config/tilegx/linux.mh: Likewise.
9469 * config/vax/nbsdelf.mh: Likewise.
9470 * config/vax/obsd.mh: Likewise.
9471 * config/xtensa/linux.mh: Likewise.
9472 * config/i386/i386gnu.mn: New file, with excerpts from
9473 "config/i386/i386gnu.mh".
9474 * configure: Regenerate.
9475 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
9476 *.mh files under "gdb/config".
9477 * configure.nat: New file, with contents from the
9478 "gdb/config/*/*.mh" files.
9479
9480 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
9481
9482 * btrace.c (btrace_clear): Free insn vector.
9483
9484 2017-05-05 Pedro Alves <palves@redhat.com>
9485
9486 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
9487 * configure: Regenerate.
9488
9489 2017-05-04 Pedro Alves <palves@redhat.com>
9490
9491 * Makefile.in (SFILES): Add progspace-and-thread.c.
9492 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
9493 (COMMON_OBS): Add progspace-and-thread.o.
9494 * breakpoint.c: Include "progspace-and-thread.h".
9495 (update_inserted_breakpoint_locations)
9496 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
9497 Use scoped_restore_current_pspace_and_thread.
9498 (create_std_terminate_master_breakpoint): Use
9499 scoped_restore_current_program_space.
9500 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
9501 (print_breakpoint_location): Use
9502 scoped_restore_current_program_space.
9503 (bp_loc_is_permanent): Use
9504 scoped_restore_current_pspace_and_thread.
9505 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
9506 (download_tracepoint_locations): Use
9507 scoped_restore_current_pspace_and_thread.
9508 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
9509 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
9510 (enum step_over_calls_kind): Moved from inferior.h.
9511 (class scoped_restore_current_thread): New class.
9512 * gdbthread.h (make_cleanup_restore_current_thread): Delete
9513 declaration.
9514 (scoped_restore_current_thread): New class.
9515 * infcmd.c: Include "common/gdb_optional.h".
9516 (continue_1, proceed_after_attach): Use
9517 scoped_restore_current_thread.
9518 (notice_new_inferior): Use scoped_restore_current_thread.
9519 * inferior.c: Include "progspace-and-thread.h".
9520 (restore_inferior, save_current_inferior): Delete.
9521 (add_inferior_command, clone_inferior_command): Use
9522 scoped_restore_current_pspace_and_thread.
9523 * inferior.h (scoped_restore_current_inferior): New class.
9524 * infrun.c: Include "progspace-and-thread.h" and
9525 "common/gdb_optional.h".
9526 (follow_fork_inferior): Use
9527 scoped_restore_current_pspace_and_thread.
9528 (scoped_restore_exited_inferior): New class.
9529 (handle_vfork_child_exec_or_exit): Use
9530 scoped_restore_exited_inferior,
9531 scoped_restore_current_pspace_and_thread,
9532 scoped_restore_current_thread and scoped_restore.
9533 (fetch_inferior_event): Use scoped_restore_current_thread.
9534 * linespec.c (decode_line_full, decode_line_1): Use
9535 scoped_restore_current_program_space.
9536 * mi/mi-main.c: Include "progspace-and-thread.h".
9537 (exec_continue): Use scoped_restore_current_thread.
9538 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
9539 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
9540 * proc-service.c (ps_pglobal_lookup): Use
9541 scoped_restore_current_program_space.
9542 * progspace-and-thread.c: New file.
9543 * progspace-and-thread.h: New file.
9544 * progspace.c (release_program_space, clone_program_space): Use
9545 scoped_restore_current_program_space.
9546 (restore_program_space, save_current_program_space)
9547 (save_current_space_and_thread): Delete.
9548 (switch_to_program_space_and_thread): Moved to
9549 progspace-and-thread.c.
9550 * progspace.h (save_current_program_space)
9551 (save_current_space_and_thread): Delete declarations.
9552 (scoped_restore_current_program_space): New class.
9553 * remote.c (remote_btrace_maybe_reopen): Use
9554 scoped_restore_current_thread.
9555 * symtab.c: Include "progspace-and-thread.h".
9556 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
9557 * thread.c (print_thread_info_1): Use
9558 scoped_restore_current_thread.
9559 (struct current_thread_cleanup): Delete.
9560 (do_restore_current_thread_cleanup)
9561 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
9562 (scoped_restore_current_thread::~scoped_restore_current_thread):
9563 ... this new dtor.
9564 (make_cleanup_restore_current_thread): Rename/convert to ...
9565 (scoped_restore_current_thread::scoped_restore_current_thread):
9566 ... this new ctor.
9567 (thread_apply_all_command): Use scoped_restore_current_thread.
9568 (thread_apply_command): Use scoped_restore_current_thread.
9569 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
9570 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
9571
9572 2017-05-04 Pedro Alves <palves@redhat.com>
9573
9574 * thread.c (make_cleanup_restore_current_thread): Move
9575 find_thread_ptid call before the is_stopped call. Assert that the
9576 thread is found. Replace is_stopped call by checking the thread's
9577 state directly. Remove unnecessary NULL-thread check.
9578
9579 2017-05-04 Pedro Alves <palves@redhat.com>
9580
9581 * corelow.c (thread_section_name): New class.
9582 (get_core_register_section, get_core_siginfo): Use it.
9583
9584 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9585
9586 * corelow.c (sniff_core_bfd): Remove extra semicolon.
9587 (get_core_register_section): Remove xfree of NULL pointer.
9588
9589 2017-05-03 Alan Hayward <alan.hayward@arm.com>
9590
9591 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
9592 * regcache.c (regcache::raw_supply_zeroed): New function.
9593 * regcache.h (regcache::raw_supply_zeroed): New declaration.
9594
9595 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
9596
9597 * gdbarch.sh: Remove commented out definition of
9598 TARGET_CHAR_BIT.
9599 * gdbarch.h: Re-generate.
9600
9601 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
9602
9603 * configure: Regenerate.
9604
9605 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
9606
9607 * solib-target.c (solib_target_relocate_section_addresses):
9608 Remove num_section_bases, num_bases, segment_bases variables.
9609
9610 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9611
9612 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
9613
9614 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9615
9616 * solib-target.c: Include <vector>
9617 (struct lm_info_target) <~lm_info_target>: Remove.
9618 <segment_bases, section_bases>: Change type to
9619 std::vector<CORE_ADDR>.
9620 (library_list_start_segment, library_list_start_section,
9621 library_list_end_library,
9622 solib_target_relocate_section_addresses): Adjust.
9623
9624 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9625
9626 * gdbarch.sh (software_single_step): Change return type to
9627 std::vector<CORE_ADDR>.
9628 * gdbarch.c, gdbarch.h: Re-generate.
9629 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9630 Adjust.
9631 (arm_deal_with_atomic_sequence_raw): Adjust.
9632 (thumb_get_next_pcs_raw): Adjust.
9633 (arm_get_next_pcs_raw): Adjust.
9634 (arm_get_next_pcs): Adjust.
9635 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
9636 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
9637 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
9638 (alpha_software_single_step): Adjust.
9639 * alpha-tdep.h (alpha_software_single_step): Adjust.
9640 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
9641 * arm-tdep.c (arm_software_single_step): Adjust.
9642 (arm_breakpoint_kind_from_current_state): Adjust.
9643 * arm-tdep.h (arm_software_single_step): Adjust.
9644 * breakpoint.c (insert_single_step_breakpoint): Adjust.
9645 * cris-tdep.c (cris_software_single_step): Adjust.
9646 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
9647 (micromips_deal_with_atomic_sequence): Adjust.
9648 (deal_with_atomic_sequence): Adjust.
9649 (mips_software_single_step): Adjust.
9650 * mips-tdep.h (mips_software_single_step): Adjust.
9651 * moxie-tdep.c (moxie_software_single_step): Adjust.
9652 * nios2-tdep.c (nios2_software_single_step): Adjust.
9653 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
9654 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
9655 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
9656 * s390-linux-tdep.c (s390_software_single_step): Adjust.
9657 * sparc-tdep.c (sparc_software_single_step): Adjust.
9658 * spu-tdep.c (spu_software_single_step): Adjust.
9659 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9660
9661 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9662
9663 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9664 * gdbarch.h: Re-generate.
9665
9666 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9667
9668 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9669 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9670 * python/py-instruction.c, python/py-instruction.h: New file.
9671 * python/py-record.c: Add py-instruction.h include.
9672 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9673 gdb.RecordInstruction.
9674 * python/python-internal.h: Add gdbpy_initialize_instruction
9675 declaration.
9676 * python/python.c (do_start_initialization): Add
9677 gdbpy_initialize_instruction.
9678
9679 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9680
9681 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9682 Remove.
9683 (btrace_func_from_recpy_func): New function.
9684 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9685 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9686 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9687 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9688 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9689 Also, use new helper functions.
9690 (btpy_list_item): Use new helper functions.
9691 (recpy_bt_function_call_history): Use new type name.
9692 (btpy_call_getset): Remove.
9693 (gdbpy_initialize_btrace): Remove code to initialize
9694 gdb.BtraceFunctionCall.
9695 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9696 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9697 recpy_bt_func_prev, recpy_bt_func_next): New export.
9698 * python/py-record.c (recpy_func_type): New static object.
9699 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9700 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9701 recpy_func_next): New function.
9702 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9703 (recpy_func_getset): New static object.
9704 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9705 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9706
9707 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9708
9709 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9710 (btpy_object, btpy_insn_type, btpy_new): Remove.
9711 (btpy_list_object): Use gdb.RecordInstruction type instead of
9712 gdb.BtraceInstruction type.
9713 (btrace_insn_from_recpy_insn): New function.
9714 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9715 btpy_new.
9716 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9717 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9718 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9719 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9720 instead of btpy_object.
9721 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9722 btpy_insn_data, btpy_insn_decode): Rename to ...
9723 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9724 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9725 recpy_bt_insn_decode): This. Also, use new helper functions.
9726 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9727 recpy_insn_type.
9728 (btpy_insn_getset): Remove.
9729 (gdbpy_initialize_btrace): Remove code to initialize
9730 gdb.BtraceInstruction. Use recpy_element_object.
9731 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9732 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9733 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9734 * python/py-record.c (recpy_insn_type): New static object.
9735 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9736 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9737 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9738 New function.
9739 (recpy_insn_getset): New static object.
9740 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9741 * python/py-record.h (recpy_element_object): New typedef.
9742 (recpy_insn_type, recpy_insn_new): New export.
9743
9744 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9745
9746 * py-record-btrace.c (btpy_insn_new): Removed.
9747 (btpy_insn_or_gap_new): New function.
9748 (btpy_insn_error): Removed.
9749 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9750 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9751 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9752 btpy_insn_or_gap_new instead of btpy_insn_new.
9753 (btpy_insn_getset): Remove btpy_insn_error.
9754 * py-record.c (recpy_gap_type): New static object.
9755 (recpy_gap_object): New typedef.
9756 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9757 recpy_gap_reason_string): New function.
9758 (recpy_gap_getset): New static object.
9759 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9760 * py-record.h (recpy_gap_new): New export.
9761
9762 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9763
9764 * python/py-record.c (recpy_ptid): Remove.
9765 (recpy_record_getset): Remove recpy_ptid.
9766
9767 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9768
9769 * btrace.c (btrace_fetch): Set inferior_ptid.
9770 * python/py-record-btrace.c: Add "py-record.h" include.
9771 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9772 recpy_bt_end, recpy_bt_instruction_history,
9773 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9774 in gdb.Record object instead of current ptid.
9775 * python/py-record.c: Include new "py-record.h" file.
9776 (recpy_record_object): Moved to py-record.h.
9777 * python/py-record.h: New file.
9778
9779 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9780
9781 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9782 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9783 indentation.
9784
9785 2017-05-01 Joel Brobecker <brobecker@adacore.com>
9786
9787 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9788 the past maintainers section.
9789
9790 2017-04-28 Yao Qi <yao.qi@linaro.org>
9791
9792 * infcmd.c (get_return_value): Use regcache ctor, and remove
9793 cleanup.
9794
9795 2017-04-28 Yao Qi <yao.qi@linaro.org>
9796 Pedro Alves <palves@redhat.com>
9797
9798 * regcache.c (regcache::regcache): New tag dispatch ctor.
9799 (do_cooked_read): Moved above.
9800 (regcache_dup): Use the tag dispatch ctor..
9801 * regcache.h (regcache): Declare ctor, delete copy ctor and
9802 assignment operator, remove friend regcache_dup.
9803
9804 2017-04-28 Yao Qi <yao.qi@linaro.org>
9805
9806 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9807 call method save instead of regcache_cpy.
9808 * regcache.h (struct regcache): Make regcache_dup a friend.
9809
9810 2017-04-28 Yao Qi <yao.qi@linaro.org>
9811
9812 * regcache.c (struct regcache): Move to regcache.h
9813 (regcache::arch): New method.
9814 (regcache_get_ptid): Update.
9815 (get_regcache_arch): Call arch method.
9816 (get_regcache_aspace): Call method aspace.
9817 (register_buffer): Change it to method.
9818 (regcache_save): Change it to regcache::save.
9819 (regcache_restore): Likewise.
9820 (regcache_cpy_no_passthrough): Remove the declaration.
9821 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9822 (regcache_cpy_no_passthrough): Change it to method
9823 cpy_no_passthrough.
9824 (regcache_register_status): Change it to method
9825 get_register_status.
9826 (regcache_invalidate): Change it to method invalidate.
9827 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9828 (regcache_raw_update): Change it to method raw_update.
9829 (regcache_raw_read): Likewise.
9830 (regcache_raw_read_signed): Likewise.
9831 (regcache_raw_read_unsigned): Likewise.
9832 (regcache_raw_write_signed): Likewise.
9833 (regcache_raw_write_unsigned): Likewise.
9834 (regcache_cooked_read): Likewise.
9835 (regcache_cooked_read_value): Likewise.
9836 (regcache_cooked_read_signed): Likewise.
9837 (regcache_cooked_read_unsigned): Likewise.
9838 (regcache_cooked_write_signed): Likewise.
9839 (regcache_cooked_write_unsigned): Likewise.
9840 (regcache_raw_set_cached_value): Likewise.
9841 (regcache_raw_write): Likewise.
9842 (regcache_cooked_write): Likewise.
9843 (regcache_xfer_part): Likewise.
9844 (regcache_raw_read_part): Likewise.
9845 (regcache_raw_write_part): Likewise.
9846 (regcache_cooked_read_part): Likewise.
9847 (regcache_cooked_write_part): Likewise.
9848 (regcache_raw_supply): Likewise.
9849 (regcache_raw_collect): Likewise.
9850 (regcache_transfer_regset): Likewise.
9851 (regcache_supply_regset): Likewise.
9852 (regcache_collect_regset): Likewise.
9853 (regcache_debug_print_register): Likewise.
9854 (enum regcache_dump_what): Move it to regcache.h.
9855 (regcache_dump): Change it to method dump.
9856 * regcache.h (enum regcache_dump_what): New.
9857 (class regcache): New.
9858 * target.c (target_fetch_registers): Call method
9859 debug_print_register.
9860 (target_store_registers): Likewise.
9861
9862 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9863
9864 * windows-nat.c (struct lm_info_windows): Initialize field.
9865 (windows_make_so): Allocate lm_info_windows with new.
9866 (windows_free_so): Free lm_info_windows with delete.
9867
9868 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9869
9870 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9871 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9872 cleanup.
9873 (darwin_free_so): Free lm_info_darwin with delete.
9874
9875 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9876
9877 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9878 <l_addr_p>: Change type to bool.
9879 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9880 (svr4_free_so): Free lm_info_svr4 with delete.
9881 (svr4_copy_library_list): Replace memcpy with call to copy
9882 constructor.
9883 (library_list_start_library, svr4_default_sos): Allocate
9884 lm_info_svr4 with new.
9885
9886 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9887
9888 * solib-target.c (struct lm_info_target): Add destructor,
9889 initialize fields.
9890 <name>: Change type to std::string.
9891 (library_list_start_library): Allocate lm_info_target with new.
9892 (solib_target_free_library_list): Free lm_info_target with
9893 delete.
9894 (solib_target_current_sos): Adapt to std::string.
9895 (solib_target_free_so): Free lm_info_target with delete.
9896
9897 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9898
9899 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9900 fields.
9901 (frv_current_sos): Allocate lm_info_frv with new.
9902 (frv_relocate_main_executable): Free lm_info_frv with delete,
9903 allocate with new.
9904 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9905
9906 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9907
9908 * solib-frv.c (struct lm_info_frv): Fix indentation.
9909
9910 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9911
9912 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9913 map field.
9914 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9915 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9916 and allocate with new.
9917 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9918
9919 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9920
9921 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9922 <filename, member_name>: Change type to std::string.
9923 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9924 (library_list_start_library): Allocate lm_info_aix with new.
9925 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9926 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9927 with copy constructor.
9928
9929 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9930
9931 * solist.h (struct lm_info): Remove.
9932 (struct lm_info_base): New class.
9933 (struct so_list) <lm_info>: Change type to lm_info_base *.
9934 * nto-tdep.c (struct lm_info): Remove.
9935 (lm_addr): Adjust.
9936 * solib-aix.c (struct lm_info): Rename to ...
9937 (struct lm_info_aix): ... this. Extend lm_info_base.
9938 (lm_info_p): Rename to ...
9939 (lm_info_aix_p): ... this, and adjust.
9940 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9941 solib_aix_parse_libraries, library_list_start_library,
9942 solib_aix_free_library_list, solib_aix_parse_libraries,
9943 solib_aix_get_library_list,
9944 solib_aix_relocate_section_addresses, solib_aix_free_so,
9945 solib_aix_get_section_offsets,
9946 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9947 Adjust.
9948 (struct solib_aix_inferior_data) <library_list>: Adjust.
9949 * solib-darwin.c (struct lm_info): Rename to ...
9950 (struct lm_info_darwin): ... this. Extend lm_info_base.
9951 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9952 * solib-dsbt.c (struct lm_info): Rename to ...
9953 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9954 (struct dsbt_info) <main_executable_lm_info): Adjust.
9955 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9956 dsbt_relocate_section_addresses): Adjust.
9957 * solib-frv.c (struct lm_info): Rename to ...
9958 (struct lm_info_frv): ... this. Extend lm_info_base.
9959 (main_executable_lm_info): Adjust.
9960 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9961 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9962 find_canonical_descriptor_in_load_object,
9963 frv_fdpic_find_canonical_descriptor): Adjust.
9964 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9965 to lm_info_svr4.
9966 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9967 svr4_clear_so, svr4_copy_library_list,
9968 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9969 svr4_current_sos, svr4_fetch_objfile_link_map,
9970 solist_update_incremental): Adjust.
9971 * solib-svr4.h (struct lm_info_svr4): Move here from
9972 solib-svr4.c.
9973 * solib-target.c (struct lm_info): Rename to ...
9974 (struct lm_info_target): ... this. Extend lm_info_base.
9975 (lm_info_p): Rename to ...
9976 (lm_info_target_p): ... this.
9977 (solib_target_parse_libraries, library_list_start_segment,
9978 library_list_start_section, library_list_start_library,
9979 library_list_end_library, solib_target_free_library_list,
9980 solib_target_current_sos, solib_target_free_so,
9981 solib_target_relocate_section_addresses): Adjust.
9982 * windows-nat.c (struct lm_info): Rename to ...
9983 (struct lm_info_windows): ... this. Extend lm_info_base.
9984 (windows_make_so, handle_load_dll, handle_unload_dll,
9985 windows_xfer_shared_libraries): Adjust.
9986
9987 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9988
9989 * solib-darwin.c (struct darwin_so_list): Remove.
9990 (darwin_current_sos): Allocate an so_list object instead of a
9991 darwin_so_list, separately allocate an lm_info object.
9992 (darwin_free_so): Free lm_info.
9993
9994 2017-04-28 John Baldwin <jhb@FreeBSD.org>
9995
9996 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
9997 with fprintf_filtered.
9998
9999 2017-04-28 Yao Qi <yao.qi@linaro.org>
10000
10001 * regcache.c (regcache::regcache): New function.
10002 (regcache::~regcache): New function.
10003 (regcache_xmalloc_1): Remove.
10004 (regcache_xmalloc): Call new regcache.
10005 (regcache_xfree): Call delete regcache.
10006 (get_thread_arch_aspace_regcache): Call new regcache.
10007
10008 2017-04-28 Yao Qi <yao.qi@linaro.org>
10009
10010 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
10011 lwp instead of ptid_get_lwp.
10012
10013 2017-04-28 Yao Qi <yao.qi@linaro.org>
10014
10015 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
10016 lwp_info instead of getting from inferior_ptid.
10017
10018 2017-04-27 Keith Seitz <keiths@redhat.com>
10019
10020 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
10021 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
10022 (CV_CONVERSION_BADNESS): Define.
10023 (rank_one_type): Remove overly restrictive rvalue reference
10024 rank checks.
10025 Add cv-qualifier checks and subranks for type equality.
10026 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
10027 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
10028 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
10029
10030 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
10031
10032 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
10033 count when creating the object.
10034
10035 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
10036 Ulrich Weigand <uweigand@de.ibm.com>
10037
10038 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
10039 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
10040 is used in AIX.
10041 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
10042 (process_xcoff_symbol): Likewise.
10043 (scan_xcoff_symtab): Likewise.
10044
10045 2017-04-26 Alan Hayward <alan.hayward@arm.com>
10046
10047 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
10048 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
10049 (ia64_access_reg): Use get_frame_register_unsigned.
10050 (ia64_access_rse_reg): Likewise.
10051 (ia64_libunwind_frame_prev_register): Likewise.
10052
10053 2017-04-26 Jiong Wang <jiong.wang@arm.com>
10054
10055 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
10056 * gdbarch.c: Regenerated.
10057 * gdbarch.h: Regenerated.
10058 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
10059 visibility external.
10060 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
10061 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
10062 (enum cfa_how_kind): Move to ...
10063 (struct dwarf2_frame_state_reg_info): Likewise.
10064 (struct dwarf2_frame_state): Likewise.
10065 * dwarf2-frame.h: ... here.
10066 (dwarf2_frame_state_alloc_regs): New declaration.
10067 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
10068 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
10069
10070 2017-04-26 Alan Hayward <alan.hayward@arm.com>
10071
10072 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
10073 regcache_raw_read_unsigned.
10074 (xtensa_pseudo_register_write): Likewise.
10075
10076 2017-04-26 Alan Hayward <alan.hayward@arm.com>
10077
10078 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
10079 (nds32_pseudo_register_write): Likewise.
10080
10081 2017-04-25 Yao Qi <yao.qi@linaro.org>
10082
10083 * regcache.c (struct regcache) <readonly_p>: Change its type
10084 to bool.
10085 (regcache_xmalloc_1): Update parameter type and callers update.
10086
10087 2017-04-25 Yao Qi <yao.qi@linaro.org>
10088
10089 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10090 set_gdbarch_wchar_bit.
10091 * arm-tdep.c (arm_gdbarch_init): Likewise.
10092
10093 2017-04-25 Pedro Alves <palves@redhat.com>
10094
10095 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
10096 (BothAreRelocatable, memcopy, memmove): Don't define.
10097 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
10098 macros.
10099
10100 2017-04-25 Pedro Alves <palves@redhat.com>
10101
10102 * common/common-defs.h: Include "common/poison.h".
10103 * common/function-view.h: (Not, Or, Requires): Move to traits.h
10104 and adjust.
10105 * common/poison.h: New file.
10106 * common/traits.h: Include <type_traits>.
10107 (Not, Or, Requires): New, moved from common/function-view.h.
10108
10109 2017-04-25 Pedro Alves <palves@redhat.com>
10110
10111 * breakpoint.h (struct breakpoint): In-class initialize all
10112 fields. Make boolean fields "bool".
10113 * breakpoint.c (init_raw_breakpoint_without_location): Remove
10114 memset call and initializations no longer necessary.
10115
10116 2017-04-25 Pedro Alves <palves@redhat.com>
10117
10118 * btrace.c (pt_btrace_insn_flags): Change parameter type to
10119 reference.
10120 (pt_btrace_insn): New function.
10121 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
10122
10123 2017-04-25 Pedro Alves <palves@redhat.com>
10124
10125 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
10126 "base" field and inherit from "bp_location" instead. Add
10127 non-default ctor.
10128 (allocate_location_exception): Use new non-default ctor.
10129 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
10130 (init_bp_location): Convert to ...
10131 (bp_location::bp_location): ... this new ctor, and remove memset
10132 call.
10133 (base_breakpoint_allocate_location): Use the new non-default ctor.
10134 * breakpoint.h (bp_location): Now a class. Declare default and
10135 non-default ctors. In-class initialize all members.
10136 (init_bp_location): Remove declaration.
10137
10138 2017-04-25 Pedro Alves <palves@redhat.com>
10139
10140 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
10141 assignment operator.
10142
10143 2017-04-24 Yao Qi <yao.qi@linaro.org>
10144
10145 * doublest.c (convert_doublest_to_floatformat): Call
10146 floatformat_totalsize_bytes.
10147
10148 2017-04-22 Tom Tromey <tom@tromey.com>
10149
10150 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
10151 ui_out_emit_list.
10152 * stack.c (print_frame): Use ui_out_emit_list.
10153 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
10154 ui_out_emit_list.
10155 * mi/mi-main.c (print_one_inferior)
10156 (mi_cmd_data_list_register_names)
10157 (mi_cmd_data_list_register_values, mi_cmd_list_features)
10158 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
10159 ui_out_emit_list.
10160 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
10161 (mi_output_solib_attribs): Use ui_out_emit_list,
10162 ui_out_emit_tuple.
10163 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
10164 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
10165 (mi_cmd_stack_list_args, list_args_or_locals): Use
10166 ui_out_emit_list.
10167 * disasm.c (do_assembly_only): Use ui_out_emit_list.
10168 * breakpoint.c (print_solib_event, output_thread_groups): Use
10169 ui_out_emit_list.
10170
10171 2017-04-22 Tom Tromey <tom@tromey.com>
10172
10173 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
10174 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
10175 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
10176
10177 2017-04-22 Tom Tromey <tom@tromey.com>
10178
10179 * tracepoint.c (tvariables_info_1)
10180 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
10181
10182 2017-04-22 Tom Tromey <tom@tromey.com>
10183
10184 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
10185 annotate_arg_emitter.
10186 * breakpoint.c (print_mention_watchpoint)
10187 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
10188 * annotate.h (struct annotate_arg_emitter): New.
10189
10190 2017-04-22 Tom Tromey <tom@tromey.com>
10191
10192 * record-btrace.c (record_btrace_insn_history)
10193 (record_btrace_insn_history_range, record_btrace_call_history)
10194 (record_btrace_call_history_range): Use ui_out_emit_tuple.
10195 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
10196 ui_out_emit_tuple.
10197 * stack.c (print_frame_info): Use ui_out_emit_tuple.
10198 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
10199 * skip.c (skip_info): Use ui_out_emit_tuple.
10200 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
10201 * progspace.c (print_program_space): Use ui_out_emit_tuple.
10202 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
10203 * osdata.c (info_osdata): Use ui_out_emit_tuple.
10204 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
10205 ui_out_emit_tuple.
10206 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
10207 (output_register, mi_cmd_data_read_memory)
10208 (mi_cmd_data_read_memory_bytes, mi_load_progress)
10209 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
10210 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
10211 Use ui_out_emit_tuple.
10212 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
10213 ui_out_emit_tuple.
10214 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
10215 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
10216 * linux-thread-db.c (info_auto_load_libthread_db): Use
10217 ui_out_emit_tuple.
10218 * inferior.c (print_inferior): Use ui_out_emit_tuple.
10219 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
10220 * disasm.c (do_mixed_source_and_assembly_deprecated)
10221 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
10222 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
10223 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
10224 * breakpoint.c (print_one_breakpoint_location)
10225 (print_one_breakpoint): Use ui_out_emit_tuple.
10226 * auto-load.c (print_script, info_auto_load_cmd): Use
10227 ui_out_emit_tuple.
10228 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
10229
10230 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
10231
10232 * thread.c (print_thread_info_1): Remove dead code.
10233
10234 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10235
10236 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
10237 GDB_SELF_TEST.
10238 * arm-tdep.c (selftests::arm_record_test): Likewise.
10239
10240 2017-04-21 Yao Qi <yao.qi@linaro.org>
10241
10242 * regcache.c (regcache_restore): Remove argument 2. Replace
10243 argument 3 with regcache. Get register status from
10244 src->register_status and get register contents from
10245 register_buffer (src, regnum).
10246 (regcache_cpy): Update.
10247
10248 2017-04-19 Pedro Alves <palves@redhat.com>
10249
10250 * gdbthread.h (thread): Add missing closing parenthesis in
10251 comment.
10252
10253 2017-04-19 Pedro Alves <palves@redhat.com>
10254
10255 * common/refcounted-object.h: New file.
10256 * gdbthread.h: Include "common/refcounted-object.h".
10257 (thread_info): Inherit from refcounted_object and add comments.
10258 (thread_info::incref, thread_info::decref)
10259 (thread_info::m_refcount): Delete.
10260 (thread_info::deletable): Use the refcounted_object::refcount()
10261 method.
10262 * inferior.c (current_inferior_): Add comment.
10263 (set_current_inferior): Increment/decrement refcounts.
10264 (prune_inferiors, remove_inferior_command): Skip inferiors marked
10265 not-deletable instead of comparing with the current inferior.
10266 (initialize_inferiors): Increment the initial inferior's refcount.
10267 * inferior.h (struct inferior): Forward declare.
10268 Include "common/refcounted-object.h".
10269 (current_inferior, set_current_inferior): Move declaration to
10270 before struct inferior's definition, and fix comment.
10271 (inferior): Inherit from refcounted_object. Add comments.
10272 * thread.c (switch_to_thread_no_regs): Reference the thread's
10273 inferior pointer directly instead of doing a ptid lookup.
10274 (switch_to_no_thread): New function.
10275 (switch_to_thread(thread_info *)): New function, factored out
10276 from ...
10277 (switch_to_thread(ptid_t)): ... this.
10278 (restore_current_thread): Delete.
10279 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
10280 fields, and add 'inf' field.
10281 (do_restore_current_thread_cleanup): Check whether old->inf is
10282 alive instead of looking up an inferior by ptid. Use
10283 switch_to_thread and switch_to_no_thread.
10284 (restore_current_thread_cleanup_dtor): Use old->inf directly
10285 instead of lookup up an inferior by id. Decref the inferior.
10286 Don't restore 'removable'.
10287 (make_cleanup_restore_current_thread): Same the inferior pointer
10288 in old, instead of the inferior number. Incref the inferior.
10289 Don't save/clear 'removable'.
10290
10291 2017-04-19 Pedro Alves <palves@redhat.com>
10292
10293 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10294 unittests/scoped_restore-selftests.c.
10295 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
10296 * common/scoped_restore.h (scoped_restore_base): Make "class".
10297 (scoped_restore_base::release): New public method.
10298 (scoped_restore_base::scoped_restore_base): New protected ctor.
10299 (scoped_restore_base::m_saved_var): New protected field.
10300 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
10301 scoped_restore_base base class instead of m_saved_var directly.
10302 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
10303 (scoped_restore_tmpl::scoped_restore_tmpl(const
10304 scoped_restore_tmpl<T>&)): Likewise.
10305 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
10306 method.
10307 (scoped_restore_tmpl::saved_var): New method.
10308 (scoped_restore_tmpl::m_saved_var): Delete.
10309 * inferior.h (inferior::detaching): Now a bool.
10310 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
10311 cleanup.
10312 * unittests/scoped_restore-selftests.c: New file.
10313
10314 2017-04-19 Pedro Alves <palves@redhat.com>
10315
10316 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
10317 Re-sort in alphabetic order.
10318
10319 2017-04-18 Pedro Alves <palves@redhat.com>
10320
10321 * xml-support.c (obstack_xml_printf): Delete.
10322 * xml-support.h (obstack_xml_printf): Delete.
10323
10324 2017-04-18 Pedro Alves <palves@redhat.com>
10325
10326 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
10327 vdebug, verror, body_text, start_element, end_element, name,
10328 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
10329 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
10330 is_xinclude>: Make private and add m_ prefix.
10331 (gdb_xml_parser::body_text): New method, based on ...
10332 (gdb_xml_body_text): ... this. Adjust.
10333 (gdb_xml_parser::vdebug): New method, based on ...
10334 (gdb_xml_debug): ... this. Adjust.
10335 (gdb_xml_parser::verror): New method, based on ...
10336 (gdb_xml_error): ... this. Adjust.
10337 (gdb_xml_parser::start_element): New method, based on ...
10338 (gdb_xml_start_element): ... this. Adjust.
10339 (gdb_xml_start_element_wrapper): Defer to
10340 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
10341 (gdb_xml_parser::end_element): New method, based on ...
10342 (gdb_xml_end_element_wrapper): ... this. Adjust.
10343 (gdb_xml_parser::~gdb_xml_parser): Adjust.
10344 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
10345 (gdb_xml_parser::use_dtd): New method, based on ...
10346 (gdb_xml_use_dtd): ... this. Adjust.
10347 (gdb_xml_parser::parse): New method, based on ...
10348 (gdb_xml_parse): ... this. Adjust.
10349 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
10350 (xinclude_start_include): Adjust to call the parser's name method.
10351 (xml_xinclude_default, xml_xinclude_start_doctype)
10352 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
10353 method.
10354 (xml_process_xincludes): Adjust to call parser methods.
10355 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
10356 declarations.
10357
10358 2017-04-18 Pedro Alves <palves@redhat.com>
10359
10360 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
10361 gdb::optional<std::string>.
10362 * xml-support.c: Include <string>.
10363 (scope_level::scope_level(scope_level &&))
10364 (scope_level::~scope_level): Delete.
10365 (scope_level::body): Now a std::string.
10366 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
10367 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
10368 parameter.
10369 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
10370 (xinclude_parsing_data::output): Now a std::string reference.
10371 (xinclude_start_include): Adjust.
10372 (xml_xinclude_default): Adjust.
10373 (xml_process_xincludes): Add 'output' parameter, and return bool.
10374 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
10375 and return bool.
10376 * xml-tdesc.c: Include <unordered_map> and <string>.
10377 (tdesc_xml_cache): Delete.
10378 (tdesc_xml_cache_s): Delete.
10379 (xml_cache): Now an std::unordered_map.
10380 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
10381 (target_fetch_description_xml): Change return type to
10382 gdb::optional<std::string>, and adjust.
10383 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
10384 (target_fetch_description_xml): Change return type to
10385 gdb::optional<std::string>.
10386
10387 2017-04-18 Pedro Alves <palves@redhat.com>
10388
10389 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10390 unittests/optional-selftests.c.
10391 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
10392 * unittests/optional-selftests.c: New file.
10393 * unittests/optional/assignment/1.cc: New file.
10394 * unittests/optional/assignment/2.cc: New file.
10395 * unittests/optional/assignment/3.cc: New file.
10396 * unittests/optional/assignment/4.cc: New file.
10397 * unittests/optional/assignment/5.cc: New file.
10398 * unittests/optional/assignment/6.cc: New file.
10399 * unittests/optional/assignment/7.cc: New file.
10400 * unittests/optional/cons/copy.cc: New file.
10401 * unittests/optional/cons/default.cc: New file.
10402 * unittests/optional/cons/move.cc: New file.
10403 * unittests/optional/cons/value.cc: New file.
10404 * unittests/optional/in_place.cc: New file.
10405 * unittests/optional/observers/1.cc: New file.
10406 * unittests/optional/observers/2.cc: New file.
10407
10408 2017-04-18 Pedro Alves <palves@redhat.com>
10409
10410 * common/gdb_optional.h: Include common/traits.h.
10411 (in_place_t): New type.
10412 (in_place): New constexpr variable.
10413 (optional::optional): Remove member initialization of
10414 m_instantiated.
10415 (optional::optional(in_place_t...)): New constructor.
10416 (optional::~optional): Use reset.
10417 (optional::optional(const optional&)): New.
10418 (optional::optional(const optional&&)): New.
10419 (optional::optional(T &)): New.
10420 (optional::optional(T &&)): New.
10421 (operator::operator=(const optional &)): New.
10422 (operator::operator=(optional &&)): New.
10423 (operator::operator= (const T &))
10424 (operator::operator= (T &&))
10425 (operator::emplace (Args &&... args)): Return a T&. Use reset.
10426 (operator::reset): New.
10427 (operator::m_instantiated):: Add in-class initializer.
10428 * common/traits.h: Include <type_traits>.
10429 (struct And): New types.
10430
10431 2017-04-18 Pedro Alves <palves@redhat.com>
10432
10433 * xml-support.c: Include <vector>.
10434 (scope_level::scope_level(const gdb_xml_element *))
10435 (scope_level::scope_level(scope_level&&)): New.
10436 (scope_level::~scope_level): New.
10437 (scope_level_s): Delete.
10438 (gdb_xml_parser::scopes): Now a std::vector.
10439 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
10440 Use std::vector.
10441 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
10442 scope cleanup code.
10443 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
10444 of the scopes member. Use std::vector::emplace_back.
10445
10446 2017-04-18 Pedro Alves <palves@redhat.com>
10447
10448 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
10449 a bool.
10450 (gdb_xml_end_element): Change type of first parameter.
10451 (gdb_xml_cleanup): Rename to ...
10452 (gdb_xml_parser::~gdb_xml_parser): ... this.
10453 (gdb_xml_create_parser_and_cleanup): Delete with ...
10454 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
10455 to this new ctor.
10456 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
10457 using gdb_xml_create_parser_and_cleanup.
10458 (xinclude_parsing_data): Add ctor/dtor.
10459 (xml_xinclude_cleanup): Delete.
10460 (xml_process_xincludes): Create a local xinclude_parsing_data
10461 instead of heap-allocating one. Create a local gdb_xml_parser
10462 instead of heap-allocating one with
10463 gdb_xml_create_parser_and_cleanup.
10464
10465 2017-04-18 John Baldwin <jhb@FreeBSD.org>
10466
10467 PR threads/20743
10468 * fbsd-nat.c (resume_one_thread_cb): Remove.
10469 (resume_all_threads_cb): Remove.
10470 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
10471 iterate_over_threads.
10472
10473 2017-04-17 Joel Brobecker <brobecker@adacore.com>
10474
10475 * NEWS: Create a new section for the next release branch.
10476 Rename the section of the current branch, now that it has
10477 been cut.
10478
10479 2017-04-17 Joel Brobecker <brobecker@adacore.com>
10480
10481 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
10482 * version.in: Bump version to 8.0.50.DATE-git.
10483
10484 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
10485
10486 PR gdb/21385
10487 * windows-nat.c (windows_create_inferior): Declare 'allargs'
10488 independently of the host, and fix build breakage on Cygwin.
10489
10490 2017-04-13 Pedro Alves <palves@redhat.com>
10491
10492 * inferior.c (free_inferior): Convert to ...
10493 (inferior::~inferior): ... this dtor.
10494 (inferior::inferior): New ctor, factored out from ...
10495 (add_inferior_silent): ... here. Allocate the inferior with a new
10496 expression.
10497 (delete_inferior): Call delete instead of free_inferior.
10498 * inferior.h (gdb_environ, continuation): Forward declare.
10499 (inferior): Now a class. Add in-class initialization to all
10500 members. Make boolean fields bool, except 'detaching'.
10501 (inferior::inferior): New explicit ctor.
10502 (inferior::~inferior): New.
10503
10504 2017-04-13 Pedro Alves <palves@redhat.com>
10505
10506 * inferior.c (init_inferior_list): Delete.
10507 * inferior.h (init_inferior_list): Delete.
10508
10509 2017-04-13 Pedro Alves <palves@redhat.com>
10510
10511 PR threads/13217
10512 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
10513 (top level): Call it twice, with different thread sets.
10514
10515 2017-04-13 Pedro Alves <palves@redhat.com>
10516
10517 * thread.c: Include <algorithm>.
10518 (thread_array_cleanup): Delete.
10519 (scoped_inc_dec_ref): New class.
10520 (live_threads_count): New function.
10521 (set_thread_refcount): Delete.
10522 (tp_array_compar_ascending): Now a bool.
10523 (tp_array_compar): Convert to a std::sort comparison function.
10524 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
10525 and live_threads_count.
10526
10527 2017-04-13 Pedro Alves <palves@redhat.com>
10528
10529 * infrun.c (follow_fork_inferior): Also switch the current
10530 inferior.
10531
10532 2017-04-13 Pedro Alves <palves@redhat.com>
10533
10534 * breakpoint.c (watch_command_1): Save watchpoint-frame info
10535 before calling create_internal_breakpoint.
10536
10537 2017-04-13 Pedro Alves <palves@redhat.com>
10538
10539 * fork-child.c (execv_argv): New class.
10540 (breakup_args): Refactored as ...
10541 (execv_argv::init_for_no_shell): .. this method of execv_argv.
10542 Copy arguments to storage and replace separators with NULL
10543 terminators in place.
10544 (escape_bang_in_quoted_argument): Adjust to return bool.
10545 (execv_argv::execv_argv): New ctor.
10546 (execv_argv::init_for_shell): New method, factored out from
10547 fork_inferior. Don't strdup strings into the vector.
10548 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
10549 Remove free_vector_argv call.
10550
10551 2017-04-13 Yao Qi <yao.qi@linaro.org>
10552
10553 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
10554 tdep->rx_psw_type.
10555
10556 2017-04-13 Yao Qi <yao.qi@linaro.org>
10557
10558 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
10559 * rx-tdep.c (rx_gdbarch_init): Likewise.
10560
10561 2017-04-13 Pedro Alves <palves@redhat.com>
10562
10563 * breakpoint.h (struct breakpoint): Reindent.
10564
10565 2017-04-13 Pedro Alves <palves@redhat.com>
10566
10567 * breakpoint.c (bp_location): Rename to ...
10568 (bp_locations): ... this. All references updated.
10569 (bp_location_count): Rename to ...
10570 (bp_locations_count): ... this. All references updated.
10571 (bp_location_placed_address_before_address_max): Rename to ...
10572 (bp_locations_placed_address_before_address_max): ... this. All
10573 references updated.
10574 (bp_location_shadow_len_after_address_max): Rename to ...
10575 (bp_locations_shadow_len_after_address_max): ... this. All
10576 references updated.
10577 (bp_location_compare_addrs): Rename to ...
10578 (bp_locations_compare_addrs): ... this. All references updated.
10579 (bp_location_compare):Rename to ...
10580 (bp_locations_compare): ... this. All references updated.
10581 (bp_location_target_extensions_update): Rename to ...
10582 (bp_locations_target_extensions_update): ... this. All references
10583 updated.
10584
10585 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10586
10587 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
10588 * common/common.m4: Check headers 'termios.h', 'termio.h' and
10589 'sgtty.h'.
10590 * common/gdb_termios.h: New file, with parts of "terminal.h".
10591 * inflow.c: Include "gdb_termios.h".
10592 * ser-unix.c: Include "gdb_termios.h".
10593 * terminal.h: Move terminal-related defines to
10594 "common/gdb_termios.h".
10595
10596 2017-04-12 Tom Tromey <tom@tromey.com>
10597
10598 * probe.c (parse_probes): Update.
10599 * location.h (delete_event_location): Don't declare.
10600 (event_location_deleter::operator()): Update.
10601 * location.c (event_location_deleter::operator()): Rename from
10602 delete_event_location.
10603 * linespec.h (linespec_result) <location>: Change type to
10604 event_location_up.
10605 * linespec.c (canonicalize_linespec, event_location_to_sals)
10606 (decode_objc): Update.
10607 (linespec_result): Don't call delete_event_location.
10608 * breakpoint.c (create_breakpoints_sal)
10609 (bkpt_probe_create_sals_from_location)
10610 (strace_marker_create_sals_from_location): Update.
10611
10612 2017-04-12 Tom Tromey <tom@tromey.com>
10613
10614 * linespec.h (struct linespec_result): Add constructor and
10615 destructor.
10616 (init_linespec_result, destroy_linespec_result)
10617 (make_cleanup_destroy_linespec_result): Don't declare.
10618 * linespec.c (init_linespec_result): Remove.
10619 (linespec_result::~linespec_result): Rename from
10620 destroy_linespec_result. Update.
10621 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
10622 Remove.
10623 * breakpoint.c (create_breakpoint, break_range_command)
10624 (decode_location_default): Update.
10625 * ax-gdb.c (agent_command_1): Update.
10626
10627 2017-04-12 Tom Tromey <tom@tromey.com>
10628
10629 * remote.c (remote_download_tracepoint): Update.
10630 * python/py-breakpoint.c (bppy_get_location): Update.
10631 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
10632 (gdbscm_breakpoint_location): Update.
10633 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
10634 * breakpoint.h (struct breakpoint) <location, location_range_end>:
10635 Change type to event_location_up.
10636 * breakpoint.c (create_overlay_event_breakpoint)
10637 (create_longjmp_master_breakpoint)
10638 (create_std_terminate_master_breakpoint)
10639 (create_exception_master_breakpoint)
10640 (breakpoint_event_location_empty_p, print_breakpoint_location)
10641 (print_one_breakpoint_location, create_thread_event_breakpoint)
10642 (init_breakpoint_sal, create_breakpoint)
10643 (print_recreate_ranged_breakpoint, break_range_command)
10644 (init_ada_exception_breakpoint, say_where): Update.
10645 (base_breakpoint_dtor): Don't call delete_event_location.
10646 (bkpt_print_recreate, tracepoint_print_recreate)
10647 (dprintf_print_recreate, update_static_tracepoint)
10648 (breakpoint_re_set_default): Update.
10649
10650 2017-04-12 Tom Tromey <tom@tromey.com>
10651
10652 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10653 type of "to_do". Update.
10654 (compute_stack_depth): Use std::vector.
10655
10656 2017-04-12 Tom Tromey <tom@tromey.com>
10657
10658 * printcmd.c (find_instruction_backward): Use std::vector.
10659
10660 2017-04-12 Tom Tromey <tom@tromey.com>
10661
10662 * symfile.c (objfilep): Remove typedef.
10663 (reread_symbols): Use a std::vector.
10664
10665 2017-04-12 Tom Tromey <tom@tromey.com>
10666
10667 * mi/mi-main.c (exec_direction_forward): Remove.
10668 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10669 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10670 scoped_restore.
10671 * guile/guile.c (guile_repl_command, guile_command)
10672 (gdbscm_execute_gdb_command): Use scoped_restore.
10673 * go-exp.y (go_parse): Use scoped_restore.
10674 * d-exp.y (d_parse): Use scoped_restore.
10675 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10676 * c-exp.y (c_parse): Use scoped_restore.
10677
10678 2017-04-12 Tom Tromey <tom@tromey.com>
10679
10680 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10681 (mi_parse): Update return type.
10682 (mi_parse_free): Remove.
10683 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10684 (mi_parse::~mi_parse): Rename from mi_parse_free.
10685 (mi_parse_cleanup): Remove.
10686 (mi_parse): Return a unique_ptr. Use new.
10687 * mi/mi-main.c (mi_execute_command): Update.
10688
10689 2017-04-12 Tom Tromey <tom@tromey.com>
10690
10691 * location.c (explicit_location_lex_one): Return a
10692 unique_xmalloc_ptr.
10693 (string_to_explicit_location): Update. Remove cleanups.
10694
10695 2017-04-12 Tom Tromey <tom@tromey.com>
10696
10697 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10698 (compare_value_and_voffset): Change type. Update.
10699 (compute_vtable_size): Change type of "offset_vec".
10700 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10701 (gnuv3_get_typeid): Remove extraneous declaration.
10702
10703 2017-04-12 Tom Tromey <tom@tromey.com>
10704
10705 * charset.h (wchar_iterator): Fix comment.
10706
10707 2017-04-12 Tom Tromey <tom@tromey.com>
10708
10709 * charset.c (iconv_wrapper): New class.
10710 (cleanup_iconv): Remove.
10711 (convert_between_encodings): Use it.
10712
10713 2017-04-12 Tom Tromey <tom@tromey.com>
10714
10715 * symfile.h (increment_reading_symtab): Update type.
10716 * symfile.c (decrement_reading_symtab): Remove.
10717 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10718 * psymtab.c (psymtab_to_symtab): Update.
10719 * dwarf2read.c (dw2_instantiate_symtab): Update.
10720
10721 2017-04-12 Tom Tromey <tom@tromey.com>
10722
10723 * jit.c (struct jit_reader): Declare separately. Add constructor
10724 and destructor. Change type of "handle".
10725 (loaded_jit_reader): Define separately.
10726 (jit_reader_load): Update. New "new".
10727 (jit_reader_unload_command): Use "delete".
10728 * gdb-dlfcn.h (struct dlclose_deleter): New.
10729 (gdb_dlhandle_up): New typedef.
10730 (gdb_dlopen, gdb_dlsym): Update types.
10731 (gdb_dlclose): Remove.
10732 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10733 (gdb_dlsym): Change type of "handle".
10734 (make_cleanup_dlclose): Remove.
10735 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10736 * compile/compile-c-support.c (load_libcc): Update.
10737
10738 2017-04-12 Tom Tromey <tom@tromey.com>
10739
10740 * symtab.h (find_pcs_for_symtab_line): Change return type.
10741 * symtab.c (find_pcs_for_symtab_line): Change return type.
10742 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10743 type of "vec". Update.
10744 (ltpy_get_pcs_for_line): Update.
10745 * linespec.c (decode_digits_ordinary): Update.
10746
10747 2017-04-12 Tom Tromey <tom@tromey.com>
10748
10749 * tracepoint.c (actions_command): Update.
10750 * python/python.c (python_command, python_interactive_command):
10751 Update.
10752 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10753 * guile/guile.c (guile_command): Update.
10754 * defs.h (read_command_lines, read_command_lines_1): Return
10755 command_line_up.
10756 (command_lines_deleter): New struct.
10757 (command_line_up): New typedef.
10758 * compile/compile.c (compile_code_command)
10759 (compile_print_command): Update.
10760 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10761 command_line_up.
10762 (make_cleanup_free_command_lines): Remove.
10763 * cli/cli-script.c (get_command_line, read_command_lines_1)
10764 (copy_command_lines): Return command_line_up.
10765 (while_command, if_command, read_command_lines, define_command)
10766 (document_command): Update.
10767 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10768 Remove.
10769 * breakpoint.h (breakpoint_set_commands): Change type of
10770 "commands".
10771 * breakpoint.c (breakpoint_set_commands): Change type of
10772 "commands". Update.
10773 (do_map_commands_command, update_dprintf_command_list)
10774 (create_tracepoint_from_upload): Update.
10775
10776 2017-04-12 Tom Tromey <tom@tromey.com>
10777
10778 * tracepoint.c (scope_info): Update.
10779 * spu-tdep.c (spu_catch_start): Update.
10780 * python/python.c (gdbpy_decode_line): Update.
10781 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10782 * python/py-breakpoint.c (bppy_init): Update.
10783 * probe.c (parse_probes): Update.
10784 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10785 * location.h (event_location_deleter): New struct.
10786 (event_location_up): New typedef.
10787 (new_linespec_location, new_address_location, new_probe_location)
10788 (new_explicit_location, copy_event_location)
10789 (string_to_event_location, string_to_event_location_basic)
10790 (string_to_explicit_location): Update return type.
10791 (make_cleanup_delete_event_location): Remove.
10792 * location.c (new_linespec_location, new_address_location)
10793 (new_probe_location, new_explicit_location, copy_event_location):
10794 Return event_location_up.
10795 (delete_event_location_cleanup)
10796 (make_cleanup_delete_event_location): Remove.
10797 (string_to_explicit_location, string_to_event_location_basic)
10798 (string_to_event_location): Return event_location_up.
10799 * linespec.c (canonicalize_linespec, event_location_to_sals)
10800 (decode_line_with_current_source)
10801 (decode_line_with_last_displayed, decode_objc): Update.
10802 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10803 * completer.c (location_completer): Update.
10804 * cli/cli-cmds.c (edit_command, list_command): Update.
10805 * breakpoint.c (create_overlay_event_breakpoint)
10806 (create_longjmp_master_breakpoint)
10807 (create_std_terminate_master_breakpoint)
10808 (create_exception_master_breakpoint)
10809 (create_thread_event_breakpoint): Update.
10810 (init_breakpoint_sal): Update. Remove some dead code.
10811 (create_breakpoint_sal): Change type of "location". Update.
10812 (create_breakpoints_sal, create_breakpoint, break_command_1)
10813 (dprintf_command, break_range_command, until_break_command)
10814 (init_ada_exception_breakpoint)
10815 (strace_marker_create_sals_from_location)
10816 (update_static_tracepoint, trace_command, ftrace_command)
10817 (strace_command, create_tracepoint_from_upload): Update.
10818 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10819 * ax-gdb.c (agent_command_1): Update.
10820
10821 2017-04-12 Pedro Alves <palves@redhat.com>
10822
10823 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10824 * configure.tgt: Handle i[34567]86-*-go32* and
10825 i[34567]86-*-msdosdjgpp*.
10826 * i386-tdep.c (i386_svr4_reg_to_regnum):
10827 Make extern.
10828 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10829 i386-go32-tdep.c.
10830 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10831 * i386-go32-tdep.c: New file.
10832 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10833 declarations.
10834
10835 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10836
10837 * aix-thread.c (pd_status2str): Change return type to const char *.
10838
10839 2017-04-12 Pedro Alves <palves@redhat.com>
10840
10841 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10842 calls to set_gdbarch_gnu_triplet_regexp.
10843
10844 2017-04-12 Pedro Alves <palves@redhat.com>
10845
10846 PR gdb/21323
10847 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10848 New enum value.
10849 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10850 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10851 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10852 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10853 * gdbarch.h, gdbarch.c: Regenerate.
10854 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10855 gdbarch_wchar_bit and gdbarch_wchar_signed.
10856 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10857 * arm-tdep.c (arm_gdbarch_init): Likewise.
10858 * avr-tdep.c (avr_gdbarch_init): Likewise.
10859 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10860 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10861 * i386-tdep.c (i386_go32_init_abi): Likewise.
10862 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10863 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10864 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10865 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10866 * sh-tdep.c (sh_gdbarch_init): Likewise.
10867 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10868 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10869 * windows-tdep.c (windows_init_abi): Likewise.
10870 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10871
10872 2017-04-12 Pedro Alves <palves@redhat.com>
10873
10874 PR c++/21323
10875 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10876 cplus_primitive_type_char32_t>: New enum values.
10877 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10878 and cplus_primitive_type_char32_t.
10879 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10880 32, use the archtecture's built-in type for char16_t and char32_t,
10881 respectively. Otherwise, fallback to init_integer_type as before,
10882 but make the type unsigned, and issue a complaint.
10883 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10884
10885 2017-04-12 Alan Hayward <alan.hayward@arm.com>
10886
10887 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
10888 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10889
10890 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10891
10892 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10893 'const char *'.
10894
10895 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10896
10897 * common/common-utils.c (free_vector_argv): New function.
10898 * common/common-utils.h: Include <vector>.
10899 (free_vector_argv): New prototype.
10900 * darwin-nat.c (darwin_create_inferior): Rewrite function
10901 prototype in order to constify "exec_file" and accept a
10902 "std::string" for "allargs".
10903 * fork-child.c: Include <vector>.
10904 (breakup_args): Rewrite function, using C++.
10905 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10906 and accept "std::string" for "allargs". Update the code to
10907 calculate "argv" based on "allargs". Update calls to "exec_fun"
10908 and "execvp".
10909 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10910 order to constify "exec_file" and accept a "std::string" for
10911 "allargs".
10912 * go32-nat.c (go32_create_inferior): Likewise.
10913 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10914 * infcmd.c (run_command_1): Constify "exec_file". Use
10915 "std::string" for inferior arguments.
10916 * inferior.h (fork_inferior): Update prototype.
10917 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10918 prototype in order to constify "exec_file" and accept a
10919 "std::string" for "allargs".
10920 * nto-procfs.c (procfs_create_inferior): Likewise.
10921 * procfs.c (procfs_create_inferior): Likewise.
10922 * remote-sim.c (gdbsim_create_inferior): Likewise.
10923 * remote.c (extended_remote_run): Update code to accept
10924 "std::string" as argument.
10925 (extended_remote_create_inferior): Rewrite function prototype in
10926 order to constify "exec_file" and accept a "std::string" for
10927 "allargs".
10928 * rs6000-nat.c (super_create_inferior): Likewise.
10929 (rs6000_create_inferior): Likewise.
10930 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10931 * windows-nat.c (windows_create_inferior): Likewise.
10932
10933 2017-04-11 Pedro Alves <palves@redhat.com>
10934
10935 * thread.c: Fix whitespace throughout.
10936
10937 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10938
10939 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10940
10941 2017-04-11 Alan Hayward <alan.hayward@arm.com>
10942
10943 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10944
10945 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10946
10947 PR gdb/21364
10948 * osdata.c (info_osdata): Check if 'type' is an empty string
10949 instead of NULL.
10950
10951 2017-04-10 Pedro Alves <palves@redhat.com>
10952
10953 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10954 (ptid_to_global_thread_id, in_thread_list)
10955 (do_captured_list_thread_ids, set_resumed, set_running)
10956 (set_executing, set_stop_requested, finish_thread_state)
10957 (validate_registers_access, can_access_registers_ptid)
10958 (print_thread_info_1, switch_to_thread)
10959 (do_restore_current_thread_cleanup)
10960 (make_cleanup_restore_current_thread, thread_command)
10961 (thread_name_command): Use operator== instead of ptid_equal.
10962
10963 2017-04-10 Pedro Alves <palves@redhat.com>
10964
10965 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10966 (current_thread_cleanup_chain): Delete.
10967 (restore_current_thread_cleanup_dtor)
10968 (make_cleanup_restore_current_thread): Remove references to
10969 current_thread_cleanup_chain.
10970
10971 2017-04-10 Alan Hayward <alan.hayward@arm.com>
10972
10973 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10974 REG_UNKNOWN.
10975
10976 2017-04-10 Yao Qi <yao.qi@linaro.org>
10977
10978 PR gdb/19942
10979 * gdbthread.h (thread_info::deletable): New method.
10980 (thread_info::incref): New method.
10981 (thread_info::decref): New method.
10982 (thread_info::refcount): Move it to private.
10983 * infrun.c (save_stop_context): Call inc_refcount.
10984 (release_stop_context_cleanup): Likewise.
10985 * thread.c (set_thread_exited): New function.
10986 (init_thread_list): Delete "tp" only it is deletable, otherwise
10987 call set_thread_exited.
10988 (delete_thread_1): Call set_thread_exited.
10989 (current_thread_cleanup) <inferior_pid>: Remove.
10990 <thread>: New field.
10991 (restore_current_thread_ptid_changed): Removed.
10992 (do_restore_current_thread_cleanup): Adjust.
10993 (restore_current_thread_cleanup_dtor): Don't call
10994 find_thread_ptid.
10995 (set_thread_refcount): Use dec_refcount.
10996 (make_cleanup_restore_current_thread): Adjust.
10997 (thread_apply_all_command): Call inc_refcount.
10998 (_initialize_thread): Don't call
10999 observer_attach_thread_ptid_changed.
11000
11001 2017-04-10 Yao Qi <yao.qi@linaro.org>
11002
11003 * thread.c (delete_thread_1): Hoist code on marking thread as
11004 exited.
11005
11006 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11007
11008 * windows-nat.c (windows_detach): Initialize ptid with
11009 minus_one_ptid.
11010
11011 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
11012
11013 * unittests/ptid-selftests.c: Fix erroneous assert messages.
11014
11015 2017-04-07 Alan Hayward <alan.hayward@arm.com>
11016
11017 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
11018 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
11019 (bfin_pseudo_register_write): Likewise
11020
11021 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
11022
11023 * common/ptid.h (struct ptid): Change to...
11024 (class ptid_t): ... this.
11025 <ptid_t>: New constructors.
11026 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
11027 matches>: New methods.
11028 <make_null, make_minus_one>: New static methods.
11029 <pid>: Rename to...
11030 <m_pid>: ...this.
11031 <lwp>: Rename to...
11032 <m_lwp>: ...this.
11033 <tid>: Rename to...
11034 <m_tid>: ...this.
11035 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
11036 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
11037 as references, move comment to class ptid_t.
11038 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
11039 ptid_t static methods.
11040 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
11041 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
11042 Take ptid arguments as references, implement using ptid_t methods.
11043 * unittests/ptid-selftests.c: New file.
11044 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11045 unittests/ptid-selftests.c.
11046 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
11047
11048 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
11049
11050 * python/python.c (python_run_simple_file): Cast mode literal to
11051 non-const char pointer as expected by PyFile_FromString.
11052
11053 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
11054
11055 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
11056 minus_one_ptid and null_ptid.
11057
11058 2017-04-05 Pedro Alves <palves@redhat.com>
11059
11060 * warning.m4 (build_warnings): Remove -Wno-write-strings.
11061 * configure: Regenerate.
11062
11063 2017-04-05 Pedro Alves <palves@redhat.com>
11064
11065 * ada-exp.y (yyerror): Constify.
11066 * ada-lang.c (bound_name, get_selections)
11067 (ada_variant_discrim_type)
11068 (ada_variant_discrim_name, ada_value_struct_elt)
11069 (ada_lookup_struct_elt_type, is_unchecked_variant)
11070 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
11071 (catch_ada_exception_command_split)
11072 (catch_ada_assert_command_split, catch_assert_command)
11073 (ada_op_name): Constify.
11074 * ada-lang.h (ada_yyerror, get_selections)
11075 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
11076 * arc-tdep.c (arc_print_frame_cache): Constify.
11077 * arm-tdep.c (arm_skip_stub): Constify.
11078 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
11079 (gen_aggregate_elt_ref): Constify.
11080 * bcache.c (print_bcache_statistics): Constify.
11081 * bcache.h (print_bcache_statistics): Constify.
11082 * break-catch-throw.c (catch_exception_command_1):
11083 * breakpoint.c (struct ep_type_description::description):
11084 Constify.
11085 (add_solib_catchpoint): Constify.
11086 (catch_fork_command_1): Add cast.
11087 (add_catch_command): Constify.
11088 * breakpoint.h (add_catch_command, add_solib_catchpoint):
11089 Constify.
11090 * bsd-uthread.c (bsd_uthread_state): Constify.
11091 * buildsym.c (patch_subfile_names): Constify.
11092 * buildsym.h (next_symbol_text_func, patch_subfile_names):
11093 Constify.
11094 * c-exp.y (yyerror): Constify.
11095 (token::oper): Constify.
11096 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
11097 * c-varobj.c (cplus_describe_child): Constify.
11098 * charset.c (find_charset_names): Add cast.
11099 (find_charset_names): Constify array and add const_cast.
11100 * cli/cli-cmds.c (complete_command, cd_command): Constify.
11101 (edit_command): Constify.
11102 * cli/cli-decode.c (lookup_cmd): Constify.
11103 * cli/cli-dump.c (dump_memory_command, dump_value_command):
11104 Constify.
11105 (struct dump_context): Constify.
11106 (add_dump_command, restore_command): Constify.
11107 * cli/cli-script.c (get_command_line): Constify.
11108 * cli/cli-script.h (get_command_line): Constify.
11109 * cli/cli-utils.c (check_for_argument): Constify.
11110 * cli/cli-utils.h (check_for_argument): Constify.
11111 * coff-pe-read.c (struct read_pe_section_data): Constify.
11112 * command.h (lookup_cmd): Constify.
11113 * common/print-utils.c (decimal2str): Constify.
11114 * completer.c (gdb_print_filename): Constify.
11115 * corefile.c (set_gnutarget): Constify.
11116 * cp-name-parser.y (yyerror): Constify.
11117 * cp-valprint.c (cp_print_class_member): Constify.
11118 * cris-tdep.c (cris_register_name, crisv32_register_name):
11119 Constify.
11120 * d-exp.y (yyerror): Constify.
11121 (struct token::oper): Constify.
11122 * d-lang.h (d_yyerror): Constify.
11123 * dbxread.c (struct header_file_location::name): Constify.
11124 (add_old_header_file, add_new_header_file, last_function_name)
11125 (dbx_next_symbol_text, add_bincl_to_list)
11126 (find_corresponding_bincl_psymtab, set_namestring)
11127 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
11128 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
11129 * defs.h (command_line_input, print_address_symbolic)
11130 (deprecated_readline_begin_hook): Constify.
11131 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
11132 Constify.
11133 * event-top.c (handle_line_of_input): Constify and add cast.
11134 * exceptions.c (catch_errors): Constify.
11135 * exceptions.h (catch_errors): Constify.
11136 * expprint.c (print_subexp_standard, op_string, op_name)
11137 (op_name_standard, dump_raw_expression, dump_raw_expression):
11138 * expression.h (op_name, op_string, dump_raw_expression):
11139 Constify.
11140 * f-exp.y (yyerror): Constify.
11141 (struct token::oper): Constify.
11142 (struct f77_boolean_val::name): Constify.
11143 * f-lang.c (f_word_break_characters): Constify.
11144 * f-lang.h (f_yyerror): Constify.
11145 * fork-child.c (fork_inferior): Add cast.
11146 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
11147 (new_variant): Constify.
11148 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
11149 * gdbarch.c: Regenerate.
11150 * gdbcore.h (set_gnutarget): Constify.
11151 * go-exp.y (yyerror): Constify.
11152 (token::oper): Constify.
11153 * go-lang.h (go_yyerror): Constify.
11154 * go32-nat.c (go32_sysinfo): Constify.
11155 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
11156 * guile/scm-cmd.c (cmdscm_function): Constify.
11157 * guile/scm-param.c (pascm_param_value): Constify.
11158 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
11159 (h8300sx_register_name): Constify.
11160 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
11161 Constify.
11162 * ia64-tdep.c (ia64_register_names): Constify.
11163 * infcmd.c (construct_inferior_arguments): Constify.
11164 (path_command, attach_post_wait): Constify.
11165 * language.c (show_range_command, show_case_command)
11166 (unk_lang_error): Constify.
11167 * language.h (language_defn::la_error)
11168 (language_defn::la_name_of_this): Constify.
11169 * linespec.c (decode_line_2): Constify.
11170 * linux-thread-db.c (thread_db_err_str): Constify.
11171 * lm32-tdep.c (lm32_register_name): Constify.
11172 * m2-exp.y (yyerror): Constify.
11173 * m2-lang.h (m2_yyerror): Constify.
11174 * m32r-tdep.c (m32r_register_names): Constify and make static.
11175 * m68hc11-tdep.c (m68hc11_register_names): Constify.
11176 * m88k-tdep.c (m88k_register_name): Constify.
11177 * macroexp.c (appendmem): Constify.
11178 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
11179 (upgrade_type, parse_external, parse_partial_symbols)
11180 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
11181 (new_symbol): Constify.
11182 * memattr.c (mem_info_command): Constify.
11183 * mep-tdep.c (register_name_from_keyword): Constify.
11184 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
11185 Constify.
11186 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
11187 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
11188 * mi/mi-main.c (captured_mi_execute_command): Constify and add
11189 cast.
11190 (mi_execute_async_cli_command): Constify.
11191 * mips-tdep.c (mips_register_name): Constify.
11192 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
11193 (am33_register_name, am33_2_register_name)
11194 * moxie-tdep.c (moxie_register_names): Constify.
11195 * nat/linux-osdata.c (osdata_type): Constify fields.
11196 * nto-tdep.c (nto_parse_redirection): Constify.
11197 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
11198 (lookup_child_selector): Constify.
11199 (objc_methcall::name): Constify.
11200 * objc-lang.h (lookup_objc_class, lookup_child_selector)
11201 (lookup_struct_typedef): Constify.
11202 * objfiles.c (pc_in_section): Constify.
11203 * objfiles.h (pc_in_section): Constify.
11204 * p-exp.y (struct token::oper): Constify.
11205 (yyerror): Constify.
11206 * p-lang.h (pascal_yyerror): Constify.
11207 * parser-defs.h (op_name_standard): Constify.
11208 (op_print::string): Constify.
11209 (exp_descriptor::op_name): Constify.
11210 * printcmd.c (print_address_symbolic): Constify.
11211 * psymtab.c (print_partial_symbols): Constify.
11212 * python/py-breakpoint.c (stop_func): Constify.
11213 (bppy_get_expression): Constify.
11214 * python/py-cmd.c (cmdpy_completer::name): Constify.
11215 (cmdpy_function): Constify.
11216 * python/py-event.c (evpy_add_attribute)
11217 (gdbpy_initialize_event_generic): Constify.
11218 * python/py-event.h (evpy_add_attribute)
11219 (gdbpy_initialize_event_generic): Constify.
11220 * python/py-evts.c (add_new_registry): Constify.
11221 * python/py-finishbreakpoint.c (outofscope_func): Constify.
11222 * python/py-framefilter.c (get_py_iter_from_func): Constify.
11223 * python/py-inferior.c (get_buffer): Add cast.
11224 * python/py-param.c (parm_constant::name): Constify.
11225 * python/py-unwind.c (fprint_frame_id): Constify.
11226 * python/python.c (gdbpy_parameter_value): Constify.
11227 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
11228 * remote.c (memory_packet_config::name): Constify.
11229 (show_packet_config_cmd, remote_write_bytes)
11230 (remote_buffer_add_string):
11231 * reverse.c (exec_reverse_once): Constify.
11232 * rs6000-tdep.c (variant::name, variant::description): Constify.
11233 * rust-exp.y (rustyyerror): Constify.
11234 * rust-lang.c (rust_op_name): Constify.
11235 * rust-lang.h (rustyyerror): Constify.
11236 * serial.h (serial_ops::name): Constify.
11237 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
11238 (sh_sh3e_register_name, sh_sh2e_register_name)
11239 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
11240 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
11241 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
11242 (sh_sh4al_dsp_register_name): Constify.
11243 * sh64-tdep.c (sh64_register_name): Constify.
11244 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
11245 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
11246 * stabsread.c (patch_block_stabs, read_type_number)
11247 (ref_map::stabs, ref_add, process_reference)
11248 (symbol_reference_defined, define_symbol, define_symbol)
11249 (error_type, read_type, read_member_functions, read_cpp_abbrev)
11250 (read_one_struct_field, read_struct_fields, read_baseclasses)
11251 (read_tilde_fields, read_struct_type, read_array_type)
11252 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
11253 (read_huge_number, read_range_type, read_args, common_block_start)
11254 (find_name_end): Constify.
11255 * stabsread.h (common_block_start, define_symbol)
11256 (process_one_symbol, symbol_reference_defined, ref_add):
11257 * symfile.c (get_section_index, add_symbol_file_command):
11258 * symfile.h (get_section_index): Constify.
11259 * target-descriptions.c (tdesc_type::name): Constify.
11260 (tdesc_free_type): Add cast.
11261 * target.c (find_default_run_target):
11262 (add_deprecated_target_alias, find_default_run_target)
11263 (target_announce_detach): Constify.
11264 (do_option): Constify.
11265 * target.h (add_deprecated_target_alias): Constify.
11266 * thread.c (print_thread_info_1): Constify.
11267 * top.c (deprecated_readline_begin_hook, command_line_input):
11268 Constify.
11269 (init_main): Add casts.
11270 * top.h (handle_line_of_input): Constify.
11271 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
11272 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
11273 (tfind_command): Rename to ...
11274 (tfind_command_1): ... this and constify.
11275 (tfind_command): New function.
11276 (tfind_end_command, tfind_start_command): Adjust.
11277 (encode_source_string): Constify.
11278 * tracepoint.h (encode_source_string): Constify.
11279 * tui/tui-data.c (tui_partial_win_by_name): Constify.
11280 * tui/tui-data.h (tui_partial_win_by_name): Constify.
11281 * tui/tui-source.c (tui_set_source_content_nil): Constify.
11282 * tui/tui-source.h (tui_set_source_content_nil): Constify.
11283 * tui/tui-win.c (parse_scrolling_args): Constify.
11284 * tui/tui-windata.c (tui_erase_data_content): Constify.
11285 * tui/tui-windata.h (tui_erase_data_content): Constify.
11286 * tui/tui-winsource.c (tui_erase_source_content): Constify.
11287 * tui/tui.c (tui_enable): Add cast.
11288 * utils.c (defaulted_query): Constify.
11289 (init_page_info): Add cast.
11290 (puts_debug, subset_compare): Constify.
11291 * utils.h (subset_compare): Constify.
11292 * varobj.c (varobj_format_string): Constify.
11293 * varobj.h (varobj_format_string): Constify.
11294 * vax-tdep.c (vax_register_name): Constify.
11295 * windows-nat.c (windows_detach): Constify.
11296 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
11297 * xml-support.c (gdb_xml_end_element): Constify.
11298 * xml-tdesc.c (tdesc_start_reg): Constify.
11299 * xstormy16-tdep.c (xstormy16_register_name): Constify.
11300 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
11301 * xtensa-tdep.h (xtensa_register_t::name): Constify.
11302
11303 2017-04-05 Pedro Alves <palves@redhat.com>
11304
11305 * proc-api.c (struct trans): Constify.
11306 (procfs_note): Constify.
11307 * proc-events.c (struct trans, syscall_table):
11308 * proc-flags.c (struct trans): Constify.
11309 * proc-utils.h (procfs_note): Constify.
11310 * proc-why.c (struct trans): Constify.
11311 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
11312 (procfs_detach): Constify.
11313 * sol-thread.c (struct string_map): Constify.
11314 (td_err_string, td_state_string): Constify.
11315
11316 2017-04-05 Pedro Alves <palves@redhat.com>
11317
11318 * proc-api.c (procfs_filename): Don't initialize
11319 procfs_filename.
11320 (prepare_to_trace): Assume procfs_filename is non-NULL.
11321 (_initialize_proc_api): Give procfs_filename a default value here.
11322
11323 2017-04-05 Pedro Alves <palves@redhat.com>
11324
11325 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
11326 'cond_string' parameter.
11327 (extract_exception_regexp): Constify 'string' parameter.
11328 (catch_exception_command_1): Constify.
11329 * breakpoint.c (init_catchpoint)
11330 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
11331 parameter.
11332 (ep_parse_optional_if_clause, catch_fork_command_1)
11333 (catch_exec_command_1): Constify.
11334 * breakpoint.h (init_catchpoint): Constify 'cond_string'
11335 parameter.
11336 (ep_parse_optional_if_clause): Constify.
11337 * cli/cli-utils.c (remove_trailing_whitespace)
11338 (check_for_argument): Constify.
11339 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
11340 non-const overload.
11341 (check_for_argument): Likewise.
11342
11343 2017-04-05 Pedro Alves <palves@redhat.com>
11344
11345 * event-top.c (command_line_handler): Add cast to execute_command
11346 call.
11347 * record-btrace.c (cmd_record_btrace_bts_start)
11348 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
11349 (cmd_record_btrace_start): Add cast to execute_command call.
11350 * record-full.c (record_full_goto_insn):
11351 * record.c (record_start, record_stop): Add cast to
11352 execute_command_to_string calls.
11353 (cmd_record_start): Add cast to execute_command calls.
11354
11355 2017-04-05 Pedro Alves <palves@redhat.com>
11356
11357 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
11358 static inline function.
11359 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
11360 array and use gdb_PyArg_ParseTupleAndKeywords.
11361 * python/py-cmd.c (cmdpy_init): Likewise.
11362 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
11363 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
11364 (infpy_search_memory): Likewise.
11365 * python/py-objfile.c (objfpy_add_separate_debug_file)
11366 (gdbpy_lookup_objfile): Likewise.
11367 * python/py-symbol.c (gdbpy_lookup_symbol)
11368 (gdbpy_lookup_global_symbol): Likewise.
11369 * python/py-type.c (gdbpy_lookup_type): Likewise.
11370 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
11371 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
11372 Likewise.
11373
11374 2017-04-05 Pedro Alves <palves@redhat.com>
11375
11376 * python/python-internal.h (gdb_PyGetSetDef): New type.
11377 * python/py-block.c (block_object_getset)
11378 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
11379 * python/py-event.c (event_object_getset)
11380 (finish_breakpoint_object_getset): Likewise.
11381 * python/py-inferior.c (inferior_object_getset): Likewise.
11382 * python/py-infthread.c (thread_object_getset): Likewise.
11383 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
11384 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
11385 * python/py-objfile.c (objfile_getset): Likewise.
11386 * python/py-progspace.c (pspace_getset): Likewise.
11387 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
11388 Likewise.
11389 * python/py-record.c (recpy_record_getset): Likewise.
11390 * python/py-symbol.c (symbol_object_getset): Likewise.
11391 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
11392 Likewise.
11393 * python/py-type.c (type_object_getset, field_object_getset):
11394 Likewise.
11395 * python/py-value.c (value_object_getset): Likewise.
11396
11397 2017-04-05 Pedro Alves <palves@redhat.com>
11398
11399 * python/python-internal.h (gdb_PyObject_CallMethod)
11400 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
11401 New functions.
11402 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
11403 (PySys_GetObject, PySys_SetPath): New macros.
11404
11405 2017-04-05 Pedro Alves <palves@redhat.com>
11406
11407 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
11408 info_osdata_command.
11409 * osdata.c (info_osdata_command): Rename to ...
11410 (info_osdata): ... this. Constify 'type' parameter, and remove
11411 the 'from_tty' parameter. Accept NULL TYPE.
11412 (info_osdata_command): New function.
11413 * osdata.h (info_osdata_command): Remove declaration.
11414 (info_osdata): New declaration.
11415
11416 2017-04-05 Pedro Alves <palves@redhat.com>
11417
11418 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
11419 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
11420 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
11421 parameter.
11422 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
11423 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
11424 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
11425 parameter.
11426 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
11427 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
11428 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11429 (mi_cmd_file_list_exec_source_files)
11430 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
11431 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
11432 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
11433 parameter.
11434 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
11435 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
11436 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11437 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
11438 (mi_cmd_stack_info_frame): Constify 'command' parameter.
11439 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
11440 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
11441 'command' parameter.
11442 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
11443 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
11444 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
11445 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
11446 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
11447 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
11448 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
11449 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
11450 (mi_cmd_var_set_update_range): Constify 'command' parameter.
11451 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
11452 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
11453 parameter.
11454 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
11455 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
11456 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
11457 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
11458 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
11459 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
11460 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
11461 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
11462 (mi_cmd_data_list_changed_registers)
11463 (mi_cmd_data_write_register_values)
11464 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
11465 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
11466 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
11467 (mi_cmd_list_features, mi_cmd_list_target_features)
11468 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
11469 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
11470 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
11471 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
11472 (mi_cmd_trace_frame_collected): Constify 'command'
11473 parameter.
11474 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
11475 'command' parameter.
11476
11477 2017-04-05 Pedro Alves <palves@redhat.com>
11478
11479 * ada-lang.c (ada_completer_word_break_characters): Now a const
11480 array.
11481 (ada_get_gdb_completer_word_break_characters): Constify.
11482 * completer.c (gdb_completer_command_word_break_characters)
11483 (gdb_completer_file_name_break_characters)
11484 (gdb_completer_quote_characters): Now const arrays.
11485 (get_gdb_completer_quote_characters): Constify.
11486 (set_rl_completer_word_break_characters): New function.
11487 (set_gdb_completion_word_break_characters)
11488 (complete_line_internal): Use it.
11489 * completer.h (get_gdb_completer_quote_characters): Constify.
11490 (set_rl_completer_word_break_characters): Declare.
11491 * f-lang.c (f_word_break_characters): Constify.
11492 * language.c (default_word_break_characters): Constify.
11493 * language.h (language_defn::la_word_break_characters): Constify.
11494 (default_word_break_characters): Constify.
11495 * top.c (init_main): Use set_rl_completer_word_break_characters.
11496
11497 2017-04-05 Pedro Alves <palves@redhat.com>
11498
11499 * aix-thread.c (aix_thread_pid_to_str)
11500 (aix_thread_extra_thread_info): Constify.
11501 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
11502 * bsd-uthread.c (bsd_uthread_extra_thread_info)
11503 (bsd_uthread_pid_to_str): Constify.
11504 * corelow.c (core_pid_to_str): Constify.
11505 * darwin-nat.c (darwin_pid_to_str): Constify.
11506 * fbsd-nat.c (fbsd_pid_to_str): Constify.
11507 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
11508 Constify.
11509 * gnu-nat.c (gnu_pid_to_str): Constify.
11510 * go32-nat.c (go32_pid_to_str): Constify.
11511 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
11512 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
11513 * inferior.c (inferior_pid_to_str): Constify.
11514 * linux-nat.c (linux_nat_pid_to_str): Constify.
11515 * linux-tdep.c (linux_core_pid_to_str): Constify.
11516 * linux-thread-db.c (thread_db_pid_to_str)
11517 (thread_db_extra_thread_info): Constify.
11518 * nto-tdep.c (nto_extra_thread_info): Constify.
11519 * nto-tdep.h (nto_extra_thread_info): Constify.
11520 * obsd-nat.c (obsd_pid_to_str): Constify.
11521 * procfs.c (procfs_pid_to_str): Constify.
11522 * ravenscar-thread.c (ravenscar_extra_thread_info)
11523 (ravenscar_pid_to_str): Constify.
11524 * remote-sim.c (gdbsim_pid_to_str): Constify.
11525 * remote.c (remote_threads_extra_info, remote_pid_to_str):
11526 Constify.
11527 * sol-thread.c (solaris_pid_to_str): Constify.
11528 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
11529 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
11530 * target.c (default_pid_to_str, target_pid_to_str)
11531 (normal_pid_to_str, default_pid_to_str): Constify.
11532 * target.h (target_ops::to_pid_to_str)
11533 (target_ops::to_extra_thread_info): Constify.
11534 (target_pid_to_str, normal_pid_to_str): Constify.
11535 * windows-nat.c (windows_pid_to_str): Constify.
11536 * gdbarch.sh (core_pid_to_str): Constify.
11537 * target-delegates.c: Regenerate.
11538 * gdbarch.h, gdbarch.c: Regenerate.
11539
11540 2017-04-05 Pedro Alves <palves@redhat.com>
11541
11542 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
11543 the memory of the temporary warning_pre_print override.
11544 * utils.c (warning_pre_print): Constify.
11545 * utils.h (warning_pre_print): Constify.
11546
11547 2017-04-05 Pedro Alves <palves@redhat.com>
11548
11549 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
11550 (shell_command): New function.
11551 (make_command): Use std::string.
11552 (init_cli_cmds): Register shell_command instead of shell_escape.
11553
11554 2017-04-05 Pedro Alves <palves@redhat.com>
11555
11556 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
11557 * tracepoint.c (default_collect): Don't initialize.
11558
11559 2017-04-05 Pedro Alves <palves@redhat.com>
11560
11561 * macroexp.c (macro_buffer::shared): Now a bool.
11562 (init_buffer): Update.
11563 (init_shared_buffer): Constify 'addr' parameter.
11564 (substitute_args, expand, macro_expand, macro_expand_next): Remove
11565 casts.
11566
11567 2017-04-05 Pedro Alves <palves@redhat.com>
11568
11569 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
11570 * disasm.c (set_disassembler_options): Constify local.
11571 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
11572
11573 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
11574
11575 PR gdb/21352
11576 * tracefile.c (tsave_command): Fix argument parsing for '-r'
11577 option.
11578
11579 2017-04-05 Yao Qi <yao.qi@linaro.org>
11580
11581 * frame.c (frame_unwind_register_unsigned): Call
11582 frame_unwind_register_value.
11583
11584 2017-04-05 Yao Qi <yao.qi@linaro.org>
11585
11586 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
11587 Use gdb_test_multiple, and don't match anchor.
11588
11589 2017-04-05 Pedro Alves <palves@redhat.com>
11590
11591 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
11592 (Write After Approval): Remove Simon Marchi.
11593
11594 2017-04-05 Pedro Alves <palves@redhat.com>
11595
11596 * common/gdb_optional.h (optional::optional): Make constexpr and
11597 initialize m_dummy.
11598
11599 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11600
11601 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11602 (amd64fbsd_jmp_buf_reg_offset): Remove.
11603 (amd64fbsd_supply_uthread): Remove function.
11604 (amd64fbsd_collect_uthread): Remove function.
11605 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
11606 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
11607 (x86_64-*-freebsd*): Remove bsd-uthread.o.
11608 (fbsd-nat.c): Update comment.
11609 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11610 (i386fbsd_jmp_buf_reg_offset): Remove.
11611 (i386fbsd_supply_uthread): Remove function.
11612 (i386fbsd_collect_uthread): Remove function.
11613 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
11614
11615 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11616
11617 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
11618 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
11619 * NEWS: Mention that support for FreeBSD/alpha was removed.
11620 * alpha-fbsd-tdep.c: Delete file.
11621 * config/alpha/fbsd.mh: Delete file.
11622 * configure.host: Delete alpha*-*-freebsd* and
11623 alpha*-*-kfreebsd*-gnu.
11624 * configure.tgt: Delete alpha*-*-freebsd* and
11625 alpha*-*-kfreebsd*-gnu.
11626
11627 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11628
11629 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
11630 amd64bsd_store_inferior_registers): Use ptid from regcache.
11631
11632 2017-04-04 Pedro Alves <palves@redhat.com>
11633
11634 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
11635 data fields, make them private and add "m_" prefixes.
11636 (lnp_state_machine::lnp_state_machine): New ctor.
11637 (record_line, check_line_address, handle_set_discriminator)
11638 (handle_set_address, handle_advance_pc, handle_special_opcode)
11639 (handle_advance_line, handle_set_file, handle_negate_stmt)
11640 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
11641 (end_sequence, advance_line): New methods.
11642 (m_gdbarch, m_record_lines_p): New fields.
11643 (lnp_reader_state): Delete.
11644 (dwarf_record_line): Rename to ...
11645 (lnp_state_machine::record_line): ... adjust.
11646 (init_lnp_state_machine): Delete.
11647 (lnp_state_machine::lnp_state_machine): New.
11648 (check_line_address): Rename to ...
11649 (lnp_state_machine::check_line_address): This.
11650 (dwarf_decode_lines_1): Remove reference to "reader_state".
11651 Adjust lnp_state_machine having a non-default ctor. Use bool.
11652 State machine internal state manipulation moved to
11653 lnp_state_machine methods.
11654
11655 2017-04-04 Pedro Alves <palves@redhat.com>
11656
11657 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11658 unittests/offset-type-selftests.c.
11659 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11660 * common/offset-type.h: New file.
11661 * common/preprocessor.h: New file.
11662 * common/traits.h: New file.
11663 * common/valid-expr.h: New file.
11664 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11665 sect_offset and cu_offset strong typedefs throughout.
11666 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11667 typedefs throughout.
11668 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11669 sect_offset and cu_offset strong typedefs throughout.
11670 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11671 typedefs throughout.
11672 * gdbtypes.h: Include "common/offset-type.h".
11673 (cu_offset): Now an offset type (strong typedef) instead of a
11674 struct.
11675 (sect_offset): Likewise.
11676 (union call_site_parameter_u): Rename "param_offset" field to
11677 "param_cu_off".
11678 * unittests/offset-type-selftests.c: New file.
11679
11680 2017-04-04 Pedro Alves <palves@redhat.com>
11681
11682 * common/underlying.h: New file.
11683 * dwarf2read.c: Include "common/gdb_optional.h" and
11684 "common/underlying.h".
11685 (dir_index, file_name_index): New types.
11686 (file_entry): Use them.
11687 (file_entry::include): Use to_underlying.
11688 (line_header::add_file_name): Use dir_index.
11689 (read_formatted_entries): Use gdb::optional. Read form before
11690 writting to file_entry.
11691 (dwarf_decode_line_header): Use dir_index.
11692 (lnp_state_machine::current_file): Use to_underlying.
11693 (lnp_state_machine::file): Change type to file_name_index.
11694 (dwarf_record_line): Use to_underlying.
11695 (init_lnp_state_machine): Use file_name_index.
11696 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11697
11698 2017-04-04 Pedro Alves <palves@redhat.com>
11699
11700 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11701 operator bool, has_value and get methods.
11702
11703 2017-04-04 Pedro Alves <palves@redhat.com>
11704
11705 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11706 fields.
11707 (line_header): Initialize all data fields. Change type of
11708 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11709 Change type of include_dirs to std::vector<const char *>. Remove
11710 num_include_dirs, include_dirs_size. Change type of file_names to
11711 std::vector<file_entry>. Remove num_file_names, file_names_size.
11712 (line_header::line_header): New.
11713 (line_header::add_include_dir, line_header::add_file_name): New
11714 methods.
11715 (line_header::include_dir_at): Remove NULL check.
11716 (line_header::file_name_at): Add const overload.
11717 (line_header_up): New unique_ptr typedef.
11718 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11719 std::vector. Remove free_line_header call.
11720 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11721 free_line_header call.
11722 (free_cu_line_header): Delete.
11723 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11724 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11725 Adjust to use std::vector.
11726 (free_line_header): Delete.
11727 (free_line_header_voidp): Use delete.
11728 (add_include_dir): Replace with ...
11729 (line_header::add_include_dir): ... this method. Use std::vector.
11730 (add_file_name): Replace with ...
11731 (line_header::add_file_name): ... this method. Use std::vector.
11732 (add_include_dir_stub): Delete.
11733 (read_formatted_entries): Remove memset.
11734 (dwarf_decode_line_header): Return a line_header_up instead of a
11735 raw pointer. Remove cleanup handling. Pass lambdas to
11736 read_formatted_entries. Adjust to use line_header methods.
11737 (dwarf_decode_lines_1): Adjust to use line_header methods.
11738 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11739 use std::vector.
11740
11741 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11742
11743 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11744 instead of struct ptid.
11745
11746 2017-05-04 Alan Hayward <alan.hayward@arm.com>
11747
11748 * frame.c (get_frame_register_bytes): Unwind using value.
11749 (put_frame_register_bytes): Likewise.
11750
11751 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11752
11753 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11754 aggregate-like.
11755
11756 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11757
11758 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11759
11760 2017-03-29 Yao Qi <yao.qi@linaro.org>
11761
11762 * gdbthread.h (struct thread_info): Declare constructor and
11763 destructor. Add some in-class member initializers.
11764 * thread.c (free_thread): Remove.
11765 (init_thread_list): Call delete instead of free_thread.
11766 (new_thread): Call thread_info constructor.
11767 (thread_info::thread_info): New function.
11768 (thread_info::~thread_info): New function.
11769 (delete_thread_1): Call delete instead of free_thread.
11770 (make_cleanup_restore_current_thread): Move tp and frame to
11771 inner block.
11772
11773 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11774
11775 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11776 (arc_skip_prologue): Likewise.
11777 (arc_make_frame_cache): Likewise.
11778 (arc_pv_get_operand): New function.
11779 (arc_is_in_prologue): Likewise.
11780 (arc_analyze_prologue): Likewise.
11781 (arc_print_frame_cache): Likewise.
11782 (MAX_PROLOGUE_LENGTH): New constant.
11783
11784 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11785
11786 * configure.tgt: Add arc-insn.o.
11787 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11788 (dump_arc_instruction_command): New function.
11789 (arc_fprintf_disasm): Likewise.
11790 (arc_disassemble_info): Likewise.
11791 (arc_insn_get_operand_value): Likewise.
11792 (arc_insn_get_operand_value_signed): Likewise.
11793 (arc_insn_get_memory_base_reg): Likewise.
11794 (arc_insn_get_memory_offset): Likewise.
11795 (arc_insn_get_branch_target): Likewise.
11796 (arc_insn_dump): Likewise.
11797 (arc_insn_get_linear_next_pc): Likewise.
11798 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11799 (arc_disassemble_info): Likewise.
11800 (arc_insn_get_branch_target): Likewise.
11801 (arc_insn_get_linear_next_pc): Likewise.
11802 * NEWS: Mention new "maint print arc arc-instruction".
11803
11804 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11805
11806 * arc-tdep (maintenance_print_arc_list): New variable.
11807 (maintenance_print_arc_command): New function.
11808
11809 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11810
11811 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11812 Add "limm" and "reserved".
11813 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11814 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11815 * arc-tdep.h (arc_regnum): Likewise.
11816
11817 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11818
11819 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11820 for THREADPTR register.
11821 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11822 register.
11823 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11824 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11825 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11826
11827 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11828
11829 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11830 registers above gdbarch_num_regs (gdbarch) as privileged in
11831 call0 ABI.
11832
11833 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11834
11835 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11836 for a single specified register or for all registers in
11837 a0_base..a0_base + C0_NREGS range.
11838 (supply_gregset_reg): Call regcache_raw_supply for a single
11839 specified register or for all registers in a0_base..a0_base +
11840 C0_NREGS range.
11841
11842 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11843
11844 * arch/xtensa.h (C0_NREGS): Add definition.
11845 * xtensa-tdep.c (C0_NREGS): Remove definition.
11846
11847 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11848
11849 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11850 Drop xtensa_default_isa initialization.
11851 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11852
11853 2017-03-27 Pedro Alves <palves@redhat.com>
11854
11855 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11856 (file_entry::include_dir): New method.
11857 (line_header::include_dir_at, line_header::file_name_at): New
11858 methods.
11859 (setup_type_unit_groups, setup_type_unit_groups)
11860 (psymtab_include_file_name): Simplify using the new methods.
11861 (lnp_state_machine) <the_line_header>: New field.
11862 <file>: Add comment.
11863 (lnp_state_machine::current_file): New method.
11864 (dwarf_record_line): Simplify using the new methods.
11865 (init_lnp_state_machine): Initialize the "the_line_header" field.
11866 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11867 Simplify using the new methods.
11868
11869 2017-03-27 Pedro Alves <palves@redhat.com>
11870
11871 * cp-name-parser.y (make_empty): Delete.
11872 (demangler_special, nested_name, ptr_operator, array_indicator)
11873 (direct_declarator, declarator_1): Use fill_comp instead of
11874 make_empty.
11875
11876 2017-03-27 Pedro Alves <palves@redhat.com>
11877
11878 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11879 to ATTRIBUTE_PRINTF.
11880 * solib-target.c (library_list_start_list): Print "string" not
11881 "version".
11882 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11883 gdb_xml_error call.
11884
11885 2017-03-27 Pedro Alves <palves@redhat.com>
11886
11887 * dwarf2read.c (struct file_and_directory): New.
11888 (dwarf2_get_dwz_file): Adjust to use std::string.
11889 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11890 (find_file_and_directory): Adjust to return a file_and_directory
11891 object.
11892 (read_file_scope): Adjust to use file_and_directory. Remove
11893 make_cleanup/do_cleanups calls.
11894 (open_and_init_dwp_file): Adjust to use std::string. Remove
11895 make_cleanup/do_cleanups calls.
11896 * python/python.c (do_start_initialization): Adjust to ldirname
11897 returning a std::string.
11898 * utils.c (ldirname): Now returns a std::string.
11899 * utils.h (ldirname): Change return type to std::string.
11900 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11901 returning a std::string.
11902 * xml-tdesc.c (file_read_description_xml): Likewise.
11903
11904 2017-03-24 Alan Hayward <alan.hayward@arm.com>
11905
11906 * regcache.c (regcache_debug_print_register): New function.
11907 * regcache.h (regcache_debug_print_register): New declaration.
11908 * target.c (debug_print_register): Remove.
11909 (target_fetch_registers): Call regcache_debug_print_register.
11910 (target_store_registers): Likewise.
11911
11912 2017-03-24 Pádraig Brady <pbrady@fb.com>
11913
11914 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11915 reference beyond the 'lh->include_dirs' array before accessing to
11916 it.
11917 (psymtab_include_file_name): Likewise.
11918 (dwarf_decode_lines_1): Likewise.
11919 (dwarf_decode_lines): Likewise.
11920 (file_file_name): Likewise.
11921
11922 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11923
11924 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11925 inferior_ptid.
11926 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11927 ps_lsetfpregs): Likewise.
11928 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11929 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11930 ps_lsetfpregs): Likewise.
11931 * target.c (target_fetch_registers, target_store_registers):
11932 Remove asserts.
11933
11934 2017-03-23 Alan Hayward <alan.hayward@arm.com>
11935
11936 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11937
11938 2017-03-23 Yao Qi <yao.qi@linaro.org>
11939
11940 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11941 (_initialize_aarch64_tdep): Register it.
11942 (aarch64_record_load_store): Handle PRFM instruction.
11943 (aarch64_process_record_test): New function.
11944
11945 2017-03-23 Yao Qi <yao.qi@linaro.org>
11946
11947 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11948 indentation.
11949
11950 2017-03-23 Yao Qi <yao.qi@linaro.org>
11951
11952 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11953
11954 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11955
11956 python/python.c (do_start_initialization): Fix memory leak.
11957
11958 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11959
11960 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11961 using get_ptrace_pid.
11962 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11963 inferior_ptid.
11964 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11965 inferior_ptid instead of pid.
11966
11967 2017-03-22 Yao Qi <yao.qi@linaro.org>
11968
11969 * aarch64-tdep.c: Wrap locally used classes in anonymous
11970 namespace.
11971 * arm-tdep.c: Likewise.
11972 * linespec.c: Likewise.
11973 * ui-out.c: Likewise.
11974
11975 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
11976
11977 PR gdb/19637
11978 * python/lib/gdb/printer/bound_registers.py: Import sys.
11979
11980 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11981
11982 * windows-nat.c (do_windows_fetch_inferior_registers): Add
11983 windows_thread_info parameter and use it instead of
11984 current_thread.
11985 (windows_fetch_inferior_registers): Don't set current_thread,
11986 pass the thread to do_windows_fetch_inferior_registers. Use
11987 ptid from regcache instead of inferior_ptid.
11988 (do_windows_store_inferior_registers): Add windows_thread_info
11989 parameter and use it instead of current_thread.
11990 (windows_store_inferior_registers): Don't set current_thread,
11991 pass the thread to do_windows_store_inferior_registers. Use
11992 ptid from regcache instead of inferior_ptid.
11993
11994 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11995
11996 * ser-mingw.c (ser_windows_raw): Remove reference to
11997 struct serial::current_timeout.
11998
11999 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
12000
12001 PR tdep/20928
12002 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
12003 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
12004 (sparc64_fsr_type): Fix %fsr decoding.
12005
12006 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
12007
12008 * python/py-record-btrace.c (btpy_insn_data): Change return type
12009 for Python 2.
12010
12011 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12012
12013 * spu-linux-nat.c (spu_fetch_inferior_registers,
12014 spu_store_inferior_registers): Use ptid from regcache, set and
12015 restore inferior_ptid.
12016 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
12017 Likewise.
12018
12019 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12020
12021 * i386-linux-nat.c (fetch_register, store_register,
12022 i386_linux_fetch_inferior_registers,
12023 i386_linux_store_inferior_registers): Use ptid from regcache.
12024 * ia64-linux-nat.c (ia64_linux_fetch_register,
12025 ia64_linux_store_register): Likewise.
12026 * inf-ptrace.c (inf_ptrace_fetch_register,
12027 inf_ptrace_store_register): Likewise.
12028 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
12029 m32r_linux_store_inferior_registers): Likewise.
12030 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
12031 m68kbsd_store_inferior_registers): Likewise.
12032 * m68k-linux-nat.c (fetch_register, store_register,
12033 m68k_linux_fetch_inferior_registers,
12034 m68k_linux_store_inferior_registers): Likewise.
12035 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
12036 m88kbsd_store_inferior_registers): Likewise.
12037 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
12038 mips_fbsd_store_inferior_registers): Likewise.
12039 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
12040 mips64_linux_regsets_store_registers): Likewise.
12041 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
12042 mipsnbsd_store_inferior_registers): Likewise.
12043 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
12044 mips64obsd_store_inferior_registers): Likewise.
12045 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
12046 Likewise.
12047 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
12048 ppcfbsd_store_inferior_registers): Likewise.
12049 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
12050 ppc_linux_store_inferior_registers): Likewise.
12051 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
12052 ppcnbsd_store_inferior_registers): Likewise.
12053 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
12054 ppcobsd_store_registers): Likewise.
12055 * procfs.c (procfs_fetch_registers, procfs_store_registers):
12056 Likewise.
12057 * ravenscar-thread.c (ravenscar_fetch_registers,
12058 ravenscar_store_registers, ravenscar_prepare_to_store):
12059 Likewise.
12060 * record-btrace.c (record_btrace_fetch_registers,
12061 record_btrace_store_registers, record_btrace_prepare_to_store):
12062 Likewise.
12063 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
12064 Lookup inferior using ptid from regcache, instead of
12065 current_inferior.
12066 * remote.c (remote_fetch_registers, remote_store_registers): Use
12067 ptid from regcache.
12068 * rs6000-nat.c (fetch_register, store_register): Likewise.
12069 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
12070 s390_linux_store_inferior_registers): Likewise.
12071 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
12072 shnbsd_store_inferior_registers): Likewise.
12073 * sol-thread.c (sol_thread_fetch_registers,
12074 sol_thread_store_registers): Likewise.
12075 * sparc-nat.c (sparc_fetch_inferior_registers,
12076 sparc_store_inferior_registers): Likewise.
12077 * tilegx-linux-nat.c (fetch_inferior_registers,
12078 store_inferior_registers): Likewise.
12079 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
12080 vaxbsd_store_inferior_registers): Likewise.
12081 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
12082 store_xtregs): Likewise.
12083
12084 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12085
12086 PR gdb/14441
12087 * NEWS: Mention support for rvalue references in GDB and python.
12088 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
12089 supports both lvalue and rvalue references.
12090
12091 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12092
12093 PR gdb/14441
12094 * gdbtypes.c (rank_one_type): Implement overloading
12095 resolution rules regarding rvalue references.
12096
12097 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12098
12099 PR gdb/14441
12100 * aarch64-tdep.c (aarch64_type_align)
12101 (aarch64_extract_return_value, aarch64_store_return_value): Change
12102 lvalue reference type checks to general reference type checks.
12103 * amd64-tdep.c (amd64_classify): Likewise.
12104 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
12105 Likewise.
12106 * arm-tdep.c (arm_type_align, arm_extract_return_value)
12107 (arm_store_return_value): Likewise.
12108 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
12109 * c-typeprint.c (c_print_type): Likewise.
12110 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
12111 (cplus_number_of_children, cplus_describe_child): Likewise.
12112 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
12113 * completer.c (expression_completer): Likewise.
12114 * cp-support.c (make_symbol_overload_list_adl_namespace):
12115 Likewise.
12116 * darwin-nat-info.c (info_mach_region_command): Likewise.
12117 * dwarf2loc.c (entry_data_value_coerce_ref)
12118 (value_of_dwarf_reg_entry): Likewise.
12119 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
12120 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
12121 Likewise.
12122 * findvar.c (extract_typed_address, store_typed_address):
12123 Likewise.
12124 * gdbtypes.c (rank_one_type): Likewise.
12125 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
12126 * infcall.c (value_arg_coerce): Likewise.
12127 * language.c (pointer_type): Likewise.
12128 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
12129 Likewise.
12130 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
12131 * mn10300-tdep.c (mn10300_type_align): Likewise.
12132 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
12133 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
12134 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
12135 Likewise.
12136 * printcmd.c (print_formatted, x_command): Likewise.
12137 * python/py-type.c (typy_get_composite, typy_template_argument):
12138 Likewise.
12139 * python/py-value.c (valpy_referenced_value)
12140 (valpy_get_dynamic_type, value_has_field): Likewise.
12141 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
12142 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
12143 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
12144 * spu-tdep.c (spu_scalar_value_p): Likewise.
12145 * symtab.c (lookup_symbol_aux): Likewise.
12146 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
12147 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
12148 Likewise.
12149 * valops.c (value_cast_pointers, value_cast)
12150 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
12151 (value_struct_elt, value_struct_elt_bitpos)
12152 (value_find_oload_method_list, find_overload_match)
12153 (value_rtti_indirect_type): Likewise.
12154 * valprint.c (val_print_scalar_type_p, generic_val_print):
12155 Likewise.
12156 * value.c (value_actual_type, value_as_address, unpack_long)
12157 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
12158 (coerce_ref): Likewise.
12159 * varobj.c (varobj_get_value_type): Likewise.
12160
12161 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12162
12163 PR gdb/14441
12164 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
12165 table of constants.
12166 * python/lib/gdb/command/explore.py: Support exploring values
12167 of rvalue reference types.
12168 * python/lib/gdb/types.py: Implement get_basic_type() for
12169 rvalue reference types.
12170 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
12171 constant.
12172 * python/py-value.c (valpy_getitem): Add an rvalue reference
12173 check.
12174 (valpy_reference_value): Add new parameter "refcode".
12175 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
12176 New wrappers for valpy_reference_value().
12177 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
12178 (gdbpy_invoke_xmethod): Likewise.
12179
12180 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12181
12182 PR gdb/14441
12183 * dwarf2read.c (process_die, read_type_die_1): Handle the
12184 DW_TAG_rvalue_reference_type DIE.
12185 (read_tag_reference_type): Add new parameter "refcode".
12186
12187 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12188
12189 PR gdb/14441
12190 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
12191 (c_type_print_modifier, c_type_print_varspec_suffix)
12192 (c_type_print_base): Support printing rvalue reference types.
12193 * c-valprint.c (c_val_print, c_value_print): Support printing
12194 rvalue reference values.
12195
12196 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12197
12198 PR gdb/14441
12199 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
12200 typename.
12201 * cp-support.c (replace_typedefs): Handle
12202 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
12203 * python/py-type.c (typy_lookup_type): Likewise.
12204
12205 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12206
12207 PR gdb/14441
12208 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
12209 * parse.c (insert_type): Change assert statement.
12210 (follow_types): Handle rvalue reference types.
12211 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
12212 constant.
12213
12214 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12215
12216 PR gdb/14441
12217 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
12218 value_ref() interface.
12219 * c-valprint.c (c_value_print): Likewise.
12220 * infcall.c (value_arg_coerce): Likewise.
12221 * python/py-value.c (valpy_reference_value): Likewise.
12222 * valops.c (value_cast, value_reinterpret_cast)
12223 (value_dynamic_cast, typecmp): Likewise.
12224 (value_ref): Parameterize by kind of return value reference type.
12225 * value.h (value_ref): Add new parameter "refcode".
12226
12227 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12228
12229 PR gdb/14441
12230 * dwarf2read.c (read_tag_reference_type): Use
12231 lookup_lvalue_reference_type() instead of lookup_reference_type().
12232 * eval.c (evaluate_subexp_standard): Likewise.
12233 * f-exp.y: Likewise.
12234 * gdbtypes.c (make_reference_type, lookup_reference_type):
12235 Generalize with rvalue reference types.
12236 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
12237 convenience wrappers for lookup_reference_type().
12238 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
12239 reference kind parameter.
12240 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
12241 wrappers for lookup_reference_type().
12242 * guile/scm-type.c (gdbscm_type_reference): Use
12243 lookup_lvalue_reference_type() instead of lookup_reference_type().
12244 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
12245 * parse.c (follow_types): Likewise.
12246 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
12247 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
12248 Likewise.
12249 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
12250 (gdbpy_invoke_xmethod): Likewise.
12251 * stabsread.c: Provide extra argument to make_reference_type()
12252 call.
12253 * valops.c (value_ref, value_rtti_indirect_type): Use
12254 lookup_lvalue_reference_type() instead of lookup_reference_type().
12255
12256 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12257
12258 PR gdb/14441
12259 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
12260 (TYPE_IS_REFERENCE): New macro.
12261 (struct type): Add rvalue_reference_type field.
12262 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
12263
12264 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
12265
12266 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
12267 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
12268 New function definition.
12269 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
12270 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
12271 New function declaration.
12272 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
12273 * mi/mi-interp.h: New file.
12274 * solib.c (info_sharedlibrary_command): Replace for loop with
12275 ALL_SO_LIBS macro
12276 * solib.h (update_solib_list): New function declaration.
12277 (so_list_head): Move macro.
12278 * solist.h (ALL_SO_LIBS): New macro.
12279
12280 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
12281
12282 * infcmd.c (post_create_inferior): Remove unused argument in
12283 call to solib_add.
12284 * remote.c (remote_start_remote): Likewise.
12285 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
12286 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
12287 (enable_break): Likewise.
12288 * solib.c (update_solib_list): Remove unused target argument
12289 and its documentation.
12290 (solib_add): Remove unused target argument. Remove unused
12291 argument in call to update_solib_list.
12292 (info_sharedlibrary_command): Remove unused argument in call
12293 to update_solib_list.
12294 (sharedlibrary_command): Remove unused argument in call to
12295 solib_add.
12296 (handle_solib_event): Likewise.
12297 (reload_shared_libraries): Likewise.
12298 * solib.h (solib_add): Remove unused target argument.
12299
12300 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
12301
12302 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
12303 (s390_displaced_step_fixup): Cover relative branches with the
12304 default fixup handling. This fixes lack of support for some
12305 relative branch instructions.
12306
12307 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12308
12309 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
12310 ptid from regcache.
12311
12312 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12313
12314 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
12315 i386_darwin_store_inferior_registers): Use ptid from regcache.
12316
12317 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12318
12319 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
12320 i386bsd_store_inferior_registers): Use ptid from regcache.
12321
12322 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12323
12324 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
12325 hppaobsd_store_registers): Use ptid from regcache.
12326
12327 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12328
12329 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
12330 hppanbsd_store_registers): Use ptid from regcache.
12331
12332 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12333
12334 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
12335 from regcache. Use get_ptrace_pid.
12336
12337 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12338
12339 * corelow.c (get_core_register_section): Use ptid from regcache,
12340 update doc.
12341
12342 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12343
12344 * bsd-uthread.c (bsd_uthread_fetch_registers,
12345 bsd_uthread_store_registers): Use ptid from regcache, set and
12346 restore inferior_ptid.
12347
12348 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12349
12350 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
12351 fetch_fp_regs, store_register, store_regs, store_fp_register,
12352 store_fp_regs): Use ptid from regcache.
12353
12354 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12355
12356 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
12357 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
12358 store_vfp_regs): Use ptid from regcache.
12359
12360 2017-03-17 Pedro Alves <palves@redhat.com>
12361
12362 PR remote/21188
12363 * ser-base.c (ser_base_wait_for): Add comment.
12364 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
12365 version.
12366 * ser-unix.c (hardwire_raw): Remove reference to
12367 scb->current_timeout.
12368 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
12369 (hardwire_ops): Install ser_base_readchar instead of
12370 hardwire_readchar.
12371 * serial.h (struct serial) <current_timeout, timeout_remaining>:
12372 Remove fields.
12373
12374 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
12375
12376 PR gdb/19637
12377 * python/lib/gdb/printer/bound_registers.py: Add support for
12378 Python 3.
12379
12380 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
12381
12382 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
12383 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
12384 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
12385 byte_offset to subobj_byte_offset. Fix the handling of
12386 DWARF_VALUE_STACK on big-endian targets when coming via an
12387 implicit pointer.
12388 (dwarf2_evaluate_loc_desc): Adjust call to
12389 dwarf2_evaluate_loc_desc_full.
12390 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
12391 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
12392
12393 2017-03-16 Yao Qi <yao.qi@linaro.org>
12394
12395 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
12396 and REVSH instructions.
12397
12398 2017-03-16 Yao Qi <yao.qi@linaro.org>
12399
12400 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
12401 (arm_record_test): Declare.
12402 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
12403 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
12404 align with the manual.
12405 (thumb_record_misc): Adjust the code order to align with the
12406 manual.
12407 (thumb2_record_decode_insn_handler): Fix instruction matching.
12408 (instruction_reader_thumb): New class.
12409 (arm_record_test): New function.
12410
12411 2017-03-16 Yao Qi <yao.qi@linaro.org>
12412
12413 * arm-tdep.c (abstract_memory_reader): New class.
12414 (instruction_reader): New class.
12415 (extract_arm_insn): Add argument 'reader'. Callers updated.
12416 (decode_insn): Likewise.
12417
12418 2017-03-16 Doug Evans <dje@google.com>
12419
12420 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
12421 member. Change type of TYPE member to SCM. All uses updated.
12422 (lsscm_make_lazy_string_smob): Add assert.
12423 (lsscm_make_lazy_string): Flag bad length values.
12424 (lsscm_elt_type): New function.
12425 (gdbscm_lazy_string_to_value): Rewrite to use
12426 lsscm_safe_lazy_string_to_value.
12427 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
12428 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
12429 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
12430 in incoming type.
12431 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12432 * guile/scm-type.c (tyscm_scm_to_type): New function.
12433
12434 2017-03-15 Doug Evans <dje@google.com>
12435
12436 PR python/17728, python/18439, python/18779
12437 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
12438 member. Change type of TYPE member to PyObject *. All uses updated.
12439 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
12440 (gdbpy_create_lazy_string_object): Flag bad length values.
12441 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
12442 Handle typedefs in incoming type.
12443 (stpy_lazy_string_elt_type): New function.
12444 (gdbpy_extract_lazy_string): Call it.
12445 * python/py-value.c (valpy_lazy_string): Flag bad length values.
12446 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
12447 typedefs in incoming type.
12448
12449 2017-03-16 Doug Evans <dje@google.com>
12450
12451 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12452 * guile/scm-type.c (tyscm_scm_to_type): New function.
12453
12454 2017-03-16 Jiong Wang <jiong.wang@arm.com>
12455
12456 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
12457 "ULONGEST" for "skip".
12458
12459 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12460
12461 PR gdb/21220
12462 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
12463 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
12464 (inf_ptrace_peek_poke): ...here. New function. Now also loop
12465 over ptrace peek/poke until end of buffer or error.
12466
12467 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
12468
12469 * parse.c (length_of_subexp): Make static.
12470 * parser-defs.h (length_of_subexp): Remove.
12471
12472 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12473
12474 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
12475 as well.
12476
12477 2017-03-14 Pedro Alves <palves@redhat.com>
12478
12479 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
12480 (main): Use std::unique_ptr. Remove calls to
12481 cp_demangled_name_parse_free.
12482
12483 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12484
12485 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
12486 alphabsd_store_inferior_registers): Use regcache->ptid instead
12487 of inferior_ptid.
12488
12489 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12490
12491 * aix-thread.c (aix_thread_fetch_registers,
12492 aix_thread_store_registers): Use regcache->ptid instead of
12493 inferior_ptid.
12494
12495 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12496
12497 * aarch64-linux-nat.c (fetch_gregs_from_thread,
12498 store_gregs_to_thread, fetch_fpregs_from_thread,
12499 store_fpregs_to_thread): Use regcache->ptid instead of
12500 inferior_ptid.
12501
12502 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12503
12504 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
12505 amd64_linux_fetch_inferior_registers): Use regcache->ptid
12506 instead of inferior_ptid.
12507
12508 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12509
12510 * target.c (target_fetch_registers, target_store_registers): Add
12511 assert.
12512
12513 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12514
12515 * regcache.h (regcache_get_ptid): New function.
12516 * regcache.c (regcache_get_ptid): New function.
12517
12518 2017-03-13 Mark Wielaard <mark@klomp.org>
12519
12520 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
12521
12522 2017-03-10 Keith Seitz <keiths@redhat.com>
12523
12524 PR c++/8218
12525 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
12526
12527 2017-03-08 Pedro Alves <palves@redhat.com>
12528
12529 PR gdb/18360
12530 * infrun.c (start_step_over, do_target_resume, resume)
12531 (restart_threads): Assert we're not resuming a thread that is
12532 meant to be stopped.
12533 (infrun_thread_stop_requested_callback): Delete.
12534 (infrun_thread_stop_requested): If the thread is internally
12535 stopped, queue a pending stop event and clear the thread's
12536 inline-frame state.
12537 (handle_stop_requested): New function.
12538 (handle_syscall_event, handle_inferior_event_1): Use
12539 handle_stop_requested.
12540 (handle_stop_requested): New function.
12541 (handle_signal_stop): Set the thread's stop_signal here instead of
12542 at caller.
12543 (finish_step_over): Clear step over info unconditionally.
12544 (handle_signal_stop): If the user had interrupted the event
12545 thread, consider the stop a random signal.
12546 (handle_signal_stop) <signal arrived while stepping over
12547 breakpoint>: Don't restart threads here.
12548 (stop_waiting): Don't clear step-over info here.
12549
12550 2017-03-08 Pedro Alves <palves@redhat.com>
12551
12552 PR 21206
12553 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
12554 goes to argument 2, not 1.
12555
12556 2017-03-08 Pedro Alves <palves@redhat.com>
12557
12558 PR cli/21218
12559 * top.c (gdb_readline_wrapper): Avoid passing NULL to
12560 display_gdb_prompt.
12561 (command_line_input): Add comment.
12562
12563 2017-03-08 Pedro Alves <palves@redhat.com>
12564
12565 PR tui/21216
12566 * tui/tui-file.c (tui_file::write): New.
12567 * tui/tui-file.h (tui_file): Override "write".
12568 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
12569 factored out from ...
12570 (tui_puts): ... here.
12571 (tui_putc): Use them.
12572 (tui_write): New function.
12573 * tui/tui-io.h (tui_write): Declare.
12574
12575 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
12576
12577 * Makefile.in (SFILES): Replace "environ.c" with
12578 "common/environ.c".
12579 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
12580 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
12581 to...
12582 * common/environ.c: ... here.
12583 * environ.h: Moved to...
12584 * common/environ.h: ... here.
12585
12586 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12587
12588 * gdbarch.sh (pstring_ptr): New static function.
12589 (gdbarch_disassembler_options): Use it.
12590 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
12591 not valid_disassembler_option->name.
12592 * gdbarch.c: Regenerate.
12593
12594 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12595
12596 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
12597
12598 2017-03-07 Pedro Alves <palves@redhat.com>
12599
12600 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
12601
12602 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
12603
12604 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12605 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
12606 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
12607 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
12608
12609 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
12610
12611 * xtensa-linux-nat.c (fetch_gregs): Remove const.
12612
12613 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
12614
12615 * remote.c (remote_add_target_side_commands): Use range-based
12616 for loop.
12617
12618 2017-03-03 Yao Qi <yao.qi@linaro.org>
12619
12620 PR gdb/21165
12621 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
12622 value is lazy.
12623 * valprint.c (common_val_print): Likewise.
12624
12625 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
12626
12627 * NEWS: Mention new set/show disassembler-options commands.
12628 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
12629 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
12630 (prospective_options): New static variable.
12631 (gdb_disassembler::gdb_disassembler): Initialize
12632 m_di.disassembler_options.
12633 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
12634 (get_disassembler_options): New function.
12635 (set_disassembler_options): Likewise.
12636 (set_disassembler_options_sfunc): Likewise.
12637 (show_disassembler_options_sfunc): Likewise.
12638 (disassembler_options_completer): Likewise.
12639 (_initialize_disasm): Likewise.
12640 * disasm.h (get_disassembler_options): New prototype.
12641 (set_disassembler_options): Likewise.
12642 * gdbarch.sh (gdbarch_disassembler_options): New variable.
12643 (gdbarch_verify_disassembler_options): Likewise.
12644 * gdbarch.c: Regenerate.
12645 * gdbarch.h: Likewise.
12646 * arm-tdep.c (num_disassembly_options): Delete.
12647 (set_disassembly_style): Likewise.
12648 (arm_disassembler_options): New static variable.
12649 (set_disassembly_style_sfunc): Convert short style name into long
12650 option name. Call set_disassembler_options.
12651 (show_disassembly_style_sfunc): New function.
12652 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
12653 set_gdbarch_verify_disassembler_options.
12654 (_initialize_arm_tdep): Delete regnames variable and update callers.
12655 (arm_disassembler_options): Initialize.
12656 (disasm_options): New variable.
12657 (num_disassembly_options): Rename from this...
12658 (num_disassembly_styles): ...to this. Compute by scanning through
12659 disasm_options.
12660 (valid_disassembly_styles): Initialize using disasm_options.
12661 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12662 set_arm_regname_option.
12663 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12664 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12665 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12666 set_gdbarch_verify_disassembler_options.
12667 * s390-tdep.c (s390_disassembler_options): New static variable.
12668 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12669 set_gdbarch_verify_disassembler_options.
12670
12671 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12672
12673 * remote.c (remote_add_target_side_condition): Remove "struct"
12674 keyword from range-based for loop.
12675
12676 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12677
12678 * remote.c (remote_add_target_side_condition): Use range-based
12679 for loop. Update comment.
12680
12681 2017-02-27 Yao Qi <yao.qi@linaro.org>
12682
12683 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12684
12685 2017-02-26 Alan Hayward <alan.hayward@arm.com>
12686
12687 * regcache.c (regcache_raw_update): New function.
12688 (regcache_raw_read): Move code to regcache_raw_update.
12689 * regcache.h (regcache_raw_update): New declaration.
12690 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12691
12692 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12693
12694 * dwarf2read.c (create_debug_type_hash_table): Initialize
12695 header.signature and header.type_offset_in_tu.
12696
12697 2017-02-24 Pedro Alves <palves@redhat.com>
12698
12699 * symtab.c (make_file_symbol_completion_list_1): Use
12700 add_symtab_completions.
12701
12702 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12703
12704 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12705
12706 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12707
12708 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12709 I386_MAX_REGISTER_SIZE.
12710 (i386_pseudo_register_write): Likewise.
12711 (i386_process_record): Likewise.
12712 * i387-tdep.c (i387_supply_xsave): Likewise.
12713 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12714 (store_register): Likewise.
12715
12716 2017-02-23 Pedro Alves <palves@redhat.com>
12717
12718 * ada-lang.c: Include "common/function-view.h".
12719 (ada_iterate_over_symbols): Adjust to use function_view as
12720 callback type.
12721 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12722 (ada_make_symbol_completion_list): Use a lambda.
12723 (ada_exc_search_name_matches): Delete.
12724 (name_matches_regex): New.
12725 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12726 * compile/compile-c-support.c: Include "common/function-view.h".
12727 (print_one_macro): Change prototype to accept a ui_file pointer.
12728 (write_macro_definitions): Use a lambda.
12729 * dwarf2read.c: Include "common/function-view.h".
12730 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12731 (dw2_expand_symtabs_matching): Adjust to use function_view as
12732 callback type.
12733 * language.h: Include "common/function-view.h".
12734 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12735 function_view as callback type.
12736 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12737 * linespec.c: Include "common/function-view.h".
12738 (collect_info::add_symbol): New method.
12739 (struct symbol_and_data_callback, iterate_inline_only, struct
12740 symbol_matcher_data, iterate_name_matcher): Delete.
12741 (iterate_over_all_matching_symtabs): Adjust to use function_view
12742 as callback type and lambdas.
12743 (iterate_over_file_blocks): Adjust to use function_view as
12744 callback type.
12745 (decode_compound_collector): Now a class with private fields.
12746 (decode_compound_collector::release_symbols): New method.
12747 (collect_one_symbol): Rename to...
12748 (decode_compound_collector::operator()): ... this and adjust.
12749 (lookup_prefix_sym): decode_compound_collector construction bits
12750 move to decode_compound_collector ctor. Pass the
12751 decode_compound_collector object directly as callback. Remove
12752 cleanups and use decode_compound_collector::release_symbols
12753 instead.
12754 (symtab_collector): Now a class with private fields.
12755 (symtab_collector::release_symtabs): New method.
12756 (add_symtabs_to_list): Rename to...
12757 (symtab_collector::operator()): ... this and adjust.
12758 (collect_symtabs_from_filename): symtab_collector construction
12759 bits move to symtab_collector ctor. Pass the symtab_collector
12760 object directly as callback. Remove cleanups and use
12761 symtab_collector::release_symtabs instead.
12762 (collect_symbols): Delete.
12763 (add_matching_symbols_to_info): Use lambdas.
12764 * macrocmd.c (print_macro_callback): Delete.
12765 (info_macro_command): Use a lambda.
12766 (info_macros_command): Pass print_macro_definition as callable
12767 directly.
12768 (print_one_macro): Remove 'ignore' parameter.
12769 (macro_list_command): Adjust.
12770 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12771 (macro_for_each_data::user_data): Delete field.
12772 (foreach_macro): Adjust to call the function_view.
12773 (macro_for_each): Adjust to use function_view as callback type.
12774 (foreach_macro_in_scope): Adjust to call the function_view.
12775 (macro_for_each_in_scope): Adjust to use function_view as callback
12776 type.
12777 * macrotab.h: Include "common/function-view.h".
12778 (macro_callback_fn): Declare a prototype instead of a pointer.
12779 Remove "user_data" parameter.
12780 (macro_for_each, macro_for_each_in_scope): Adjust to use
12781 function_view as callback type.
12782 * psymtab.c (partial_map_expand_apply)
12783 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12784 Adjust to use function_view as callback type and to return bool.
12785 (psym_expand_symtabs_matching): Adjust to use function_view as
12786 callback types.
12787 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12788 to use function_view as callback type and to return bool.
12789 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12790 callback types.
12791 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12792 as callback types.
12793 * symfile.h: Include "common/function-view.h".
12794 (expand_symtabs_file_matcher_ftype)
12795 (expand_symtabs_symbol_matcher_ftype)
12796 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12797 return bool.
12798 (quick_symbol_functions::map_symtabs_matching_filename)
12799 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12800 function_view as callback type and return bool.
12801 (expand_symtabs_matching): Adjust to use function_view as callback
12802 type.
12803 (maintenance_expand_name_matcher)
12804 (maintenance_expand_file_matcher): Delete.
12805 (maintenance_expand_symtabs): Use lambdas.
12806 * symtab.c (iterate_over_some_symtabs): Adjust to use
12807 function_view as callback types and return bool.
12808 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12809 of a cleanup.
12810 (lookup_symtab_callback): Delete.
12811 (lookup_symtab): Use a lambda.
12812 (iterate_over_symbols): Adjust to use function_view as callback
12813 type.
12814 (struct search_symbols_data, search_symbols_file_matches)
12815 (search_symbols_name_matches): Delete.
12816 (search_symbols): Use a pair of lambdas.
12817 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12818 (symtab_expansion_callback): Delete.
12819 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12820 * symtab.h: Include "common/function-view.h".
12821 (iterate_over_some_symtabs): Adjust to use function_view as
12822 callback type and return bool.
12823 (iterate_over_symtabs): Adjust to use function_view as callback
12824 type.
12825 (symbol_found_callback_ftype): Remove 'data' parameter and return
12826 bool.
12827 (iterate_over_symbols): Adjust to use function_view as callback
12828 type.
12829
12830 2017-02-23 Pedro Alves <palves@redhat.com>
12831
12832 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12833 (%.o) <unittests/%.c>: New pattern.
12834 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12835 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12836 * common/function-view.h: New file.
12837 * unittests/function-view-selftests.c: New file.
12838 * configure: Regenerate.
12839
12840 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12841
12842 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12843 inferior_ptid.
12844 * go32-nat.c (go32_thread_alive): Likewise.
12845
12846 2017-02-23 Yao Qi <yao.qi@linaro.org>
12847
12848 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12849 delete.
12850
12851 2017-02-23 Yao Qi <yao.qi@linaro.org>
12852
12853 * varobj.c (varobj_clear_saved_item): Use delete instead of
12854 xfree.
12855 (update_dynamic_varobj_children): Likewise.
12856
12857 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12858
12859 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12860
12861 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12862
12863 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12864 m_enum_value to 0 in default constructor.
12865
12866 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12867
12868 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12869 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12870 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12871 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12872 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12873 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12874 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12875 IS_STORE_CONDITIONAL_INSN.
12876
12877 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12878
12879 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12880
12881 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12882
12883 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12884
12885 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12886
12887 * dwarf2read.c (skip_one_die, read_attribute_value)
12888 (dwarf2_const_value_attr, dump_die_shallow)
12889 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12890 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12891
12892 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12893
12894 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12895 (dwarf_parse_macro_header): Accept DWARF version 5.
12896 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12897
12898 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12899
12900 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12901 DW_AT_GNU_*.
12902 * common/common-exceptions.h (enum errors): Likewise.
12903 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12904 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12905 (dwarf_expr_context::execute_stack_op): Likewise.
12906 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12907 Likewise.
12908 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12909 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12910 (show_entry_values_debug, call_site_to_target_addr)
12911 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12912 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12913 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12914 (value_of_dwarf_block_entry, indirect_pieced_value)
12915 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12916 (disassemble_dwarf_expression): Likewise.
12917 * dwarf2read.c (process_die, inherit_abstract_dies)
12918 (read_call_site_scope): Likewise.
12919 * gdbtypes.h (struct func_type, struct call_site_parameter)
12920 (struct call_site): Likewise.
12921 * stack.c (read_frame_arg): Likewise.
12922 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12923
12924 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12925
12926 * defs.h (read_unsigned_leb128): New declaration.
12927 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12928 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12929 (dwarf2_find_location_expression): Call also
12930 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12931 * dwarf2loc.h (dwarf2_version): New declaration.
12932 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12933 rnglists.
12934 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12935 .debug_rnglists.
12936 (struct dwop_section_names): Add loclists_dwo.
12937 (dwop_section_names): Add .debug_loclists.dwo.
12938 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12939 (struct dwarf2_per_cu_data): Add dwarf_version.
12940 (struct dwo_sections): Add loclists.
12941 (struct attr_abbrev): Add implicit_const.
12942 (read_indirect_line_string): New declaration.
12943 (read_unsigned_leb128): Delete declaration.
12944 (rcuh_kind): New definition.
12945 (read_and_check_comp_unit_head): Change parameter
12946 is_debug_types_section to section_kind.
12947 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12948 (read_comp_unit_head): Change parameter abfd to section, add parameter
12949 section_kind. Handle DWARF-5.
12950 (error_check_comp_unit_head): Accept also DWARF version 5.
12951 (read_and_check_comp_unit_head): Change parameter
12952 is_debug_types_section to section_kind.
12953 (read_and_check_type_unit_head): Delete function.
12954 (read_abbrev_offset): Handle DWARF-5.
12955 (create_debug_type_hash_table): Add parameter section_kind. Process
12956 only DW_UT_type. Use signature and type_offset_in_tu from struct
12957 comp_unit_head.
12958 (create_debug_types_hash_table): Update create_debug_type_hash_table
12959 caller.
12960 (create_all_type_units): Call create_debug_type_hash_table.
12961 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12962 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12963 caller.
12964 (skip_one_die): Handle DW_FORM_implicit_const.
12965 (dwarf2_rnglists_process): New function.
12966 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12967 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12968 (read_attribute_value): Handle DW_FORM_implicit_const,
12969 DW_FORM_line_strp.
12970 (read_attribute): Handle DW_FORM_implicit_const.
12971 (read_indirect_string_at_offset_from): New function from
12972 read_indirect_string_at_offset.
12973 (read_indirect_string_at_offset): Call
12974 read_indirect_string_at_offset_from.
12975 (read_indirect_line_string_at_offset): New function.
12976 (read_indirect_string): New function comment.
12977 (read_indirect_line_string): New function.
12978 (read_unsigned_leb128): Make it global.
12979 (dwarf2_string_attr): Handle DWARF-5.
12980 (add_include_dir_stub, read_formatted_entries): New functions.
12981 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
12982 Handle DWARF-5.
12983 (per_cu_header_read_in): Update read_comp_unit_head caller.
12984 (dwarf2_version): New function.
12985 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
12986 rnglists.
12987 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
12988 fields.
12989
12990 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12991
12992 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
12993
12994 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12995
12996 * dwarf2read.c (dwarf2_ranges_process): New function from
12997 dwarf2_ranges_read.
12998 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
12999 dwarf2_ranges_process.
13000
13001 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13002
13003 * dwarf2read.c (create_debug_type_hash_table): New function from
13004 create_debug_types_hash_table.
13005 (create_debug_types_hash_table): Call create_debug_type_hash_table.
13006 (create_all_type_units, open_and_init_dwo_file): Update
13007 create_debug_types_hash_table callers.
13008
13009 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13010
13011 PR gdb/16188
13012 * fork-child.c (trace_start_error): Fix thinko. va_end should
13013 refer to 'ap', not 'args'.
13014
13015 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13016 Pedro Alves <palves@redhat.com>
13017
13018 PR gdb/16188
13019 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
13020 calls succeeded.
13021 * fork-child.c (trace_start_error): New function.
13022 (trace_start_error_with_name): Likewise.
13023 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
13024 * inf-ptrace.c (inf_ptrace_me): Likewise.
13025 * inferior.h (trace_start_error): New prototype.
13026 (trace_start_error_with_name): Likewise.
13027
13028 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
13029
13030 PR gdb/21164
13031 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
13032 NULL before using it.
13033 * symmisc.c (maintenance_print_symbols): Likewise.
13034 (maintenance_print_msymbols): Likewise.
13035
13036 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13037
13038 * NEWS: Add record Python bindings entry.
13039
13040 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13041
13042 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
13043 py-record-full.o.
13044 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
13045 * python/py-record-btrace.c, python/py-record-btrace.h,
13046 python/py-record-full.c, python/py-record-full.h: New file.
13047 * python/py-record.c: Add include for py-record-btrace.h and
13048 py-record-full.h.
13049 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
13050 recpy_instruction_history, recpy_function_call_history, recpy_begin,
13051 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
13052 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
13053 New definition.
13054 (gdbpy_initialize_btrace): New export.
13055 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
13056
13057 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13058
13059 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
13060 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
13061 * python/py-record.c: New file.
13062 * python/python-internal.h (gdbpy_start_recording,
13063 gdbpy_current_recording, gdpy_stop_recording,
13064 gdbpy_initialize_record): New export.
13065 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
13066 (python_GdbMethods): Add gdbpy_start_recording,
13067 gdbpy_current_recording and gdbpy_stop_recording.
13068
13069 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13070
13071 * record-btrace.c (record_btrace_record_method): New function.
13072 (init_record_btrace_ops): Initialize to_record_method.
13073 * record-full.c (record_full_record_method): New function.
13074 (init_record_full_ops, init_record_full_core_ops): Add
13075 record_full_record_method.
13076 * record.h (enum record_method): New enum.
13077 * target-debug.h (target_debug_print_enum_record_method: New define.
13078 * target-delegates.c: Regenerate.
13079 * target.c (target_record_method): New function.
13080 * target.h: Include record.h.
13081 (struct target_ops) <to_record_method>: New field.
13082 (target_record_method): New export.
13083
13084 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13085
13086 * record.h (record_start, record_stop): New export.
13087 * record.c (record_start, record_stop): New function.
13088
13089 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13090
13091 * btrace.c (btrace_fetch): Copy function call segments pointer
13092 into a vector.
13093 (btrace_clear): Clear the vector.
13094 (btrace_find_insn_by_number): Use binary search to find the correct
13095 function call segment.
13096 * btrace.h (brace_fun_p): New typedef.
13097 (struct btrace_thread_info) <functions>: New field.
13098
13099 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13100
13101 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
13102 * btrace.c (btrace_decode_error): ... here. New function.
13103 * btrace.h (btrace_decode_error): New export.
13104
13105 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13106
13107 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
13108 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
13109 btrace_find_insn_by_number): Remove special case for gaps.
13110 * btrace.h (btrace_insn_get_error): New export.
13111 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
13112 * record-btrace.c (btrace_insn_history): Print number for gaps.
13113 (record_btrace_info, record_btrace_goto): Handle gaps.
13114
13115 2017-02-14 Tom Tromey <tom@tromey.com>
13116
13117 PR python/13598:
13118 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
13119 event.
13120 * python/py-evts.c (gdbpy_initialize_py_events): Add
13121 before_prompt registry.
13122 * python/py-events.h (events_object) <before_prompt>: New field.
13123
13124 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
13125
13126 * btrace.c (ftrace_new_switch): Preserve up link and flags.
13127
13128 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
13129
13130 * symfile (_initialize_symfile): Add usage text to the load command's
13131 help text.
13132
13133 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
13134
13135 * utils.c (defaulted_query): Don't query on secondary UIs.
13136
13137 2017-02-10 Tom Tromey <tom@tromey.com>
13138
13139 * rust-lang.c (rust_get_disr_info): Remove unused variable.
13140
13141 2017-02-10 Tom Tromey <tom@tromey.com>
13142
13143 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
13144 "cleanup" local.
13145 * python/py-type.c (typy_legacy_template_argument): Remove
13146 unnecessary "cleanup" local.
13147
13148 2017-02-10 Tom Tromey <tom@tromey.com>
13149
13150 * python/python.c (do_start_initialization): New function, from
13151 _initialize_python.
13152 (_initialize_python): Call do_start_initialization.
13153 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
13154 goto.
13155
13156 2017-02-10 Tom Tromey <tom@tromey.com>
13157
13158 * python/py-prettyprint.c (pretty_print_one_value): Use
13159 gdbpy_ref.
13160
13161 2017-02-10 Tom Tromey <tom@tromey.com>
13162
13163 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
13164 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
13165 gdbpy_ref.
13166 * python/py-type.c (field_new): Use gdbpy_ref.
13167 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
13168 gdbpy_ref.
13169 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
13170 (py_free_pspace): Likewise.
13171 (pspace_to_pspace_object): Likewise.
13172 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
13173 (py_free_objfile): Likewise.
13174 (objfile_to_objfile_object): Likewise.
13175 * python/py-inferior.c (delete_thread_object): Use
13176 gdbpy_ref.
13177 (infpy_read_memory): Likewise.
13178 (py_free_inferior): Likewise.
13179 * python/py-evtregistry.c (create_eventregistry_object): Use
13180 gdbpy_ref.
13181 * python/py-event.c (create_event_object): Use gdbpy_ref.
13182
13183 2017-02-10 Tom Tromey <tom@tromey.com>
13184
13185 * python/py-ref.h (gdbpy_ref_policy): Now a template.
13186 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
13187 used.
13188 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
13189 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
13190 python/py-exitedevent.c, python/py-finishbreakpoint.c,
13191 python/py-framefilter.c, python/py-function.c,
13192 python/py-inferior.c, python/py-infevents.c,
13193 python/py-linetable.c, python/py-newobjfileevent.c,
13194 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
13195 python/py-signalevent.c, python/py-stopevent.c,
13196 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
13197 python/py-unwind.c, python/py-utils.c, python/py-value.c,
13198 python/py-varobj.c, python/py-xmethods.c, python/python.c,
13199 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
13200
13201 2017-02-10 Tom Tromey <tom@tromey.com>
13202
13203 * ui-out.h (ui_out_emit_type): New class.
13204 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
13205 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
13206 and ui_out_emit_tuple.
13207 (enumerate_locals): Likewise.
13208 (py_mi_print_variables, py_print_locals, py_print_args): Use
13209 ui_out_emit_list.
13210 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
13211 ui_out_emit_list.
13212 * common/gdb_optional.h: New file.
13213
13214 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
13215
13216 * MAINTAINERS (Write After Approval): Update my e-mail address.
13217
13218 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
13219
13220 PR gdb/21122
13221 * breakpoint.c (_initialize_breakpoint): Update the help description
13222 of the 'commands' command to indicate that it takes a list argument.
13223
13224 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
13225
13226 * interps.c (current_interp_set_logging): Remove "return".
13227
13228 2017-02-09 Gary Benson <gbenson@redhat.com>
13229
13230 * symtab.c (add_symtab_completions): Prevent NULL pointer
13231 dereference.
13232
13233 2017-02-08 Pedro Alves <palves@redhat.com>
13234
13235 * interps.c (interp::interp): Remove reference to quiet_p.
13236 (interp_set): Make static. Remove dead "Switching to" output
13237 code.
13238 (interp_quiet_p, interp_set_quiet): Delete.
13239 (interpreter_exec_cmd): Don't set the interpreter quiet.
13240 * interps.h (interp_quiet_p): Make static.
13241 (class interp) <quiet_p>: Remove field
13242
13243 2017-02-08 Jerome Guitton <guitton@adacore.com>
13244
13245 * cli/cli-decode.c (find_command_name_length): Make it extern.
13246 * cli/cli-decode.h (find_command_name_length): Declare.
13247 * cli/cli-script.c (command_name_equals, line_first_arg):
13248 New functions.
13249 (process_next_line): Use cli-decode to parse command names.
13250 (build_command_line): Make args a constant pointer.
13251
13252 2017-02-08 Jerome Guitton <guitton@adacore.com>
13253
13254 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
13255 Remove case-insensitive search.
13256
13257 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
13258
13259 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
13260 at the end of the line. Avoids an ARI warning.
13261
13262 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
13263
13264 * NEWS: Mention support for record/replay of Intel 64 rdrand and
13265 rdseed instructions.
13266 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
13267
13268 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
13269
13270 PR tdep/20936
13271 Provide and use sparc32 and sparc64 target description XML files.
13272 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
13273 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
13274 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
13275 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
13276 * features/sparc/sparc32-solaris.xml: New file.
13277 * features/sparc/sparc64-solaris.xml: New file.
13278 * features/sparc/sparc32-solaris.c: Generated.
13279 * features/sparc/sparc64-solaris.c: Generated.
13280 * sparc-tdep.h: Account for differences in target descriptions.
13281 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
13282 (sparc32_register_type): Use target provided registers.
13283 (validate_tdesc_registers): New function.
13284 (sparc32_gdbarch_init): Use tdesc_has_registers.
13285 Set pseudoregister functions.
13286 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
13287 (sparc64_register_type): Use target provided registers.
13288 (sparc64_init_abi): Set pseudoregister functions.
13289
13290 2017-02-03 Tom Tromey <tom@tromey.com>
13291
13292 PR rust/21097:
13293 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
13294 with a single member.
13295
13296 2017-02-03 Pedro Alves <palves@redhat.com>
13297
13298 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
13299 (cli_interp_base::~cli_interp_base): New.
13300 (cli_interp): New struct.
13301 (as_cli_interp): Cast the interp itself to cli_interp.
13302 (cli_interpreter_pre_command_loop): Rename to ...
13303 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
13304 parameter.
13305 (cli_interpreter_init): Rename to ...
13306 (cli_interp::init): ... this. Remove 'self' parameter. Use
13307 boolean. Make extern.
13308 (cli_interpreter_resume): Rename to ...
13309 (cli_interp::resume): ... this. Remove 'data' parameter. Make
13310 extern.
13311 (cli_interpreter_suspend): Rename to ...
13312 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
13313 extern.
13314 (cli_interpreter_exec): Rename to ...
13315 (cli_interp::exec): ... this. Remove 'data' parameter. Make
13316 extern.
13317 (cli_interpreter_supports_command_editing): Rename to ...
13318 (cli_interp_base::supports_command_editing): ... this. Remove
13319 'interp' parameter. Make extern.
13320 (cli_ui_out): Rename to ...
13321 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
13322 Make extern.
13323 (cli_set_logging): Rename to ...
13324 (cli_interp_base::set_logging): ... this. Remove 'interp'
13325 parameter. Make extern.
13326 (cli_interp_procs): Delete.
13327 (cli_interp_factory): Adjust to use "new".
13328 * cli/cli-interp.h: Include "interps.h".
13329 (struct cli_interp_base): New struct.
13330 * interps.c (struct interp): Delete. Fields moved to interps.h.
13331 (interp_new): Delete.
13332 (interp::interp, interp::~interp): New.
13333 (interp_set): Use bool, and return void. Assume the interpreter
13334 has suspend, init and resume methods, and that the all return
13335 void.
13336 (set_top_level_interpreter): interp_set returns void.
13337 (interp_ui_out): Adapt.
13338 (current_interp_set_logging): Adapt.
13339 (interp_data): Delete.
13340 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
13341 (interp_exec): Adapt.
13342 (top_level_interpreter_data): Delete.
13343 * interps.h (interp_init_ftype, interp_resume_ftype)
13344 (interp_suspend_ftype, interp_exec_ftype)
13345 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
13346 (class interp): New.
13347 (interp_new): Delete.
13348 (interp_set): Now returns void. Use bool.
13349 (interp_data, top_level_interpreter_data): Delete.
13350 * mi/mi-common.h: Include interps.h.
13351 (class mi_interp): Inherit from interp. Define a ctor. Declare
13352 init, resume, suspect, exec, interp_ui_out, set_logging and
13353 pre_command_loop methods.
13354 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
13355 (mi_interpreter_init): Rename to ...
13356 (mi_interp::init): ... this. Remove the 'interp' parameter, use
13357 bool, return void and make extern. Adjust.
13358 (mi_interpreter_resume): ... Rename to ...
13359 (mi_interp::resume): ... this. Remove the 'data' parameter,
13360 return void and make extern. Adjust.
13361 (mi_interpreter_suspend): ... Rename to ...
13362 (mi_interp::suspend): ... this. Remove the 'data' parameter,
13363 return void and make extern. Adjust.
13364 (mi_interpreter_exec): ... Rename to ...
13365 (mi_interp::exec): ... this. Remove the 'data' parameter and make
13366 extern. Adjust.
13367 (mi_interpreter_pre_command_loop): ... Rename to ...
13368 (mi_interp::pre_command_loop): ... this. Remove the 'self'
13369 parameter and make extern.
13370 (mi_on_normal_stop_1): Adjust.
13371 (mi_ui_out): Rename to ...
13372 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
13373 parameter and make extern. Adjust.
13374 (mi_set_logging): Rename to ...
13375 (mi_interp::set_logging): ... this. Remove the 'interp'
13376 parameter and make extern. Adjust.
13377 (mi_interp_procs): Delete.
13378 (mi_interp_factory): Adjust to use 'new'.
13379 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
13380 (mi_print_exception, mi_execute_command, mi_load_progress):
13381 Adjust.
13382 * tui/tui-interp.c (tui_interp): New class.
13383 (as_tui_interp): Return a tui_interp pointer.
13384 (tui_on_normal_stop, tui_on_signal_received)
13385 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
13386 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
13387 to use interp::interp_ui_out.
13388 (tui_init): Rename to ...
13389 (tui_interp::init): ... this. Remove the 'self' parameter, use
13390 bool, return void and make extern. Adjust.
13391 (tui_resume): Rename to ...
13392 (tui_interp::resume): ... this. Remove the 'data' parameter,
13393 return void and make extern. Adjust.
13394 (tui_suspend): Rename to ...
13395 (tui_interp::suspend): ... this. Remove the 'data' parameter,
13396 return void and make extern. Adjust.
13397 (tui_ui_out): Rename to ...
13398 (tui_interp::interp_ui_out): ... this. Remove the 'self'
13399 parameter, and make extern. Adjust.
13400 (tui_exec): Rename to ...
13401 (tui_interp::exec): ... this. Remove the 'data' parameter and
13402 make extern.
13403 (tui_interp_procs): Delete.
13404 (tui_interp_factory): Use "new".
13405
13406 2017-02-02 Tom Tromey <tom@tromey.com>
13407
13408 * rust-exp.y (ends_raw_string, space_then_number)
13409 (rust_identifier_start_p): Return bool.
13410 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
13411 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
13412 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
13413 (rust_chartype_p): Return bool.
13414 (val_print_struct, rust_print_struct_def, rust_print_type):
13415 Update.
13416 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
13417 Return bool.
13418
13419 2017-02-02 Tom Tromey <tom@tromey.com>
13420
13421 * rust-lang.c: Reindent.
13422
13423 2017-02-02 Tom Tromey <tom@tromey.com>
13424
13425 * rust-lang.h (rust_crate_for_block): Update.
13426 * rust-lang.c (rust_crate_for_block): Return std::string.
13427 (rust_get_disr_info): Use std:;string, not
13428 gdb::unique_xmalloc_ptr.
13429 * rust-exp.y (crate_name): Update.
13430
13431 2017-02-02 Pedro Alves <palves@redhat.com>
13432
13433 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
13434 field out of gdb_disassembler_test and make it static.
13435
13436 2017-02-02 Pedro Alves <palves@redhat.com>
13437
13438 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
13439 mi1_interp and mi_interp fields.
13440
13441 2017-02-02 Pedro Alves <palves@redhat.com>
13442
13443 * cli/cli-interp.c (struct saved_output_files, saved_output):
13444 Moved from cli/cli-logging.c.
13445 (cli_set_logging): New function.
13446 (cli_interp_procs): Install cli_set_logging.
13447 * cli/cli-interp.h (make_logging_output, cli_set_logging):
13448 Declare.
13449 * cli/cli-logging.c (struct saved_output_files, saved_output):
13450 Moved to cli/cli-interp.c.
13451 (pop_output_files): Don't save outputs here.
13452 (make_logging_output): New function.
13453 (handle_redirections): Don't build tee nor save previous outputs
13454 here.
13455 * interps.c (current_interp_set_logging): Change prototype.
13456 Assume there's always a set_logging_proc method installed.
13457 * interps.h (interp_set_logging_ftype): Change prototype.
13458 (current_interp_set_logging): Change prototype and adjust comment.
13459 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
13460 use make_logging_output.
13461 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
13462 2017-02-02 Pedro Alves <palves@redhat.com>
13463
13464 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
13465 from ...
13466 (set_logging_overwrite): ... here.
13467 (logging_no_redirect_file): Delete.
13468 (set_logging_redirect): Don't handle redirection on the fly.
13469 Instead warn that "logging off" / "logging on" is necessary.
13470 (pop_output_files): Delete references to logging_no_redirect_file.
13471 (show_logging_command): Always speak in terms of what will happen
13472 once logging is reenabled.
13473
13474 2017-02-02 Pedro Alves <palves@redhat.com>
13475
13476 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
13477
13478 2017-02-02 Pedro Alves <palves@redhat.com>
13479
13480 * disasm.c (gdb_pretty_print_insn): Rename to ...
13481 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
13482 Remove gdbarch parameter. Adapt to clear the object's buffers
13483 instead of allocating new buffers, and to print using the object's
13484 gdb_disassembler instead of calling gdb_print_insn.
13485 (dump_insns): Use gdb_pretty_print_disassembler.
13486 * disasm.h (gdb_pretty_print_insn): Delete declaration.
13487 (gdb_pretty_print_disassembler): New class.
13488 * record-btrace.c (btrace_insn_history): Use
13489 gdb_pretty_print_disassembler.
13490
13491 2017-02-02 Pedro Alves <palves@redhat.com>
13492
13493 * ada-lang.c (type_as_string): Use string_file.
13494 * ada-valprint.c (ada_print_floating): Use string_file.
13495 * ada-varobj.c (ada_varobj_scalar_image)
13496 (ada_varobj_get_value_image): Use string_file.
13497 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
13498 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
13499 * breakpoint.c (update_inserted_breakpoint_locations)
13500 (insert_breakpoint_locations, reattach_breakpoints)
13501 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
13502 (print_it_watchpoint): Use string_file.
13503 (save_breakpoints): Use stdio_file.
13504 * c-exp.y (oper): Use string_file.
13505 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
13506 tee_file.
13507 (pop_output_files): Use delete.
13508 (handle_redirections): Use stdio_file and tee_file.
13509 * cli/cli-setshow.c (do_show_command): Use string_file.
13510 * compile/compile-c-support.c (c_compute_program): Use
13511 string_file.
13512 * compile/compile-c-symbols.c (generate_vla_size): Take a
13513 'string_file &' instead of a 'ui_file *'.
13514 (generate_c_for_for_one_variable): Take a 'string_file &' instead
13515 of a 'ui_file *'. Use string_file.
13516 (generate_c_for_variable_locations): Take a 'string_file &'
13517 instead of a 'ui_file *'.
13518 * compile/compile-internal.h (generate_c_for_for_one_variable):
13519 Take a 'string_file &' instead of a 'ui_file *'.
13520 * compile/compile-loc2c.c (push, pushf, unary, binary)
13521 (print_label, pushf_register_address, pushf_register)
13522 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
13523 'ui_file *'. Adjust.
13524 * compile/compile.c (compile_to_object): Use string_file.
13525 * compile/compile.h (compile_dwarf_expr_to_c)
13526 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
13527 'ui_file *'.
13528 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
13529 (replace_typedefs_qualified_name): Use string_file and
13530 obstack_copy0.
13531 * disasm.c (gdb_pretty_print_insn): Use string_file.
13532 (gdb_disassembly): Adjust reference the null_stream global.
13533 (do_ui_file_delete): Delete.
13534 (gdb_insn_length): Use null_stream.
13535 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
13536 * dwarf2loc.c (dwarf2_compile_property_to_c)
13537 (locexpr_generate_c_location, loclist_generate_c_location): Take a
13538 'string_file &' instead of a 'ui_file *'.
13539 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
13540 * dwarf2read.c (do_ui_file_peek_last): Delete.
13541 (dwarf2_compute_name): Use string_file.
13542 * event-top.c (gdb_setup_readline): Use stdio_file.
13543 * gdbarch.sh (verify_gdbarch): Use string_file.
13544 * gdbtypes.c (safe_parse_type): Use null_stream.
13545 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
13546 string_file.
13547 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
13548 'string_file *' instead of a 'ui_file *'.
13549 (gdbscm_arch_disassemble): Use string_file.
13550 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
13551 * guile/scm-ports.c (class ioscm_file_port): Now a class that
13552 inherits from ui_file.
13553 (ioscm_file_port_delete, ioscm_file_port_rewind)
13554 (ioscm_file_port_put): Delete.
13555 (ioscm_file_port_write): Rename to ...
13556 (ioscm_file_port::write): ... this. Remove file_port_magic
13557 checks.
13558 (ioscm_file_port_new): Delete.
13559 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
13560 ui_file_up.
13561 * guile/scm-type.c (tyscm_type_name): Use string_file.
13562 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
13563 Use string_file.
13564 * infcmd.c (print_return_value_1): Use string_file.
13565 * infrun.c (print_target_wait_results): Use string_file.
13566 * language.c (add_language): Use string_file.
13567 * location.c (explicit_to_string_internal): Use string_file.
13568 * main.c (captured_main_1): Use null_file.
13569 * maint.c (maintenance_print_architecture): Use stdio_file.
13570 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
13571 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
13572 event_channel>: Change type to mi_console_file pointer.
13573 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
13574 (mi_console_file_delete): Delete.
13575 (struct mi_console_file): Delete.
13576 (mi_console_file_magic): Delete.
13577 (mi_console_file_new): Delete.
13578 (mi_console_file::mi_console_file): New.
13579 (mi_console_file_delete): Delete.
13580 (mi_console_file_fputs): Delete.
13581 (mi_console_file::write): New.
13582 (mi_console_raw_packet): Delete.
13583 (mi_console_file::flush): New.
13584 (mi_console_file_flush): Delete.
13585 (mi_console_set_raw): Rename to ...
13586 (mi_console_file::set_raw): ... this.
13587 * mi/mi-console.h (class mi_console_file): New class.
13588 (mi_console_file_new, mi_console_set_raw): Delete.
13589 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
13590 (mi_set_logging): Use delete and tee_file. Adjust.
13591 * mi/mi-main.c (output_register): Use string_file.
13592 (mi_cmd_data_evaluate_expression): Use string_file.
13593 (mi_cmd_data_read_memory): Use string_file.
13594 (mi_cmd_execute, print_variable_or_computed): Use string_file.
13595 * mi/mi-out.c (mi_ui_out::main_stream): New.
13596 (mi_ui_out::rewind): Use main_stream and
13597 string_file.
13598 (mi_ui_out::put): Use main_stream and string_file.
13599 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13600 Allocate a 'string_file' instead.
13601 (mi_out_new): Don't allocate a mem_fileopen stream here.
13602 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13603 (mi_ui_out::main_stream): Declare method.
13604 * printcmd.c (eval_command): Use string_file.
13605 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
13606 * python/py-arch.c (archpy_disassemble): Use string_file.
13607 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
13608 * python/py-frame.c (frapy_str): Use string_file.
13609 * python/py-framefilter.c (py_print_type, py_print_single_arg):
13610 Use string_file.
13611 * python/py-type.c (typy_str): Use string_file.
13612 * python/py-unwind.c (unwind_infopy_str): Use string_file.
13613 * python/py-value.c (valpy_str): Use string_file.
13614 * record-btrace.c (btrace_insn_history): Use string_file.
13615 * regcache.c (regcache_print): Use stdio_file.
13616 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
13617 * remote.c (escape_buffer): Use string_file.
13618 * rust-lang.c (rust_get_disr_info): Use string_file.
13619 * serial.c (serial_open_ops_1): Use stdio_file.
13620 (do_serial_close): Use delete.
13621 * stack.c (print_frame_arg): Use string_file.
13622 (print_frame_args): Remove local mem_fileopen stream, not used.
13623 (print_frame): Use string_file.
13624 * symmisc.c (maintenance_print_symbols): Use stdio_file.
13625 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
13626 Take a 'string_file *' instead of a 'ui_file *'.
13627 * top.c (new_ui): Use stdio_file and stderr_file.
13628 (free_ui): Use delete.
13629 (execute_command_to_string): Use string_file.
13630 (quit_confirm): Use string_file.
13631 * tracepoint.c (collection_list::append_exp): Use string_file.
13632 * tui/tui-disasm.c (tui_disassemble): Use string_file.
13633 * tui/tui-file.c: Don't include "ui-file.h".
13634 (enum streamtype, struct tui_stream): Delete.
13635 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
13636 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
13637 (tui_file::tui_file): New method.
13638 (tui_file_fputs): Delete.
13639 (tui_file_get_strbuf): Delete.
13640 (tui_file::puts): New method.
13641 (tui_file_adjust_strbuf): Delete.
13642 (tui_file_flush): Delete.
13643 (tui_file::flush): New method.
13644 * tui/tui-file.h: Tweak intro comment.
13645 Include ui-file.h.
13646 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
13647 (tui_file_adjust_strbuf): Delete declarations.
13648 (class tui_file): New class.
13649 * tui/tui-io.c (tui_initialize_io): Use tui_file.
13650 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
13651 (tui_register_format): Use string_stream.
13652 * tui/tui-stack.c (tui_make_status_line): Use string_file.
13653 (tui_get_function_from_frame): Use string_file.
13654 * typeprint.c (type_to_string): Use string_file.
13655 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
13656 (null_stream): New global.
13657 (ui_file_delete): Delete.
13658 (ui_file::ui_file): New.
13659 (null_file_isatty): Delete.
13660 (ui_file::~ui_file): New.
13661 (null_file_rewind): Delete.
13662 (ui_file::printf): New.
13663 (null_file_put): Delete.
13664 (null_file_flush): Delete.
13665 (ui_file::putstr): New.
13666 (null_file_write): Delete.
13667 (ui_file::putstrn): New.
13668 (null_file_read): Delete.
13669 (ui_file::putc): New.
13670 (null_file_fputs): Delete.
13671 (null_file_write_async_safe): Delete.
13672 (ui_file::vprintf): New.
13673 (null_file_delete): Delete.
13674 (null_file::write): New.
13675 (null_file_fseek): Delete.
13676 (null_file::puts): New.
13677 (ui_file_data): Delete.
13678 (null_file::write_async_safe): New.
13679 (gdb_flush, ui_file_isatty): Adjust.
13680 (ui_file_put, ui_file_rewind): Delete.
13681 (ui_file_write): Adjust.
13682 (ui_file_write_for_put): Delete.
13683 (ui_file_write_async_safe, ui_file_read): Adjust.
13684 (ui_file_fseek): Delete.
13685 (fputs_unfiltered): Adjust.
13686 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13687 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13688 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13689 (set_ui_file_data): Delete.
13690 (string_file::~string_file, string_file::write)
13691 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13692 (do_ui_file_as_string, ui_file_as_string): Delete.
13693 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13694 (struct mem_file): Delete.
13695 (mem_file_new): Delete.
13696 (stdio_file::stdio_file): New.
13697 (mem_file_delete): Delete.
13698 (stdio_file::stdio_file): New.
13699 (mem_fileopen): Delete.
13700 (stdio_file::~stdio_file): New.
13701 (mem_file_rewind): Delete.
13702 (stdio_file::set_stream): New.
13703 (mem_file_put): Delete.
13704 (stdio_file::open): New.
13705 (mem_file_write): Delete.
13706 (stdio_file_magic, struct stdio_file): Delete.
13707 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13708 (stdio_file::flush): New.
13709 (stdio_file_read): Rename to ...
13710 (stdio_file::read): ... this. Adjust.
13711 (stdio_file_write): Rename to ...
13712 (stdio_file::write): ... this. Adjust.
13713 (stdio_file_write_async_safe): Rename to ...
13714 (stdio_file::write_async_safe) ... this. Adjust.
13715 (stdio_file_fputs): Rename to ...
13716 (stdio_file::puts) ... this. Adjust.
13717 (stdio_file_isatty): Delete.
13718 (stdio_file_fseek): Delete.
13719 (stdio_file::isatty): New.
13720 (stderr_file_write): Rename to ...
13721 (stderr_file::write) ... this. Adjust.
13722 (stderr_file_fputs): Rename to ...
13723 (stderr_file::puts) ... this. Adjust.
13724 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13725 (stderr_file::stderr_file): New.
13726 (tee_file_magic): Delete.
13727 (struct tee_file): Delete.
13728 (tee_file::tee_file): New.
13729 (tee_file_new): Delete.
13730 (tee_file::~tee_file): New.
13731 (tee_file_delete): Delete.
13732 (tee_file_flush): Rename to ...
13733 (tee_file::flush): ... this. Adjust.
13734 (tee_file_write): Rename to ...
13735 (tee_file::write): ... this. Adjust.
13736 (tee_file::write_async_safe): New.
13737 (tee_file_fputs): Rename to ...
13738 (tee_file::puts): ... this. Adjust.
13739 (tee_file_isatty): Rename to ...
13740 (tee_file::isatty): ... this. Adjust.
13741 * ui-file.h (struct obstack, struct ui_file): Don't
13742 forward-declare.
13743 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13744 (ui_file_write_ftype)
13745 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13746 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13747 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13748 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13749 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13750 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13751 (set_ui_file_fseek): Delete.
13752 (ui_file_data, ui_file_delete, ui_file_rewind)
13753 (struct ui_file): New.
13754 (ui_file_up): New.
13755 (class null_file): New.
13756 (null_stream): Declare.
13757 (ui_file_write_for_put, ui_file_put): Delete.
13758 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13759 Delete.
13760 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13761 (gdb_fopen, tee_file_new): Delete.
13762 (struct string_file): New.
13763 (struct stdio_file): New.
13764 (stdio_file_up): New.
13765 (struct stderr_file): New.
13766 (class tee_file): New.
13767 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13768 of a 'ui_file *'. Adjust.
13769 * ui-out.h (class ui_out) <field_stream>: Likewise.
13770 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13771 (null_stream): Delete.
13772 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13773 Adjust.
13774 * utils.h (struct ui_file): Delete forward declaration..
13775 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13776 (error_stream): Take a 'string_file &' instead of a
13777 'ui_file *'.
13778 * varobj.c (varobj_value_get_print_value): Use string_file.
13779 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13780 * gdbarch.c: Regenerate.
13781
13782 2017-02-02 Pedro Alves <palves@redhat.com>
13783
13784 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13785 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13786 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13787 Adjust to call gdb_print_insn instead of
13788 gdb_disassembler::print_insn.
13789 (dump_insns, do_mixed_source_and_assembly_deprecated)
13790 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13791 'gdbarch' parameter. Remove gdb_disassembler parameter.
13792 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13793 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13794 declaration.
13795 (gdb_pretty_print_insn): Re-add declaration.
13796 * record-btrace.c (btrace_insn_history): Don't allocate a
13797 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13798
13799 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13800
13801 * disasm.h (gdb_disassembly): Remove file_string parameter.
13802 * disasm.c (gdb_disassembly): Likewise.
13803 * cli/cli-cmds.c (print_disassembly): Adapt.
13804 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13805 * stack.c (do_gdb_disassembly): Likewise.
13806
13807 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13808
13809 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13810 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13811 targets. And if the implicit value is longer than needed, extract
13812 the first bytes instead of the "least significant" ones.
13813
13814 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13815
13816 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13817 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13818 (btrace_fetch): Assert can_access_registers_ptid.
13819 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13820 validate_registers_access.
13821
13822 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13823
13824 * gdbthread.h (can_access_registers_ptid): New.
13825 * thread.c (can_access_registers_ptid): New.
13826
13827 2017-02-01 Pedro Alves <palves@redhat.com>
13828
13829 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13830
13831 2017-01-31 Pedro Alves <palves@redhat.com>
13832
13833 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13834 Fix typos.
13835
13836 2017-01-31 Pedro Alves <palves@redhat.com>
13837
13838 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13839 not used.
13840
13841 2017-01-31 Pedro Alves <palves@redhat.com>
13842
13843 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13844
13845 2017-01-31 Pedro Alves <palves@redhat.com>
13846
13847 * common/scoped_restore.h
13848 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13849 change the value's parameter type to T2.
13850 (make_scoped_restore): Likewise.
13851
13852 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13853 Richard Henderson <rth@redhat.com>
13854
13855 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13856 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13857 GS_BASE for older kernels.
13858 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13859 GS_BASE for older kernels.
13860 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13861 and GS_BASE to the offset table.
13862 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13863 system register group.
13864 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13865 for older kernels.
13866 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13867 amd64 ABI.
13868 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13869 AMD64_GSBASE_REGNUM.
13870 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13871 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13872 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13873 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13874 i386/64bit-segments.xml in those rules.
13875 * features/i386/64bit-segments.xml: New file.
13876 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13877 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13878 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13879 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13880 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13881 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13882 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13883 * features/i386/amd64-avx-linux.c: Regenerated.
13884 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13885 * features/i386/amd64-avx-mpx.c: Regenerated.
13886 * features/i386/amd64-avx512-linux.c: Regenerated.
13887 * features/i386/amd64-linux.c: Regenerated.
13888 * features/i386/amd64-mpx-linux.c: Regenerated.
13889 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13890 * features/i386/i386-avx-mpx.c: Regenerated.
13891 * features/i386/x32-avx-linux.c: Regenerated.
13892 * features/i386/x32-avx512-linux.c: Regenerated.
13893 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13894 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13895 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13896 * regformats/i386/amd64-linux.dat: Regenerated.
13897 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13898 * regformats/i386/x32-avx-linux.dat: Regenerated.
13899 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13900 * regformats/i386/x32-linux.dat: Regenerated.
13901
13902 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13903
13904 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13905 Set to AMD64_NUM_REGS.
13906
13907 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13908
13909 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13910 that checks validity of a register number.
13911
13912 2017-01-27 Kees Cook <keescook@google.com>
13913
13914 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13915 fetch_fpregs if target has fpa registers.
13916 (arm_linux_store_inferior_registers): Call store_fpregs if target
13917 has fpa registers.
13918
13919 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13920
13921 * cris-tdep.c (cris_gdbarch_init): Remove check for
13922 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13923
13924 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13925
13926 * corelow.c (get_core_register_section): Check for regset
13927 existence before checking for REGSET_VARIABLE_SIZE.
13928
13929 2017-01-26 Yao Qi <yao.qi@linaro.org>
13930 Pedro Alves <palves@redhat.com>
13931
13932 PR gdb/20939
13933 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13934 call memory_error, save memaddr instead.
13935 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13936 negative, cal memory_error.
13937 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13938
13939 2017-01-26 Yao Qi <yao.qi@linaro.org>
13940
13941 * disasm-selftests.c (memory_error_test): New function.
13942 (_initialize_disasm_selftests): Register memory_error_test.
13943
13944 2017-01-26 Yao Qi <yao.qi@linaro.org>
13945
13946 * Makefile.in (SFILES): Add disasm-selftests.c and
13947 selftest-arch.c.
13948 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13949 * disasm-selftests.c: New file.
13950 * selftest-arch.c: New file.
13951 * selftest-arch.h: New file.
13952
13953 2017-01-26 Yao Qi <yao.qi@linaro.org>
13954
13955 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13956 to bfd_arch_mep. Don't return 0 if section is not
13957 found. Call print_insn_mep.
13958
13959 2017-01-26 Pedro Alves <palves@redhat.com>
13960 Yao Qi <yao.qi@linaro.org>
13961
13962 * arm-tdep.c: Include "disasm.h".
13963 (gdb_print_insn_arm): Update code to get gdbarch.
13964 * disasm.c (dis_asm_read_memory): Change it to
13965 gdb_disassembler::dis_asm_read_memory.
13966 (dis_asm_memory_error): Likewise.
13967 (dis_asm_print_address): Likewise.
13968 (gdb_pretty_print_insn): Change it to
13969 gdb_disassembler::pretty_print_insn.
13970 (dump_insns): Add one argument gdb_disassemlber. All
13971 callers updated.
13972 (do_mixed_source_and_assembly_deprecated): Likewise.
13973 (do_mixed_source_and_assembly): Likewise.
13974 (do_assembly_only): Likewise.
13975 (gdb_disassembler::gdb_disassembler): New.
13976 (gdb_disassembler::print_insn): New.
13977 * disasm.h (class gdb_disassembler): New.
13978 (gdb_pretty_print_insn): Remove declaration.
13979 (gdb_disassemble_info): Likewise.
13980 * guile/scm-disasm.c (class gdbscm_disassembler): New.
13981 (gdbscm_disasm_read_memory_worker): Update.
13982 (gdbscm_disasm_read_memory): Update.
13983 (gdbscm_disasm_memory_error): Remove.
13984 (gdbscm_disasm_print_address): Remove.
13985 (gdbscm_disassembler::gdbscm_disassembler): New.
13986 (gdbscm_print_insn_from_port): Update.
13987 * mips-tdep.c: Include disasm.h.
13988 (gdb_print_insn_mips): Update code to get gdbarch.
13989 * record-btrace.c (btrace_insn_history): Update.
13990 * spu-tdep.c: Include disasm.h.
13991 (struct spu_dis_asm_data): Remove.
13992 (struct spu_dis_asm_info): New.
13993 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
13994 SPU id.
13995 (gdb_print_insn_spu): Cast disassemble_info to
13996 spu_dis_asm_info.
13997
13998 2017-01-26 Yao Qi <yao.qi@linaro.org>
13999
14000 * disasm.c (do_ui_file_delete): Delete.
14001 (gdb_insn_length): Move code creating stream to ...
14002 * utils.c (null_stream): ... here. New function.
14003 * utils.h (null_stream): Declare.
14004
14005 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14006
14007 * python/py-inferior.c (find_thread_object): Return directly
14008 from the loop. Remove "found" variable.
14009
14010 2017-01-21 Joel Brobecker <brobecker@adacore.com>
14011
14012 GDB 7.12.1 released.
14013
14014 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14015
14016 * python/py-function.c (fnpy_call): Reorder declarations to have
14017 the gdbpy_enter object declared first.
14018 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
14019
14020 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14021
14022 PR python/21068
14023 * python/python-internal.h (PyMem_RawMalloc): Define for
14024 Python < 3.4.
14025 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
14026 PyMem_RawMalloc instead of PyMem_Malloc.
14027
14028 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
14029 Luis Machado <lgustavo@codesourcery.com>
14030
14031 * NEWS (New commands): Mention flash-erase.
14032 (New MI commands): Mention target-flash-erase.
14033 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
14034 command.
14035 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
14036 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
14037 * target.c (flash_erase_command): New function.
14038 (initialize_targets): Add new flash-erase command.
14039 * target.h (flash_erase_command): New declaration.
14040
14041 2017-01-20 Joel Brobecker <brobecker@adacore.com>
14042
14043 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
14044 HAVE_SYS_PROCFS_H is defined.
14045
14046 2017-01-18 Alan Hayward <alan.hayward@arm.com>
14047
14048 * remote.c (struct cached_reg): Change data into a pointer.
14049 * (stop_reply_dtr): Free data pointers before deleting vector.
14050 (process_stop_reply): Likewise.
14051 (remote_parse_stop_reply): Allocate space for data
14052
14053 2017-01-18 Alan Hayward <alan.hayward@arm.com>
14054
14055 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
14056 MAX_REGISTER_SIZE.
14057 (amd64_pseudo_register_read_value): Likewise.
14058 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
14059 (store_register_using_P): Likewise.
14060 * regcache.c (regcache_xfer_part): Likewise.
14061
14062 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
14063
14064 Split real and pseudo registers.
14065 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
14066 (sparc32_pseudo_regnum): New enum.
14067 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
14068 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
14069 (SPARC32_CP0_REGISTERS): New macro.
14070 (sparc32_pseudo_register_name): New function.
14071 (sparc32_register_name): Use sparc32_pseudo_register_name.
14072 (sparc32_pseudo_register_type): New function.
14073 (sparc32_register_type): Use sparc32_pseudo_register_type.
14074 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
14075 pseudo register numbers.
14076 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
14077 (SPARC64_CP0_REGISTERS): New macro.
14078 (sparc64_pseudo_register_name): New function.
14079 (sparc64_register_name): Use sparc64_pseudo_register_name.
14080 (sparc64_pseudo_register_type): New function.
14081 (sparc64_register_type): Use sparc64_pseudo_register_type.
14082 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
14083 pseudo register numbers.
14084 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
14085 sparc64_store_arguments): Handle pseudo register numbers.
14086
14087 2017-01-13 Yao Qi <yao.qi@linaro.org>
14088
14089 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
14090 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
14091 output.
14092 (getpkt_or_notif_sane_1): Likewise.
14093
14094 2017-01-13 Yao Qi <yao.qi@linaro.org>
14095
14096 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
14097 of CC. Pass "-x c++-header" instead of "-x c".
14098
14099 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14100
14101 * remote.c (remote_can_async_p): Update comment.
14102
14103 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14104
14105 * linux-nat.c (linux_nat_can_async_p): Update comment.
14106
14107 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14108
14109 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
14110
14111 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
14112
14113 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
14114
14115 2017-01-10 Tom Tromey <tom@tromey.com>
14116
14117 * python/py-type.c (typy_legacy_template_argument): Update.
14118 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
14119 ~demangle_parse_info): Declare new members.
14120 (cp_demangled_name_to_comp): Return unique_ptr.
14121 (cp_demangled_name_parse_free)
14122 (make_cleanup_cp_demangled_name_parse_free)
14123 (cp_new_demangle_parse_info): Remove.
14124 * cp-support.c (do_demangled_name_parse_free_cleanup)
14125 (make_cleanup_cp_demangled_name_parse_free): Remove.
14126 (inspect_type, cp_canonicalize_string_full)
14127 (cp_canonicalize_string): Update.
14128 (mangled_name_to_comp): Change return type.
14129 (cp_class_name_from_physname, method_name_from_physname)
14130 (cp_func_name, cp_remove_params): Update.
14131 * cp-name-parser.y (demangle_parse_info): New constructor, from
14132 cp_new_demangle_parse_info.
14133 (~demangle_parse_info): New destructor, from
14134 cp_demangled_name_parse_free.
14135 (cp_merge_demangle_parse_infos): Update.
14136 (cp_demangled_name_to_comp): Change return type.
14137
14138 2017-01-10 Tom Tromey <tom@tromey.com>
14139
14140 * top.c (prevent_dont_repeat): Change return type.
14141 * python/python.c (execute_gdb_command): Use std::string.
14142 Update.
14143 * guile/guile.c (gdbscm_execute_gdb_command): Update.
14144 * command.h (prevent_dont_repeat): Change return type.
14145 * breakpoint.c (bpstat_do_actions_1): Update.
14146
14147 2017-01-10 Tom Tromey <tom@tromey.com>
14148
14149 * value.h (scoped_value_mark::~scoped_value_mark): Call
14150 free_to_mark.
14151 (scoped_value_mark::free_to_mark): New method.
14152 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
14153 scoped_value_mark.
14154
14155 2017-01-10 Tom Tromey <tom@tromey.com>
14156
14157 * python/py-value.c (valpy_dereference, valpy_referenced_value)
14158 (valpy_reference_value, valpy_const_value, valpy_get_address)
14159 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
14160 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
14161 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
14162 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
14163 scoped_value_mark.
14164 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
14165 * value.h (scoped_value_mark): New class.
14166
14167 2017-01-10 Tom Tromey <tom@tromey.com>
14168
14169 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
14170 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
14171 * psymtab.c (discard_psymtabs_upto): Remove.
14172 (make_cleanup_discard_psymtabs): Remove.
14173 (struct psymtab_state): Remove.
14174
14175 2017-01-10 Tom Tromey <tom@tromey.com>
14176
14177 * record-full.c (record_full_save_cleanups): Remove.
14178 (record_full_save): Use gdb::unlinker.
14179 * gcore.c (do_bfd_delete_cleanup): Remove.
14180 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
14181 cleanups.
14182 * dwarf2read.c (unlink_if_set): Remove.
14183 (write_psymtabs_to_index): Use gdb::unlinker.
14184 * common/gdb_unlinker.h: New file.
14185
14186 2017-01-10 Tom Tromey <tom@tromey.com>
14187
14188 * windows-tdep.c (windows_xfer_shared_library): Update.
14189 * windows-nat.c (windows_make_so): Update.
14190 * utils.h (make_cleanup_bfd_unref): Remove.
14191 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
14192 * symfile.h (symfile_bfd_open)
14193 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
14194 * symfile.c (read_symbols, symbol_file_add)
14195 (separate_debug_file_exists): Update.
14196 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
14197 (generic_load, reread_symbols): Update.
14198 * symfile-mem.c (symbol_file_add_from_memory): Update.
14199 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
14200 (spu_symbol_file_add_from_memory): Update.
14201 * solist.h (struct target_so_ops) <bfd_open>: Return
14202 gdb_bfd_ref_ptr.
14203 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
14204 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
14205 gdb_bfd_ref_ptr.
14206 (solib_map_sections, reload_shared_libraries_1): Update.
14207 * solib-svr4.c (enable_break): Update.
14208 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
14209 * solib-frv.c (enable_break2): Update.
14210 * solib-dsbt.c (enable_break): Update.
14211 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
14212 gdb_bfd_ref_ptr.
14213 (darwin_solib_get_all_image_info_addr_at_init): Update.
14214 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
14215 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
14216 * record-full.c (record_full_save): Update.
14217 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
14218 * procfs.c (insert_dbx_link_bpt_in_file): Update.
14219 * minidebug.c (find_separate_debug_file_in_section): Return
14220 gdb_bfd_ref_ptr.
14221 * machoread.c (macho_add_oso_symfile): Change abfd to
14222 gdb_bfd_ref_ptr.
14223 (macho_symfile_read_all_oso): Update.
14224 (macho_check_dsym): Return gdb_bfd_ref_ptr.
14225 (macho_symfile_read): Update.
14226 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
14227 (jit_bfd_try_read_symtab): Update.
14228 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
14229 (gdb_bfd_openw, gdb_bfd_openr_iovec)
14230 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
14231 gdb_bfd_ref_ptr.
14232 (gdb_bfd_ref_policy): New struct.
14233 (gdb_bfd_ref_ptr): New typedef.
14234 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
14235 (gdb_bfd_openw, gdb_bfd_openr_iovec)
14236 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
14237 gdb_bfd_ref_ptr.
14238 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
14239 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
14240 (gcore_command): Update.
14241 * exec.c (exec_file_attach): Update.
14242 * elfread.c (elf_symfile_read): Update.
14243 * dwarf2read.c (dwarf2_get_dwz_file): Update.
14244 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
14245 (open_and_init_dwo_file): Update.
14246 (open_dwp_file): Return gdb_bfd_ref_ptr.
14247 (open_and_init_dwp_file): Update.
14248 * corelow.c (core_open): Update.
14249 * compile/compile-object-load.c (compile_object_load): Update.
14250 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
14251 * coffread.c (coff_symfile_read): Update.
14252 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
14253 gdb_bfd_ref_ptr. Rename.
14254 (dump_bfd_file, restore_command): Update.
14255 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
14256 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
14257 (find_separate_debug_file_by_buildid): Update.
14258
14259 2017-01-10 Tom Tromey <tom@tromey.com>
14260
14261 * common/gdb_ref_ptr.h: New file.
14262 * python/py-ref.h (struct gdbpy_ref_policy): New.
14263 (gdbpy_ref): Now a typedef.
14264
14265 2017-01-10 Tom Tromey <tom@tromey.com>
14266
14267 * utils.h (make_cleanup_htab_delete): Don't declare.
14268 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
14269 Remove.
14270 * linespec.c (decode_compound_collector): Add constructor,
14271 destructor.
14272 (lookup_prefix_sym): Remove cleanup.
14273 (symtab_collector): Add constructor, destructor.
14274 (collect_symtabs_from_filename): Remove cleanup.
14275 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
14276 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
14277 Use htab_up.
14278 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
14279 * dwarf2read.c (dw2_expand_symtabs_matching)
14280 (dw2_map_symbol_filenames, dwarf_decode_macros)
14281 (write_psymtabs_to_index): Use htab_up.
14282 * dwarf2loc.c (func_verify_no_selftailcall)
14283 (call_site_find_chain_1, func_verify_no_selftailcall)
14284 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
14285 std::vector, gdb::unique_xmalloc_ptr.
14286 (call_sitep): Remove typedef.
14287 (dwarf2_locexpr_baton_eval): Remove unused variable.
14288
14289 2017-01-10 Tom Tromey <tom@tromey.com>
14290
14291 * python/python-internal.h (make_cleanup_py_decref)
14292 (make_cleanup_py_xdecref): Don't declare.
14293 * python/py-utils.c (py_decref, make_cleanup_py_decref)
14294 (py_xdecref, make_cleanup_py_xdecref): Remove.
14295
14296 2017-01-10 Tom Tromey <tom@tromey.com>
14297
14298 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
14299 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
14300
14301 2017-01-10 Tom Tromey <tom@tromey.com>
14302
14303 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
14304
14305 2017-01-10 Tom Tromey <tom@tromey.com>
14306
14307 * python/py-utils.c (unicode_to_encoded_string)
14308 (python_string_to_target_string)
14309 (python_string_to_target_python_string)
14310 (python_string_to_host_string, gdbpy_obj_to_string)
14311 (get_addr_from_python): Use gdbpy_ref.
14312
14313 2017-01-10 Tom Tromey <tom@tromey.com>
14314
14315 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
14316 gdbpy_ref.
14317
14318 2017-01-10 Tom Tromey <tom@tromey.com>
14319
14320 * python/python.c (eval_python_command, gdbpy_decode_line)
14321 (gdbpy_run_events, gdbpy_start_type_printers)
14322 (gdbpy_apply_type_printers): Use gdbpy_ref.
14323
14324 2017-01-10 Tom Tromey <tom@tromey.com>
14325
14326 * python/py-param.c (get_doc_string, compute_enum_values): Use
14327 gdbpy_ref.
14328
14329 2017-01-10 Tom Tromey <tom@tromey.com>
14330
14331 * python/py-inferior.c (find_thread_object, build_inferior_list):
14332 Use gdbpy_ref.
14333
14334 2017-01-10 Tom Tromey <tom@tromey.com>
14335
14336 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14337
14338 2017-01-10 Tom Tromey <tom@tromey.com>
14339
14340 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
14341 gdbpy_ref.
14342
14343 2017-01-10 Tom Tromey <tom@tromey.com>
14344
14345 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
14346 extra incref.
14347 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
14348 Use gdbpy_ref.
14349
14350 2017-01-10 Tom Tromey <tom@tromey.com>
14351
14352 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14353 gdbpy_ref.
14354
14355 2017-01-10 Tom Tromey <tom@tromey.com>
14356
14357 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
14358 decref results of PyArg_ParseTupleAndKeywords.
14359
14360 2017-01-10 Tom Tromey <tom@tromey.com>
14361
14362 * python/python.c (python_run_simple_file): Use
14363 unique_xmalloc_ptr, gdbpy_ref.
14364
14365 2017-01-10 Tom Tromey <tom@tromey.com>
14366
14367 * python/py-prettyprint.c (print_stack_unless_memory_error)
14368 (print_string_repr, print_children): Use gdbpy_ref.
14369 (dummy_python_frame): New class.
14370 (dummy_python_frame::dummy_python_frame): Rename from
14371 push_dummy_python_frame.
14372 (py_restore_tstate): Remove.
14373
14374 2017-01-10 Tom Tromey <tom@tromey.com>
14375
14376 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14377
14378 2017-01-10 Tom Tromey <tom@tromey.com>
14379
14380 * python/python.c (ensure_python_env, restore_python_env):
14381 Remove.
14382 * python/python-internal.h (ensure_python_env): Don't declare.
14383 * varobj.h (varobj_ensure_python_env): Don't declare.
14384 * varobj.c (varobj_ensure_python_env): Remove.
14385
14386 2017-01-10 Tom Tromey <tom@tromey.com>
14387
14388 * varobj.c (varobj_value_get_print_value): Use
14389 gdbpy_enter_varobj.
14390
14391 2017-01-10 Tom Tromey <tom@tromey.com>
14392
14393 * python/py-prettyprint.c (print_string_repr, print_children):
14394 Update.
14395 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
14396 of "encoding".
14397 * varobj.c (varobj_value_get_print_value): Update.
14398 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
14399
14400 2017-01-10 Tom Tromey <tom@tromey.com>
14401
14402 * varobj.c (varobj_get_display_hint)
14403 (dynamic_varobj_has_child_method, install_new_value_visualizer)
14404 (varobj_set_visualizer, free_variable): Use
14405 gdbpy_enter_varobj.
14406
14407 2017-01-10 Tom Tromey <tom@tromey.com>
14408
14409 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
14410 (do_finish_initialization): New function. Use gdbpy_ref.
14411 (gdbpy_finish_initialization): Use gdbpy_enter. Call
14412 do_finish_initialization.
14413
14414 2017-01-10 Tom Tromey <tom@tromey.com>
14415
14416 * python/py-param.c (get_set_value, get_show_value): Use
14417 gdbpy_enter, gdbpy_ref.
14418
14419 2017-01-10 Tom Tromey <tom@tromey.com>
14420
14421 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
14422
14423 2017-01-10 Tom Tromey <tom@tromey.com>
14424
14425 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
14426
14427 2017-01-10 Tom Tromey <tom@tromey.com>
14428
14429 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
14430 Use gdbpy_enter_varobj.
14431
14432 2017-01-10 Tom Tromey <tom@tromey.com>
14433
14434 * varobj.c (gdbpy_enter_varobj): New constructor.
14435 * python/python-internal.h (gdbpy_enter_varobj): New class.
14436 * python/py-varobj.c (py_varobj_get_iterator): Use
14437 gdbpy_enter_varobj.
14438
14439 2017-01-10 Tom Tromey <tom@tromey.com>
14440
14441 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
14442 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14443 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
14444 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
14445 unique_xmalloc_ptr.
14446 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
14447
14448 2017-01-10 Tom Tromey <tom@tromey.com>
14449
14450 * python/py-xmethods.c (invoke_match_method): Use
14451 gdbpy_ref.
14452
14453 2017-01-10 Tom Tromey <tom@tromey.com>
14454
14455 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
14456 gdbpy_enter, gdbpy_ref.
14457
14458 2017-01-10 Tom Tromey <tom@tromey.com>
14459
14460 * python/python.c (python_interactive_command): Use gdbpy_enter.
14461
14462 2017-01-10 Tom Tromey <tom@tromey.com>
14463
14464 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
14465 gdbpy_ref.
14466
14467 2017-01-10 Tom Tromey <tom@tromey.com>
14468
14469 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
14470 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14471
14472 2017-01-10 Tom Tromey <tom@tromey.com>
14473
14474 * utils.h (htab_deleter): New struct.
14475 (htab_up): New typedef.
14476 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
14477 gdbpy_enter, gdbpy_ref, htab_up.
14478
14479 2017-01-10 Tom Tromey <tom@tromey.com>
14480
14481 * python/py-unwind.c (pending_frame_invalidate): Remove.
14482 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
14483
14484 2017-01-10 Tom Tromey <tom@tromey.com>
14485
14486 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
14487 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
14488
14489 2017-01-10 Tom Tromey <tom@tromey.com>
14490
14491 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
14492
14493 2017-01-10 Tom Tromey <tom@tromey.com>
14494
14495 * python/python.c (gdbpy_eval_from_control_command)
14496 (gdbpy_source_script, gdbpy_run_events)
14497 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
14498 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
14499 gdbpy_enter.
14500
14501 2017-01-10 Tom Tromey <tom@tromey.com>
14502
14503 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
14504
14505 2017-01-10 Tom Tromey <tom@tromey.com>
14506
14507 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
14508
14509 2017-01-10 Tom Tromey <tom@tromey.com>
14510
14511 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
14512 (python_on_inferior_call_pre, python_on_inferior_call_post)
14513 (python_on_memory_change, python_on_register_change)
14514 (python_inferior_exit, python_new_objfile, add_thread_object)
14515 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
14516
14517 2017-01-10 Tom Tromey <tom@tromey.com>
14518
14519 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
14520 (bpfinishpy_handle_exit): Use gdbpy_enter.
14521
14522 2017-01-10 Tom Tromey <tom@tromey.com>
14523
14524 * python/py-cmd.c (cmdpy_destroyer)
14525 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
14526 gdbpy_enter.
14527
14528 2017-01-10 Tom Tromey <tom@tromey.com>
14529
14530 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14531 gdbpy_enter.
14532 (gdbpy_breakpoint_has_cond): Likewise.
14533
14534 2017-01-10 Tom Tromey <tom@tromey.com>
14535
14536 * python/python.c (gdbpy_enter): New constructor.
14537 (~gdbpy_enter): New destructor.
14538 (restore_python_env, ensure_python_env): Rewrite.
14539 * python/python-internal.h (gdbpy_enter): New class.
14540
14541 2017-01-10 Tom Tromey <tom@tromey.com>
14542
14543 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
14544
14545 2017-01-10 Tom Tromey <tom@tromey.com>
14546
14547 * python/py-value.c (value_has_field, get_field_flag)
14548 (get_field_type, valpy_getitem, convert_value_from_python): Use
14549 gdbpy_ref.
14550
14551 2017-01-10 Tom Tromey <tom@tromey.com>
14552
14553 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
14554 gdbpy_ref.
14555
14556 2017-01-10 Tom Tromey <tom@tromey.com>
14557
14558 * python/py-prettyprint.c (search_pp_list)
14559 (find_pretty_printer_from_objfiles)
14560 (find_pretty_printer_from_progspace)
14561 (find_pretty_printer_from_gdb, find_pretty_printer)
14562 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
14563 gdbpy_ref.
14564
14565 2017-01-10 Tom Tromey <tom@tromey.com>
14566
14567 * python/py-param.c (call_doc_function): Use gdbpy_ref.
14568
14569 2017-01-10 Tom Tromey <tom@tromey.com>
14570
14571 * python/py-linetable.c (build_line_table_tuple_from_pcs)
14572 (ltpy_get_all_source_lines): Use gdbpy_ref.
14573
14574 2017-01-10 Tom Tromey <tom@tromey.com>
14575
14576 * python/py-framefilter.c (extract_sym, extract_value)
14577 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
14578 gdbpy_ref.
14579
14580 2017-01-10 Tom Tromey <tom@tromey.com>
14581
14582 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
14583
14584 2017-01-10 Tom Tromey <tom@tromey.com>
14585
14586 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
14587
14588 2017-01-10 Tom Tromey <tom@tromey.com>
14589
14590 * python/py-function.c (convert_values_to_python, fnpy_init): Use
14591 gdbpy_ref.
14592
14593 2017-01-10 Tom Tromey <tom@tromey.com>
14594
14595 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
14596
14597 2017-01-10 Tom Tromey <tom@tromey.com>
14598
14599 * python/py-type.c (convert_field, make_fielditem, typy_fields)
14600 (typy_range): Use gdbpy_ref.
14601
14602 2017-01-10 Tom Tromey <tom@tromey.com>
14603
14604 * python/py-threadevent.c (create_thread_event_object): Use
14605 gdbpy_ref.
14606 * python/py-stopevent.c (create_stop_event_object): Simplify.
14607 (emit_stop_event): Use gdbpy_ref.
14608 * python/py-signalevent.c (create_signal_event_object): Use
14609 gdbpy_ref.
14610 * python/py-newobjfileevent.c (create_new_objfile_event_object)
14611 (emit_new_objfile_event, create_clear_objfiles_event_object)
14612 (emit_clear_objfiles_event): Use gdbpy_ref.
14613 * python/py-infevents.c (create_inferior_call_event_object)
14614 (create_register_changed_event_object)
14615 (create_memory_changed_event_object, emit_inferior_call_event)
14616 (emit_memory_changed_event, emit_register_changed_event): Use
14617 gdbpy_ref.
14618 * python/py-exitedevent.c (create_exited_event_object)
14619 (emit_exited_event): Use gdbpy_ref.
14620 * python/py-event.h (evpy_emit_event): Remove
14621 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
14622 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
14623 * python/py-continueevent.c (emit_continue_event): Use
14624 gdbpy_ref.
14625 * python/py-breakpoint.c (gdbpy_breakpoint_created)
14626 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
14627 gdbpy_ref.
14628 * python/py-bpevent.c (create_breakpoint_event_object): Use
14629 gdbpy_ref.
14630
14631 2017-01-10 Tom Tromey <tom@tromey.com>
14632
14633 * python/py-ref.h: New file.
14634
14635 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14636
14637 * cli-out.c (cli_ui_out::do_redirect): Change return type to
14638 void.
14639 * cli-out.h (cli_ui_out::do_redirect): Likewise.
14640 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
14641 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
14642 * ui-out.c (ui_out::redirect): Likewise.
14643 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
14644 * cli/cli-logging.c (set_logging_redirect): Update call site of
14645 ui_out::redirect.
14646 (handle_redirections): Likewise.
14647 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
14648 * top.c (execute_command_to_string): Likewise.
14649 * utils.c (do_ui_out_redirect_pop): Likewise.
14650
14651 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14652
14653 * stack.c (_initialize_stack): Update "frame" command help message.
14654
14655 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
14656
14657 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14658
14659 2017-01-06 Yao Qi <yao.qi@linaro.org>
14660
14661 * x86-linux-nat.h: Include gdb_proc_service.h.
14662
14663 2017-01-06 Yao Qi <yao.qi@linaro.org>
14664
14665 * ser-base.h: Include serial.h.
14666
14667 2017-01-06 Yao Qi <yao.qi@linaro.org>
14668
14669 * ppc-linux-tdep.h: Include ppc-tdep.h.
14670
14671 2017-01-06 Yao Qi <yao.qi@linaro.org>
14672
14673 * nat/amd64-linux-siginfo.h: Include signal.h.
14674
14675 2017-01-06 Yao Qi <yao.qi@linaro.org>
14676
14677 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14678
14679 2017-01-06 Yao Qi <yao.qi@linaro.org>
14680
14681 * mi/mi-parse.h: Include mi-cmds.h.
14682
14683 2017-01-06 Yao Qi <yao.qi@linaro.org>
14684
14685 * inf-loop.c: Don't include "target.h".
14686 * inf-loop.h: Include it here.
14687
14688 2017-01-06 Yao Qi <yao.qi@linaro.org>
14689
14690 * dfp.h: Include "dboulest.h" and "expression.h".
14691
14692 2017-01-06 Yao Qi <yao.qi@linaro.org>
14693
14694 * ax-gdb.h: Include "ax.h".
14695
14696 2017-01-06 Yao Qi <yao.qi@linaro.org>
14697
14698 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14699 with nat/gdb_ptrace.h.
14700
14701 2017-01-05 Yao Qi <yao.qi@linaro.org>
14702
14703 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14704 new line.
14705 (mips64_fbsd_sigframe_init): Likewise.
14706
14707 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14708
14709 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14710 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14711
14712 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14713
14714 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14715 * NEWS: Mention new FreeBSD/mips native configuration.
14716 * config/mips/fbsd.mh: New file.
14717 * configure.host: Add mips*-*-freebsd*.
14718 * mips-fbsd-nat.c: New file.
14719
14720 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14721
14722 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14723 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14724 * NEWS: Mention new FreeBSD/mips target.
14725 * configure.tgt: Add mips*-*-freebsd*.
14726 * mips-fbsd-tdep.c: New file.
14727 * mips-fbsd-tdep.h: New file.
14728
14729 2017-01-04 Yao Qi <yao.qi@linaro.org>
14730
14731 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14732 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14733
14734 2017-01-01 Joel Brobecker <brobecker@adacore.com>
14735
14736 Update copyright year range in all GDB files.
14737
14738 2017-01-01 Joel Brobecker <brobecker@adacore.com>
14739
14740 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
14741
14742 For older changes see ChangeLog-2016.
14743 \f
14744 Local Variables:
14745 mode: change-log
14746 left-margin: 8
14747 fill-column: 74
14748 version-control: never
14749 coding: utf-8
14750 End:
This page took 0.356938 seconds and 4 git commands to generate.