617caaea7980c0d0504c62c2478c9f8707d358e9
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
4 (i386_extract_return_value): Use target_float_convert.
5 (i386_store_return_value): Likewise.
6 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
7 (i387_value_to_register): Likewise.
8 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
9 (ia64_register_to_value): Use target_float_convert.
10 (ia64_value_to_register): Likewise.
11 (ia64_extract_return_value): Likewise.
12 (ia64_store_return_value): Likewise.
13 (ia64_push_dummy_call): Likewise.
14 * m68k-tdep.c: Include "target-float.h".
15 (m68k_register_to_value): Use target_float_convert.
16 (m68k_value_to_register): Likewise.
17 (m68k_svr4_extract_return_value): Likewise.
18 (m68k_svr4_store_return_value): Likewise.
19 * ppc-sysv-tdep.c: Include "target-float.h".
20 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
21 (do_ppc_sysv_return_value): Likewise.
22 (ppc64_sysv_abi_push_freg): Likewise.
23 (ppc64_sysv_abi_return_value_base): Likewise.
24 * rs6000-aix-tdep.c: Include "target-float.h".
25 (rs6000_push_dummy_call): Use target_float_convert.
26 (rs6000_return_value): Likewise.
27 * rs6000-lynx178-tdep.c: Include "target-float.h".
28 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
29 (rs6000_lynx178_return_value): Likewise.
30 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
31 (rs6000_register_to_value): Use target_float_convert.
32 (rs6000_value_to_register): Likewise.
33 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
34 (arm_extract_return_value): Use target_float_convert.
35 (arm_store_return_value): Likewise.
36 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
37 (sh_register_convert_to_virtual): Use target_float_convert.
38 (sh_register_convert_to_raw): Likewise.
39 * sh64-tdep.c: Include "target-float.h".
40 (sh64_extract_return_value): Use target_float_convert.
41 (sh64_register_convert_to_virtual): Likewise.
42 (sh64_register_convert_to_raw): Likewise. Fix argument types.
43
44 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
45
46 * target-float.c (floatformat_to_host_double): New function.
47 (floatformat_from_host_double): Likewise.
48 (target_float_to_host_double): Likewise.
49 (target_float_from_host_double): Likewise.
50 * target-float.h (target_float_to_host_double): Add prototype.
51 (target_float_from_host_double): Likewise.
52
53 * guile/scm-value.c: Include "target-float.h".
54 (gdbscm_value_to_real): Use target_float_to_host_double.
55 Handle integer source values via value_as_long.
56 * guile/scm-math.c: Include "target-float.h". Do not include
57 "doublest.h", "dfp.h", and "expression.h".
58 (vlscm_convert_typed_number): Use target_float_from_host_double.
59 (vlscm_convert_number): Likewise.
60
61 * python/py-value.c (valpy_float): Use target_float_to_host_double.
62 (convert_value_from_python): Use target_float_from_host_double.
63
64 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
65
66 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
67 (cast_from_fixed): Likewise.
68 (ada_scaling_type): New function.
69 (ada_delta): Return value instead of DOUBLEST. Perform target
70 arithmetic instead of host arithmetic.
71 (scaling_factor): Rename to ...
72 (ada_scaling_factor) ... this. Make non-static. Return value instead
73 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
74 (ada_fixed_to_float): Remove.
75 (ada_float_to_fixed): Remove.
76 * ada-lang.h (ada_fixed_to_float): Remove.
77 (ada_float_to_fixed): Remove.
78 (ada_delta): Return value instead of DOUBLEST.
79 (ada_scaling_factor): Add prototype.
80
81 * ada-typeprint.c: Include "target-float.h".
82 (print_fixed_point_type): Perform target arithmetic instead of
83 host arithmetic.
84 * ada-valprint.c: Include "target-float.h".
85 (ada_val_print_num): Perform target arithmetic instead of
86 host arithmetic for fixed-point types.
87
88 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
89
90 * target-float.c: Include <math.h>.
91 (floatformat_binop): New function.
92 (floatformat_compare): Likewise.
93 (target_float_binop): Likewise.
94 (target_float_compare): Likewise.
95 * target-float.h: Include "expression.h".
96 (target_float_binop): Add prototype.
97 (target_float_compare): Likewise.
98
99 * valarith.c: Do not include "doublest.h" and "dfp.h".
100 Include "common/byte-vector.h".
101 (value_args_as_decimal): Remove, replace by ...
102 (value_args_as_target_float): ... this function. Handle both
103 binary and decimal target floating-point formats.
104 (scalar_binop): Handle both binary and decimal FP using
105 value_args_as_target_float and target_float_binop.
106 (value_equal): Handle both binary and decimal FP using
107 value_args_as_target_float and target_float_compare.
108 (value_less): Likewise.
109 (value_pos): Handle all scalar types as simple copy.
110 (value_neg): Handle all scalar types via BINOP_SUB from 0.
111 * dfp.c (decimal_binop): Throw error instead of internal_error
112 when called with an unsupported operation code.
113
114 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
115
116 * target-float.c (target_float_to_string): New function.
117 (target_float_from_string): New function.
118 * target-float.h (target_float_to_string): Add prototype.
119 (target_float_from_string): Add prototype.
120
121 * valprint.c: Include "target-float.h". Do not include
122 "doublest.h" and "dfp.h".
123 (print_floating): Use target_float_to_string.
124 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
125 (printf_floating): Use target_float_to_string.
126 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
127 (print_i387_value): Use target_float_to_string.
128 * mips-tdep.c: Include "target-float.h".
129 (mips_print_fp_register): Use target_float_to_string.
130 * sh64-tdep.c: Include "target-float.h".
131 (sh64_do_fp_register): Use target_float_to_string.
132
133 * parse.c: Include "target-float.h". Do not include
134 "doublest.h" and "dfp.h".
135 (parse_float): Use target_float_from_string.
136 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
137 (define_symbol): Use target_float_from_string.
138 * gdbarch-selftests.c: Include "target-float.h".
139 (register_to_value_test): Use target_float_from_string.
140
141 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
142
143 * Makefile.c (SFILES): Add target-float.c.
144 (HFILES_NO_SRCDIR): Add target-float.h.
145 (COMMON_OBS): Add target-float.o.
146 * target-float.h: New file.
147 * target-float.c: New file.
148
149 * doublest.c (floatformat_classify): Fix detection of float_zero.
150
151 * gdbtypes.c (is_floating_type): New function.
152 * gdbtypes.h (is_floating_type): Add prototype.
153
154 * value.c: Do not include "floatformat.h".
155 (unpack_double): Use target_float_is_valid.
156 (is_floating_value): New function.
157 * value.h (is_floating_value): Add prototype-
158
159 * valarith.c: Include "target-float.h".
160 (value_logical_not): Use target_float_is_zero.
161
162 * python/py-value.c: Include "target-float.h".
163 (valpy_nonzero): Use target_float_is_zero.
164
165 2017-11-04 Tom Tromey <tom@tromey.com>
166
167 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
168
169 2017-11-04 Tom Tromey <tom@tromey.com>
170
171 * breakpoint.c (set_momentary_breakpoint): Return
172 breakpoint_up.
173 (until_break_command): Update.
174 (new_until_break_fsm): Change argument types to
175 breakpoint_up.
176 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
177 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
178 Remove.
179 * infcmd.c (finish_forward): Update.
180 * breakpoint.h (set_momentary_breakpoint)
181 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
182 (make_cleanup_delete_breakpoint): Remove.
183 (struct breakpoint_deleter): New.
184 (breakpoint_up): New typedef.
185 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
186 (insert_exception_resume_breakpoint): Update.
187 (insert_exception_resume_from_probe): Update.
188 (insert_longjmp_resume_breakpoint): Update.
189 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
190 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
191 * infcall.c (call_function_by_hand_dummy): Update
192
193 2017-11-04 Tom Tromey <tom@tromey.com>
194
195 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
196
197 2017-11-04 Tom Tromey <tom@tromey.com>
198
199 * linux-tdep.c (linux_core_info_proc_mappings): Use
200 gdb::def_vector.
201 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
202 "size" argument.
203 (linux_corefile_thread): Update.
204 (linux_make_corefile_notes): Remove unused variable.
205
206 2017-11-04 Tom Tromey <tom@tromey.com>
207
208 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
209 gdb::byte_vector.
210
211 2017-11-04 Tom Tromey <tom@tromey.com>
212
213 * objfiles.c (do_free_objfile_cleanup): Remove.
214 * compile/compile-object-load.c (compile_object_load): Update.
215 * objfiles.h (make_cleanup_free_objfile): Remove.
216
217 2017-11-04 Tom Tromey <tom@tromey.com>
218
219 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
220 (adi_read_versions): Change "tags" to "gdb_byte *".
221 (adi_print_versions): Likewise.
222
223 2017-11-04 Tom Tromey <tom@tromey.com>
224
225 * breakpoint.c
226 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
227 from start_rbreak_breakpoints.
228 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
229 * breakpoint.h (class scoped_rbreak_breakpoints): New.
230 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
231 * symtab.c (do_end_rbreak_breakpoints): Remove.
232 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
233
234 2017-11-04 Tom Tromey <tom@tromey.com>
235
236 * cp-namespace.c (reset_directive_searched): Remove.
237 (cp_lookup_symbol_via_imports): Use scoped_restore.
238 * cp-support.c (reset_directive_searched): Remove.
239 (make_symbol_overload_list_using): Use scoped_restore.
240 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
241 (reset_directive_searched): Remove.
242
243 2017-11-04 Tom Tromey <tom@tromey.com>
244
245 * symfile.c (find_separate_debug_file_by_debuglink): Use
246 unique_xmalloc_ptr.
247
248 2017-11-04 Tom Tromey <tom@tromey.com>
249
250 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
251 type of "info".
252 (compute_stack_depth): Likewise.
253 (do_compile_dwarf_expr_to_c): Use std::vector.
254
255 2017-11-04 Tom Tromey <tom@tromey.com>
256
257 * compile/compile-object-load.c (link_callbacks_einfo): Use
258 std::string.
259
260 2017-11-04 Tom Tromey <tom@tromey.com>
261
262 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
263 Use scoped_free_pendings.
264 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
265 scoped_free_pendings.
266 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
267 (xcoff_initial_scan): Likewise.
268 * buildsym.c (reset_symtab_globals): Update comment.
269 (scoped_free_pendings): Rename from really_free_pendings.
270 (prepare_for_building): Update comment.
271 (buildsym_init): Likewise.
272 * buildsym.h (class scoped_free_pendings): New class.
273 (really_free_pendings): Don't declare.
274
275 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
276
277 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
278 output when converting a zero value to a special byteorder format.
279
280 2017-11-02 Yao Qi <yao.qi@linaro.org>
281
282 * frame.c (do_frame_register_read): Remove aspace.
283 * jit.c (jit_frame_sniffer): Likwise.
284 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
285 * regcache.c (regcache::regcache): Pass nullptr.
286 (regcache_print): Caller updated.
287 * regcache.h (regcache::regcache): Remove one constructor
288 parameter aspace.
289
290 2017-11-02 Yao Qi <yao.qi@linaro.org>
291
292 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
293
294 2017-11-02 Yao Qi <yao.qi@linaro.org>
295
296 * breakpoint.c (insert_single_step_breakpoints): Update.
297 * frame.c (struct frame_info) <aspace>: Add const.
298 (frame_save_as_regcache): Add const.
299 (get_frame_address_space): Return const address_space *.
300 * frame.h (get_frame_address_space): Update declaration.
301 * infrun.c (struct step_over_info) <aspace>: Add const.
302 (set_step_over_info): Make aspace const.
303 (displaced_step_prepare_throw): Change variable const.
304 (resume): Likewise.
305 (proceed): Likewise.
306 (adjust_pc_after_break): Likewise.
307 (save_waitstatus): Likewise.
308 (handle_signal_stop): Likewise.
309 (keep_going_pass_signal): Likewise.
310 * jit.c (jit_frame_sniffer): Add const.
311 * mips-tdep.c (mips_single_step_through_delay): Likewise.
312 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
313 * record-full.c (record_full_wait_1): Likewise.
314 * regcache.c (regcache::regcache): Change parameter to const.
315 * regcache.h (regcache::regcache): Likewise.
316 (regcache::aspace): Return const address_space *.
317 (regcache) <m_aspace>: Add const.
318
319 2017-11-02 Yao Qi <yao.qi@linaro.org>
320
321 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
322 * frame.c (create_sentinel_frame): Likewise.
323 * infrun.c (displaced_step_prepare_throw): Likewise.
324 (resume): Likewise.
325 (thread_still_needs_step_over_bp): Likewise.
326 (proceed): Likewise.
327 (do_target_wait): Likewise.
328 (adjust_pc_after_break): Likewise.
329 (handle_syscall_event): Likewise.
330 (save_waitstatus): Likewise.
331 (handle_inferior_event_1): Likewise.
332 (handle_signal_stop): Likewise.
333 (keep_going_pass_signal): Likewise.
334 * linux-nat.c (status_callback): Likewise.
335 (save_stop_reason): Likewise.
336 (resume_stopped_resumed_lwps): Likewise.
337 * record-full.c (record_full_exec_insn): Likewise.
338 (record_full_wait_1): Likewise.
339 * regcache.c (get_regcache_aspace): Remove.
340 * regcache.h (get_regcache_aspace): Remove.
341
342 2017-11-02 Yao Qi <yao.qi@linaro.org>
343
344 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
345 (init_regcache_descr): Use gdbarch_num_regs.
346 (regcache::regcache): Likewise.
347 (regcache::get_register_status): Likewise.
348 (regcache::assert_raw_regnum): Likewise.
349 (regcache::cooked_read): Likewise.
350 (regcache::cooked_read_value): Likewise.
351 (regcache::cooked_write): Likewise.
352 (regcache::dump): Likewise.
353 (regcache::num_raw_registers): New method.
354 * regcache.h (class regcache) <num_raw_registers>: New.
355
356 2017-11-02 Yao Qi <yao.qi@linaro.org>
357
358 * regcache.c (regcache::assert_regnum): New method.
359 (regcache::invalidate): Call assert_regnum.
360 (regcache::raw_update): Likewise.
361 (regcache::raw_write): Likewise.
362 (regcache::raw_read_part): Likewise.
363 (regcache::raw_write_part): Likewise.
364 (regcache::raw_supply): Likewise.
365 (regcache::raw_supply_integer): Likewise.
366 (regcache::raw_supply_zeroed): Likewise.
367 (regcache::raw_collect): Likewise.
368 (regcache::raw_collect_integer): Likewise.
369 * regcache.h (regcache::assert_regnum): Declare.
370
371 2017-11-02 Yao Qi <yao.qi@linaro.org>
372
373 * regcache.c (regcache::dump): Remove code.
374
375 2017-11-02 Yao Qi <yao.qi@linaro.org>
376
377 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
378 Remove.
379 <sizeof_cooked_register_status>: Remove.
380 (init_regcache_descr): Update.
381 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
382 (regcache::save): Likewise.
383 (regcache::dump): Likewise.
384
385 2017-11-01 James Bowman <james.bowman@ftdichip.com>
386
387 * ft32-tdep.c (ft32_fetch_instruction): New function.
388 (ft32_analyze_prologue): Use ft32_fetch_instruction().
389
390 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
391
392 * cli/cli-script.c (execute_control_command): Rename to ...
393 (execute_control_command_1): ... this.
394 (execute_control_command): New function.
395
396 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
397
398 * tracepoint.c (tfind_command): Remove const_cast.
399
400 2017-10-30 Mike Gulick <mgulick@mathworks.com>
401
402 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
403
404 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
405
406 * common/common-utils.h (in_inclusive_range): New function.
407 * arm-tdep.c (arm_record_extension_space): Use
408 in_inclusive_range.
409 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
410 * cris-tdep.c (cris_spec_reg_applicable): Use
411 in_inclusive_range.
412
413 2017-10-30 Pedro Alves <palves@redhat.com>
414 Simon Marchi <simon.marchi@ericsson.com>
415
416 * remote.c (remote_set_syscall_catchpoint): Build a std::string
417 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
418
419 2017-10-30 Pedro Alves <palves@redhat.com>
420
421 * common/common-utils.c (string_appendf, string_vappendf): New
422 functions.
423 * common/common-utils.h (string_appendf, string_vappendf): New
424 declarations.
425 * unittests/common-utils-selftests.c (string_appendf_func)
426 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
427 (string_vappendf_tests): New functions.
428 (_initialize_common_utils_selftests): Register "string_appendf" and
429 "string_vappendf tests".
430
431 2017-10-30 Pedro Alves <palves@redhat.com>
432
433 * unittests/common-utils-selftests.c (format_func): New typedef.
434 (string_printf_tests, string_vprintf_tests): Tests factored out
435 and merged to ...
436 (test_format_func): ... this new function.
437 (string_printf_tests, string_vprintf_tests): Reimplement on top of
438 test_format_func.
439
440 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
441
442 * darwin-nat.c: Remove include of gdb.h.
443
444 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
445
446 * xtensa-xtregs.c: Fix formatting issues.
447
448 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
449
450 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
451
452 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
453
454 PR python/21213
455 * python/py-infthread.c (thpy_get_inferior): Increment reference
456 of inferior before returning it.
457
458 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
459
460 * unittests/common-utils-selftests.c (format): Add
461 ATTRIBUTE_PRINTF.
462
463 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
464
465 * xml-syscall.c (struct syscall_desc): Add constructor.
466 <name>: Change type to std::string.
467 (syscall_desc_up): New typedef.
468 (syscall_desc_p): Remove typeder.
469 (DEF_VEC_P(syscall_desc_p)): Remove.
470 (struct syscall_group_desc): Add constructor.
471 <name>: Change type to std::string.
472 <syscalls>: Change type to std::vector.
473 (syscall_group_desc_up): New typedef.
474 (syscall_group_desc_p): Remove typedef.
475 (DEF_VEC_P(syscall_group_desc_p)): Remove.
476 (struct syscalls_info) <syscalls>: Change type to std::vector of
477 unique_ptr.
478 <groups>: Likewise.
479 <my_gdb_datadir>: Change type to std::string.
480 (syscalls_info_up): New typedef.
481 (allocate_syscalls_info): Remove.
482 (syscalls_info_free_syscalls_desc): Remove.
483 (syscalls_info_free_syscall_group_desc): Remove.
484 (free_syscalls_info): Remove.
485 (make_cleanup_free_syscalls_info): Remove.
486 (syscall_group_create_syscall_group_desc): Adjust.
487 (syscall_group_add_syscall): Adjust.
488 (syscall_create_syscall_desc): Adjust.
489 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
490 (init_syscalls_info): Adjust.
491 (syscall_group_get_group_by_name): Adjust.
492 (xml_get_syscall_number): Adjust.
493 (xml_get_syscall_name): Adjust.
494 (xml_list_of_syscalls): Adjust.
495 (xml_list_syscalls_by_group): Adjust.
496 (xml_list_of_groups): Adjust.
497
498 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
499
500 * probe.h: Don't include gdb_vecs.h.
501 (DEF_VEC_P (probe_p)): Remove.
502 (find_probes_in_objfile): Return an std::vector.
503 * probe.c (find_probes_in_objfile): Likewise.
504 * breakpoint.c (breakpoint_objfile_data)
505 <longjmp_probes>: Change type to std::vector.
506 <exception_probes>: Likewise.
507 (free_breakpoint_probes): Don't manually free vectors.
508 (create_longjmp_master_breakpoint): Adjust.
509 (create_exception_master_breakpoint): Adjust.
510 * solib-svr4.c (svr4_create_probe_breakpoints): Change
511 parameter type, adjust.
512 (svr4_create_solib_event_breakpoints): Adjust.
513
514 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
515
516 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
517 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
518 with new.
519 (free_breakpoint_probes): Rename to ...
520 (free_breakpoint_objfile_data): ... this, and call delete on
521 bp_objfile_data..
522
523 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
524
525 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
526 (loaded_script_ptr): Remove typedef.
527 (DEF_VEC_P (loaded_script_ptr)): Remove.
528 (struct collect_matching_scripts_data): Add constructor.
529 <scripts_p>: Change type to (pointer to) std::vector.
530 (collect_matching_scripts_data): Adjust.
531 (sort_scripts_by_name): Make suitable for std::sort.
532 (print_scripts): Don't sort vector, adjust to std::vector.
533 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
534
535 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
536
537 * symfile.c (filename_language): Make struct, not typedef. Add
538 constructor.
539 <ext>: Change type to std::string.
540 (DEF_VEC_O (filename_language)): Remove.
541 (filename_language_table): Change type to std::vector.
542 (add_filename_language): Adjust.
543 (set_ext_lang_command): Adjust.
544 (info_ext_lang_command): Adjust.
545 (deduce_language_from_filename): Adjust.
546 (class scoped_restore_filename_language_table): Remove.
547 (test_filename_language): Use scoped_restore.
548 (test_set_ext_lang_command): Use scoped_restore, adjust to
549 std::vector change.
550
551 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
552
553 * symfile.c: Include selftest.h.
554 (class scoped_restore_filename_language_table): New.
555 (test_filename_language): New test.
556 (test_set_ext_lang_command): New test.
557 (_initialize_symfile): Register tests.
558
559 2017-10-27 Keith Seitz <keiths@redhat.com>
560
561 * breakpoint.c (print_breakpoint_location): Use the symbol saved
562 in the bp_location, falling back to find_pc_sect_function when
563 needed.
564 (add_location_to_breakpoint): Save sal->symbol.
565 * breakpoint.h (struct bp_location) <symbol>: New field.
566 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
567 * symtab.h (struct symtab_and_line) <symbol>: New field.
568
569 2017-10-26 Patrick Frants <osscontribute@gmail.com>
570
571 PR gdb/13669
572 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
573 to rewind obstack.
574
575 2017-10-26 Pedro Alves <palves@redhat.com>
576
577 * remote.c (remote_async_terminal_ours_p): Delete.
578 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
579 Remove references to 'remote_async_terminal_ours_p'.
580
581 2017-10-26 Yao Qi <yao.qi@linaro.org>
582
583 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
584
585 2017-10-26 Yao Qi <yao.qi@linaro.org>
586
587 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
588 aspace const.
589 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
590 Likewise.
591 * breakpoint.c (bpstat_check_location): Remove cast.
592 (breakpoint_hit_catch_fork): Make aspce const.
593 (breakpoint_hit_catch_solib): Likewise.
594 (breakpoint_hit_catch_exec): Likewise.
595 (breakpoint_hit_ranged_breakpoint): Likewise.
596 (breakpoint_hit_watchpoint): Likewise.
597 (base_breakpoint_breakpoint_hit): Likewise.
598 (bkpt_breakpoint_hit): Likewise.
599 (dprintf_breakpoint_hit): Likewise.
600 (tracepoint_breakpoint_hit): Likewise.
601 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
602
603 2017-10-26 Yao Qi <yao.qi@linaro.org>
604
605 * breakpoint.c (breakpoint_location_address_match): Change
606 "struct address_space *" to "const address_space".
607 (breakpoint_location_address_range_overlap): Likewise.
608 (breakpoint_here_p): Likewise.
609 (breakpoint_in_range_p): Likewise.
610 (moribund_breakpoint_here_p): Likewise.
611 (bp_location_inserted_here_p): Likewise.
612 (software_breakpoint_inserted_here_p): Likewise.
613 (hardware_breakpoint_inserted_here_p): Likewise.
614 (hardware_watchpoint_inserted_in_range): Likewise.
615 (bpstat_check_location): Likewise.
616 (bpstat_stop_status): Likewise.
617 (breakpoint_address_match): Likewise.
618 (breakpoint_address_match_range): Likewise.
619 (breakpoint_location_address_match): Likewise.
620 (breakpoint_location_address_range_overlap): Likewise.
621 (insert_single_step_breakpoint): Likewise.
622 (breakpoint_has_location_inserted_here): Likewise.
623 (single_step_breakpoint_inserted_here_p): Likewise.
624 (pc_at_non_inline_function): Likewise.
625 * breakpoint.h (bpstat_stop_status): Update declaration.
626 (breakpoint_here_p): Likewise.
627 (breakpoint_in_range_p): Likewise.
628 (moribund_breakpoint_here_p): Likewise.
629 (breakpoint_inserted_here_p): Likewise.
630 (software_breakpoint_inserted_here_p): Likewise.
631 (hardware_breakpoint_inserted_here_p): Likewise.
632 (breakpoint_has_location_inserted_here): Likewise.
633 (single_step_breakpoint_inserted_here_p): Likewise.
634 (hardware_watchpoint_inserted_in_range): Likewise.
635 (breakpoint_address_match): Likewise.
636 (insert_single_step_breakpoint): Likewise.
637 (pc_at_non_inline_function): Likewise.
638 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
639 * record.c (record_check_stopped_by_breakpoint): Likewise.
640 * record.h (record_check_stopped_by_breakpoint): Likewise.
641 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
642
643 2017-10-25 Yao Qi <yao.qi@linaro.org>
644
645 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
646 regcache->arch () instead get_regcache_arch.
647 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
648 Likewise.
649 (aarch64_fbsd_store_inferior_registers): Likewise.
650 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
651 (store_gregs_to_thread): Likewise.
652 (fetch_fpregs_from_thread): Likewise.
653 (store_fpregs_to_thread): Likewise.
654 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
655 (aarch64_store_return_value): Likewise.
656 (aarch64_software_single_step): Likewise.
657 * aix-thread.c (aix_thread_wait): Likewise.
658 (supply_reg32): Likewise.
659 (supply_sprs64): Likewise.
660 (supply_sprs32): Likewise.
661 (fill_gprs64): Likewise.
662 (fill_gprs32): Likewise.
663 (fill_sprs64): Likewise.
664 (fill_sprs32): Likewise.
665 (store_regs_user_thread): Likewise.
666 (store_regs_kernel_thread): Likewise.
667 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
668 (alphabsd_store_inferior_registers): Likewise.
669 * alpha-tdep.c (alpha_extract_return_value): Likewise.
670 (alpha_store_return_value): Likewise.
671 (alpha_deal_with_atomic_sequence): Likewise.
672 (alpha_next_pc): Likewise.
673 (alpha_software_single_step): Likewise.
674 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
675 (amd64bsd_store_inferior_registers): Likewise.
676 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
677 Likewise.
678 (amd64_linux_store_inferior_registers): Likewise.
679 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
680 (amd64_collect_native_gregset): Likewise.
681 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
682 (amd64obsd_collect_uthread): Likewise.
683 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
684 (amd64_collect_fpregset): Likewise.
685 (amd64_supply_fxsave): Likewise.
686 (amd64_supply_xsave): Likewise.
687 (amd64_collect_fxsave): Likewise.
688 (amd64_collect_xsave): Likewise.
689 * arc-tdep.c (arc_write_pc): Likewise.
690 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
691 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
692 (arm_fbsd_store_inferior_registers): Likewise.
693 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
694 (store_vfp_regs): Likewise.
695 (arm_linux_fetch_inferior_registers): Likewise.
696 (arm_linux_store_inferior_registers): Likewise.
697 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
698 (arm_linux_sigreturn_next_pc): Likewise.
699 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
700 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
701 (fetch_register): Likewise.
702 (store_register): Likewise.
703 * arm-tdep.c (arm_is_thumb): Likewise.
704 (displaced_in_arm_mode): Likewise.
705 (bx_write_pc): Likewise.
706 (arm_get_next_pcs_addr_bits_remove): Likewise.
707 (arm_software_single_step): Likewise.
708 (arm_extract_return_value): Likewise.
709 (arm_store_return_value): Likewise.
710 (arm_write_pc): Likewise.
711 * bfin-tdep.c (bfin_extract_return_value): Likewise.
712 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
713 (bsd_uthread_store_registers): Likewise.
714 * core-regset.c (fetch_core_registers): Likewise.
715 * corelow.c (get_core_registers): Likewise.
716 * cris-tdep.c (cris_store_return_value): Likewise.
717 (cris_extract_return_value): Likewise.
718 (find_step_target): Likewise.
719 (find_step_target): Likewise.
720 (cris_software_single_step): Likewise.
721 * ctf.c (ctf_fetch_registers): Likewise.
722 * darwin-nat.c (cancel_breakpoint): Likewise.
723 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
724 * frv-tdep.c (frv_extract_return_value): Likewise.
725 * ft32-tdep.c (ft32_store_return_value): Likewise.
726 (ft32_extract_return_value): Likewise.
727 * go32-nat.c (fetch_register): Likewise.
728 (go32_fetch_registers): Likewise.
729 (go32_store_registers): Likewise.
730 (store_register): Likewise.
731 * h8300-tdep.c (h8300_extract_return_value): Likewise.
732 (h8300_store_return_value): Likewise.
733 * hppa-linux-nat.c (fetch_register): Likewise.
734 (store_register): Likewise.
735 (hppa_linux_fetch_inferior_registers): Likewise.
736 (hppa_linux_store_inferior_registers): Likewise.
737 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
738 (i386_darwin_store_inferior_registers): Likewise.
739 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
740 (gnu_store_registers): Likewise.
741 * i386-linux-nat.c (fetch_register): Likewise.
742 (store_register): Likewise.
743 (supply_gregset): Likewise.
744 (fill_gregset): Likewise.
745 (i386_linux_fetch_inferior_registers): Likewise.
746 (i386_linux_store_inferior_registers): Likewise.
747 (i386_linux_resume): Likewise.
748 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
749 Likewise.
750 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
751 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
752 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
753 (i386obsd_collect_uthread): Likewise.
754 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
755 (i386_supply_gregset): Likewise.
756 (i386_collect_gregset): Likewise.
757 (i386_supply_fpregset): Likewise.
758 (i386_collect_fpregset): Likewise.
759 (i386_mpx_bd_base): Likewise.
760 * i386-v4-nat.c (supply_fpregset): Likewise.
761 (fill_fpregset): Likewise.
762 * i387-tdep.c (i387_supply_fsave): Likewise.
763 (i387_collect_fsave): Likewise.
764 (i387_supply_fxsave): Likewise.
765 (i387_collect_fxsave): Likewise.
766 (i387_supply_xsave): Likewise.
767 (i387_collect_xsave): Likewise.
768 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
769 (ia64_linux_store_registers): Likewise.
770 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
771 (ia64_extract_return_value): Likewise.
772 (ia64_store_return_value): Likewise.
773 (find_func_descr): Likewise.
774 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
775 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
776 (inf_ptrace_store_registers): Likewise.
777 * infrun.c (use_displaced_stepping): Likewise.
778 (displaced_step_prepare_throw): Likewise.
779 (resume): Likewise.
780 (proceed): Likewise.
781 (do_target_wait): Likewise.
782 (adjust_pc_after_break): Likewise.
783 (handle_inferior_event_1): Likewise.
784 (handle_signal_stop): Likewise.
785 (save_infcall_suspend_state): Likewise.
786 (restore_infcall_suspend_state): Likewise.
787 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
788 * jit.c (jit_frame_prev_register): Likewise.
789 * linux-nat.c (save_stop_reason): Likewise.
790 (linux_nat_wait_1): Likewise.
791 (resume_stopped_resumed_lwps): Likewise.
792 * linux-record.c (record_linux_sockaddr): Likewise.
793 (record_linux_msghdr): Likewise.
794 (record_linux_system_call): Likewise.
795 * linux-tdep.c (linux_collect_thread_registers): Likewise.
796 * lm32-tdep.c (lm32_extract_return_value): Likewise.
797 (lm32_store_return_value): Likewise.
798 * m32c-tdep.c (m32c_read_flg): Likewise.
799 (m32c_pseudo_register_read): Likewise.
800 (m32c_pseudo_register_write): Likewise.
801 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
802 (m32r_linux_collect_gregset): Likewise.
803 * m32r-tdep.c (m32r_store_return_value): Likewise.
804 (m32r_extract_return_value): Likewise.
805 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
806 (m68kbsd_collect_fpregset): Likewise.
807 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
808 * m68k-linux-nat.c (fetch_register): Likewise.
809 (old_fetch_inferior_registers): Likewise.
810 (old_store_inferior_registers): Likewise.
811 (store_regs): Likewise.
812 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
813 (m68k_svr4_store_return_value): Likewise.
814 * m88k-tdep.c (m88k_store_arguments): Likewise.
815 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
816 (mi_cmd_data_write_register_values): Likewise.
817 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
818 (mips_fbsd_store_inferior_registers): Likewise.
819 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
820 (mips_fbsd_supply_gregs): Likewise.
821 (mips_fbsd_collect_fpregs): Likewise.
822 (mips_fbsd_collect_gregs): Likewise.
823 (mips_fbsd_supply_fpregset): Likewise.
824 (mips_fbsd_collect_fpregset): Likewise.
825 (mips_fbsd_supply_gregset): Likewise.
826 (mips_fbsd_collect_gregset): Likewise.
827 * mips-linux-nat.c (supply_gregset): Likewise.
828 (fill_gregset): Likewise.
829 (supply_fpregset): Likewise.
830 (fill_fpregset): Likewise.
831 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
832 (mips_fill_gregset): Likewise.
833 (mips_supply_fpregset): Likewise.
834 (mips_fill_fpregset): Likewise.
835 (mips64_supply_gregset): Likewise.
836 (micromips_linux_sigframe_validate): Likewise.
837 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
838 (mipsnbsd_fetch_inferior_registers): Likewise.
839 (mipsnbsd_store_inferior_registers): Likewise.
840 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
841 (mipsnbsd_supply_gregset): Likewise.
842 (mipsnbsd_iterate_over_regset_sections): Likewise.
843 (mipsnbsd_supply_reg): Likewise.
844 (mipsnbsd_supply_fpreg): Likewise.
845 * mips-tdep.c (mips_in_frame_stub): Likewise.
846 (mips_dummy_id): Likewise.
847 (is_octeon_bbit_op): Likewise.
848 (micromips_bc1_pc): Likewise.
849 (extended_mips16_next_pc): Likewise.
850 (mips16_next_pc): Likewise.
851 (deal_with_atomic_sequence): Likewise.
852 * moxie-tdep.c (moxie_process_readu): Likewise.
853 * nios2-tdep.c (nios2_get_next_pc): Likewise.
854 * nto-procfs.c (procfs_store_registers): Likewise.
855 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
856 (ppcfbsd_store_inferior_registers): Likewise.
857 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
858 (fetch_altivec_register): Likewise.
859 (get_spe_registers): Likewise.
860 (fetch_spe_register): Likewise.
861 (fetch_altivec_registers): Likewise.
862 (fetch_all_gp_regs): Likewise.
863 (fetch_all_fp_regs): Likewise.
864 (store_vsx_register): Likewise.
865 (store_altivec_register): Likewise.
866 (set_spe_registers): Likewise.
867 (store_spe_register): Likewise.
868 (store_altivec_registers): Likewise.
869 (store_all_gp_regs): Likewise.
870 (store_all_fp_regs): Likewise.
871 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
872 (ppc_linux_collect_gregset): Likewise.
873 (ppc_canonicalize_syscall): Likewise.
874 (ppc_linux_record_signal): Likewise.
875 (ppu2spu_prev_register): Likewise.
876 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
877 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
878 (ppcobsd_store_registers): Likewise.
879 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
880 Likewise.
881 (ppc_ravenscar_generic_store_registers): Likewise.
882 * procfs.c (procfs_fetch_registers): Likewise.
883 (procfs_store_registers): Likewise.
884 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
885 (ravenscar_store_registers): Likewise.
886 (ravenscar_prepare_to_store): Likewise.
887 * record-btrace.c (record_btrace_fetch_registers): Likewise.
888 * record-full.c (record_full_wait_1): Likewise.
889 (record_full_registers_change): Likewise.
890 (record_full_store_registers): Likewise.
891 (record_full_core_fetch_registers): Likewise.
892 (record_full_save): Likewise.
893 (record_full_goto_insn): Likewise.
894 * regcache.c (regcache_register_size): Likewise.
895 (get_regcache_arch): Remove.
896 (regcache_read_pc): Likewise.
897 * regcache.h (get_regcache_arch): Remove.
898 * remote-sim.c (gdbsim_fetch_register): Likewise.
899 (gdbsim_store_register): Likewise.
900 * remote.c (fetch_register_using_p): Likewise.
901 (send_g_packet): Likewise.
902 (remote_prepare_to_store): Likewise.
903 (store_registers_using_G): Likewise.
904 * reverse.c (save_bookmark_command): Likewise.
905 (goto_bookmark_command): Likewise.
906 * rs6000-aix-tdep.c (branch_dest): Likewise.
907 * rs6000-nat.c (rs6000_ptrace64): Likewise.
908 (fetch_register): Likewise.
909 * rs6000-tdep.c (ppc_supply_reg): Likewise.
910 (ppc_collect_reg): Likewise.
911 (ppc_collect_gregset): Likewise.
912 (ppc_collect_fpregset): Likewise.
913 (ppc_collect_vsxregset): Likewise.
914 (ppc_collect_vrregset): Likewise.
915 (ppc_displaced_step_hw_singlestep): Likewise.
916 (rs6000_pseudo_register_read): Likewise.
917 (rs6000_pseudo_register_write): Likewise.
918 * s390-linux-nat.c (supply_gregset): Likewise.
919 (fill_gregset): Likewise.
920 (s390_linux_fetch_inferior_registers): Likewise.
921 * s390-linux-tdep.c (s390_write_pc): Likewise.
922 (s390_software_single_step): Likewise.
923 (s390_all_but_pc_registers_record): Likewise.
924 (s390_linux_syscall_record): Likewise.
925 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
926 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
927 (shnbsd_store_inferior_registers): Likewise.
928 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
929 (sh_extract_return_value_fpu): Likewise.
930 (sh_store_return_value_nofpu): Likewise.
931 (sh_corefile_supply_regset): Likewise.
932 (sh_corefile_collect_regset): Likewise.
933 * sh64-tdep.c (sh64_extract_return_value): Likewise.
934 (sh64_store_return_value): Likewise.
935 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
936 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
937 (sparc_store_inferior_registers): Likewise.
938 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
939 (sparc_ravenscar_prepare_to_store): Likewise.
940 * sparc-tdep.c (sparc32_store_arguments): Likewise.
941 (sparc_analyze_control_transfer): Likewise.
942 (sparc_step_trap): Likewise.
943 (sparc_software_single_step): Likewise.
944 (sparc32_gdbarch_init): Likewise.
945 (sparc_supply_rwindow): Likewise.
946 (sparc_collect_rwindow): Likewise.
947 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
948 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
949 (sparc64nbsd_collect_gregset): Likewise.
950 (sparc64nbsd_supply_fpregset): Likewise.
951 (sparc64nbsd_collect_fpregset): Likewise.
952 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
953 (sparc64_supply_gregset): Likewise.
954 (sparc64_collect_gregset): Likewise.
955 (sparc64_supply_fpregset): Likewise.
956 (sparc64_collect_fpregset): Likewise.
957 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
958 * spu-tdep.c (spu_unwind_sp): Likewise.
959 (spu2ppu_prev_register): Likewise.
960 (spu_memory_remove_breakpoint): Likewise.
961 * stack.c (return_command): Likewise.
962 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
963 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
964 * tracefile.c (trace_save_ctf): Likewise.
965 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
966 (do_windows_store_inferior_registers): Likewise.
967 (windows_resume): Likewise.
968 * xtensa-linux-nat.c (fill_gregset): Likewise.
969 (supply_gregset_reg): Likewise.
970 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
971 (xtensa_register_read_masked): Likewise.
972 (xtensa_supply_gregset): Likewise.
973 (xtensa_extract_return_value): Likewise.
974 (xtensa_store_return_value): Likewise.
975
976 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
977
978 * doublest.c (floatformat_from_string): New function.
979 * doublest.h (floatformat_from_string): Add prototype.
980
981 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
982 (OP_FLOAT): ... this.
983 * expression.h: Do not include "doublest.h".
984 (union exp_element): Replace doubleconst and decfloatconst by
985 new element floatconst.
986 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
987 (ada_evaluate_subexp): Likewise.
988 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
989 OP_DOUBLE and OP_DECFLOAT.
990 * expprint.c (print_subexp_standard): Likewise.
991 (dump_subexp_body_standard): Likewise.
992 * breakpoint.c (watchpoint_exp_is_const): Likewise.
993
994 * parse.c: Include "dfp.h".
995 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
996 (write_exp_elt_floatcst): New function.
997 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
998 and OP_DECFLOAT.
999 (operator_check_standard): Likewise.
1000 (parse_float): Do not accept suffix. Take type as input. Return bool.
1001 Return target format buffer instead of host DOUBLEST.
1002 Use floatformat_from_string and decimal_from_string to parse
1003 either binary or decimal floating-point types.
1004 (parse_c_float): Remove.
1005 * parser-defs.h: Do not include "doublest.h".
1006 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
1007 (write_exp_elt_floatcst): Add prototype.
1008 (parse_float): Update prototype.
1009 (parse_c_float): Remove.
1010
1011 * c-exp.y: Do not include "dfp.h".
1012 (typed_val_float): Use byte buffer instead of DOUBLEST.
1013 (typed_val_decfloat): Remove.
1014 (DECFLOAT): Remove.
1015 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1016 (parse_number): Update to new parse_float interface.
1017 Parse suffixes and determine type before calling parse_float.
1018 Handle decimal and binary FP types the same way.
1019
1020 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1021 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
1022 (parse_number): Update to new parse_float interface.
1023 Parse suffixes and determine type before calling parse_float.
1024
1025 * f-exp.y: Replace dval by typed_val_float.
1026 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1027 (parse_number): Use parse_float instead of atof.
1028
1029 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1030 (parse_go_float): Remove.
1031 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1032 (parse_number): Call parse_float instead of parse_go_float.
1033 Parse suffixes and determine type before calling parse_float.
1034
1035 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1036 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1037 (parse_number): Update to new parse_float interface.
1038 Parse suffixes and determine type before calling parse_float.
1039
1040 * m2-exp.y: Replace dval by byte buffer val.
1041 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1042 (parse_number): Call parse_float instead of atof.
1043
1044 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1045 (lex_number): Call parse_float instead of strtod.
1046 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
1047 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
1048 Use write_exp_elt_floatcst.
1049 (unit_testing): Remove static variable.
1050 (rust_type): Do not check unit_testing.
1051 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
1052
1053 * ada-exp.y (type_float, type_double): Remove.
1054 (typed_val_float): Use byte buffer instead of DOUBLEST.
1055 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1056 * ada-lex.l (processReal): Use parse_float instead of sscanf.
1057
1058 2017-10-25 Alan Hayward <alan.hayward@arm.com>
1059
1060 * aarch64-tdep.h (enum aarch64_regnum): Remove.
1061 * arch/aarch64.h: New file.
1062
1063 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1064
1065 * dfp.h (decimal_from_string): Use const reference for argument.
1066 * dfp.c (decimal_from_string): Likewise.
1067
1068 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1069
1070 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
1071 * sh64-tdep.c (sh64_do_fp_register): Likewise.
1072 * mips-tdep.c (mips_print_fp_register): Likewise.
1073
1074 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1075
1076 * common/format.h (enum argclass): Replace decfloat_arg by
1077 dec32float_arg, dec64float_arg, and dec128float_arg.
1078 * common/format.c (parse_format_string): Update to return
1079 new decimal float argument classes.
1080
1081 * printcmd.c (printf_decfloat): Rename to ...
1082 (printf_floating): ... this. Add argclass argument, and use it
1083 instead of parsing the format string again. Add support for
1084 binary floating-point values, using floatformat_to_string.
1085 Convert value to the target format if it doesn't already match.
1086 (ui_printf): Call printf_floating instead of printf_decfloat,
1087 also for double_arg / long_double_arg. Pass argclass.
1088
1089 * dfp.c (decimal_to_string): Add format string argument.
1090 * dfp.h (decimal_to_string): Likewise.
1091
1092 * doublest.c (floatformat_to_string): Add format string argument.
1093 * doublest.h (floatformat_to_string): Likewise.
1094
1095 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1096
1097 * doublest.c (floatformat_precision): New routine.
1098 (floatformat_to_string): Likewise.
1099 * doublest.c (floatformat_to_string): Add prototype.
1100
1101 * printcmd.c (print_scalar_formatted): Only call print_floating
1102 on floating-point types.
1103 * valprint.c: Do not include "floatformat.h".
1104 (generic_val_print_decfloat): Remove.
1105 (generic_val_print): Call generic_val_print_float for both
1106 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
1107 (print_floating): Use floatformat_to_string. Handle decimal float.
1108 (print_decimal_floating): Remove, merge into floatformat_to_string.
1109 * value.h (print_decimal_floating): Remove.
1110
1111 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
1112
1113 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1114
1115 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
1116
1117 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1118
1119 * memattr.h: Don't include vec.h.
1120 (struct mem_attrib): Initialize fields.
1121 <unknown>: New static method.
1122 (struct mem_region): Add constructors, operator<, initialize
1123 fields.
1124 * memattr.c: Include algorithm.
1125 (default_mem_attrib, unknown_mem_attrib): Remove.
1126 (user_mem_region_list): New global.
1127 (target_mem_region_list, mem_region_list): Change type to
1128 std::vector<mem_region>.
1129 (mem_use_target): Now a function.
1130 (target_mem_regions_valid): Change type to bool.
1131 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
1132 (require_user_regions): Adjust.
1133 (require_target_regions): Adjust.
1134 (create_mem_region): Adjust.
1135 (lookup_mem_region): Adjust.
1136 (invalidate_target_mem_regions): Adjust.
1137 (mem_clear): Rename to...
1138 (user_mem_clear): ... this, and adjust.
1139 (mem_command): Adjust.
1140 (info_mem_command): Adjust.
1141 (mem_enable, enable_mem_command, mem_disable,
1142 disable_mem_command): Adjust.
1143 (mem_delete): Adjust.
1144 (delete_mem_command): Adjust.
1145 * memory-map.h (parse_memory_map): Return an std::vector.
1146 * memory-map.c (parse_memory_map): Likewise.
1147 (struct memory_map_parsing_data): Add constructor.
1148 <memory_map>: Point to std::vector.
1149 (memory_map_start_memory): Adjust.
1150 (memory_map_end_memory): Adjust.
1151 (memory_map_end_property): Adjust.
1152 (clear_result): Remove.
1153 * remote.c (remote_memory_map): Return an std::vector.
1154 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
1155 Remove.
1156 (target_debug_print_mem_region_vector): New.
1157 * target-delegates.c: Regenerate.
1158 * target.h (mem_region_vector): New typedef.
1159 (to_memory_map): Return mem_region_vector.
1160 (target_memory_map): Return an std::vector.
1161 * target.c (target_memory_map): Return an std::vector.
1162 (flash_erase_command): Adjust.
1163
1164 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1165
1166 * memory-map.c (struct memory_map_parsing_data) <property_name>:
1167 Change type to std::string.
1168 (memory_map_start_property): Adjust.
1169 (memory_map_end_property): Adjust.
1170
1171 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1172
1173 * infrun.h: Include common/byte-vector.h.
1174 (struct displaced_step_closure): New struct.
1175 (struct buf_displaced_step_closure): New struct.
1176 * infrun.c (displaced_step_closure::~displaced_step_closure):
1177 Provide default implementation.
1178 (displaced_step_clear): Deallocate step closure with delete.
1179 * aarch64-tdep.c (displaced_step_closure): Rename to ...
1180 (aarch64_displaced_step_closure): ... this, extend
1181 displaced_step_closure.
1182 (aarch64_displaced_step_data) <dsc>: Change type to
1183 aarch64_displaced_step_closure.
1184 (aarch64_displaced_step_copy_insn): Adjust to type change, use
1185 unique_ptr.
1186 (aarch64_displaced_step_fixup): Add cast for displaced step
1187 closure.
1188 * amd64-tdep.c (displaced_step_closure): Rename to ...
1189 (amd64_displaced_step_closure): ... this, extend
1190 displaced_step_closure.
1191 <insn_buf>: Change type to std::vector<gdb_byte>.
1192 <max_len>: Remove.
1193 (fixup_riprel): Change type of DSC parameter, adjust to type
1194 change of insn_buf.
1195 (fixup_displaced_copy): Change type of DSC parameter.
1196 (amd64_displaced_step_copy_insn): Instantiate
1197 amd64_displaced_step_closure.
1198 (amd64_displaced_step_fixup): Add cast for closure type, adjust
1199 to type change of insn_buf.
1200 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
1201 parameter DSC.
1202 (arm_linux_copy_svc): Likewise.
1203 (cleanup_kernel_helper_return): Likewise.
1204 (arm_catch_kernel_helper_return): Likewise.
1205 (arm_linux_displaced_step_copy_insn): Instantiate
1206 arm_displaced_step_closure.
1207 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
1208 (displaced_read_reg): Change type of parameter DSC.
1209 (branch_write_pc): Likewise.
1210 (load_write_pc): Likewise.
1211 (alu_write_pc): Likewise.
1212 (displaced_write_reg): Likewise.
1213 (arm_copy_unmodified): Likewise.
1214 (thumb_copy_unmodified_32bit): Likewise.
1215 (thumb_copy_unmodified_16bit): Likewise.
1216 (cleanup_preload): Likewise.
1217 (install_preload): Likewise.
1218 (arm_copy_preload): Likewise.
1219 (thumb2_copy_preload): Likewise.
1220 (install_preload_reg): Likewise.
1221 (arm_copy_preload_reg): Likewise.
1222 (cleanup_copro_load_store): Likewise.
1223 (install_copro_load_store): Likewise.
1224 (arm_copy_copro_load_store) Likewise.
1225 (thumb2_copy_copro_load_store): Likewise.
1226 (cleanup_branch): Likewise.
1227 (install_b_bl_blx): Likewise.
1228 (arm_copy_b_bl_blx): Likewise.
1229 (thumb2_copy_b_bl_blx): Likewise.
1230 (thumb_copy_b): Likewise.
1231 (install_bx_blx_reg): Likewise.
1232 (arm_copy_bx_blx_reg): Likewise.
1233 (thumb_copy_bx_blx_reg): Likewise.
1234 (cleanup_alu_imm): Likewise.
1235 (arm_copy_alu_imm): Likewise.
1236 (thumb2_copy_alu_imm): Likewise.
1237 (cleanup_alu_reg): Likewise.
1238 (install_alu_reg): Likewise.
1239 (arm_copy_alu_reg): Likewise.
1240 (thumb_copy_alu_reg): Likewise.
1241 (cleanup_alu_shifted_reg): Likewise.
1242 (install_alu_shifted_reg): Likewise.
1243 (arm_copy_alu_shifted_reg): Likewise.
1244 (cleanup_load): Likewise.
1245 (cleanup_store): Likewise.
1246 (arm_copy_extra_ld_st): Likewise.
1247 (install_load_store): Likewise.
1248 (thumb2_copy_load_literal): Likewise.
1249 (thumb2_copy_load_reg_imm): Likewise.
1250 (arm_copy_ldr_str_ldrb_strb): Likewise.
1251 (cleanup_block_load_all): Likewise.
1252 (cleanup_block_store_pc): Likewise.
1253 (cleanup_block_load_pc): Likewise.
1254 (arm_copy_block_xfer): Likewise.
1255 (thumb2_copy_block_xfer): Likewise.
1256 (cleanup_svc): Likewise.
1257 (install_svc): Likewise.
1258 (arm_copy_svc): Likewise.
1259 (thumb_copy_svc): Likewise.
1260 (arm_copy_undef): Likewise.
1261 (thumb_32bit_copy_undef): Likewise.
1262 (arm_copy_unpred): Likewise.
1263 (arm_decode_misc_memhint_neon): Likewise.
1264 (arm_decode_unconditional): Likewise.
1265 (arm_decode_miscellaneous): Likewise.
1266 (arm_decode_dp_misc): Likewise.
1267 (arm_decode_ld_st_word_ubyte): Likewise.
1268 (arm_decode_media): Likewise.
1269 (arm_decode_b_bl_ldmstm): Likewise.
1270 (arm_decode_ext_reg_ld_st): Likewise.
1271 (thumb2_decode_dp_shift_reg): Likewise.
1272 (thumb2_decode_ext_reg_ld_st): Likewise.
1273 (arm_decode_svc_copro): Likewise.
1274 (thumb2_decode_svc_copro): Likewise.
1275 (install_pc_relative): Likewise.
1276 (thumb_copy_pc_relative_16bit): Likewise.
1277 (thumb_decode_pc_relative_16bit): Likewise.
1278 (thumb_copy_pc_relative_32bit): Likewise.
1279 (thumb_copy_16bit_ldr_literal): Likewise.
1280 (thumb_copy_cbnz_cbz): Likewise.
1281 (thumb2_copy_table_branch): Likewise.
1282 (cleanup_pop_pc_16bit_all): Likewise.
1283 (thumb_copy_pop_pc_16bit): Likewise.
1284 (thumb_process_displaced_16bit_insn): Likewise.
1285 (decode_thumb_32bit_ld_mem_hints): Likewise.
1286 (thumb_process_displaced_32bit_insn): Likewise.
1287 (thumb_process_displaced_insn): Likewise.
1288 (arm_process_displaced_insn): Likewise.
1289 (arm_displaced_init_closure): Likewise.
1290 (arm_displaced_step_fixup): Add cast for closure.
1291 * arm-tdep.h: Include infrun.h.
1292 (displaced_step_closure): Rename to ...
1293 (arm_displaced_step_closure): ... this, extend
1294 displaced_step_closure.
1295 <u::svc::copy_svc_os>: Change type of parameter DSC.
1296 <cleanup>: Likewise.
1297 (arm_process_displaced_insn): Likewise.
1298 (arm_displaced_init_closure): Likewise.
1299 (displaced_read_reg): Likewise.
1300 (displaced_write_reg): Likewise.
1301 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1302 Adjust.
1303 * i386-tdep.h: Include infrun.h.
1304 (i386_displaced_step_closure): New typedef.
1305 * i386-tdep.c (i386_displaced_step_copy_insn): Use
1306 i386_displaced_step_closure.
1307 (i386_displaced_step_fixup): Adjust.
1308 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
1309 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
1310 and unique_ptr.
1311 (ppc_displaced_step_fixup): Adjust.
1312 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
1313 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
1314 and unique_ptr.
1315 (s390_displaced_step_fixup): Adjust.
1316
1317 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1318
1319 * interps.h (interp_resume, interp_suspend, interp_set_temp):
1320 Remove declarations.
1321
1322 2017-10-20 Tom Tromey <tom@tromey.com>
1323
1324 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
1325 std::vector.
1326 (gdb_bfd_record_inclusion): Update.
1327 (bfdp): Remove typedef.
1328
1329 2017-10-20 Tom Tromey <tom@tromey.com>
1330
1331 * gdb_bfd.c (gdb_bfd_ref): Use new.
1332 (struct gdb_bfd_data): Add constructor, destructor, and member
1333 initializers.
1334 (gdb_bfd_unref): Use delete.
1335
1336 2017-10-20 Tom Tromey <tom@tromey.com>
1337
1338 * exec.c (exec_file_attach): Use new_bfd_ref.
1339 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
1340 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1341 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
1342 new_bfd_ref.
1343 * gdb_bfd.h (new_bfd_ref): New function.
1344
1345 2017-10-20 Pedro Alves <palves@redhat.com>
1346
1347 * main.c (captured_command_loop): Add attribute noinline.
1348
1349 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
1350
1351 * interps.c (struct interp_factory): Add constructor.
1352 (interp_factory_p): Remove typedef.
1353 (DEF_VEC_P(interp_factory_p)): Remove.
1354 (interpreter_factories): Change type to std::vector.
1355 (interp_factory_register): Adjust.
1356 (interp_lookup): Adjust.
1357 (interpreter_completer): Adjust.
1358
1359 2017-10-19 Tom Tromey <tom@tromey.com>
1360
1361 * break-catch-syscall.c (catch_syscall_completer): Use
1362 std::string, gdb::unique_xmalloc_ptr.
1363
1364 2017-10-19 Tom Tromey <tom@tromey.com>
1365
1366 * infcall.c (call_function_by_hand_dummy): Use std::string.
1367
1368 2017-10-19 Tom Tromey <tom@tromey.com>
1369
1370 * mi/mi-main.c (mi_cmd_execute): Update.
1371 * top.h (prepare_execute_command): Return scoped_value_mark.
1372 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
1373 Add move constructor.
1374 * top.c (prepare_execute_command): Return scoped_value_mark.
1375 (execute_command): Update.
1376
1377 2017-10-19 Pedro Alves <palves@redhat.com>
1378
1379 * xml-support.c (xml_fetch_content_from_file): Check fread's
1380 return.
1381
1382 2017-10-19 Pedro Alves <palves@redhat.com>
1383
1384 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
1385 async.
1386 (handle_error_fd): New function.
1387 (ser_base_async): Add/delete an event loop file handler for
1388 error_fd.
1389
1390 2017-10-19 Pedro Alves <palves@redhat.com>
1391
1392 * xml-support.c (xml_fetch_content_from_file): Don't read in
1393 chunks. Instead use fseek to determine the file's size, and read
1394 it in one go.
1395
1396 2017-11-18 Keith Seitz <keiths@redhat.com>
1397
1398 * c-exp.y (oper): Canonicalize conversion operators of user-defined
1399 types.
1400 Add whitespace to front of type name.
1401
1402 2017-10-18 Keith Seitz <keiths@redhat.com>
1403
1404 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
1405 DW_AT_accessibility.
1406
1407 2017-10-18 Yao Qi <yao.qi@linaro.org>
1408
1409 * features/tic6x-c62x-linux.c: Remove.
1410
1411 2017-10-17 Tom Tromey <tom@tromey.com>
1412
1413 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
1414 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
1415 (do_mixed_source_and_assembly): Likewise.
1416
1417 2017-10-17 Tom Tromey <tom@tromey.com>
1418
1419 * regcache.c (regcache::xfer_part): Remove assertion.
1420
1421 2017-10-17 Pedro Alves <palves@redhat.com>
1422
1423 * xml-support.c (xml_fetch_content_from_file): Call
1424 unique_ptr::release() instead unique_ptr::get() when passing
1425 through xrealloc.
1426
1427 2017-10-17 Yao Qi <yao.qi@linaro.org>
1428
1429 * regcache.c (regcache::xfer_part): Remove parameters read and
1430 write, add parameter is_raw. All callers are updated.
1431
1432 2017-10-16 Keith Seitz <keiths@redhat.com>
1433
1434 * c-typeprint.c (enum access_specifier): Moved here from
1435 c_type_print_base.
1436 (output_access_specifier): New function.
1437 (c_type_print_base): Consider typedefs when assessing
1438 whether access labels are needed.
1439 Use output_access_specifier as needed.
1440 Output access specifier for typedefs, if needed.
1441 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
1442 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
1443 fields.
1444 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
1445 accessor macros.
1446
1447 2017-10-16 Tom Tromey <tom@tromey.com>
1448
1449 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
1450 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
1451 * target.c (target_fileio_read_stralloc): Update.
1452 * sparc64-tdep.c (adi_is_addr_mapped): Update.
1453 * target.h (target_fileio_read_stralloc): Return
1454 unique_xmalloc_ptr.
1455
1456 2017-10-16 Tom Tromey <tom@tromey.com>
1457
1458 * xml-syscall.c (xml_init_syscalls_info): Update.
1459 * xml-support.c (xinclude_start_include): Update.
1460 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
1461 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
1462 (xml_fetch_content_from_file): Likewise.
1463 * osdata.c (get_osdata): Update.
1464 * target.h (target_read_stralloc, target_get_osdata): Return
1465 unique_xmalloc_ptr.
1466 * solib-aix.c (solib_aix_get_library_list): Update.
1467 * solib-target.c (solib_target_current_sos): Update.
1468 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
1469 * xml-tdesc.c (fetch_available_features_from_target): Update.
1470 (target_fetch_description_xml): Update.
1471 (file_read_description_xml): Update.
1472 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
1473 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
1474 (remote_pid_to_exec_file): Update.
1475 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
1476 (target_get_osdata): Likewise.
1477
1478 2017-10-16 Tom Tromey <tom@tromey.com>
1479
1480 * remote.c (remote_register_number_and_offset): Use std::vector.
1481 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
1482 (putpkt_binary): Use gdb::def_vector.
1483 (compare_sections_command): Use gdb::byte_vector.
1484
1485 2017-10-16 Tom Tromey <tom@tromey.com>
1486
1487 * ppc-linux-nat.c (hwdebug_insert_point): Use
1488 gdb::unique_xmalloc_ptr, XDUP.
1489
1490 2017-10-16 Tom Tromey <tom@tromey.com>
1491
1492 * probe.c (parse_probes): Use std::string.
1493 (info_probes_for_ops, enable_probes_command)
1494 (disable_probes_command): Remove cleanups.
1495
1496 2017-10-16 Tom Tromey <tom@tromey.com>
1497
1498 * buildsym.c (block_compar): Remove.
1499 (end_symtab_get_static_block): Use std::vector.
1500
1501 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
1502
1503 * memrange.h (struct mem_range): Define operator< and operator==.
1504 (mem_range_s): Remove.
1505 (DEF_VEC_O (mem_range_s)): Remove.
1506 (normalize_mem_ranges): Change parameter type to std::vector.
1507 * memrange.c (compare_mem_ranges): Remove.
1508 (normalize_mem_ranges): Change parameter type to std::vector,
1509 adjust to vector change.
1510 * exec.c (section_table_available_memory): Return vector, remove
1511 parameter.
1512 (section_table_read_available_memory): Adjust to std::vector
1513 change.
1514 * remote.c (remote_read_bytes): Adjust to std::vector
1515 change.
1516 * tracepoint.h (traceframe_available_memory): Change parameter
1517 type to std::vector.
1518 * tracepoint.c (traceframe_available_memory): Change parameter
1519 type to std::vector, adjust.
1520 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
1521 std::vector change.
1522 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1523 unittests/memrange-selftests.c.
1524 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
1525 * gdb/unittests/memrange-selftests.c: New file.
1526
1527 2017-10-16 Pedro Alves <palves@redhat.com>
1528
1529 * elfread.c (probe_key_free): Rename range-for variable.
1530 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
1531 (find_probe_by_pc, collect_probes): Rename range-for variable.
1532
1533 2017-10-16 Yao Qi <yao.qi@linaro.org>
1534
1535 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1536 * features/tic6x-c62x.c: Remove.
1537 * features/tic6x-c64x-linux.c: Remove.
1538 * features/tic6x-c64x.c: Remove.
1539 * features/tic6x-c64xp-linux.c: Remove.
1540 * features/tic6x-c64xp.c: Remove.
1541 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1542 initialize_tdesc_tic6x_*_linux functions.
1543 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1544 initialize_tdesc_tic6x_* functions.
1545
1546 2017-10-16 Yao Qi <yao.qi@linaro.org>
1547
1548 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1549 tic6x-c62x.
1550 * regformats/tic6x-c62x.dat: Remove.
1551 * regformats/tic6x-c64x.dat: Remove.
1552 * regformats/tic6x-c64xp.dat: Remove.
1553
1554 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1555
1556 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1557 (the !HAVE_LIBEXPAT version).
1558
1559 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1560
1561 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1562 const.
1563
1564 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1565
1566 * target.h: Include tracepoint.h.
1567 (enum trace_find_type): Move to tracepoint.h.
1568 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1569 * tracepoint.h: Don't include target.h
1570 (enum trace_find_type): Move from target.h.
1571 (parse_traceframe_info): Return a unique ptr.
1572 * tracepoint.c (current_traceframe_info): Change type to unique
1573 ptr.
1574 (free_traceframe_info): Remove.
1575 (clear_traceframe_info): Don't manually free
1576 current_traceframe_info.
1577 (free_result): Remove.
1578 (parse_traceframe_info): Return a unique ptr.
1579 (get_traceframe_info): Adjust to unique ptr.
1580 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1581 * remote.c (remote_traceframe_info): Return a unique ptr.
1582 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1583 ptr.
1584 * target-debug.h (target_debug_print_traceframe_info_up): New
1585 macro.
1586 * target-delegates.c: Regenerate.
1587
1588 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1589
1590 * memrange.h (struct mem_range): Add constructors.
1591 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1592 std::vector<mem_range>.
1593 * tracepoint.c (free_traceframe_info): Don't manually free
1594 vector.
1595 (traceframe_info_start_memory): Adjust to vector change.
1596 (traceframe_available_memory): Likewise.
1597 * tracefile-tfile.c (build_traceframe_info): Likewise.
1598 * ctf.c (ctf_traceframe_info): Likewise.
1599
1600 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1601
1602 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1603 std::vector<int>.
1604 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1605 (traceframe_info_start_tvar): Adjust to vector change.
1606 (parse_traceframe_info): Allocate with new.
1607 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1608 vector change.
1609 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1610 change.
1611 tfile_traceframe_info): Allocate with new.
1612 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1613 change.
1614
1615 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1616
1617 * tracepoint.c (traceframe_info): Rename to...
1618 (current_traceframe_info): ...this.
1619 (clear_traceframe_info): Adjust.
1620 (get_traceframe_info): Adjust.
1621
1622 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1623
1624 * nat/linux-osdata.c: Include algorithm.
1625 (compare_processes): Remove.
1626 (struct pid_pgid_entry): New struct.
1627 (linux_xfer_osdata_processgroups): Use std::vector instead of
1628 XNEWVEC.
1629
1630 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1631
1632 * objfiles.h: Don't include symfile.h.
1633 (struct partial_symbol): Remove forward-declaration.
1634 (struct objfile) <global_psymbols, static_psymbols>: Change type
1635 to std::vector<partial_symbol *>.
1636 * objfiles.c (objfile::objfile): Don't memset those fields.
1637 (objfile::~objfile): Don't free those fields.
1638 * psympriv.h (struct psymbol_allocation_list): Remove
1639 forward-declaration.
1640 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1641 to std::vector.
1642 (start_psymtab_common): Change parameters to std::vector.
1643 * psymtab.c: Include algorithm.
1644 (require_partial_symbols): Call shrink_to_fit.
1645 (find_pc_sect_psymbol): Adjust to vector change.
1646 (match_partial_symbol): Likewise.
1647 (lookup_partial_symbol): Likewise.
1648 (psym_relocate): Likewise.
1649 (dump_psymtab): Likewise.
1650 (recursively_search_psymtabs): Likewise.
1651 (compare_psymbols): Remove.
1652 (sort_pst_symbols): Adjust to vector change.
1653 (start_psymtab_common): Likewise.
1654 (end_psymtab_common): Likewise.
1655 (psymbol_bcache_full): De-constify return value.
1656 (add_psymbol_to_bcache): Likewise.
1657 (extend_psymbol_list): Remove.
1658 (append_psymbol_to_list): Adjust to vector change.
1659 (add_psymbol_to_list): Likewise.
1660 (init_psymbol_list): Likewise.
1661 (maintenance_info_psymtabs): Likewise.
1662 (maintenance_check_psymtabs): Likewise.
1663 * symfile.h (struct psymbol_allocation_list): Remove.
1664 * symfile.c (reread_symbols): Adjust to vector change.
1665 * dbxread.c (start_psymtab): Change type of parameters.
1666 (dbx_symfile_read): Adjust to vector change.
1667 (read_dbx_symtab): Likewise.
1668 (start_psymtab): Change type of parameters.
1669 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1670 (create_partial_symtab): Likewise.
1671 (add_partial_symbol): Likewise.
1672 (write_one_signatured_type): Likewise.
1673 (recursively_write_psymbols): Likewise.
1674 * mdebugread.c (parse_partial_symbols): Likewise.
1675 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1676 (scan_xcoff_symtab): Adjust to vector change.
1677 (xcoff_initial_scan): Likewise.
1678
1679 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1680
1681 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1682
1683 2017-10-13 Yao Qi <yao.qi@linaro.org>
1684
1685 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1686 Remove s390x-*-expedite, add s390x-expedite.
1687
1688 2017-10-13 Yao Qi <yao.qi@linaro.org>
1689
1690 * features/s390-gs-linux64.c: Regenerated.
1691 * features/s390x-gs-linux64.c: Regenerated.
1692
1693 2017-10-13 Tom Tromey <tom@tromey.com>
1694
1695 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1696 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1697 delete.
1698 * symfile.c (symbol_file_add_with_addrs): Use new.
1699 (symbol_file_add_separate): Update comment.
1700 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1701 * jit.c (jit_object_close_impl): Use new.
1702 (jit_unregister_code): Use delete.
1703 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1704 (~objfile): Rename from free_objfile.
1705 (free_objfile_separate_debug, do_free_objfile_cleanup)
1706 (free_all_objfiles, objfile_purge_solibs): Use delete.
1707 * objfiles.h (struct objfile): Add constructor and destructor.
1708 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1709 (allocate_objfile, free_objfile): Don't declare.
1710 (struct objstats): Add initializers.
1711
1712 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1713
1714 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1715 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1716 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1717 * gdbarch.h: Regenerate.
1718 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1719 Adjust comment.
1720 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1721 (i386_displaced_step_fixup): Adjust comment.
1722 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1723
1724 2017-10-12 Tom Tromey <tom@tromey.com>
1725
1726 * prologue-value.h (pv_area::store_would_trash): Return bool.
1727 (pv_area::find_reg): Likewise.
1728 * prologue-value.c (pv_area::store_would_trash): Return bool.
1729 (pv_area::find_reg): Likewise.
1730
1731 2017-10-12 Tom Tromey <tom@tromey.com>
1732
1733 * s390-linux-tdep.c (s390_store, s390_load)
1734 (s390_check_for_saved, s390_analyze_prologue): Update.
1735 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1736 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1737 * prologue-value.h (class pv_area): Move from prologue-value.c.
1738 Change names of members. Add constructor, destructor, member
1739 functions.
1740 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1741 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1742 (pv_area_fetch, pv_area_scan): Don't declare.
1743 * prologue-value.c (struct pv_area::area_entry): Now member of
1744 pv_area.
1745 (struct pv_area): Move to prologue-value.h.
1746 (pv_area::pv_area): Rename from make_pv_area.
1747 (pv_area::~pv_area): Rename from free_pv_area.
1748 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1749 (clear_entries, find_entry, overlaps, store_would_trash, store)
1750 (fetch, find_reg, scan): Now member of pv_area.
1751 Remove "area" argument. Update.
1752 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1753 Update.
1754 * mn10300-tdep.c (push_reg, check_for_saved)
1755 (mn10300_analyze_prologue): Update.
1756 * mep-tdep.c (is_arg_spill, check_for_saved)
1757 (mep_analyze_prologue): Update.
1758 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1759 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1760 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1761 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1762 Update.
1763 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1764 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1765
1766 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1767
1768 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1769 * linux-nat.c (linux_nat_delete_thread): New variable.
1770 (lwp_free): Invoke linux_nat_delete_thread if set.
1771 (linux_nat_set_delete_thread): New function.
1772 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1773 thread delete callback.
1774 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1775 (_initialize_arm_linux_nat): Assign thread delete callback.
1776 * s390-linux-nat.c (s390_delete_thread): New function.
1777 (_initialize_s390_nat): Assign thread delete callback.
1778 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1779 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1780 function.
1781 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1782 declaration.
1783 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1784 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1785
1786 2017-10-09 Tom Tromey <tom@tromey.com>
1787
1788 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1789 std::string.
1790 * tui/tui-layout.c (enum tui_status): Use std::string.
1791
1792 2017-10-11 Tom Tromey <tom@tromey.com>
1793
1794 * gdbthread.h (thread_command): Constify.
1795 * inferior.h (detach_command): Constify.
1796 * top.h (set_history, show_history): Constify.
1797 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1798 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1799 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1800 * printcmd.c (set_command): Constify.
1801 (non_const_set_command): New function.
1802 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1803 * breakpoint.c (enable_command, disable_command, delete_command)
1804 (catch_command, tcatch_command, set_breakpoint_cmd)
1805 (show_breakpoint_cmd): Constify.
1806 * macrocmd.c (macro_command): Constify.
1807 * infcmd.c (unset_command, kill_command, detach_command)
1808 (info_proc_cmd): Constify.
1809 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1810 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1811 (info_auto_load_cmd): Constify.
1812 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1813 (unset_tdesc_cmd): Constify.
1814 * ada-lang.c (set_ada_command, show_ada_command)
1815 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1816 * guile/guile.c (set_guile_command, show_guile_command)
1817 (info_guile_command): Constify.
1818 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1819 Constify.
1820 * skip.c (skip_command): Constify.
1821 * compile/compile.c (_initialize_compile): Constify.
1822 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1823 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1824 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1825 (maint_btrace_pt_show_cmd): Constify.
1826 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1827 Constify.
1828 * python/python.c (user_show_python, user_set_python): Constify.
1829 * mips-tdep.c (set_mips_command, show_mips_command)
1830 (set_mipsfpu_command): Constify.
1831 * record-btrace.c (cmd_record_btrace_start)
1832 (cmd_set_record_btrace, cmd_show_record_btrace)
1833 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1834 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1835 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1836 Constify.
1837 * symfile.c (overlay_command): Constify.
1838 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1839 * cli/cli-logging.c (set_logging_command, show_logging_command):
1840 Constify.
1841 * cli/cli-dump.c (dump_command, append_command)
1842 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1843 (tekhex_dump_command, binary_dump_command)
1844 (binary_append_command): Constify.
1845 * cli/cli-decode.c (struct cmd_list_element): Change type of
1846 "fun".
1847 * cli/cli-cmds.c (info_command, show_command, set_debug)
1848 (show_debug): Constify.
1849 (show_command): Add non-const overload.
1850 * top.c (set_history, show_history): Constify.
1851 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1852 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1853 * target.c (target_command): Constify.
1854 * sparc64-tdep.c (info_adi_command): Constify.
1855 * record-full.c (cmd_record_full_start): Constify.
1856 (set_record_full_command): Constify. Fix typo.
1857 (show_record_full_command): Constify.
1858 * thread.c (thread_command, thread_apply_command): Constify.
1859 * memattr.c (dummy_cmd): Constify.
1860 * value.c (function_command): Constify.
1861 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
1862 * probe.c (info_probes_command): Constify.
1863 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
1864 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
1865 (show_thread_cmd, set_thread_default_cmd)
1866 (show_thread_default_cmd): Constify.
1867 (check_empty): Constify.
1868 * tracepoint.c (tfind_command): Constify.
1869 * cp-support.c (maint_cplus_command): Constify.
1870 * windows-tdep.c (info_w32_command): Constify.
1871 * record.c (cmd_record_start, set_record_command)
1872 (show_record_command, info_record_command, cmd_record_goto):
1873 Constify.
1874 * ravenscar-thread.c (set_ravenscar_command)
1875 (show_ravenscar_command): Constify.
1876 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1877 Constify.
1878 (add_internal_problem_command): Remove casts.
1879 * arc-tdep.c (maintenance_print_arc_command): Constify.
1880 * valprint.c (set_print, show_print, set_print_raw)
1881 (show_print_raw): Constify.
1882 * maint.c (maintenance_command, maintenance_info_command)
1883 (maintenance_print_command, maintenance_set_cmd)
1884 (maintenance_show_cmd, set_per_command_cmd)
1885 (show_per_command_cmd, maintenance_check_command): Constify.
1886 * language.c (set_check, show_check): Constify.
1887 * typeprint.c (show_print_type, set_print_type): Constify.
1888 * go32-nat.c (go32_info_dos_command): Constify.
1889
1890 2017-10-11 Tom Tromey <tom@tromey.com>
1891
1892 * breakpoint.c (prepare_re_set_context): Remove.
1893 (breakpoint_re_set_one): Update. Don't use cleanups.
1894 (breakpoint_re_set): Use scoped_restore, std::string, and
1895 scoped_restore_current_language.
1896
1897 2017-10-11 Tom Tromey <tom@tromey.com>
1898
1899 * breakpoint.c (commands_command_1): Use std::string.
1900 (cleanup_executing_breakpoints): Remove.
1901 (bpstat_do_actions_1): Use scoped_restore.
1902 (bpstat_check_watchpoint): Use std::string.
1903 (decode_static_tracepoint_spec): Likewise.
1904 (break_range_command): Likewise.
1905 (watch_command_1): Likewise.
1906 (compare_breakpoints): Change argument types.
1907 (clear_command): Use std::vector.
1908 (cleanup_executing_breakpoints): Remove.
1909 (update_global_location_list): Use unique_xmalloc_ptr.
1910 (strace_command): Remove unused declaration.
1911
1912 2017-10-11 John Baldwin <jhb@FreeBSD.org>
1913
1914 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
1915 * NEWS: Mention new FreeBSD/arm native configuration.
1916 * configure.host: Add arm*-*-freebsd*.
1917 * configure.nat: Likewise.
1918 * arm-fbsd-nat.c: New file.
1919
1920 2017-10-11 John Baldwin <jhb@FreeBSD.org>
1921
1922 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
1923 (ALLDEPFILES): Add arm-fbsd-tdep.c.
1924 * NEWS: Mention new FreeBSD/arm target.
1925 * configure.tgt: Add arm*-*-freebsd*.
1926 * arm-fbsd-tdep.c: New file.
1927 * arm-fbsd-tdep.h: New file.
1928
1929 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1930
1931 * linux-tdep.c (linux_make_corefile_notes): Remove call to
1932 `gdbarch_elfcore_write_linux_prpsinfo'.
1933 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
1934 method.
1935 (elf_internal_linux_prpsinfo): Remove declaration.
1936 * gdbarch.h: Regenerate.
1937 * gdbarch.c: Regenerate.
1938
1939 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1940
1941 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
1942 `set_gdbarch_elfcore_write_linux_prpsinfo'.
1943
1944 2017-10-11 Pedro Alves <palves@redhat.com>
1945
1946 * breakpoint.c (reattach_breakpoints): Delete.
1947 * breakpoint.h (reattach_breakpoints): Delete.
1948
1949 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
1950
1951 * symfile.c (registered_sym_fns): Make struct, not typedef.
1952 (DEF_VEC_O (registered_sym_fns)): Remove.
1953 (symtab_fns): Change type to std::vector.
1954 (add_symtab_fns): Adjust.
1955 (find_sym_fns): Adjust.
1956
1957 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
1958
1959 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
1960 * arc-tdep.h (arc_arch_is_em): New function.
1961 (arc_arch_is_hs): Likewise.
1962
1963 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1964
1965 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
1966 parentheses in the declaration.
1967 (macro_lookup_inclusion): Likewise.
1968 (macro_lookup_definition): Likewise.
1969 * p-lang.h (pascal_builtin_types): Likewise.
1970 * tui/tui-data.c (tui_win_list): Likewise.
1971 * tui/tui-data.h (tui_win_list): Likewise.
1972 * utils.h (make_cleanup_free_section_addr_info): Likewise.
1973
1974 2017-10-11 Mark Rages <markrages@gmail.com>
1975
1976 * target-memory.c (block_boundaries): Fix for block address not
1977 aligned on block size.
1978
1979 2017-10-10 Pedro Alves <palves@redhat.com>
1980 Tom Tromey <tom@tromey.com>
1981
1982 * breakpoint.c (struct captured_breakpoint_query_args)
1983 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
1984 (print_breakpoint): New.
1985 * breakpoint.h (print_breakpoint): Declare.
1986 * common/common-exceptions.h (enum return_reason): Remove
1987 references to catch_exceptions.
1988 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
1989 Delete.
1990 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
1991 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
1992 * gdb.h: Delete.
1993 * gdbthread.h (thread_select): Declare.
1994 * mi/mi-cmd-break.c: Don't include gdb.h.
1995 (breakpoint_notify): Use print_breakpoint.
1996 * mi/mi-cmd-catch.c: Don't include gdb.h.
1997 * mi/mi-interp.c: Don't include gdb.h.
1998 (mi_print_breakpoint_for_event): New.
1999 (mi_breakpoint_created, mi_breakpoint_modified): Use
2000 mi_print_breakpoint_for_event.
2001 * mi/mi-main.c: Don't include gdb.h.
2002 (mi_cmd_thread_select): Parse the global thread ID here. Use
2003 thread_select instead of gdb_thread_select.
2004 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
2005 of using gdb_list_thread_ids.
2006 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
2007 FILEIO_ENOSYS here.
2008 (remote_fileio_request): Use TRY/CATCH instead of
2009 catch_exceptions.
2010 * symfile-mem.c (struct symbol_file_add_from_memory_args)
2011 (symbol_file_add_from_memory_wrapper): Delete.
2012 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
2013 * thread.c: Don't include gdb.h.
2014 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
2015 (thread_alive): Use thread_select.
2016 (do_captured_thread_select): Delete, parts salvaged as ...
2017 (thread_select): ... this new function.
2018 (gdb_thread_select): Delete.
2019
2020 2017-10-10 Pedro Alves <palves@redhat.com>
2021 Tom Tromey <tom@tromey.com>
2022
2023 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
2024 and reverse logic.
2025 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
2026 No longer macros. Instead ...
2027 (enum wp_check_result): They're now values of this new
2028 enumeration.
2029 (watchpoint_check): Change return type to wp_check_result and
2030 parameter type to bpstat.
2031 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
2032 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
2033 catch_errors. Reverse logic of watchpoint_check call.
2034 (breakpoint_re_set_one): Now returns void and takes a breakpoint
2035 pointer as parameter.
2036 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
2037 * common/common-exceptions.c (throw_exception_sjlj): Update
2038 comments to avoid mentioning catch_errors.
2039 * exceptions.c (catch_errors): Delete.
2040 * exceptions.h: Update comments to avoid mentioning catch_errors.
2041 (catch_errors_ftype, catch_errors): Delete.
2042 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
2043 (hook_stop_stub): Delete.
2044 (restore_selected_frame): Change return type to void, and
2045 parameter type to const frame_id &.
2046 (restore_infcall_control_state): Use TRY/CATCH instead of
2047 catch_errors.
2048 * main.c (captured_command_loop): Return void and remove
2049 parameter. Remove references to catch_errors.
2050 (captured_main): Use TRY/CATCH instead of catch_errors.
2051 * objc-lang.c (objc_submethod_helper_data)
2052 (find_objc_msgcall_submethod_helper): Delete.
2053 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
2054 catch_errors.
2055 * record-full.c (record_full_message): Return void.
2056 (record_full_message_args, record_full_message_wrapper): Delete.
2057 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
2058 instead of catch_errors.
2059 * solib-aix.c (solib_aix_open_symbol_file_object): Change
2060 parameter type to int.
2061 * solib-darwin.c (open_symbol_file_object): Ditto.
2062 * solib-dsbt.c (open_symbol_file_object): Ditto.
2063 * solib-frv.c (open_symbol_file_object): Ditto.
2064 * solib-svr4.c (open_symbol_file_object): Ditto.
2065 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
2066 * solib.c (update_solib_list): Use TRY/CATCH instead of
2067 catch_errors.
2068 * solist.h (struct target_so_ops) <open_symbol_file_object>:
2069 Change type.
2070 * symmisc.c (struct print_symbol_args): Remove.
2071 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
2072 (print_symbol): Change type.
2073 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
2074 and remove parameters.
2075 (catch_errors): New.
2076 (get_windows_debug_event): Adjust.
2077
2078 2017-10-09 Tom Tromey <tom@tromey.com>
2079
2080 * mi/mi-main.c (free_splay_tree): Remove.
2081 (list_available_thread_groups): Use splay_tree_up.
2082 * common/gdb_splay_tree.h: New file.
2083
2084 2017-10-09 Tom Tromey <tom@tromey.com>
2085
2086 * mi/mi-main.c (do_nothing): Remove.
2087 (list_available_thread_groups): Update.
2088
2089 2017-10-09 Pedro Alves <palves@redhat.com>
2090
2091 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
2092 reading registers when switching context.
2093
2094 2017-10-09 John Baldwin <jhb@FreeBSD.org>
2095
2096 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
2097 (fbsd_convert_siginfo): Likewise.
2098 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
2099
2100 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
2101
2102 * configure.ac (try_guile_versions): Remove guile-2.2.
2103 * configure: Regenerate.
2104
2105 2017-10-09 Tom Tromey <tom@tromey.com>
2106
2107 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
2108 (COMPILE.pre): Use $(CXX).
2109
2110 2017-10-09 Pedro Alves <palves@redhat.com>
2111
2112 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
2113 Use bool.
2114 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
2115 * cp-support.h (cp_remove_params): Now returns a
2116 gdb::unique_xmalloc_ptr.
2117 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
2118 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
2119 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
2120 returning a gdb::unique_xmalloc_ptr.
2121 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
2122 * stack.c (find_frame_funname): Adjust to cp_remove_params
2123 returning a gdb::unique_xmalloc_ptr.
2124
2125 2017-10-08 Tom Tromey <tom@tromey.com>
2126
2127 * dwarf2read.c (dwarf2_get_dwz_file): Use
2128 gdb::unique_xmalloc_ptr.
2129 (find_slot_in_mapped_hash): Likewise.
2130 (dwarf2_physname): Likewise.
2131 (create_dwo_unit_in_dwp_v1): Use std::string.
2132 (create_dwo_unit_in_dwp_v2): Likewise.
2133 (lookup_dwo_cutu): Likewise.
2134 (inherit_abstract_dies): Use std::vector.
2135 (read_array_type): Likewise.
2136 (dwarf_decode_macros): Remove unused declaration.
2137 (unsigned_int_compar): Remove.
2138 (dwarf2_build_psymtabs_hard): Use scoped_restore.
2139 (psymtabs_addrmap_cleanup): Remove.
2140
2141 2017-10-08 Tom Tromey <tom@tromey.com>
2142
2143 * frame-unwind.c (frame_unwind_try_unwinder): Update.
2144 * frame.h (frame_cleanup_after_sniffer): Declare.
2145 (frame_prepare_for_sniffer): Return void.
2146 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
2147 type of argument.
2148 (frame_prepare_for_sniffer): Return void.
2149
2150 2017-10-08 Tom Tromey <tom@tromey.com>
2151
2152 * utils.h (make_cleanup_value_free): Remove.
2153 * utils.c (do_value_free, struct cleanup): Remove.
2154 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
2155 Use gdb_value_up.
2156 * value.h (struct value_deleter): New.
2157 (gdb_value_up): New typedef.
2158
2159 2017-10-08 Tom Tromey <tom@tromey.com>
2160
2161 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
2162 (make_cleanup_free_search_symbols): Remove.
2163 (search_symbols): Return std::vector.
2164 (symbol_search::compare_search_syms): Now member of
2165 symbol_search. Change arguments.
2166 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
2167 (symtab_symbol_info, rbreak_command): Update.
2168 * symtab.h (struct symbol_search) <next>: Remove.
2169 Add constructors.
2170 (symbol_search::operator<): New function.
2171 (symbol_search::operator==): New function.
2172 (search_symbols): Remove std::vector.
2173 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
2174 (symbol_search::compare_search_syms): Declare.
2175
2176 2017-10-06 Yao Qi <yao.qi@linaro.org>
2177
2178 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
2179 arch/aarch64-insn.o.
2180 Remove one rule.
2181 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
2182
2183 2017-10-06 Yao Qi <yao.qi@linaro.org>
2184
2185 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
2186 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
2187 arch/arm-linux.o respectively.
2188 * configure.tgt: Likewise.
2189
2190 2017-10-06 Yao Qi <yao.qi@linaro.org>
2191
2192 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
2193 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
2194
2195 2017-10-06 Pedro Alves <palves@redhat.com>
2196
2197 * windows-nat.c: Include <algorithm>.
2198
2199 2017-10-06 Yao Qi <yao.qi@linaro.org>
2200
2201 * configure.tgt (i386_tobjs): New variable.
2202 (amd64_tobjs): New variable.
2203 Set $cpu_obs and $os_obs.
2204
2205 2017-10-06 Yao Qi <yao.qi@linaro.org>
2206
2207 * Makefile.in (CONFIG_SRC_SUBDIR): New.
2208 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
2209 (clean): Remove object files and dependency files.
2210 (distclean): Remove the directory.
2211 * configure.ac: Invoke AC_CONFIG_COMMANDS.
2212 * configure: Re-generated.
2213 * configure.tgt: Replace amd64.o with arch/amd64.o.
2214
2215 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
2216
2217 PR build/22188
2218 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
2219 and SETEND.
2220
2221 2017-10-05 Pedro Alves <palves@redhat.com>
2222
2223 * linux-nat.c (linux_child_follow_fork): When following the parent
2224 and detaching the child, consult the parent thread's architecture
2225 instead of the child's.
2226
2227 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2228
2229 * ax.h: Do not include "doublest.h".
2230 (union agent_val): Remove.
2231
2232 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2233
2234 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
2235 (decimal_to_string): Return std::string object.
2236 (decimal_from_string): Accept std::string object. Return bool.
2237 (decimal_from_integral, decimal_from_doublest): Remove.
2238 (decimal_from_longest): Add prototype.
2239 (decimal_from_ulongest): Likewise.
2240 (decimal_to_longest): Likewise.
2241 (decimal_from_doublest): Likewise.
2242 * dfp.c: Do not include "gdbtypes.h" or "value.h".
2243 (MAX_DECIMAL_STRING): Move here.
2244 (decimal_to_string): Return std::string object.
2245 (decimal_from_string): Accept std::string object. Return bool.
2246 (decimal_from_integral): Remove, replace by ...
2247 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
2248 (decimal_to_longest): New function.
2249 (decimal_from_floating): Remove, replace by ...
2250 (decimal_from_doublest): ... this new function.
2251 (decimal_to_doublest): Update to new decimal_to_string interface.
2252
2253 * value.c (unpack_long): Use decimal_to_longest.
2254 * valops.c (value_cast): Use decimal_from_doublest instead of
2255 decimal_from_floating. Use decimal_from_[u]longest isntead of
2256 decimal_from_integral.
2257 * valarith.c (value_args_as_decimal): Likewise.
2258 * valprint.c (print_decimal_floating): Update to new
2259 decimal_to_string interface.
2260 * printcmd.c (printf_decfloat): Likewise.
2261 * c-exp.y (parse_number): Update to new decimal_from_string interface.
2262
2263 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2264
2265 * doublest.h: Do not include "floatformat.h". Remove stale comments.
2266 * gdbtypes.c: Include "floatformat.h".
2267 * value.c: Likewise.
2268 * m68k-tdep.c: Likewise.
2269
2270 * findvar.c: Do not include "floatformat.h".
2271 * amd64-darwin-tdep.c: Likewise.
2272 * arm-linux-tdep.c: Likewise.
2273 * i386-darwin-tdep.c: Likewise.
2274 * i387-tdep.c: Likewise.
2275 * m68k-linux-tdep.c: Likewise.
2276 * mep-tdep.c: Likewise.
2277 * mips-tdep.c: Likewise.
2278 * nios2-tdep.c: Likewise.
2279 * s390-linux-tdep.c: Likewise.
2280 * sparc-obsd-tdep.c: Likewise.
2281 * sparc-tdep.c: Likewise.
2282 * sparc64-tdep.c: Likewise.
2283 * spu-tdep.c: Likewise.
2284 * tic6x-tdep.c: Likewise.
2285 * tilegx-tdep.c: Likewise.
2286 * vax-tdep.c: Likewise.
2287 * xstormy16-tdep.c: Likewise.
2288 * xtensa-tdep.c: Likewise.
2289
2290 * top.c: Do not include "doublest.h".
2291 * aarch64-tdep.c: Likewise.
2292 * alpha-tdep.c: Likewise.
2293 * arm-linux-tdep.c: Likewise.
2294 * m68k-linux-tdep.c: Likewise.
2295 * tilegx-tdep.c: Likewise.
2296 * xstormy16-tdep.c: Likewise.
2297
2298 2017-10-05 John Baldwin <jhb@FreeBSD.org>
2299
2300 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
2301 (mipsn32_fbsd_sigframe): Define.
2302 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
2303 for FreeBSD/mipsn32.
2304
2305 2017-10-05 John Baldwin <jhb@FreeBSD.org>
2306
2307 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
2308 AT_HWCAP.
2309
2310 2017-10-05 Tristan Gingold <tgingold@free.fr>
2311
2312 * MAINTAINERS (Misc): Update my email address.
2313
2314 2017-10-04 Pedro Alves <palves@redhat.com>
2315
2316 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
2317 it instead of target_gdbarch.
2318 (get_remote_state, get_remote_packet_size): Adjust
2319 get_remote_arch_state calls, passing down target_gdbarch
2320 explicitly.
2321 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
2322 'gdbarch' and use it instead of target_gdbarch.
2323 (get_memory_packet_size): Adjust get_remote_arch_state calls,
2324 passing down target_gdbarch explicitly.
2325 (struct stop_reply) <arch>: New field.
2326 (remote_parse_stop_reply): Use the stopped thread's architecture,
2327 not the current inferior's. Save the architecture in the
2328 stop_reply.
2329 (process_stop_reply): Use the stop reply's architecture.
2330 (process_g_packet, remote_fetch_registers)
2331 (remote_prepare_to_store, store_registers_using_G)
2332 (remote_store_registers): Adjust get_remote_arch_state calls,
2333 using the regcache's architecture.
2334 (remote_get_trace_status): Adjust get_remote_arch_state calls,
2335 passing down target_gdbarch explicitly.
2336 * spu-multiarch.c (spu_thread_architecture): Defer to the target
2337 beneath instead of calling target_gdbarch.
2338 * target.c (default_thread_architecture): Use the specified
2339 inferior's architecture, instead of the current inferior's
2340 architecture (via target_gdbarch).
2341
2342 2017-10-04 Pedro Alves <palves@redhat.com>
2343
2344 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
2345 case.
2346 (regcache_print): Handle !target_has_registers here instead.
2347
2348 2017-10-04 Pedro Alves <palves@redhat.com>
2349
2350 * frame.c (create_test_frame): Delete.
2351 * frame.h (create_test_frame): Delete.
2352 * gdbarch-selftests.c: Include gdbthread.h and target.h.
2353 (class regcache_test): Delete.
2354 (test_target_has_registers, test_target_has_stack)
2355 (test_target_has_memory, test_target_prepare_to_store)
2356 (test_target_store_registers): New functions.
2357 (test_target_ops): New class.
2358 (register_to_value_test): Error out if there's already a
2359 process_stratum (or higher) target pushed. Create a fuller mock
2360 environment, with mock target_ops, inferior, address space, thread
2361 and inferior_ptid.
2362 * progspace.c (struct address_space): Move to ...
2363 * progspace.h (struct address_space): ... here.
2364 * regcache.h (regcache::~regcache, regcache::raw_write)
2365 [GDB_SELF_TEST]: No longer virtual.
2366
2367 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
2368
2369 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
2370
2371 2017-10-04 Pedro Alves <palves@redhat.com>
2372
2373 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
2374 out of 'between TRY and CATCH'.
2375
2376 2017-10-04 Pedro Alves <palves@redhat.com>
2377
2378 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
2379 * common/common-exceptions.h (TRY): Open an outermost scope.
2380 Expand intro comment.
2381 (CATCH): Reindent.
2382 (END_CATCH): Close the outermost scope.
2383 * completer.c (complete_line_internal): Add missing END_CATCH.
2384
2385 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2386
2387 * NEWS (Changes since GDB 8.0): Add entry about new
2388 'set-cwd-on-gdbserver' feature.
2389 (New remote packets): Add entry for QSetWorkingDir.
2390 * common/common-inferior.h (set_inferior_cwd): New prototype.
2391 * infcmd.c (set_inferior_cwd): Remove "static".
2392 (show_cwd_command): Expand text to include remote debugging.
2393 * remote.c: Add PACKET_QSetWorkingDir.
2394 (remote_protocol_features) <QSetWorkingDir>: New entry for
2395 PACKET_QSetWorkingDir.
2396 (extended_remote_set_inferior_cwd): New function.
2397 (extended_remote_create_inferior): Call
2398 "extended_remote_set_inferior_cwd".
2399 (_initialize_remote): Call "add_packet_config_cmd" for
2400 QSetWorkingDir.
2401
2402 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2403
2404 * NEWS (New commands): Mention "set/show cwd".
2405 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
2406 "cd" command's help text.
2407 * common/common-inferior.h (get_inferior_cwd): New prototype.
2408 * infcmd.c (inferior_cwd_scratch): New global variable.
2409 (set_inferior_cwd): New function.
2410 (get_inferior_cwd): Likewise.
2411 (set_cwd_command): Likewise.
2412 (show_cwd_command): Likewise.
2413 (_initialize_infcmd): Add "set/show cwd" commands.
2414 * inferior.h (class inferior) <cwd>: New field.
2415 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
2416 (fork_inferior): Change inferior's cwd before its execution.
2417 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
2418 to CreateProcess.
2419
2420 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2421
2422 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
2423 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
2424 (COMMON_OBS): Add gdb_tilde_expand.o.
2425 * common/gdb_tilde_expand.c: New file.
2426 * common/gdb_tilde_expand.h: Likewise.
2427
2428 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
2429
2430 * gdbarch.sh (objfile): Remove duplicate declaration.
2431 * gdbarch.h: Regenerate.
2432
2433 2017-10-03 Tom Tromey <tom@tromey.com>
2434
2435 * utils.c (internal_vproblem): Use string_vprintf.
2436
2437 2017-10-03 Tom Tromey <tom@tromey.com>
2438
2439 * printcmd.c (info_symbol_command): Use std::string.
2440
2441 2017-10-03 Tom Tromey <tom@tromey.com>
2442
2443 * top.c (gdb_safe_append_history): Use std::string.
2444
2445 2017-10-03 Tom Tromey <tom@tromey.com>
2446
2447 * event-top.c (stdin_event_handler): Update.
2448 * main.c (captured_main_1): Update.
2449 * top.h (make_delete_ui_cleanup): Remove.
2450 (struct ui): Add constructor and destructor.
2451 (new_ui, delete_ui): Remove.
2452 * top.c (make_delete_ui_cleanup): Remove.
2453 (new_ui_command): Use std::unique_ptr.
2454 (delete_ui_cleanup): Remove.
2455 (ui::ui): Rename from new_ui. Update.
2456 (free_ui): Remove.
2457 (ui::~ui): Rename from delete_ui. Update.
2458
2459 2017-10-03 Tom Tromey <tom@tromey.com>
2460
2461 * symfile.c (load_progress): Use gdb::byte_vector.
2462
2463 2017-10-03 Tom Tromey <tom@tromey.com>
2464
2465 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
2466 declaration.
2467 * printcmd.c (x_command): Remove unused declaration.
2468 * symfile.c (symbol_file_command): Remove unused declaration.
2469
2470 2017-10-03 Tom Tromey <tom@tromey.com>
2471
2472 * utils.c (internal_vproblem): Use std::string.
2473 (defaulted_query): Likewise.
2474
2475 2017-10-03 Tom Tromey <tom@tromey.com>
2476
2477 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
2478 * top.c (execute_command_to_string): Update.
2479 * utils.c (make_cleanup_restore_page_info): Remove.
2480 (do_restore_page_info_cleanup): Remove.
2481 (set_batch_flag_and_restore_page_info):
2482 New.
2483 (make_cleanup_restore_page_info): Remove.
2484 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2485 (~set_batch_flag_and_restore_page_info): New
2486 (make_cleanup_restore_uinteger): Remove.
2487 (make_cleanup_restore_integer): Remove.
2488 (struct restore_integer_closure): Remove.
2489 (restore_integer): Remove.
2490 * utils.h (struct set_batch_flag_and_restore_page_info): New
2491 class.
2492 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2493 (make_cleanup_restore_page_info): Remove.
2494 (make_cleanup_restore_uinteger) Remove.
2495 (make_cleanup_restore_integer) Remove.
2496
2497 2017-10-03 Tom Tromey <tom@tromey.com>
2498
2499 * record-full.h (record_full_gdb_operation_disable_set): Return
2500 scoped_restore_tmpl<int>.
2501 * infrun.c (adjust_pc_after_break): Update.
2502 (handle_signal_stop): Update.
2503 * record-full.c (record_full_gdb_operation_disable_set): Return
2504 scoped_restore_tmpl<int>.
2505 (record_full_wait_1, record_full_insert_breakpoint)
2506 (record_full_remove_breakpoint, record_full_save)
2507 (record_full_goto_insn): Update.
2508
2509 2017-10-02 Tom Tromey <tom@tromey.com>
2510
2511 PR rust/22236:
2512 * rust-lang.c (rust_val_print_str): New function.
2513 (val_print_struct): Call it.
2514 (rust_subscript): Preserve name of slice type.
2515
2516 2017-10-02 Tom Tromey <tom@tromey.com>
2517
2518 * rust-lang.c (rust_subscript): Handle slices in
2519 EVAL_AVOID_SIDE_EFFECTS case.
2520
2521 2017-10-02 Tom Tromey <tom@tromey.com>
2522
2523 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
2524
2525 2017-10-02 Tom Tromey <tom@tromey.com>
2526
2527 * rust-lang.h (rust_slice_type): Add "extern".
2528
2529 2017-10-02 Tom Tromey <tom@tromey.com>
2530 Pedro Alves <palves@redhat.com>
2531
2532 * ada-lang.h (ada_exc_info::operator<): Make const.
2533 (ada_exc_info::operator==): Make const.
2534 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2535 Make const.
2536
2537 2017-09-29 Tom Tromey <tom@tromey.com>
2538
2539 * target.c (read_whatever_is_readable): Change type of "result".
2540 Update.
2541 (free_memory_read_result_vector): Remove.
2542 (read_memory_robust): Change return type. Update.
2543 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2544 bin2hex, std::string.
2545 * target.h (memory_read_result_s): Remove typedef.
2546 (free_memory_read_result_vector): Remove.
2547 (read_memory_robust): Return std::vector.
2548
2549 2017-09-29 Tom Tromey <tom@tromey.com>
2550
2551 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2552
2553 2017-09-29 Tom Tromey <tom@tromey.com>
2554
2555 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2556 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2557 operator< and operator==.
2558 (ada_exceptions_list): Return a std::vector.
2559 * ada-lang.c (ada_exc_info::operator<): Rename from
2560 compare_ada_exception_info.
2561 (ada_exc_info::operator==): New.
2562 (sort_remove_dups_ada_exceptions_list): Change type of
2563 "exceptions".
2564 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2565 (ada_add_global_exceptions): Likewise.
2566 (ada_exceptions_list_1): Return a std::vector.
2567 (ada_exceptions_list): Likewise.
2568
2569 2017-09-29 Tom Tromey <tom@tromey.com>
2570
2571 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2572 'std::set *'.
2573 (print_one_inferior): Update.
2574 (free_vector_of_ints): Remove.
2575 (list_available_thread_groups): Change "ids" to std::set.
2576 (mi_cmd_list_thread_groups): Update.
2577 (struct collect_cores_data) <core>: Now a std::set.
2578 (collect_cores): Update.
2579 (unique): Remove.
2580 (print_one_inferior): Update.
2581
2582 2017-09-29 Tom Tromey <tom@tromey.com>
2583
2584 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2585 (mi_execute_async_cli_command): Likewise.
2586 (mi_cmd_trace_frame_collected): Use field_fmt.
2587
2588 2017-09-29 Tom Tromey <tom@tromey.com>
2589
2590 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2591 gdb::byte_vector.
2592
2593 2017-09-29 Tom Tromey <tom@tromey.com>
2594
2595 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2596
2597 2017-09-29 Tom Tromey <tom@tromey.com>
2598
2599 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2600
2601 2017-09-29 Tom Tromey <tom@tromey.com>
2602
2603 * varobj.h (varobj_gen_name): Return std::string.
2604 * varobj.c (varobj_gen_name): Return std::string.
2605 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2606 (mi_cmd_var_delete): Don't copy "name".
2607
2608 2017-09-29 Tom Tromey <tom@tromey.com>
2609
2610 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2611 (mi_cmd_break_insert_1): Update.
2612
2613 2017-09-29 Tom Tromey <tom@tromey.com>
2614
2615 * target.h (make_scoped_defer_target_commit_resume): Update.
2616 * target.c (make_scoped_defer_target_commit_resume): Rename from
2617 make_cleanup_defer_target_commit_resume. Return a
2618 scoped_restore.
2619 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2620
2621 2017-09-29 Tom Tromey <tom@tromey.com>
2622
2623 * main.c (captured_main_1): Remove unused declaration.
2624 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2625
2626 2017-09-29 Tom Tromey <tom@tromey.com>
2627
2628 * symtab.c (search_symbols): Remove unused outer cleanup.
2629 (make_source_files_completion_list): Remove unused declaration.
2630
2631 2017-09-29 Tom Tromey <tom@tromey.com>
2632
2633 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2634
2635 2017-09-29 Tom Tromey <tom@tromey.com>
2636
2637 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2638 gdb::byte_vector.
2639
2640 2017-09-29 Tom Tromey <tom@tromey.com>
2641
2642 * complaints.c (vcomplaint): Use std::string.
2643
2644 2017-09-29 Tom Tromey <tom@tromey.com>
2645
2646 * tracepoint.c (trace_variable_command): Use std::string.
2647 (encode_actions_1): Remove unused declarations.
2648 (create_tsv_from_upload): Use std::string.
2649
2650 2017-09-29 Tom Tromey <tom@tromey.com>
2651
2652 * cp-support.c (gdb_demangle): Use std::string.
2653
2654 2017-09-29 Tom Tromey <tom@tromey.com>
2655
2656 * stack.c (parse_frame_specification): Use std::string
2657 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2658
2659 2017-09-29 Tom Tromey <tom@tromey.com>
2660
2661 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2662
2663 2017-09-29 Tom Tromey <tom@tromey.com>
2664
2665 * utils.c (vfprintf_maybe_filtered): Use std::string.
2666 (vfprintf_unfiltered): Likewise.
2667
2668 2017-09-29 Tom Tromey <tom@tromey.com>
2669
2670 * event-top.c (top_level_prompt): Return std::string.
2671 (display_gdb_prompt): Update.
2672
2673 2017-09-29 Tom Tromey <tom@tromey.com>
2674
2675 * unittests/common-utils-selftests.c (format): New function.
2676 (string_vprintf_tests): New function.
2677 (_initialize_common_utils_selftests): Register new tests.
2678 * common/common-utils.c (string_vprintf): New function.
2679 * common/common-utils.h (string_vprintf): Declare.
2680
2681 2017-09-29 Pedro Alves <palves@redhat.com>
2682
2683 * common/rsp-low.c (unpack_varlen_hex): Constify.
2684 * common/rsp-low.h (unpack_varlen_hex): Constify.
2685 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2686 Constify.
2687 * remote.c (remote_set_permissions, read_ptid)
2688 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2689 (remote_static_tracepoint_marker_at)
2690 (remote_static_tracepoint_markers_by_strid)
2691 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2692 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2693 (parse_tracepoint_definition, parse_tsv_definition)
2694 (parse_static_tracepoint_marker_definition): Constify.
2695 * tracepoint.h (parse_static_tracepoint_marker_definition)
2696 (parse_trace_status, parse_tracepoint_status)
2697 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2698
2699 2017-09-29 Pedro Alves <palves@redhat.com>
2700
2701 * remote.c (target_buf, target_buf_size): Delete.
2702 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2703 Use the connection's packet buffer instead.
2704 All callers adjusted.
2705 (_initialize_remote): Remove references to target_buf and
2706 target_buf_size.
2707
2708 2017-09-28 Pedro Alves <palves@redhat.com>
2709
2710 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2711 unittests/common-utils-selftests.c.
2712 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2713 (COMMON_OBS): Remove utils-selftests.o.
2714 * utils-selftests.c: Move to ...
2715 * unittests/common-utils-selftests.c: ... here and rename self
2716 test to "string_printf".
2717
2718 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2719
2720 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2721 having NULL cus or tus.
2722
2723 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2724
2725 * arm-tdep.c: (convert_from_extended): Remove.
2726 (convert_to_extended): Likewise.
2727 (arm_extract_return_value): Use convert_typed_floating.
2728 (arm_store_return_value): Likewise.
2729
2730 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2731 * sh-tdep.c: Do not include "floatformat.h".
2732 (sh_littlebyte_bigword_type): New function.
2733 (sh_register_convert_to_virtual): Use convert_typed_floating.
2734 (sh_register_convert_to_raw): Likewise.
2735 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2736 (sh64_littlebyte_bigword_type): New function.
2737 (sh64_extract_return_value): Use convert_typed_floating.
2738 (sh64_register_convert_to_virtual): Likewise.
2739 (sh64_register_convert_to_raw): Likewise.
2740
2741 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2742
2743 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2744 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2745
2746 * gdbtypes.h (union type_specific): Make field floatformat hold
2747 just a single struct floatformat, not an array.
2748 (floatformat_from_type): Move here.
2749 * gdbtypes.c (floatformat_from_type): Move here. Update to
2750 changed TYPE_FLOATFORMAT definition.
2751 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2752 (recursive_dump_type): Likewise.
2753 (init_float_type): Install correct floatformat for byte order.
2754 (arch_float_type): Likewise.
2755
2756 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2757
2758 * gdbtypes.c (init_type): Change incoming argument from
2759 length-in-bytes to length-in-bits. Assert length is a
2760 multiple of TARGET_CHAR_BITS.
2761 (arch_type, arch_flags_type): Likewise.
2762 (init_integer_type): Update call to init_type.
2763 (init_character_type): Likewise.
2764 (init_boolean_type): Likewise.
2765 (init_float_type): Likewise.
2766 (init_decfloat_type): Likewise.
2767 (init_complex_type): Likewise.
2768 (init_pointer_type): Likewise.
2769 (objfile_type): Likewise.
2770 (arch_integer_type): Update call to arch_type.
2771 (arch_character_type): Likewise.
2772 (arch_boolean_type): Likewise.
2773 (arch_float_type): Likewise.
2774 (arch_decfloat_type): Likewise.
2775 (arch_complex_type): Likewise.
2776 (arch_pointer_type): Likewise.
2777 (gdbtypes_post_init): Likewise.
2778
2779 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2780 (read_base_type): Likewise.
2781 * mdebugread.c (basic_type): Likewise.
2782 * stabsread.c (dbx_init_float_type): Likewise.
2783 (rs6000_builtin_type): Likewise.
2784 (read_range_type): Likewise. Also, fix call to init_integer_type
2785 with erroneous length argument.
2786
2787 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2788 * d-lang.c (build_d_types): Likewise.
2789 * f-lang.c (build_fortran_types): Likewise.
2790 * go-lang.c (build_go_types): Likewise.
2791 * opencl-lang.c (build_opencl_types): Likewise.
2792 * jit.c (finalize_symtab): Likewise.
2793 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2794 (build_std_type_info_type): Likewise.
2795 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2796 update call to arch_flags_type.
2797
2798 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2799 arch_type.
2800 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2801 * windows-tdep.c (windows_get_tlb_type): Likewise.
2802
2803 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2804 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2805 * m32c-tdep.c (make_types): Likewise.
2806 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2807 (rl78_psw_type): Update call to arch_flags_type.
2808 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2809 * rx-tdep.c (rx_psw_type): Likewise.
2810 (rx_fpsw_type): Likewise.
2811 * sparc-tdep.c (sparc_psr_type): Likewise.
2812 (sparc_fsr_type): Likewise.
2813 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2814 (sparc64_ccr_type): Likewise.
2815 (sparc64_fsr_type): Likewise.
2816 (sparc64_fprs_type): Likewise.
2817
2818 2017-09-27 Tom Tromey <tom@tromey.com>
2819
2820 * findcmd.c (find_command): Constify.
2821
2822 2017-09-27 Tom Tromey <tom@tromey.com>
2823
2824 * ada-tasks.c (task_command_1, task_command): Constify.
2825
2826 2017-09-27 Tom Tromey <tom@tromey.com>
2827
2828 * symtab.c (maintenance_print_symbol_cache)
2829 (maintenance_flush_symbol_cache)
2830 (maintenance_print_symbol_cache_statistics): Constify.
2831
2832 2017-09-27 Tom Tromey <tom@tromey.com>
2833
2834 * inferior.c (detach_inferior_command, kill_inferior_command)
2835 (inferior_command): Constify.
2836
2837 2017-09-27 Tom Tromey <tom@tromey.com>
2838
2839 * regcache.c (regcache_print, maintenance_print_registers)
2840 (maintenance_print_raw_registers)
2841 (maintenance_print_cooked_registers)
2842 (maintenance_print_register_groups)
2843 (maintenance_print_remote_registers): Constify.
2844
2845 2017-09-27 Tom Tromey <tom@tromey.com>
2846
2847 * printcmd.c (map_display_numbers, undisplay_command)
2848 (enable_disable_display_command, enable_display_command)
2849 (disable_display_command): Constify.
2850
2851 2017-09-27 Tom Tromey <tom@tromey.com>
2852
2853 * breakpoint.h (delete_command): Don't declare.
2854 * breakpoint.c (delete_command, enable_once_command)
2855 (enable_count_command, enable_delete_command, breakpoint_1)
2856 (maintenance_info_breakpoints, stopin_command, stopat_command)
2857 (delete_command, delete_trace_command, save_breakpoints)
2858 (save_breakpoints_command, save_tracepoints_command): Constify.
2859
2860 2017-09-27 Tom Tromey <tom@tromey.com>
2861
2862 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2863 (skip_ws, extract_identifier, macro_define_command)
2864 (macro_undef_command, macro_list_command): Constify.
2865
2866 2017-09-27 Tom Tromey <tom@tromey.com>
2867
2868 * infcmd.c (environment_info, set_environment_command)
2869 (unset_environment_command, path_info, info_proc_cmd_1)
2870 (info_proc_cmd_mappings, info_proc_cmd_stat)
2871 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
2872 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
2873
2874 2017-09-27 Tom Tromey <tom@tromey.com>
2875
2876 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
2877 Constify.
2878
2879 2017-09-27 Tom Tromey <tom@tromey.com>
2880
2881 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
2882
2883 2017-09-27 Tom Tromey <tom@tromey.com>
2884
2885 * demangle.c (demangle_command): Constify.
2886
2887 2017-09-27 Tom Tromey <tom@tromey.com>
2888
2889 * progspace.c (maintenance_info_program_spaces_command):
2890 Constify.
2891
2892 2017-09-27 Tom Tromey <tom@tromey.com>
2893
2894 * compile/compile.c (check_raw_argument, compile_file_command)
2895 (compile_code_command, compile_print_command): Constify.
2896
2897 2017-09-27 Tom Tromey <tom@tromey.com>
2898
2899 * reggroups.c (maintenance_print_reggroups): Constify.
2900
2901 2017-09-27 Tom Tromey <tom@tromey.com>
2902
2903 * dwarf2read.c (save_gdb_index_command): Constify.
2904
2905 2017-09-27 Tom Tromey <tom@tromey.com>
2906
2907 * stap-probe.c (info_probes_stap_command): Constify.
2908
2909 2017-09-27 Tom Tromey <tom@tromey.com>
2910
2911 * fork-child.c (unset_exec_wrapper_command): Constify.
2912
2913 2017-09-27 Tom Tromey <tom@tromey.com>
2914
2915 * btrace.c (get_uint, get_context_size, no_chunk)
2916 (maint_btrace_packet_history_cmd)
2917 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
2918 (maint_info_btrace_cmd): Constify.
2919
2920 2017-09-27 Tom Tromey <tom@tromey.com>
2921
2922 * reverse.c (delete_bookmark_command): Constify.
2923
2924 2017-09-27 Tom Tromey <tom@tromey.com>
2925
2926 * remote.c (set_memory_packet_size)
2927 (set_memory_write_packet_size, show_memory_write_packet_size)
2928 (set_memory_read_packet_size, show_memory_read_packet_size)
2929 (compare_sections_command, packet_command, remote_put_command)
2930 (remote_get_command, remote_delete_command): Constify.
2931
2932 2017-09-27 Tom Tromey <tom@tromey.com>
2933
2934 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
2935 (set_mipsfpu_double_command, set_mipsfpu_none_command)
2936 (set_mipsfpu_auto_command): Constify.
2937
2938 2017-09-27 Tom Tromey <tom@tromey.com>
2939
2940 * cli/cli-cmds.h (cd_command): Constify.
2941 * cli/cli-cmds.c (cd_command): Constify.
2942
2943 2017-09-27 Tom Tromey <tom@tromey.com>
2944
2945 * thread.c (thread_name_command, thread_find_command): Constify.
2946
2947 2017-09-27 Tom Tromey <tom@tromey.com>
2948
2949 * probe.c (enable_probes_command, disable_probes_command):
2950 Constify.
2951
2952 2017-09-27 Tom Tromey <tom@tromey.com>
2953
2954 * symfile.c (symbol_file_command): Constify.
2955 * gdbcore.h (deprecated_file_changed_hook): Constify.
2956 * exec.c (deprecated_file_changed_hook, exec_file_command)
2957 (file_command): Constify.
2958 * defs.h (symbol_file_command): Constify.
2959
2960 2017-09-27 Tom Tromey <tom@tromey.com>
2961
2962 * remote-fileio.c (set_system_call_allowed)
2963 (show_system_call_allowed): Constify.
2964
2965 2017-09-27 Tom Tromey <tom@tromey.com>
2966
2967 * tracepoint.c (delete_trace_variable_command)
2968 (tfind_end_command, tfind_start_command, tfind_pc_command)
2969 (tfind_tracepoint_command, tfind_line_command)
2970 (tfind_range_command, tfind_outside_command): Constify.
2971
2972 2017-09-27 Tom Tromey <tom@tromey.com>
2973
2974 * ax-gdb.c (maint_agent_printf_command, agent_command)
2975 (agent_eval_command): Constify.
2976
2977 2017-09-27 Tom Tromey <tom@tromey.com>
2978
2979 * tracepoint.c (info_scope_command): Constify.
2980 * python/python.c (gdbpy_decode_line): Constify.
2981 * python/py-breakpoint.c (bppy_init): Constify.
2982 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
2983 * location.h: (new_linespec_location)
2984 (string_to_event_location_basic, string_to_event_location):
2985 Constify.
2986 * location.c (new_linespec_location)
2987 (string_to_event_location_basic, string_to_event_location):
2988 Constify.
2989 * linespec.h (decode_line_with_current_source)
2990 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
2991 * linespec.c (linespec_lex_to_end)
2992 (decode_line_with_current_source)
2993 (decode_line_with_last_displayed): Constify.
2994 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
2995 Constify.
2996 * cli/cli-cmds.c (edit_command, list_command): Constify.
2997 * breakpoint.h (until_break_command, watch_command_wrapper)
2998 (awatch_command_wrapper, rwatch_command_wrapper)
2999 (init_ada_exception_breakpoint): Constify.
3000 * breakpoint.c (break_command_1, dprintf_command)
3001 (break_range_command, watch_command_wrapper)
3002 (rwatch_command_wrapper, awatch_command_wrapper)
3003 (until_break_command, init_ada_exception_breakpoint)
3004 (strace_marker_create_sals_from_location, trace_command)
3005 (ftrace_command, strace_command, struct tracepoint): Constify.
3006 * ax-gdb.c (agent_command_1): Constify.
3007 * ada-lang.c (ada_exception_sal): Constify.
3008
3009 2017-09-27 Tom Tromey <tom@tromey.com>
3010
3011 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
3012 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
3013 (get_context_size, no_chunk, get_insn_history_modifiers)
3014 (cmd_record_insn_history, get_call_history_modifiers)
3015 (cmd_record_call_history): Constify.
3016
3017 2017-09-27 Tom Tromey <tom@tromey.com>
3018
3019 * source.c (show_substitute_path_command)
3020 (unset_substitute_path_command, set_substitute_path_command):
3021 Constify.
3022
3023 2017-09-27 Tom Tromey <tom@tromey.com>
3024
3025 * typeprint.c (maintenance_print_type): Constify.
3026 * maint.c (maintenance_dump_me, maintenance_demangle)
3027 (maintenance_time_display, maintenance_info_sections)
3028 (maintenance_print_statistics, maintenance_deprecate)
3029 (maintenance_undeprecate): Constify.
3030 (maintenance_do_deprecate): Constify. Use std::string.
3031 (maintenance_selftest): Constify.
3032 * gdbtypes.h (maintenance_print_type): Constify.
3033
3034 2017-09-27 Tom Tromey <tom@tromey.com>
3035
3036 * hppa-tdep.c (unwind_command): Constify.
3037
3038 2017-09-27 Tom Tromey <tom@tromey.com>
3039
3040 * target-descriptions.c (unset_tdesc_filename_cmd)
3041 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
3042 Constify.
3043
3044 2017-09-27 Tom Tromey <tom@tromey.com>
3045
3046 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
3047
3048 2017-09-27 Tom Tromey <tom@tromey.com>
3049
3050 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
3051
3052 2017-09-27 Tom Tromey <tom@tromey.com>
3053
3054 * tui/tui-regs.c (tui_reg_command): Constify.
3055
3056 2017-09-27 Tom Tromey <tom@tromey.com>
3057
3058 * skip.c (skip_file_command, skip_function_command)
3059 (skip_enable_command, skip_disable_command, skip_delete_command):
3060 Constify.
3061
3062 2017-09-27 Tom Tromey <tom@tromey.com>
3063
3064 * record-btrace.c (cmd_record_btrace_bts_start)
3065 (cmd_record_btrace_pt_start): Constify.
3066
3067 2017-09-27 Tom Tromey <tom@tromey.com>
3068
3069 * symmisc.c (maintenance_print_symbols)
3070 (maintenance_print_msymbols, maintenance_print_objfiles)
3071 (maintenance_info_symtabs, maintenance_check_symtabs)
3072 (maintenance_expand_symtabs, maintenance_info_line_tables):
3073 Constify.
3074
3075 2017-09-27 Tom Tromey <tom@tromey.com>
3076
3077 * top.c (new_ui_command): Constify.
3078
3079 2017-09-27 Tom Tromey <tom@tromey.com>
3080
3081 * symfile.c (add_symbol_file_command)
3082 (remove_symbol_file_command, list_overlays_command)
3083 (map_overlay_command, unmap_overlay_command)
3084 (overlay_auto_command, overlay_manual_command)
3085 (overlay_off_command, overlay_load_command): Constify.
3086
3087 2017-09-27 Tom Tromey <tom@tromey.com>
3088
3089 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3090 (info_spu_mailbox_command, info_spu_dma_command)
3091 (info_spu_proxydma_command): Constify.
3092
3093 2017-09-27 Tom Tromey <tom@tromey.com>
3094
3095 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
3096
3097 2017-09-27 Tom Tromey <tom@tromey.com>
3098
3099 * cli/cli-script.c (user_defined_command): Constify.
3100
3101 2017-09-27 Tom Tromey <tom@tromey.com>
3102
3103 * cli/cli-dump.c (dump_memory_command, dump_value_command)
3104 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
3105 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
3106 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
3107 (dump_binary_value, append_binary_memory, append_binary_value):
3108 Constify.
3109 (struct dump_context) <func>: Constify.
3110 (add_dump_command): Update.
3111
3112 2017-09-27 Tom Tromey <tom@tromey.com>
3113
3114 * cli/cli-cmds.c (show_version, show_configuration)
3115 (source_command, show_user): Constify.
3116
3117 2017-09-27 Tom Tromey <tom@tromey.com>
3118
3119 * target.c (maintenance_print_target_stack): Constify.
3120
3121 2017-09-27 Tom Tromey <tom@tromey.com>
3122
3123 * interps.c (interpreter_exec_cmd): Constify.
3124
3125 2017-09-27 Tom Tromey <tom@tromey.com>
3126
3127 * record-full.c (cmd_record_full_restore): Constify.
3128
3129 2017-09-27 Tom Tromey <tom@tromey.com>
3130
3131 * memattr.c (enable_mem_command, disable_mem_command)
3132 (delete_mem_command): Constify.
3133
3134 2017-09-27 Tom Tromey <tom@tromey.com>
3135
3136 * value.c (show_convenience): Constify.
3137
3138 2017-09-27 Tom Tromey <tom@tromey.com>
3139
3140 * gdbcore.h (core_file_command): Update.
3141 * corefile.c (core_file_command): Constify.
3142
3143 2017-09-27 Tom Tromey <tom@tromey.com>
3144
3145 * user-regs.c (maintenance_print_user_registers): Constify.
3146
3147 2017-09-27 Tom Tromey <tom@tromey.com>
3148
3149 * cp-namespace.c (maintenance_cplus_namespace): Constify.
3150
3151 2017-09-27 Tom Tromey <tom@tromey.com>
3152
3153 * cp-support.c (first_component_command): Constify.
3154
3155 2017-09-27 Tom Tromey <tom@tromey.com>
3156
3157 * psymtab.c (maintenance_print_psymbols)
3158 (maintenance_info_psymtabs, maintenance_check_psymtabs):
3159 Constify.
3160
3161 2017-09-27 Tom Tromey <tom@tromey.com>
3162
3163 * windows-tdep.c (display_tib): Constify.
3164
3165 2017-09-27 Tom Tromey <tom@tromey.com>
3166
3167 * linux-fork.c (delete_checkpoint_command)
3168 (detach_checkpoint_command): Constify.
3169
3170 2017-09-27 Tom Tromey <tom@tromey.com>
3171
3172 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
3173
3174 2017-09-27 Tom Tromey <tom@tromey.com>
3175
3176 * arc-tdep.c (dump_arc_instruction_command): Constify.
3177
3178 2017-09-27 Tom Tromey <tom@tromey.com>
3179
3180 * valprint.c (set_radix, show_radix): Constify.
3181
3182 2017-09-27 Tom Tromey <tom@tromey.com>
3183
3184 * dtrace-probe.c (info_probes_dtrace_command): Constify.
3185
3186 2017-09-27 Tom Tromey <tom@tromey.com>
3187
3188 * command.h (not_just_help_class_command): Update.
3189 * cli/cli-decode.h (not_just_help_class_command): Update.
3190 * cli/cli-decode.c (not_just_help_class_command): Constify.
3191
3192 2017-09-27 Tom Tromey <tom@tromey.com>
3193
3194 * gdb_bfd.c (maintenance_info_bfds): Constify.
3195
3196 2017-09-27 Tom Tromey <tom@tromey.com>
3197
3198 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
3199 overloads.
3200 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
3201 (do_const_cfunc): New function.
3202 (cmd_cfunc_eq): New overload.
3203 (cli_user_command_p): Check do_const_cfunc.
3204 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
3205 const_cfunc.
3206 * command.h (add_cmd): Add const overload and no-function
3207 overload.
3208 (set_cmd_cfunc): Add const overload.
3209 (cmd_const_cfunc_ftype): Declare.
3210 (cmd_cfunc_eq): Add const overload.
3211 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
3212 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
3213 overload.
3214
3215 2017-09-27 Tom Tromey <tom@tromey.com>
3216
3217 * macroexp.c (get_next_token_for_substitution): New function.
3218 (substitute_args): Call it. Check for __VA_OPT__.
3219
3220 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3221 Pedro Alves <palves@redhat.com>
3222
3223 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
3224 producer_is_icc_lt_14.
3225 (producer_is_icc_lt_14): New function.
3226 (check_producer): Add code for checking version of ICC.
3227 (producer_is_icc): Move to producer.c.
3228 (read_structure_type): Restrict ICC workaround to ICC<14.
3229 * producer.c: Include selftest.h.
3230 (producer_is_icc, producer_parsing_tests, _initialize_producer):
3231 New functions.
3232 * producer.h (producer_is_icc): New declaration.
3233
3234 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3235
3236 * Makefile.in (SFILES): Add producer.c.
3237 (COMMON_OBS): Add producer.o
3238 * amd64-tdep.c (producer.h): Add new include.
3239 * dwarf2read.c (producer.h): Add new include.
3240 * producer.c: New file.
3241 * producer.h: New file.
3242 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
3243 producer.c.
3244 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
3245 producer.h.
3246
3247 2017-09-26 Matthias Klose <doko@ubuntu.com>
3248
3249 * configure.ac: Search ncursesw before ncurses.
3250 Check ncursesw/ncurses.h before ncurses/ncurses.h.
3251 * gdb_curses.h: Include <ncursesw/ncurses.h>
3252 * config.in, configure: Regenerate.
3253
3254 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3255
3256 PR gdb/22185
3257 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
3258 obsolete.
3259 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
3260 Remove i386sol2 support.
3261 * configure.nat <i386sol2>: Remove.
3262 <sol2-64>: Fold into ...
3263 <sol2>: ... this.
3264 Move common settings to default section.
3265 Add sol-thread.o.
3266 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
3267 x86_64-*-solaris2.1[0-9]*>: Rename to ...
3268 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
3269 <i[34567]86-*-solaris*>: Remove.
3270 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
3271
3272 * configure.ac: Remove wctype in libw check.
3273 (_MSE_INT_H): Don't define on Solaris 7-9.
3274 <solaris*>: Remove libthread_db.so.1 check.
3275 * configure: Regenerate.
3276 * config.in: Regenerate.
3277
3278 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
3279 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
3280 (gdb_ps_size_t): Remove.
3281 Use base types in users.
3282 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
3283
3284 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
3285
3286 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3287
3288 PR build/22206
3289 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
3290 (adi_is_addr_mapped): Likewise.
3291 (PSR_ICC): Don't redefine.
3292 (PSR_IMPL): Likewise.
3293
3294 2017-09-25 Tom Tromey <tom@tromey.com>
3295
3296 * regcache.c (regcache::dump): Use string_printf.
3297
3298 2017-09-25 Tom Tromey <tom@tromey.com>
3299
3300 * regcache.c (class regcache_invalidator): New.
3301 (struct register_to_invalidate): Remove.
3302 (make_cleanup_regcache_invalidate): Remove.
3303 (regcache::raw_write): Use regcache_invalidator.
3304
3305 2017-09-25 Tom Tromey <tom@tromey.com>
3306
3307 * spu-tdep.c (spu2ppu_sniffer): Update.
3308 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
3309 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
3310 Remove.
3311 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
3312 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
3313 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
3314 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
3315 (frame_pop): Update.
3316
3317 2017-09-25 Tom Tromey <tom@tromey.com>
3318
3319 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
3320 * regcache.h (regcache_xfree): Don't declare.
3321 * regcache.c (regcache_xfree): Remove.
3322 (do_regcache_xfree): Use delete.
3323 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
3324 * linux-fork.c (free_fork): Use delete.
3325 (fork_save_infrun_state): Likewise.
3326 * jit.c (jit_dealloc_cache): Use delete.
3327 * infrun.c (discard_infcall_suspend_state): Use delete.
3328
3329 2017-09-25 Tom Tromey <tom@tromey.com>
3330
3331 * regcache.h (regcache_xmalloc): Don't declare.
3332 (regcache_raw_set_cached_value): Update comment.
3333 * regcache.c (regcache_xmalloc): Remove.
3334 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
3335 * jit.c (jit_frame_sniffer): Use new.
3336 * frame.c (frame_save_as_regcache): Use new.
3337
3338 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3339
3340 * NEWS: Advertise support for guarded-storage registers on IBM z.
3341
3342 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3343
3344 * s390-linux-nat.c (have_regset_gs): New static variable.
3345 (s390_linux_fetch_inferior_registers): Handle guarded-storage
3346 control block and guarded-storage broadcast control regsets.
3347 (s390_read_description): Detect whether the target has
3348 guarded-storage support, return appropriate tdesc.
3349 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
3350 (features/s390x-gs-linux64.c): Likewise.
3351 (struct gdbarch_tdep) <have_gs>: New field.
3352 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
3353 (s390_gsbc_regset): New variables.
3354 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
3355 and s390_gsbc_regset, if applicable.
3356 (s390_core_read_description): Check whether core file was from a
3357 target with guarded-storage support; include appropriate regsets.
3358 (s390_gdbarch_init): Add registers for guarded-storage support.
3359 (_initialize_s390_tdep): Initialize new target descriptions that
3360 include registers for guarded-storage support.
3361 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
3362 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
3363 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
3364 (S390_NUM_REGS): Adjust macro definition.
3365 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
3366 (tdesc_s390x_gs_linux64): New declarations.
3367
3368 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3369
3370 * features/s390-gs-linux64.xml: New file.
3371 * features/s390-gs.xml: New file.
3372 * features/s390-gsbc.xml: New file.
3373 * features/s390x-gs-linux64.xml: New file.
3374 * features/Makefile (WHICH): Add s390-gs-linux64 and
3375 s390x-gs-linux64.
3376 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
3377 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
3378 * features/s390-gs-linux64.c: New generated file.
3379 * features/s390x-gs-linux64.c: New file.
3380 * regformats/s390-gs-linux64.dat: New file.
3381 * regformats/s390x-gs-linux64.dat: New file.
3382
3383 2017-09-23 Tom Tromey <tom@tromey.com>
3384
3385 * defs.h (make_cleanup_override_quit_handler): Don't declare.
3386
3387 2017-09-22 Tom Tromey <tom@tromey.com>
3388
3389 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
3390 type to scoped_restore_tmpl.
3391 <scoped_input_handler>: Initialize m_quit_handler directly.
3392
3393 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3394
3395 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
3396 (cd_command): Likewise. Free "current_directory" before
3397 assigning to it.
3398 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
3399 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
3400 * top.c (gdb_dirbuf): Remove global declaration.
3401 * top.h (gdb_dirbuf): Likewise.
3402
3403 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3404
3405 * gnulib/aclocal.m4: Regenerate.
3406 * gnulib/config.in: Regenerate.
3407 * gnulib/configure: Regenerate.
3408 * gnulib/import/Makefile.am: Regenerate.
3409 * gnulib/import/Makefile.in: Regenerate.
3410 * gnulib/import/assure.h: New file.
3411 * gnulib/import/at-func.c: Likewise
3412 * gnulib/import/chdir-long.c: New file.
3413 * gnulib/import/chdir-long.h: New file.
3414 * gnulib/import/cloexec.c: New file.
3415 * gnulib/import/cloexec.h: New file.
3416 * gnulib/import/close.c: New file.
3417 * gnulib/import/closedir.c: New file.
3418 * gnulib/import/dirent-private.h: New file.
3419 * gnulib/import/dup-safer.c: New file.
3420 * gnulib/import/dup.c: New file.
3421 * gnulib/import/dup2.c: New file.
3422 * gnulib/import/error.c: New file.
3423 * gnulib/import/error.h: New file.
3424 * gnulib/import/exitfail.c: New file.
3425 * gnulib/import/exitfail.h: New file.
3426 * gnulib/import/fchdir.c: New file.
3427 * gnulib/import/fcntl.c: New file.
3428 * gnulib/import/fcntl.in.h: New file.
3429 * gnulib/import/fd-hook.c: New file.
3430 * gnulib/import/fd-hook.h: New file.
3431 * gnulib/import/fd-safer.c: New file.
3432 * gnulib/import/fdopendir.c: New file.
3433 * gnulib/import/filename.h: New file.
3434 * gnulib/import/filenamecat-lgpl.c: New file.
3435 * gnulib/import/filenamecat.h: New file.
3436 * gnulib/import/fstat.c: New file.
3437 * gnulib/import/fstatat.c: New file.
3438 * gnulib/import/getcwd-lgpl.c: New file.
3439 * gnulib/import/getcwd.c: New file.
3440 * gnulib/import/getdtablesize.c: New file.
3441 * gnulib/import/getlogin_r.c: New file.
3442 * gnulib/import/getprogname.c: New file.
3443 * gnulib/import/getprogname.h: New file.
3444 * gnulib/import/gettext.h: New file.
3445 * gnulib/import/glob-libc.h: New file.
3446 * gnulib/import/glob.c: New file.
3447 * gnulib/import/glob.in.h: New file.
3448 * gnulib/import/intprops.h: New file.
3449 * gnulib/import/m4/chdir-long.m4: New file.
3450 * gnulib/import/m4/close.m4: New file.
3451 * gnulib/import/m4/closedir.m4: New file.
3452 * gnulib/import/m4/d-ino.m4: New file.
3453 * gnulib/import/m4/d-type.m4: New file.
3454 * gnulib/import/m4/dup.m4: New file.
3455 * gnulib/import/m4/dup2.m4: New file.
3456 * gnulib/import/m4/error.m4: New file.
3457 * gnulib/import/m4/fchdir.m4: New file.
3458 * gnulib/import/m4/fcntl.m4: New file.
3459 * gnulib/import/m4/fcntl_h.m4: New file.
3460 * gnulib/import/m4/fdopendir.m4: New file.
3461 * gnulib/import/m4/filenamecat.m4: New file.
3462 * gnulib/import/m4/fstat.m4: New file.
3463 * gnulib/import/m4/fstatat.m4: New file.
3464 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
3465 * gnulib/import/m4/getcwd-path-max.m4: New file.
3466 * gnulib/import/m4/getcwd.m4: New file.
3467 * gnulib/import/m4/getdtablesize.m4: New file.
3468 * gnulib/import/m4/getlogin_r.m4: New file.
3469 * gnulib/import/m4/getprogname.m4: New file.
3470 * gnulib/import/m4/glob.m4: New file.
3471 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3472 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3473 * gnulib/import/m4/mempcpy.m4: New file.
3474 * gnulib/import/m4/memrchr.m4: New file.
3475 * gnulib/import/m4/mode_t.m4: New file.
3476 * gnulib/import/m4/msvc-inval.m4: New file.
3477 * gnulib/import/m4/msvc-nothrow.m4: New file.
3478 * gnulib/import/m4/open.m4: New file.
3479 * gnulib/import/m4/openat.m4: New file.
3480 * gnulib/import/m4/opendir.m4: New file.
3481 * gnulib/import/m4/readdir.m4: New file.
3482 * gnulib/import/m4/realloc.m4: New file.
3483 * gnulib/import/m4/rewinddir.m4: New file.
3484 * gnulib/import/m4/save-cwd.m4: New file.
3485 * gnulib/import/m4/strdup.m4: New file.
3486 * gnulib/import/m4/strerror.m4: New file.
3487 * gnulib/import/m4/unistd-safer.m4: New file.
3488 * gnulib/import/mempcpy.c: New file.
3489 * gnulib/import/memrchr.c: New file.
3490 * gnulib/import/msvc-inval.c: New file.
3491 * gnulib/import/msvc-inval.h: New file.
3492 * gnulib/import/msvc-nothrow.c: New file.
3493 * gnulib/import/msvc-nothrow.h: New file.
3494 * gnulib/import/open.c: New file.
3495 * gnulib/import/openat-die.c: New file.
3496 * gnulib/import/openat-priv.h: New file.
3497 * gnulib/import/openat-proc.c: New file.
3498 * gnulib/import/openat.c: New file.
3499 * gnulib/import/openat.h: New file.
3500 * gnulib/import/opendir.c: New file.
3501 * gnulib/import/pipe-safer.c: New file.
3502 * gnulib/import/readdir.c: New file.
3503 * gnulib/import/realloc.c: New file.
3504 * gnulib/import/rewinddir.c: New file.
3505 * gnulib/import/save-cwd.c: New file.
3506 * gnulib/import/save-cwd.h: New file.
3507 * gnulib/import/strdup.c: New file.
3508 * gnulib/import/strerror-override.c: New file.
3509 * gnulib/import/strerror-override.h: New file.
3510 * gnulib/import/strerror.c: New file.
3511 * gnulib/import/unistd--.h: New file.
3512 * gnulib/import/unistd-safer.h: New file.
3513 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3514 "getcwd" and "glob".
3515 * ser-tcp.c: Undefine "close" before redefining it.
3516
3517 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3518
3519 * guile/scm-value.c (gdbscm_value_address): Initialize address,
3520 get rid of res_val.
3521
3522 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3523
3524 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
3525 <sol2,sparc>: Likewise.
3526 <sol2-64,i386>: Likewise.
3527
3528 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
3529 -Wdeprecated-declarations on *-*-solaris*.
3530 * configure: Regenerate.
3531
3532 * procfs.c: Include "nat/inferior.h".
3533 (procfs_info_proc): Fix typo.
3534
3535 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3536
3537 * remote.c (vector): Include.
3538 (struct private_thread_info): Add field, thread_handle.
3539 (free_private_thread_info): Deallocate storage associated with
3540 thread handle.
3541 (get_private_info_thread): Initialize `thread_handle' field.
3542 (struct thread_item): Add field, thread_handle.
3543 (clear_threads_listing_context): Deallocate storage associated
3544 with thread handle.
3545 (start_thread): Add support for "handle" attribute.
3546 (thread_attributes): Add "handle".
3547 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3548 field.
3549 (remote_update_thread_list): Update thread_handle.
3550 (remote_thread_handle_to_thread_info): New function.
3551 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3552
3553 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3554
3555 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3556 function.
3557 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3558 * python/python-internal.h (thread_object_type): Declare.
3559
3560 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3561
3562 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3563 (target_thread_handle_to_thread_info): Declare.
3564 * target.c (target_thread_handle_to_thread_info): New function.
3565 * target-delegates.c: Regenerate.
3566 * gdbthread.h (find_thread_by_handle): Declare.
3567 * thread.c (find_thread_by_handle): New function.
3568 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3569 function.
3570 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3571
3572 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3573
3574 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3575
3576 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3577
3578 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3579
3580 2017-09-21 Yao Qi <yao.qi@linaro.org>
3581
3582 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3583 to gdb_target_obs.
3584
3585 2017-09-20 Tom Tromey <tom@tromey.com>
3586
3587 * breakpoint.c (struct counted_command_line): Remove.
3588 (breakpoint_commands): Update.
3589 (alloc_counted_command_line, incref_counted_command_line)
3590 (decref_counted_command_line, do_cleanup_counted_command_line)
3591 (make_cleanup_decref_counted_command_line): Remove.
3592 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3593 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3594 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3595 (save_breakpoints): Update.
3596 * breakpoint.h (counted_command_line): Now a typedef to
3597 shared_ptr.
3598 (struct breakpoint) <commands>: Now a counted_command_line.
3599 (struct bpstats) <command>: Likewise.
3600
3601 2017-09-20 Tom Tromey <tom@tromey.com>
3602
3603 * breakpoint.c (struct commands_info, do_map_commands_command):
3604 Remove.
3605 (commands_command_1): Update.
3606 (iterate_over_related_breakpoints): Take a function_view.
3607 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3608 (delete_command): Update.
3609 (map_breakpoint_numbers): Take a function_view.
3610 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3611 (disable_command): Update.
3612 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3613 (enable_command): Update.
3614 (struct disp_data, do_enable_breakpoint_disp)
3615 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3616 (do_map_enable_delete_breakpoint): Remove.
3617 (enable_once_command, enable_count_command, enable_delete_command)
3618 (delete_trace_variable_command): Update.
3619
3620 2017-09-20 Tom Tromey <tom@tromey.com>
3621
3622 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3623 (bpstat_clear): Use delete.
3624 (bpstats): New constructors.
3625 (bpstat_copy, bpstat_stop_status): Use new.
3626 (dprintf_after_condition_true): Update.
3627 * breakpoint.h (bpstats::bpstats): Add constructors.
3628 (bpstats::~bpstats): Add destructor.
3629
3630 2017-09-20 Pedro Alves <palves@redhat.com>
3631
3632 * eval.c (make_params): Delete, refactored as ...
3633 (class fake_method): ... this new type's ctor.
3634 (fake_method::~fake_method): New.
3635 (evaluate_subexp_standard): Use 'fake_method'.
3636
3637 2017-09-20 Tom Tromey <tom@tromey.com>
3638
3639 * windows-nat.c (get_windows_debug_event, windows_wait)
3640 (do_initial_windows_stuff, windows_attach): Update.
3641 * utils.c (vwarning, internal_vproblem): Update.
3642 (ui_unregister_input_event_handler_cleanup)
3643 (prepare_to_handle_input): Remove.
3644 (class scoped_input_handler): New.
3645 (defaulted_query, prompt_for_continue): Update.
3646 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3647 Update.
3648 * top.c (undo_terminal_modifications_before_exit): Update.
3649 * target/target.h (target_terminal_init, target_terminal_inferior)
3650 (target_terminal_ours): Don't declare.
3651 (class target_terminal): New.
3652 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3653 (target_terminal_ours_for_output)
3654 (make_cleanup_restore_target_terminal): Don't declare.
3655 (target_terminal_info): Remove.
3656 * target.c (enum terminal_state, terminal_state): Remove.
3657 (target_terminal::terminal_state): Define.
3658 (target_terminal::init): Rename from target_terminal_init.
3659 (target_terminal::inferior): Rename from
3660 target_terminal_inferior.
3661 (target_terminal::ours): Rename from target_terminal_ours.
3662 (target_terminal::ours_for_output): Rename from
3663 target_terminal_ours_for_output.
3664 (target_terminal::info): New method.
3665 (cleanup_restore_target_terminal)
3666 (make_cleanup_restore_target_terminal): Remove.
3667 * solib.c (handle_solib_event): Update.
3668 * remote.c (remote_serial_quit_handler): Update.
3669 (remote_terminal_inferior, remote_wait_as): Update.
3670 * record-full.c (record_full_wait_1): Update.
3671 * nto-procfs.c (procfs_create_inferior): Update.
3672 * nat/fork-inferior.c (startup_inferior): Update.
3673 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3674 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3675 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3676 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3677 (mi_breakpoint_created, mi_breakpoint_deleted)
3678 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3679 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3680 (mi_user_selected_context_changed, report_initial_inferior):
3681 Update.
3682 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3683 (linux_nat_terminal_inferior): Update.
3684 * infrun.c (follow_fork_inferior)
3685 (handle_vfork_child_exec_or_exit, do_target_resume)
3686 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3687 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3688 Update.
3689 * inflow.c (child_terminal_init, info_terminal_command): Update.
3690 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3691 (attach_command): Update.
3692 * infcall.c (call_thread_fsm_should_stop): Update.
3693 * gnu-nat.c (gnu_attach): Update.
3694 * extension.c (struct active_ext_lang_state)
3695 (restore_active_ext_lang): Update.
3696 * exceptions.c (print_flush): Update.
3697 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3698 (struct quit_handler_cleanup_data, restore_quit_handler)
3699 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3700 Remove.
3701 * cp-support.c (gdb_demangle): Update.
3702 * breakpoint.c (update_inserted_breakpoint_locations)
3703 (insert_breakpoint_locations, handle_jit_event)
3704 (disable_breakpoints_in_unloaded_shlib): Update.
3705 * annotate.c (annotate_breakpoints_invalid)
3706 (annotate_frames_invalid): Update.
3707
3708 2017-09-20 Tom Tromey <tom@tromey.com>
3709
3710 * main.c (catch_command_errors): Rename from
3711 catch_command_errors_const.
3712 (captured_main_1): Update.
3713
3714 2017-09-20 Pedro Alves <palves@redhat.com>
3715
3716 * cli/cli-cmds.c (list_command): Use print_sal_location.
3717 (print_sal_location): New function.
3718 (ambiguous_line_spec): Use print_sal_location.
3719 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3720 * symtab.c (find_function_start_sal): Likewise.
3721 * symtab.h (symtab_and_line::symbol): New field.
3722
3723 2017-09-20 Pedro Alves <palves@redhat.com>
3724
3725 * linespec.c (minsym_found): Handle non-text minsyms.
3726 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3727
3728 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3729
3730 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3731 backslash.
3732
3733 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3734
3735 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3736 vmovups instead vmovaps.
3737 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3738
3739 2017-09-19 John Baldwin <jhb@FreeBSD.org>
3740
3741 * NEWS (Changes since GDB 8.0): Add starti.
3742 * infcmd.c (enum run_break): New.
3743 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3744 case.
3745 (run_command): Use enum run_how.
3746 (start_command): Likewise.
3747 (starti_command): New function.
3748 (RUN_ARGS_HELP): New macro.
3749 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3750 commands. Add starti command.
3751
3752 2017-09-19 Yao Qi <yao.qi@linaro.org>
3753
3754 * Makefile.in (monitor.o): Remove the rule.
3755
3756 2017-09-19 Yao Qi <yao.qi@linaro.org>
3757
3758 * annotate.h (struct annotate_arg_emitter): Use
3759 DISABLE_COPY_AND_ASSIGN.
3760 * common/refcounted-object.h (refcounted_object): Likewise.
3761 * completer.h (struct completion_result): Likewise.
3762 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3763 * filename-seen-cache.h (filename_seen_cache): Likewise.
3764 * gdbcore.h (thread_section_name): Likewise.
3765 * gdb_regex.h (compiled_regex): Likewise.
3766 * gdbthread.h (scoped_restore_current_thread): Likewise.
3767 * inferior.h (scoped_restore_current_inferior): Likewise.
3768 * jit.c (jit_reader): Likewise.
3769 * linespec.h (struct linespec_result): Likewise.
3770 * mi/mi-parse.h (struct mi_parse): Likewise.
3771 * nat/fork-inferior.c (execv_argv): Likewise.
3772 * progspace.h (scoped_restore_current_program_space): Likewise.
3773 * python/python-internal.h (class gdbpy_enter): Likewise.
3774 * regcache.h (regcache): Likewise.
3775 * target-descriptions.c (struct tdesc_reg): Likewise.
3776 (struct tdesc_type): Likewise.
3777 (struct tdesc_feature): Likewise.
3778 * ui-out.h (ui_out_emit_type): Likewise.
3779
3780 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3781
3782 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3783 label abort_expression.
3784
3785 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3786
3787 * common/buffer.c (buffer_xml_printf): Adjust.
3788 * common/xml-utils.c (xml_escape_text): Change return type to
3789 std::string, update code accordingly.
3790 * common/xml-utils.h (xml_escape_text): Change return type to
3791 std::string.
3792 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3793 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3794 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3795 Adjust.
3796
3797 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3798
3799 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3800 (SUBDIR_UNITTESTS_OBS): Add new object file.
3801 * unittests/xml-utils-selftests.c: New file.
3802
3803 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3804
3805 * common/selftest.h (selftest): New struct/interface.
3806 (register_test): Add name parameter, add new overload.
3807 (run_tests): Add filter parameter.
3808 (for_each_selftest_ftype): New typedef.
3809 (for_each_selftest): New declaration.
3810 * common/selftest.c (tests): Change type to
3811 map<string, unique_ptr<selftest>>.
3812 (simple_selftest): New struct.
3813 (register_test): New function.
3814 (register_test): Add name parameter and use it.
3815 (run_tests): Add filter parameter and use it. Add prints.
3816 Adjust to vector -> map change.
3817 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3818 registering selftests.
3819 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3820 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3821 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3822 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3823 * findvar.c (_initialize_findvar): Likewise.
3824 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3825 * maint.c (maintenance_selftest): Update call to run_tests.
3826 (maintenance_info_selftests): New function.
3827 (_initialize_maint_cmds): Register "maintenance info selftests"
3828 command. Update "maintenance selftest" doc.
3829 * regcache.c (_initialize_regcache): Add names when registering
3830 selftests.
3831 * rust-exp.y (_initialize_rust_exp): Likewise.
3832 * selftest-arch.c (gdbarch_selftest): New struct.
3833 (gdbarch_tests): Remove.
3834 (register_test_foreach_arch): Add name parameter. Call
3835 register_test.
3836 (tests_with_arch): Remove, move most content to
3837 gdbarch_selftest::operator().
3838 (_initialize_selftests_foreach_arch): Remove.
3839 * selftest-arch.h (register_test_foreach_arch): Add name
3840 parameter.
3841 (run_tests_with_arch): New declaration.
3842 * utils-selftests.c (_initialize_utils_selftests): Add names
3843 when registering selftests.
3844 * utils.c (_initialize_utils): Likewise.
3845 * unittests/array-view-selftests.c
3846 (_initialize_array_view_selftests): Likewise.
3847 * unittests/environ-selftests.c (_initialize_environ_selftests):
3848 Likewise.
3849 * unittests/function-view-selftests.c
3850 (_initialize_function_view_selftests): Likewise.
3851 * unittests/offset-type-selftests.c
3852 (_initialize_offset_type_selftests): Likewise.
3853 * unittests/optional-selftests.c
3854 (_initialize_optional_selftests): Likewise.
3855 * unittests/scoped_restore-selftests.c
3856 (_initialize_scoped_restore_selftests): Likewise.
3857 * NEWS: Document "maintenance selftest" and "maint info
3858 selftests".
3859
3860 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3861
3862 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
3863 scoped_restore.
3864
3865 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3866
3867 * mi/mi-main.c (mi_load_progress): Make uiout variable
3868 a unique_ptr.
3869
3870 2017-09-15 Pedro Alves <palves@redhat.com>
3871
3872 * compile/compile-c-types.c (convert_enum, convert_int)
3873 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
3874
3875 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3876
3877 * dwarf2read.c (copy_string): Remove.
3878 (parse_macro_definition): Replace copy_string with savestring.
3879
3880 2017-09-15 Yao Qi <yao.qi@linaro.org>
3881
3882 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
3883 gdb_target_obs.
3884 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
3885 Likewise.
3886 (i[34567]86-*-linux*): Likewise.
3887
3888 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3889
3890 * dwarf2expr.h (dwarf_stack_value): Add constructor.
3891 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
3892 <stack>: Change type to std::vector.
3893 <stack_len, stack_allocated>: Remove.
3894 <grow_stack>: Remove.
3895 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3896 (dwarf_expr_context::~dwarf_expr_context): Remove.
3897 (dwarf_expr_context::grow_stack): Remove.
3898 (dwarf_expr_context::push): Adjust.
3899 (dwarf_expr_context::pop): Adjust.
3900 (dwarf_expr_context::fetch): Adjust.
3901 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
3902 (dwarf_expr_context::stack_empty_p): Adjust.
3903 (dwarf_expr_context::execute_stack_op): Adjust.
3904
3905 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3906
3907 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
3908 return type to bool.
3909 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
3910
3911 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3912
3913 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
3914 Change type to bool.
3915 (dwarf_stack_value) <in_stack_memory>: Likewise.
3916 (dwarf_expr_context) <push_address>: Change parameter type to
3917 bool.
3918 <fetch_in_stack_memory>: Change return type to bool.
3919 <push>: Change parameter type to bool.
3920 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
3921 to bool.
3922 (dwarf_expr_context::push_address): Likewise.
3923 (dwarf_expr_context::fetch_in_stack_memory): Change return type
3924 to bool.
3925 (dwarf_expr_context::execute_stack_op): Adjust.
3926 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
3927
3928 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3929
3930 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
3931 (struct dwarf_expr_context) <n_pieces>: Remove.
3932 <pieces>: Change type to std::vector.
3933 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3934 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
3935 pieces.
3936 (dwarf_expr_context::add_piece): Adjust.
3937 * dwarf2loc.c (struct piece_closure): Initialize fields.
3938 <n_pieces>: Remove.
3939 <pieces>: Change type to std::vector.
3940 (allocate_piece_closure): Adjust, change parameter to
3941 std::vector rvalue and std::move it to piece_closure.
3942 (rw_pieced_value): Adjust.
3943 (check_pieced_synthetic_pointer): Adjust.
3944 (indirect_synthetic_pointer): Adjust.
3945 (coerce_pieced_ref): Adjust.
3946 (free_pieced_value_closure): Adjust. Use delete to free
3947 piece_closure.
3948 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
3949 to allocate_piece_closure.
3950 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
3951
3952 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3953
3954 * probe.h (probe_ops_cp): Remove typedef.
3955 (DEF_VEC_P (probe_ops_cp)): Remove.
3956 (all_probe_ops): Change type to std::vector.
3957 * probe.c (info_probes_for_ops): Adjust to vector change.
3958 (probe_linespec_to_ops): Likewise.
3959 (all_probe_ops): Change type to std::vector.
3960 (_initialize_probe): Adjust to vector change.
3961 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
3962 * elfread.c (elf_get_probes): Likewise.
3963 * stap-probe.c (_initialize_stap_probe): Likewise.
3964
3965 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3966
3967 * probe.h (struct bound_probe): Define constructors.
3968 * probe.c (bound_probe_s): Remove typedef.
3969 (DEF_VEC_O (bound_probe_s)): Remove VEC.
3970 (collect_probes): Change return type to std::vector, remove
3971 cleanup.
3972 (compare_probes): Return bool, change parameter type. Change
3973 semantic to "less than".
3974 (gen_ui_out_table_header_info): Change parameter to std::vector
3975 and update.
3976 (exists_probe_with_pops): Likewise.
3977 (info_probes_for_ops): Update to std::vector change.
3978 (enable_probes_command): Likewise.
3979 (disable_probes_command): Likewise.
3980
3981 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3982
3983 * probe.h (struct probe_ops) <get_probes>: Change parameter from
3984 vec to std::vector.
3985 * probe.c (parse_probes_in_pspace): Update.
3986 (find_probes_in_objfile): Update.
3987 (find_probe_by_pc): Update.
3988 (collect_probes): Update.
3989 (probe_any_get_probes): Update.
3990 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
3991 return type to reference to std::vector.
3992 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
3993 std::vector and update.
3994 (dtrace_process_dof): Likewise.
3995 (dtrace_get_probes): Likewise.
3996 * elfread.c (elf_get_probes): Change return type to std::vector,
3997 store an std::vector in bfd_data.
3998 (probe_key_free): Update to std::vector.
3999 * stap-probe.c (handle_stap_probe): Change parameter to
4000 std::vector and update.
4001 (stap_get_probes): Likewise.
4002 * symfile-debug.c (debug_sym_get_probes): Change return type to
4003 std::vector and update.
4004
4005 2017-09-11 Tom Tromey <tom@tromey.com>
4006
4007 * breakpoint.c (program_breakpoint_here_p): Update.
4008 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
4009 from make_show_memory_breakpoints_cleanup. Return a
4010 scoped_restore_tmpl<int>.
4011 (restore_show_memory_breakpoints): Remove.
4012 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
4013 * mem-break.c (memory_validate_breakpoint): Update.
4014 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
4015 (ia64_memory_remove_breakpoint): Update.
4016 (ia64_breakpoint_from_pc): Update.
4017 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
4018 from make_show_memory_breakpoints_cleanup.
4019
4020 2017-09-11 Tom Tromey <tom@tromey.com>
4021
4022 * d-namespace.c (d_lookup_symbol): Use std::string.
4023 (find_symbol_in_baseclass): Likewise.
4024
4025 2017-09-11 Tom Tromey <tom@tromey.com>
4026
4027 * ctf.c (ctf_start): Use std::string.
4028
4029 2017-09-11 Tom Tromey <tom@tromey.com>
4030
4031 * ada-lang.c (is_known_support_routine): Update.
4032 (ada_unhandled_exception_name_addr_from_raise): Update.
4033 * guile/scm-frame.c (gdbscm_frame_name): Update.
4034 * python/py-frame.c (frapy_name): Update.
4035 (frapy_function): Update.
4036 * stack.h (find_frame_funname): Update.
4037 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
4038 (print_frame): Update.
4039
4040 2017-09-11 Tom Tromey <tom@tromey.com>
4041
4042 * findcmd.c (put_bits): Take a gdb::byte_vector.
4043 (parse_find_args): Return gdb::byte_vector. "args" now const.
4044 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
4045 cleanups.
4046 (find_command): Update.
4047
4048 2017-09-11 Tom Tromey <tom@tromey.com>
4049
4050 * cli/cli-script.c (class scoped_restore_hook_in): New.
4051 (clear_hook_in_cleanup): Remove.
4052 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
4053 scoped_restore_hook_in.
4054
4055 2017-09-11 Tom Tromey <tom@tromey.com>
4056
4057 * cli/cli-script.c (restore_interp): Remove.
4058 (read_command_lines): Use scoped_restore_interp.
4059 * interps.c (scoped_restore_interp::set_temp): Rename from
4060 interp_set_temp.
4061 * interps.h (class scoped_restore_interp): New.
4062 (interp_set_temp): Remove.
4063
4064 2017-09-11 Tom Tromey <tom@tromey.com>
4065
4066 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
4067 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
4068 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
4069 scoped_restore.
4070 (mi_cmd_break_insert_1): Update.
4071 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
4072 scoped_restore.
4073
4074 2017-09-11 Tom Tromey <tom@tromey.com>
4075
4076 * demangle.c (demangle_command): Update.
4077 * breakpoint.c (disable_command): Update.
4078 (enable_command): Update.
4079 (find_location_by_number): Make "number" const. Use
4080 get_number_trailer.
4081 * cli/cli-utils.c (extract_arg): Return std::string.
4082 * probe.c (parse_probe_linespec): Update. Change types.
4083 (collect_probes): Take string arguments.
4084 (parse_probe_linespec): Likewise.
4085 (info_probes_for_ops): Update.
4086 (enable_probes_command): Update.
4087 (disable_probes_command): Update.
4088 * break-catch-sig.c (catch_signal_split_args): Update.
4089 * mi/mi-parse.c (mi_parse): Update.
4090
4091 2017-09-11 Tom Tromey <tom@tromey.com>
4092
4093 * language.h (language_enum): Make argument const.
4094 * language.c (language_enum): Make argument const.
4095
4096 2017-09-11 Tom Tromey <tom@tromey.com>
4097
4098 * common/common-utils.h (skip_to_space): Remove macro, redeclare
4099 as function.
4100 (skip_to_space): Rename from skip_to_space_const.
4101 * common/common-utils.c (skip_to_space): New function.
4102 (skip_to_space): Rename from skip_to_space_const.
4103 * cli/cli-utils.h (get_number): Rename from get_number_const.
4104 (extract_arg): Rename from extract_arg_const.
4105 * cli/cli-utils.c (get_number): Rename from get_number_const.
4106 (extract_arg): Rename from extract_arg_const.
4107 (number_or_range_parser::get_number): Use ::get_number.
4108 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
4109 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
4110 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
4111 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
4112 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
4113 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
4114 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
4115 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
4116
4117 2017-09-11 Tom Tromey <tom@tromey.com>
4118
4119 * python/python.c (do_start_initialization): Use
4120 py-event-types.def to initialize types.
4121 Define all object type structures.
4122 * python/python-internal.h: Don't declare event initialization
4123 functions.
4124 * python/py-threadevent.c (thread_event_object_type): Don't
4125 define.
4126 * python/py-stopevent.c (stop_event_object_type): Don't define.
4127 * python/py-signalevent.c (signal_event_object_type): Don't
4128 declare or define.
4129 * python/py-newobjfileevent.c (new_objfile_event_object_type)
4130 (clear_objfiles_event_object_type): Don't declare or define.
4131 * python/py-infevents.c (inferior_call_pre_event_object_type)
4132 (inferior_call_post_event_object_type)
4133 (register_changed_event_object_type)
4134 (memory_changed_event_object_type): Don't declare or define.
4135 * python/py-inferior.c (new_thread_event_object_type)
4136 (new_inferior_event_object_type)
4137 (inferior_deleted_event_object_type): Don't declare or define.
4138 * python/py-exitedevent.c (exited_event_object_type): Don't
4139 declare or define.
4140 * python/py-evts.c (gdbpy_initialize_py_events): Use
4141 py-all-events.def.
4142 * python/py-events.h (thread_event_object_type): Don't declare.
4143 (events_object): Use py-all-events.def.
4144 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
4145 py-event-types.def.
4146 * python/py-event-types.def: New file.
4147 * python/py-continueevent.c (create_continue_event_object): Don't
4148 declare or define.
4149 * python/py-bpevent.c (breakpoint_event_object_type): Don't
4150 declare or define.
4151 * python/py-all-events.def: New file.
4152
4153 2017-09-11 Tom Tromey <tom@tromey.com>
4154
4155 * python/py-threadevent.c (create_thread_event_object): Return
4156 gdbpy_ref.
4157 * python/py-stopevent.h (create_stop_event_object)
4158 (create_breakpoint_event_object, create_signal_event_object):
4159 Update.
4160 * python/py-stopevent.c (create_stop_event_object): Return
4161 gdbpy_ref.
4162 (emit_stop_event): Update.
4163 * python/py-signalevent.c (create_signal_event_object): Return
4164 gdbpy_ref.
4165 * python/py-infevents.c (create_inferior_call_event_object):
4166 Update.
4167 * python/py-event.h (create_event_object)
4168 (create_thread_event_object): Update.
4169 * python/py-event.c (create_event_object): Return gdbpy_ref.
4170 * python/py-continueevent.c: Return gdbpy_ref.
4171 * python/py-bpevent.c (create_breakpoint_event_object): Return
4172 gdbpy_ref.
4173
4174 2017-09-11 Tom Tromey <tom@tromey.com>
4175
4176 PR python/15622:
4177 * NEWS: Add entry.
4178 * python/python.c (do_start_initialization): Initialize new event
4179 types.
4180 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
4181 (gdbpy_initialize_inferior_deleted_event)
4182 (gdbpy_initialize_new_thread_event): Declare.
4183 * python/py-threadevent.c (create_thread_event_object): Add option
4184 "thread" parameter.
4185 * python/py-inferior.c (new_thread_event_object_type)
4186 (new_inferior_event_object_type)
4187 (inferior_deleted_event_object_type): Declare.
4188 (python_new_inferior, python_inferior_deleted): New functions.
4189 (add_thread_object): Emit new_thread event.
4190 (gdbpy_initialize_inferior): Attach new functions to corresponding
4191 observers.
4192 (new_thread, new_inferior, inferior_deleted): Define new event
4193 types.
4194 * python/py-evts.c (gdbpy_initialize_py_events): Add new
4195 registries.
4196 * python/py-events.h (events_object) <new_inferior,
4197 inferior_deleted, new_thread>: New fields.
4198 * python/py-event.h (create_thread_event_breakpoint): Add optional
4199 "thread" parameter.
4200
4201 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
4202
4203 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
4204 check current_ui instead.
4205 (internal_vproblem): Likewise.
4206
4207 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
4208
4209 * thread.c (print_thread_info_1): Remove unnecessary calls to
4210 uiout->is_mi_like_p.
4211
4212 2017-09-09 Tom Tromey <tom@tromey.com>
4213
4214 * namespace.h (add_using_directive): Update.
4215 * namespace.c (add_using_directive): Change type of excludes to
4216 std::vector.
4217 * dwarf2read.c (read_import_statement): Use std::vector.
4218 (read_namespace): Update.
4219 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4220
4221 2017-09-09 Tom Tromey <tom@tromey.com>
4222
4223 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
4224
4225 2017-09-09 Tom Tromey <tom@tromey.com>
4226
4227 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
4228
4229 2017-09-09 Tom Tromey <tom@tromey.com>
4230
4231 * stack.c (func_command): Use gdb::def_vector.
4232
4233 2017-09-09 Tom Tromey <tom@tromey.com>
4234
4235 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
4236 ui_out_emit_list, ui_out_emit_tuple.
4237 (mi_cmd_var_update): Likewise.
4238
4239 2017-09-09 Tom Tromey <tom@tromey.com>
4240
4241 * mi/mi-interp.c (mi_user_selected_context_changed): Use
4242 ui_out_redirect_pop.
4243 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
4244 ui_out_redirect_pop.
4245 * utils.c (do_ui_out_redirect_pop)
4246 (make_cleanup_ui_out_redirect_pop): Remove.
4247 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
4248 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
4249 * ui-out.h (ui_out_redirect_pop): New class.
4250
4251 2017-09-09 Tom Tromey <tom@tromey.com>
4252
4253 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
4254 (list_available_thread_groups, mi_cmd_list_thread_groups)
4255 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
4256 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
4257 Likewise.
4258
4259 2017-09-09 Tom Tromey <tom@tromey.com>
4260
4261 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4262 ui_out_emit_tuple.
4263
4264 2017-09-09 Tom Tromey <tom@tromey.com>
4265
4266 * target.c (flash_erase_command): Use ui_out_emit_tuple.
4267 * stack.c (print_frame): Use ui_out_emit_tuple.
4268 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
4269 (info_spu_mailbox_command, info_spu_dma_command)
4270 (info_spu_proxydma_command): Likewise.
4271 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
4272 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
4273 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
4274 ui_out_emit_tuple.
4275 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
4276
4277 2017-09-09 Tom Tromey <tom@tromey.com>
4278
4279 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
4280 (class ui_out_emit_table): Update comment.
4281 * ui-out.c (do_cleanup_table_end)
4282 (make_cleanup_ui_out_table_begin_end): Remove.
4283 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
4284 (info_spu_dma_cmdlist): Likewise.
4285 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
4286 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
4287 ui_out_emit_table.
4288
4289 2017-09-09 Tom Tromey <tom@tromey.com>
4290
4291 * thread.c (print_thread_info_1): Use ui_out_emit_table,
4292 ui_out_emit_list, gdb::optional.
4293
4294 2017-09-09 John Baldwin <jhb@FreeBSD.org>
4295
4296 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
4297 prototype.
4298 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
4299 prototype.
4300 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
4301 prototype.
4302 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
4303 * ada-exp.y: Remove _initialize_ada_exp prototype.
4304 * ada-lang.c: Remove _initialize_ada_language prototype.
4305 * ada-tasks.c: Remove _initialize_tasks prototype.
4306 * addrmap.c: Remove _initialize_addrmap prototype.
4307 * agent.c: Remove _initialize_agent prototype.
4308 * aix-thread.c: Remove _initialize_aix_thread prototype.
4309 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
4310 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
4311 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
4312 prototype.
4313 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
4314 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
4315 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
4316 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
4317 prototype.
4318 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
4319 prototype.
4320 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
4321 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
4322 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
4323 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
4324 prototype.
4325 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
4326 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
4327 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
4328 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
4329 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4330 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
4331 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
4332 prototype.
4333 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
4334 prototype.
4335 * annotate.c: Remove _initialize_annotate prototype.
4336 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
4337 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
4338 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
4339 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
4340 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
4341 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
4342 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
4343 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
4344 prototype.
4345 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
4346 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
4347 * auto-load.c: Remove _initialize_auto_load prototype.
4348 * auxv.c: Remove _initialize_auxv prototype.
4349 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
4350 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
4351 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
4352 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
4353 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
4354 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
4355 prototype.
4356 * break-catch-throw.c: Remove _initialize_break_catch_throw
4357 prototype.
4358 * breakpoint.c: Remove _initialize_breakpoint prototype.
4359 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
4360 * btrace.c: Remove _initialize_btrace prototype.
4361 * charset.c: Remove _initialize_charset prototype.
4362 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
4363 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
4364 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
4365 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
4366 * cli/cli-script.c: Remove _initialize_cli_script prototype.
4367 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
4368 * coffread.c: Remove _initialize_coffread prototype.
4369 * compile/compile.c: Remove _initialize_compile prototype.
4370 * complaints.c: Remove _initialize_complaints prototype.
4371 * completer.c: Remove _initialize_completer prototype.
4372 * copying.awk: Remove _initialize_copying prototype.
4373 * copying.c: Regenerate.
4374 * core-regset.c: Remove _initialize_core_regset prototype.
4375 * corefile.c: Remove _initialize_core prototype.
4376 * corelow.c: Remove _initialize_corelow prototype.
4377 * cp-abi.c: Remove _initialize_cp_abi prototype.
4378 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
4379 * cp-support.c: Remove _initialize_cp_support prototype.
4380 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
4381 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
4382 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
4383 * ctf.c: Remove _initialize_ctf prototype.
4384 * d-lang.c: Remove _initialize_d_language prototype.
4385 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
4386 prototype.
4387 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
4388 * dbxread.c: Remove _initialize_dbxread prototype.
4389 * dcache.c: Remove _initialize_dcache prototype.
4390 * demangle.c: Remove _initialize_demangler prototype.
4391 * disasm-selftests.c: Remove _initialize_disasm_selftests
4392 prototype.
4393 * disasm.c: Remove _initialize_disasm prototype.
4394 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
4395 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
4396 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
4397 prototype.
4398 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
4399 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
4400 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
4401 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
4402 * elfread.c: Remove _initialize_elfread prototype.
4403 * exec.c: Remove _initialize_exec prototype.
4404 * extension.c: Remove _initialize_extension prototype.
4405 * f-lang.c: Remove _initialize_f_language prototype.
4406 * f-valprint.c: Remove _initialize_f_valprint prototype.
4407 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
4408 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
4409 * filesystem.c: Remove _initialize_filesystem prototype.
4410 * findcmd.c: Remove _initialize_mem_search prototype.
4411 * fork-child.c: Remove _initialize_fork_child prototype.
4412 * frame-base.c: Remove _initialize_frame_base prototype.
4413 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
4414 * frame.c: Remove _initialize_frame prototype.
4415 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
4416 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
4417 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
4418 * gcore.c: Remove _initialize_gcore prototype.
4419 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
4420 * gdbarch.c: Regenerate.
4421 * gdbarch.sh: Remove _initialize_gdbarch prototype.
4422 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
4423 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
4424 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
4425 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
4426 * go-lang.c: Remove _initialize_go_language prototype.
4427 * go32-nat.c: Remove _initialize_go32_nat prototype.
4428 * guile/guile.c: Remove _initialize_guile prototype.
4429 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
4430 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
4431 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
4432 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
4433 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
4434 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
4435 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
4436 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
4437 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
4438 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
4439 prototype.
4440 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
4441 prototype.
4442 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
4443 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
4444 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
4445 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
4446 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
4447 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
4448 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
4449 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
4450 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
4451 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
4452 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
4453 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
4454 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
4455 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4456 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
4457 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
4458 prototype.
4459 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
4460 prototype.
4461 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
4462 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
4463 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
4464 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
4465 * infcall.c: Remove _initialize_infcall prototype.
4466 * infcmd.c: Remove _initialize_infcmd prototype.
4467 * inferior.c: Remove _initialize_inferiors prototype.
4468 * inflow.c: Remove _initialize_inflow prototype.
4469 * infrun.c: Remove _initialize_infrun prototype.
4470 * interps.c: Remove _initialize_interpreter prototype.
4471 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
4472 * jit.c: Remove _initialize_jit prototype.
4473 * language.c: Remove _initialize_language prototype.
4474 * linux-fork.c: Remove _initialize_linux_fork prototype.
4475 * linux-nat.c: Remove _initialize_linux_nat prototype.
4476 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
4477 * linux-thread-db.c: Remove _initialize_thread_db prototype.
4478 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
4479 * m2-lang.c: Remove _initialize_m2_language prototype.
4480 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
4481 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
4482 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
4483 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
4484 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
4485 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4486 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4487 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
4488 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
4489 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
4490 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4491 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4492 * machoread.c: Remove _initialize_machoread prototype.
4493 * macrocmd.c: Remove _initialize_macrocmd prototype.
4494 * macroscope.c: Remove _initialize_macroscope prototype.
4495 * maint.c: Remove _initialize_maint_cmds prototype.
4496 * mdebugread.c: Remove _initialize_mdebugread prototype.
4497 * memattr.c: Remove _initialize_mem prototype.
4498 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
4499 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
4500 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
4501 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
4502 * mi/mi-main.c: Remove _initialize_mi_main prototype.
4503 * microblaze-linux-tdep.c: Remove
4504 _initialize_microblaze_linux_tdep prototype.
4505 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
4506 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
4507 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
4508 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
4509 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
4510 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
4511 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
4512 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
4513 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
4514 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
4515 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
4516 prototype.
4517 * mipsread.c: Remove _initialize_mipsread prototype.
4518 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
4519 prototype.
4520 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
4521 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
4522 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
4523 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
4524 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
4525 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
4526 prototype.
4527 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
4528 * nto-procfs.c: Remove _initialize_procfs prototype.
4529 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
4530 * objc-lang.c: Remove _initialize_objc_language prototype.
4531 * objfiles.c: Remove _initialize_objfiles prototype.
4532 * observer.c: Remove observer_test_first_notification_function,
4533 observer_test_second_notification_function,
4534 observer_test_third_notification_function, and
4535 _initialize_observer prototypes.
4536 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4537 * osabi.c: Remove _initialize_gdb_osabi prototype.
4538 * osdata.c: Remove _initialize_osdata prototype.
4539 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4540 * parse.c: Remove _initialize_parse prototype.
4541 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4542 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4543 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4544 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4545 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4546 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4547 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4548 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4549 * printcmd.c: Remove _initialize_printcmd prototype.
4550 * probe.c: Remove _initialize_probe prototype.
4551 * proc-api.c: Remove _initialize_proc_api prototype.
4552 * proc-events.c: Remove _initialize_proc_events prototype.
4553 * proc-service.c: Remove _initialize_proc_service prototype.
4554 * procfs.c: Remove _initialize_procfs prototype.
4555 * psymtab.c: Remove _initialize_psymtab prototype.
4556 * python/python.c: Remove _initialize_python prototype.
4557 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4558 * record-btrace.c: Remove _initialize_record_btrace prototype.
4559 * record-full.c: Remove _initialize_record_full prototype.
4560 * record.c: Remove _initialize_record prototype.
4561 * regcache.c: Remove _initialize_regcache prototype.
4562 * reggroups.c: Remove _initialize_reggroup prototype.
4563 * remote-notif.c: Remove _initialize_notif prototype.
4564 * remote-sim.c: Remove _initialize_remote_sim prototype.
4565 * remote.c: Remove _initialize_remote prototype.
4566 * reverse.c: Remove _initialize_reverse prototype.
4567 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4568 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4569 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4570 prototype.
4571 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4572 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4573 * rust-exp.y: Remove _initialize_rust_exp prototype.
4574 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4575 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4576 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4577 * score-tdep.c: Remove _initialize_score_tdep prototype.
4578 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4579 prototype.
4580 * ser-go32.c: Remove _initialize_ser_dos prototype.
4581 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4582 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4583 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4584 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4585 * serial.c: Remove _initialize_serial prototype.
4586 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4587 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4588 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4589 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4590 * skip.c: Remove _initialize_step_skip prototype.
4591 * sol-thread.c: Remove _initialize_sol_thread prototype.
4592 * solib-aix.c: Remove _initialize_solib_aix prototype.
4593 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4594 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4595 * solib-frv.c: Remove _initialize_frv_solib prototype.
4596 * solib-spu.c: Remove _initialize_spu_solib prototype.
4597 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4598 * solib-target.c: Remove _initialize_solib_target prototype.
4599 * solib.c: Remove _initialize_solib prototype.
4600 * source.c: Remove _initialize_source prototype.
4601 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4602 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4603 prototype.
4604 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4605 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4606 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4607 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4608 prototype.
4609 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4610 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4611 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4612 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4613 prototype.
4614 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4615 prototype.
4616 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4617 prototype.
4618 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4619 prototype.
4620 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4621 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4622 prototype.
4623 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4624 prototype.
4625 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4626 prototype.
4627 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4628 prototype.
4629 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4630 prototype.
4631 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4632 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4633 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4634 * stabsread.c: Remove _initialize_stabsread prototype.
4635 * stack.c: Remove _initialize_stack prototype.
4636 * stap-probe.c: Remove _initialize_stap_probe prototype.
4637 * std-regs.c: Remove _initialize_frame_reg prototype.
4638 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4639 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4640 * symfile.c: Remove _initialize_symfile prototype.
4641 * symmisc.c: Remove _initialize_symmisc prototype.
4642 * symtab.c: Remove _initialize_symtab prototype.
4643 * target-dcache.c: Remove _initialize_target_dcache prototype.
4644 * target-descriptions.c: Remove _initialize_target_descriptions
4645 prototype.
4646 * thread.c: Remove _initialize_thread prototype.
4647 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4648 prototype.
4649 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4650 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4651 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4652 prototype.
4653 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4654 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4655 * tracefile.c: Remove _initialize_tracefile prototype.
4656 * tracepoint.c: Remove _initialize_tracepoint prototype.
4657 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4658 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4659 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4660 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4661 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4662 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4663 * tui/tui.c: Remove _initialize_tui prototype.
4664 * typeprint.c: Remove _initialize_typeprint prototype.
4665 * user-regs.c: Remove _initialize_user_regs prototype.
4666 * utils.c: Remove _initialize_utils prototype.
4667 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4668 * valarith.c: Remove _initialize_valarith prototype.
4669 * valops.c: Remove _initialize_valops prototype.
4670 * valprint.c: Remove _initialize_valprint prototype.
4671 * value.c: Remove _initialize_values prototype.
4672 * varobj.c: Remove _initialize_varobj prototype.
4673 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4674 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4675 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4676 * windows-nat.c: Remove _initialize_windows_nat,
4677 _initialize_check_for_gdb_ini, and _initialize_loadable
4678 prototypes.
4679 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4680 * xcoffread.c: Remove _initialize_xcoffread prototype.
4681 * xml-support.c: Remove _initialize_xml_support prototype.
4682 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4683 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4684 prototype.
4685 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4686 prototype.
4687 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4688
4689 2017-09-08 Keith Seitz <keiths@redhat.com>
4690
4691 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4692 field.
4693
4694 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4695
4696 * f-valprint.c (f_val_print): Remove check for one byte
4697 sized integers. Remove printing of character type.
4698
4699 2017-09-08 Frank Penczek <frank.penczek@intel.com>
4700 Christoph Weinmann <christoph.t.weinmann@intel.com>
4701 Bernhard Heckel <bernhard.heckel@intel.com>
4702
4703 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4704 to maintain proper indentation when printing pointers/refs.
4705
4706 2017-09-07 Joel Brobecker <brobecker@adacore.com>
4707
4708 GDB 8.0.1 released.
4709
4710 2017-09-07 Joel Brobecker <brobecker@adacore.com>
4711
4712 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4713
4714 2017-09-05 Tom Tromey <tom@tromey.com>
4715
4716 * parse.c (funcall_chain): Now a std::vector.
4717 (start_arglist, end_arglist): Simplify.
4718 (free_funcalls): Remove.
4719 (parse_exp_in_context_1): Remove cleanup.
4720
4721 2017-09-05 Tom Tromey <tom@tromey.com>
4722
4723 * go-exp.y (go_parse): Don't create a cleanup.
4724
4725 2017-09-05 Tom Tromey <tom@tromey.com>
4726
4727 * d-exp.y (PrimaryExpression): Use std::string.
4728 (d_parse): Don't create a cleanup.
4729
4730 2017-09-05 Tom Tromey <tom@tromey.com>
4731
4732 * utils.c (do_clear_parser_state): Remove.
4733 (make_cleanup_clear_parser_state): Remove.
4734 * p-exp.y (pascal_parse): Use scoped_restore.
4735 * m2-exp.y (m2_parse): Use scoped_restore.
4736 * f-exp.y (f_parse): Use scoped_restore.
4737 * d-exp.y (d_parse): Use scoped_restore.
4738 * c-exp.y (c_parse): Use scoped_restore.
4739 * ada-exp.y (ada_parse): Use scoped_restore.
4740 * utils.h (make_cleanup_clear_parser_state): Remove.
4741
4742 2017-09-06 Keith Seitz <keiths@redhat.com>
4743
4744 * dwarf2read.c (dw2_linkage_name_attr): New function.
4745 (dw2_linkage_name): New function.
4746 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4747 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4748 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4749
4750 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4751
4752 * config/djgpp/djconfig.sh: Correct shell portability issue.
4753
4754 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4755
4756 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4757
4758 2017-09-06 John Baldwin <jhb@FreeBSD.org>
4759
4760 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4761 * NEWS: Mention new FreeBSD/mips native configuration.
4762 * configure.host: Add aarch64*-*-freebsd*.
4763 * configure.nat: Likewise.
4764 * aarch64-fbsd-nat.c: New file.
4765
4766 2017-09-06 John Baldwin <jhb@FreeBSD.org>
4767
4768 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4769 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4770 * NEWS: Mention new FreeBSD/aarch64 target.
4771 * configure.tgt: Add aarch64*-*-freebsd*.
4772 * aarch64-fbsd-tdep.c: New file.
4773 * aarch64-fbsd-tdep.h: New file.
4774
4775 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4776
4777 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4778
4779 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4780
4781 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4782 of TLS symbols.
4783
4784 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4785
4786 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4787 call.
4788
4789 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4790
4791 * infrun.c (follow_exec): Call add_thread after
4792 target_find_description.
4793
4794 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4795
4796 * infrun.c (handle_inferior_event_1): When exec'ing, read
4797 stop_pc after follow_exec.
4798
4799 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4800
4801 * remote.c (process_g_packet): Update error message.
4802
4803 2017-09-05 Yao Qi <yao.qi@linaro.org>
4804
4805 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4806 targets.
4807
4808 2017-09-05 Pedro Alves <palves@redhat.com>
4809
4810 * eval.c (eval_call, evaluate_funcall): New functions, factored
4811 out from ...
4812 (evaluate_subexp_standard): ... this.
4813
4814 2017-09-05 Yao Qi <yao.qi@linaro.org>
4815
4816 * amd64-tdep.c (amd64_target_description): Create target
4817 descriptions.
4818 (_initialize_amd64_tdep): Don't call functions
4819 initialize_tdesc_amd64_*. Add self tests.
4820 * arch/amd64.c (amd64_create_target_description): Add parameter
4821 is_linux. Call set_tdesc_osabi if is_linux is true.
4822 * arch/amd64.h (amd64_create_target_description): Update the
4823 declaration.
4824 * arch/i386.c (i386_create_target_description): Add parameter
4825 is_linux. Call set_tdesc_osabi if is_linux is true.
4826 * arch/i386.h (i386_create_target_description): Update
4827 declaration.
4828 * configure.tgt: Add i386.o to gdb_target_obs.
4829 * features/Makefile (XMLTOC): Remove i386/*.xml.
4830 * features/i386/amd64-avx-avx512.c: Remove.
4831 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4832 * features/i386/amd64-avx-mpx.c: Remove.
4833 * features/i386/amd64-avx.c: Remove.
4834 * features/i386/amd64-mpx.c: Remove.
4835 * features/i386/amd64.c: Remove.
4836 * features/i386/i386-avx-avx512.c: Remove.
4837 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4838 * features/i386/i386-avx-mpx.c: Remove.
4839 * features/i386/i386-avx.c: Remove.
4840 * features/i386/i386-mmx.c: Remove.
4841 * features/i386/i386-mpx.c: Remove.
4842 * features/i386/i386.c: Remove.
4843 * i386-tdep.c: Don't include features/i386/i386*.c., include
4844 target-descriptions.h and arch/i386.h.
4845 (i386_target_description): Create target descriptions.
4846 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4847 functions. Do self tests.
4848
4849 2017-09-05 Yao Qi <yao.qi@linaro.org>
4850
4851 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4852 * features/i386/amd64-avx-avx512-linux.c: Removed.
4853 * features/i386/amd64-avx-linux.c: Removed.
4854 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4855 * features/i386/amd64-avx-mpx-linux.c: Removed.
4856 * features/i386/amd64-linux.c: Removed.
4857 * features/i386/amd64-mpx-linux.c: Removed.
4858 * features/i386/x32-avx-avx512-linux.c: Removed.
4859 * features/i386/x32-avx-linux.c: Removed.
4860 * features/i386/x32-linux.c: Removed.
4861
4862 2017-09-05 Yao Qi <yao.qi@linaro.org>
4863
4864 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
4865 features/i386/*.c.
4866 (amd64_linux_read_description): Call
4867 amd64_create_target_description.
4868 * arch/amd64.c: New file.
4869 * arch/amd64.h: New file.
4870 * configure.tgt (x86_64-*-linux*): Append amd64.o.
4871 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
4872
4873 2017-09-05 Yao Qi <yao.qi@linaro.org>
4874
4875 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
4876 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
4877 (amd64_linux_read_description): Create target descriptions.
4878 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
4879 functions. Add unit tests.
4880 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
4881 x32-core.xml.
4882 * features/i386/64bit-avx.c: Generated.
4883 * features/i386/64bit-avx512.c: Generated.
4884 * features/i386/64bit-core.c: Generated.
4885 * features/i386/64bit-linux.c: Generated.
4886 * features/i386/64bit-mpx.c: Generated.
4887 * features/i386/64bit-pkeys.c: Generated.
4888 * features/i386/64bit-segments.c: Generated.
4889 * features/i386/64bit-sse.c: Generated.
4890 * features/i386/x32-core.c: Generated.
4891 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
4892 c files for amd64-linux and x32-linux.
4893
4894 2017-09-05 Yao Qi <yao.qi@linaro.org>
4895
4896 * amd64-linux-tdep.c (amd64_linux_read_description): New
4897 function.
4898 (amd64_linux_core_read_description): Call
4899 amd64_linux_read_description.
4900 (amd64_linux_init_abi): Likewise.
4901 (amd64_x32_linux_init_abi): Likewise.
4902 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
4903 * x86-linux-nat.c (x86_linux_read_description): Call
4904 amd64_linux_read_description.
4905
4906 2017-09-05 Yao Qi <yao.qi@linaro.org>
4907
4908 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
4909 comments.
4910
4911 2017-09-05 Yao Qi <yao.qi@linaro.org>
4912
4913 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
4914 * features/i386/i386-avx-avx512-linux.c: Remove.
4915 * features/i386/i386-avx-linux.c: Remove.
4916 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
4917 * features/i386/i386-avx-mpx-linux.c: Remove.
4918 * features/i386/i386-linux.c: Remove.
4919 * features/i386/i386-mmx-linux.c: Remove.
4920 * features/i386/i386-mpx-linux.c: Remove.
4921
4922 2017-09-05 Yao Qi <yao.qi@linaro.org>
4923
4924 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
4925 (SFILES): Add arch/i386.c.
4926 (HFILES_NO_SRCDIR): Add arch/i386.h.
4927 * arch/i386.c: New file.
4928 * arch/i386.h: New file.
4929 * arch/tdesc.h (allocate_target_description): Declare.
4930 (set_tdesc_architecture): Declare.
4931 (set_tdesc_osabi): Declare.
4932 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
4933 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
4934 include arch/i386.h.
4935 (i386_linux_read_description): Remove code and call
4936 i386_create_target_description.
4937 (set_tdesc_architecture): New function.
4938 (set_tdesc_osabi): New function.
4939 * target-descriptions.h (allocate_target_description): Remove.
4940
4941 2017-09-05 Yao Qi <yao.qi@linaro.org>
4942
4943 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
4944 * target-descriptions.c (tdesc_create_feature): Likewise, and
4945 adjust code.
4946 * features/i386/32bit-avx.c: Re-generated.
4947 * features/i386/32bit-avx512.c: Re-generated.
4948 * features/i386/32bit-core.c: Re-generated.
4949 * features/i386/32bit-linux.c: Re-generated.
4950 * features/i386/32bit-mpx.c: Re-generated.
4951 * features/i386/32bit-pkeys.c: Re-generated.
4952 * features/i386/32bit-sse.c: Re-generated.
4953
4954 2017-09-05 Yao Qi <yao.qi@linaro.org>
4955
4956 * regformats/regdef.h (struct reg): Override operator == and !=.
4957
4958 2017-09-05 Yao Qi <yao.qi@linaro.org>
4959
4960 * arch/tdesc.h: New file.
4961 * regformats/regdat.sh: Generate code using tdesc_create_reg.
4962 * target-descriptions.c: Update comments.
4963 * target-descriptions.h: Include "arch/tdesc.h". Remove the
4964 declarations.
4965 * features/i386/32bit-avx.c: Re-generated.
4966 * features/i386/32bit-avx512.c: Re-generated.
4967 * features/i386/32bit-core.c: Re-generated.
4968 * features/i386/32bit-linux.c: Re-generated.
4969 * features/i386/32bit-mpx.c: Re-generated.
4970 * features/i386/32bit-pkeys.c: Re-generated.
4971 * features/i386/32bit-sse.c: Re-generated.
4972
4973 2017-09-05 Yao Qi <yao.qi@linaro.org>
4974
4975 * regformats/regdat.sh: Update generated code.
4976
4977 2017-09-05 Yao Qi <yao.qi@linaro.org>
4978
4979 * regformats/regdat.sh: Adjust code order.
4980
4981 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4982
4983 * expprint.c (dump_subexp_body_standard): Use constant format
4984 string in fprintf_filtered call.
4985
4986 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4987
4988 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
4989 NetBSD/i386.
4990 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
4991
4992 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4993
4994 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
4995
4996 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4997
4998 * bsd-kvm.o: Define _KMEMUSER.
4999 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
5000 * configure: Regenerate.
5001
5002 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5003
5004 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
5005 * i386-fbsd-nat.c: Likewise.
5006
5007 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5008
5009 * unittests/array-view-selftests.c: Add include of <array>.
5010
5011 2017-09-04 John Baldwin <jhb@FreeBSD.org>
5012
5013 * spu-tdep.c (flush_ea_cache): Add missing argument to
5014 call_function_by_hand.
5015
5016 2017-09-04 Pedro Alves <palves@redhat.com>
5017
5018 * NEWS (Safer support for debugging with no debug info): New.
5019
5020 2017-09-04 Pedro Alves <palves@redhat.com>
5021
5022 * c-exp.y (function_method, function_method_void): Add current
5023 instance flags to TYPE_INSTANCE.
5024 * dwarf2read.c (check_modifier): New.
5025 (compute_delayed_physnames): Assert that only C++ adds delayed
5026 physnames. Mark fn_fields as const/volatile depending on
5027 physname.
5028 * eval.c (make_params): New type_instance_flags parameter. Use
5029 it as the new type's instance flags.
5030 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
5031 flags element and pass it to make_params.
5032 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
5033 instance flags element.
5034 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
5035 * gdbtypes.h: Include "enum-flags.h".
5036 (type_instance_flags): New enum-flags type.
5037 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
5038 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
5039 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
5040 (follow_type_instance_flags): New function.
5041 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
5042 * parser-defs.h (follow_type_instance_flags): Declare.
5043 * valops.c (value_struct_elt_for_reference): const/volatile must
5044 match too.
5045
5046 2017-09-04 Pedro Alves <palves@redhat.com>
5047
5048 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
5049 function/method scopes; lookup the nested name as a function local
5050 static variable.
5051
5052 2017-09-04 Pedro Alves <palves@redhat.com>
5053
5054 (%type <voidval>): Add function_method.
5055 * c-exp.y (exp): New production for calls with no arguments.
5056 (function_method, function_method_void_or_typelist): New
5057 productions.
5058 (exp): New production for "method()::static_var".
5059 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
5060 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5061 Handle OP_FUNC_STATIC_VAR.
5062 * parse.c (operator_length_standard):
5063 Handle OP_FUNC_STATIC_VAR.
5064
5065 2017-09-04 Pedro Alves <palves@redhat.com>
5066
5067 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
5068 handling.
5069 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5070 Ditto.
5071 * parse.c (operator_length_standard, operator_check_standard):
5072 Ditto.
5073 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
5074
5075 2017-09-04 Pedro Alves <palves@redhat.com>
5076
5077 * ax-gdb.c: Include "typeprint.h".
5078 (gen_expr_for_cast): New function.
5079 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
5080 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
5081 type is unknown.
5082 * dwarf2read.c (new_symbol_full): Fallback to int instead of
5083 nodebug_data_symbol.
5084 * eval.c: Include "typeprint.h".
5085 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
5086 Error out if symbol has unknown type.
5087 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
5088 evaluate_subexp_for_cast.
5089 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
5090 OP_VAR_MSYM_VALUE.
5091 (evaluate_subexp_for_cast): New function.
5092 * gdbtypes.c (init_nodebug_var_type): New function.
5093 (objfile_type): Use it to initialize types of variables with no
5094 debug info.
5095 * typeprint.c (error_unknown_type): New.
5096 * typeprint.h (error_unknown_type): New declaration.
5097 * compile/compile-c-types.c (convert_type_basic): Handle
5098 TYPE_CODE_ERROR; warn and fallback to int for variables with
5099 unknown type.
5100
5101 2017-09-04 Pedro Alves <palves@redhat.com>
5102
5103 * eval.c (evaluate_var_value): New function, factored out from ...
5104 (evaluate_subexp_standard): ... here.
5105
5106 2017-09-04 Pedro Alves <palves@redhat.com>
5107
5108 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
5109 Remove useless assignments to 'op'.
5110
5111 2017-09-04 Pedro Alves <palves@redhat.com>
5112
5113 * eval.c (eval_skip_value): New function.
5114 (evaluate_subexp_standard): Use it.
5115
5116 2017-09-04 Pedro Alves <palves@redhat.com>
5117
5118 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
5119 function name from symbol/minsym and pass it to
5120 error_call_unknown_return_type.
5121
5122 2017-09-04 Pedro Alves <palves@redhat.com>
5123
5124 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
5125 * ax-gdb.c (gen_msym_var_ref): New function.
5126 (gen_expr): Handle OP_VAR_MSYM_VALUE.
5127 * eval.c (evaluate_var_msym_value): New function.
5128 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
5129 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
5130 to call_function_by_hand.
5131 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5132 Handle OP_VAR_MSYM_VALUE.
5133 (union exp_element) <msymbol>: New field.
5134 * minsyms.h (struct type): Forward declare.
5135 (find_minsym_type_and_address): Declare.
5136 * parse.c (write_exp_elt_msym): New function.
5137 (write_exp_msymbol): Delete, refactored as ...
5138 (find_minsym_type_and_address): ... this new function.
5139 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
5140 (operator_length_standard, operator_check_standard): Handle
5141 OP_VAR_MSYM_VALUE.
5142 * std-operator.def (OP_VAR_MSYM_VALUE): New.
5143
5144 2017-09-04 Pedro Alves <palves@redhat.com>
5145
5146 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
5147 TYPE_GNU_IFUNC specially here. Throw error if return type is
5148 unknown.
5149 * ada-typeprint.c (print_func_type): Handle functions with unknown
5150 return type.
5151 * c-typeprint.c (c_type_print_base): Handle functions and methods
5152 with unknown return type.
5153 * compile/compile-c-symbols.c (convert_symbol_bmsym)
5154 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
5155 * compile/compile-c-types.c: Include "objfiles.h".
5156 (convert_func): For functions with unknown return type, warn and
5157 default to int.
5158 * compile/compile-object-run.c (compile_object_run): Adjust call
5159 to call_function_by_hand_dummy.
5160 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
5161 call_function_by_hand.
5162 * eval.c (evaluate_subexp_standard): Adjust calls to
5163 call_function_by_hand. Handle functions and methods with unknown
5164 return type. Pass expect_type to call_function_by_hand.
5165 * f-typeprint.c (f_type_print_base): Handle functions with unknown
5166 return type.
5167 * gcore.c (call_target_sbrk): Adjust call to
5168 call_function_by_hand.
5169 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
5170 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
5171 an integer address type instead of nodebug.
5172 * guile/scm-value.c (gdbscm_value_call): Adjust call to
5173 call_function_by_hand.
5174 * infcall.c (error_call_unknown_return_type): New function.
5175 (call_function_by_hand): New "default_return_type" parameter.
5176 Pass it down.
5177 (call_function_by_hand_dummy): New "default_return_type"
5178 parameter. Use it instead of defaulting to int. If there's no
5179 default and the return type is unknown, throw an error. If
5180 there's a default return type, and the called function has no
5181 debug info, then assume the function is prototyped.
5182 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
5183 New "default_return_type" parameter.
5184 (error_call_unknown_return_type): New declaration.
5185 * linux-fork.c (call_lseek): Cast return type of lseek.
5186 (inferior_call_waitpid, checkpoint_command): Adjust calls to
5187 call_function_by_hand.
5188 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
5189 calls to call_function_by_hand.
5190 * m2-typeprint.c (m2_procedure): Handle functions with unknown
5191 return type.
5192 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5193 (value_nsstring, print_object_command): Adjust calls to
5194 call_function_by_hand.
5195 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
5196 functions with unknown return type.
5197 (pascal_type_print_func_varspec_suffix): New function.
5198 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
5199 TYPE_CODE_METHOD>: Use it.
5200 * python/py-value.c (valpy_call): Adjust call to
5201 call_function_by_hand.
5202 * rust-lang.c (rust_evaluate_funcall): Adjust call to
5203 call_function_by_hand.
5204 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
5205 call_function_by_hand.
5206 * valops.c (value_allocate_space_in_inferior): Adjust call to
5207 call_function_by_hand.
5208 * typeprint.c (type_print_unknown_return_type): New function.
5209 * typeprint.h (type_print_unknown_return_type): New declaration.
5210
5211 2017-09-04 Pedro Alves <palves@redhat.com>
5212
5213 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
5214 types with more than one parameter as prototyped.
5215
5216 2017-09-04 Pedro Alves <palves@redhat.com>
5217
5218 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
5219 (disassemble_command): Use gdb_disassembly_flags instead of bare
5220 int.
5221 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
5222 (dump_insns, do_mixed_source_and_assembly_deprecated)
5223 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
5224 Use gdb_disassembly_flags instead of bare int.
5225 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
5226 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
5227 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
5228 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
5229 (enum gdb_disassembly_flag): ... values of this new enumeration.
5230 (gdb_disassembly_flags): Define.
5231 (gdb_disassembly)
5232 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
5233 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
5234 gdb_disassembly_flags instead of bare int.
5235 * record-btrace.c (btrace_insn_history)
5236 (record_btrace_insn_history, record_btrace_insn_history_range)
5237 (record_btrace_insn_history_from): Use gdb_disassembly_flags
5238 instead of bare int.
5239 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
5240 Use gdb_disassembly_flags instead of bare int.
5241 * target-debug.h (target_debug_print_gdb_disassembly_flags):
5242 Define.
5243 * target-delegates.c: Regenerate.
5244 * target.c (target_insn_history, target_insn_history_from)
5245 (target_insn_history_range): Use gdb_disassembly_flags instead of
5246 bare int.
5247 * target.h: Include "disasm.h".
5248 (struct target_ops) <to_insn_history, to_insn_history_from,
5249 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
5250 int.
5251 (target_insn_history, target_insn_history_from)
5252 (target_insn_history_range): Use gdb_disassembly_flags instead of
5253 bare int.
5254
5255 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5256
5257 * cli/cli-script.c (build_command_line): For if/while commands,
5258 check whether args is empty.
5259
5260 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5261
5262 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
5263 (enum command_control_type): Likewise.
5264 (struct command_line): Likewise.
5265 (free_command_lines): Likewise.
5266 (struct command_lines_deleter): Likewise.
5267 (command_line_up): Likewise.
5268 (read_command_lines): Likewise.
5269 (read_command_lines_1): Likewise.
5270 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
5271 (enum command_control_type): Likewise.
5272 (struct command_line): Likewise.
5273 (free_command_lines): Likewise.
5274 (struct command_lines_deleter): Likewise.
5275 (command_line_up): Likewise.
5276 (read_command_lines): Likewise.
5277 (read_command_lines_1): Likewise.
5278 * breakpoint.h: Include cli/cli-script.h.
5279 * extension-priv.h: Likewise.
5280 * gdbcmd.h: Likewise.
5281
5282 2017-09-04 Pedro Alves <palves@redhat.com>
5283
5284 * ada-lang.c (is_known_support_routine): Move sal declaration to
5285 where it is initialized.
5286 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
5287 (parse_breakpoint_sals, decode_static_tracepoint_spec)
5288 (clear_command, update_static_tracepoint): Remove init_sal
5289 references. Move declarations closer to initializations.
5290 * cli/cli-cmds.c (list_command): Move sal declarations closer to
5291 initializations.
5292 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
5293 references. Move sal declarations closer to initializations.
5294 * frame.c (find_frame_sal): Return a symtab_and_line via function
5295 return instead of output parameter. Remove init_sal references.
5296 * frame.h (find_frame_sal): Return a symtab_and_line via function
5297 return instead of output parameter.
5298 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
5299 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
5300 instead of memset.
5301 (gdbscm_find_pc_line): Remove init_sal reference.
5302 * infcall.c (call_function_by_hand_dummy): Remove init_sal
5303 references. Move declarations closer to initializations.
5304 * infcmd.c (set_step_frame): Update. Move declarations closer to
5305 initializations.
5306 (finish_backward): Remove init_sal references. Move declarations
5307 closer to initializations.
5308 * infrun.c (process_event_stop_test, handle_step_into_function)
5309 (insert_hp_step_resume_breakpoint_at_frame)
5310 (insert_step_resume_breakpoint_at_caller): Likewise.
5311 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
5312 (symbol_to_sal): Likewise.
5313 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
5314 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
5315 to its initialization.
5316 * reverse.c (save_bookmark_command): Use new/delete. Remove
5317 init_sal references. Move declarations closer to initializations.
5318 * source.c (get_current_source_symtab_and_line): Remove brace
5319 initialization.
5320 (set_current_source_symtab_and_line): Now takes the sal by const
5321 reference. Remove brace initialization.
5322 (line_info): Remove init_sal reference.
5323 * source.h (set_current_source_symtab_and_line): Now takes a
5324 symtab_and_line via const reference.
5325 * stack.c (set_current_sal_from_frame): Adjust.
5326 (print_frame_info): Adjust.
5327 (get_last_displayed_sal): Return the sal via function return
5328 instead of via output parameter. Simplify.
5329 (frame_info): Adjust.
5330 * stack.h (get_last_displayed_sal): Return the sal via function
5331 return instead of via output parameter.
5332 * symtab.c (init_sal): Delete.
5333 (find_pc_sect_line): Remove init_sal references. Move
5334 declarations closer to initializations.
5335 (find_function_start_sal): Remove init_sal references. Move
5336 declarations closer to initializations.
5337 * symtab.h (struct symtab_and_line): In-class initialize all
5338 fields.
5339 * tracepoint.c (set_traceframe_context)
5340 (print_one_static_tracepoint_marker): Remove init_sal references.
5341 Move declarations closer to initializations.
5342 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
5343 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
5344 declarations closer to initializations.
5345 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
5346 init_sal references. Adjust.
5347
5348 2017-09-04 Pedro Alves <palves@redhat.com>
5349
5350 * ax-gdb.c (agent_command_1): Use range-for.
5351 * break-catch-throw.c (re_set_exception_catchpoint): Update.
5352 * breakpoint.c: Include "common/array-view.h".
5353 (init_breakpoint_sal, create_breakpoint_sal): Change sals
5354 parameter from struct symtabs_and_lines to
5355 array_view<symtab_and_line>. Adjust. Use range-for. Update.
5356 (breakpoint_sals_to_pc): Change sals parameter from struct
5357 symtabs_and_lines to std::vector reference.
5358 (check_fast_tracepoint_sals): Change sals parameter from struct
5359 symtabs_and_lines to std::array_view. Use range-for.
5360 (decode_static_tracepoint_spec): Return a std::vector instead of
5361 symtabs_and_lines. Update.
5362 (create_breakpoint): Update.
5363 (break_range_command, until_break_command, clear_command): Update.
5364 (base_breakpoint_decode_location, bkpt_decode_location)
5365 (bkpt_probe_create_sals_from_location)
5366 (bkpt_probe_decode_location, tracepoint_decode_location)
5367 (tracepoint_probe_decode_location)
5368 (strace_marker_create_sals_from_location): Return a std::vector
5369 instead of symtabs_and_lines.
5370 (strace_marker_create_breakpoints_sal): Update.
5371 (strace_marker_decode_location): Return a std::vector instead of
5372 symtabs_and_lines. Update.
5373 (update_breakpoint_locations): Change struct symtabs_and_lines
5374 parameters to gdb::array_view. Adjust.
5375 (location_to_sals): Return a std::vector instead of
5376 symtabs_and_lines. Update.
5377 (breakpoint_re_set_default): Use std::vector instead of struct
5378 symtabs_and_lines.
5379 (decode_location_default): Return a std::vector instead of
5380 symtabs_and_lines. Update.
5381 * breakpoint.h: Include "common/array-view.h".
5382 (struct breakpoint_ops) <decode_location>: Now returns a
5383 std::vector instead of returning a symtabs_and_lines via output
5384 parameter.
5385 (update_breakpoint_locations): Change sals parameters to use
5386 gdb::array_view.
5387 * cli/cli-cmds.c (edit_command, list_command): Update to use
5388 std::vector and gdb::array_view.
5389 (ambiguous_line_spec): Adjust to use gdb::array_view and
5390 range-for.
5391 (compare_symtabs): Rename to ...
5392 (cmp_symtabs): ... this. Change parameters to symtab_and_line
5393 const reference and adjust.
5394 (filter_sals): Rewrite using std::vector and standard algorithms.
5395 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
5396 (jump_command): Update to use std::vector.
5397 * linespec.c (struct linespec_state) <canonical_names>: Update
5398 comment.
5399 (add_sal_to_sals_basic): Delete.
5400 (add_sal_to_sals, filter_results, convert_results_to_lsals)
5401 (decode_line_2, create_sals_line_offset)
5402 (convert_address_location_to_sals, convert_linespec_to_sals)
5403 (convert_explicit_location_to_sals, parse_linespec)
5404 (event_location_to_sals, decode_line_full, decode_line_1)
5405 (decode_line_with_current_source)
5406 (decode_line_with_last_displayed, decode_objc)
5407 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
5408 (linespec_result::~linespec_result): Adjust to use std::vector
5409 instead of symtabs_and_lines.
5410 * linespec.h (linespec_sals::sals): Now a std::vector.
5411 (struct linespec_result): Use std::vector, bool, and in-class
5412 initialization.
5413 (decode_line_1, decode_line_with_current_source)
5414 (decode_line_with_last_displayed): Return std::vector.
5415 * macrocmd.c (info_macros_command): Use std::vector.
5416 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
5417 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
5418 std::vector.
5419 * probe.h (parse_probes): Return a std::vector.
5420 * python/python.c (gdbpy_decode_line): Use std::vector and
5421 gdb::array_view.
5422 * source.c (select_source_symtab, line_info): Use std::vector.
5423 * stack.c (func_command): Use std::vector.
5424 * symtab.h (struct symtabs_and_lines): Delete.
5425 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
5426
5427 2017-09-04 Pedro Alves <palves@redhat.com>
5428
5429 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5430 unittests/array-view-selftests.c.
5431 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
5432 * common/array-view.h: New file.
5433 * unittests/array-view-selftests.c: New file.
5434
5435 2017-09-04 Pedro Alves <palves@redhat.com>
5436
5437 * cli/cli-cmds.c (edit_command): Pass message to
5438 ambiguous_line_spec.
5439 (list_command): Pass message to ambiguous_line_spec. Say
5440 "first"/"last" instead of "start" and "end" to be consistent with
5441 the manual.
5442 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
5443 them to print formatted message.
5444
5445 2017-09-04 Pedro Alves <palves@redhat.com>
5446
5447 * btrace.c (ftrace_add_pt): Pass btrace_insn to
5448 ftrace_update_insns by reference instead of pointer.
5449
5450 2017-09-04 Yao Qi <yao.qi@linaro.org>
5451
5452 * i386-go32-tdep.c: Include x86-xstate.h.
5453 (i386_go32_init_abi): Call i386_target_description.
5454 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
5455 if xcr0 is X86_XSTATE_X87_MASK.
5456 * i386-tdep.h (tdesc_i386): Remove the declaration.
5457 (tdesc_i386_mmx): Likewise.
5458
5459 2017-09-04 Yao Qi <yao.qi@linaro.org>
5460
5461 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
5462 X86_XSTATE_SSE_MASK instead of 0.
5463
5464 2017-09-04 Yao Qi <yao.qi@linaro.org>
5465
5466 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
5467 i386_target_description.
5468 * i386-fbsd-nat.c (i386fbsd_read_description): Call
5469 i386_target_description.
5470 * i386-tdep.c (i386_gdbarch_init): Likewise.
5471
5472 2017-09-04 Yao Qi <yao.qi@linaro.org>
5473
5474 * amd64-darwin-tdep.c: Include "x86-xstate.h".
5475 (x86_darwin_init_abi_64): Call amd64_target_description.
5476 * amd64-dicos-tdep.c: Likewise.
5477 * amd64-fbsd-nat.c: Likewise.
5478 * amd64-fbsd-tdep.c: Likewise.
5479 * amd64-nbsd-tdep.c: Likewise.
5480 * amd64-obsd-tdep.c: Likewise.
5481 * amd64-sol2-tdep.c: Likewise.
5482 * amd64-windows-tdep.c: Likewise.
5483 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
5484
5485 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5486
5487 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
5488 (btrace_function) <insn>: Change type to use std::vector.
5489 * btrace.c (ftrace_debug, ftrace_call_num_insn,
5490 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
5491 ftrace_update_insns, ftrace_compute_global_level_offset,
5492 btrace_stitch_bts, btrace_clear, btrace_insn_get,
5493 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
5494 change to std::vector.
5495 (ftrace_update_insns): Adjust to change to std::vector, change
5496 type of INSN parameter.
5497 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
5498 * record-btrace.c (btrace_call_history_insn_range,
5499 btrace_compute_src_line_range,
5500 record_btrace_frame_prev_register): Adjust to change to
5501 std::vector.
5502 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
5503 to change to std::vector.
5504
5505 2017-09-03 Tom Tromey <tom@tromey.com>
5506
5507 * corefile.c (reopen_exec_file): Use std::string.
5508
5509 2017-09-03 Tom Tromey <tom@tromey.com>
5510
5511 * compile/compile.c (compile_register_name_mangled): Return
5512 std::string.
5513 * compile/compile-loc2c.c (pushf_register_address): Update.
5514 (pushf_register): Update.
5515 * compile/compile-c-types.c (convert_array): Update.
5516 * compile/compile-c-symbols.c (generate_vla_size): Update.
5517 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
5518 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
5519 (convert_one_symbol): Update.
5520 (generate_c_for_for_one_variable): Update.
5521 * compile/compile-c-support.c (c_get_range_decl_name): Return a
5522 std::string.
5523 (generate_register_struct): Update.
5524 * compile/compile-internal.h (c_get_range_decl_name): Return a
5525 std::string.
5526 (compile_register_name_mangled): Return std::string.
5527
5528 2017-09-03 Tom Tromey <tom@tromey.com>
5529
5530 * utils.c (perror_string): Return a std::string.
5531 (throw_perror_with_name, perror_warning_with_name): Update.
5532
5533 2017-09-03 Tom Tromey <tom@tromey.com>
5534
5535 * demangle.c (demangle_command): Use std::string,
5536 unique_xmalloc_ptr.
5537
5538 2017-09-03 Tom Tromey <tom@tromey.com>
5539
5540 * cli/cli-setshow.c (do_set_command): Use std::string.
5541
5542 2017-09-03 Tom Tromey <tom@tromey.com>
5543
5544 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5545
5546 2017-09-03 Tom Tromey <tom@tromey.com>
5547
5548 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5549
5550 2017-09-03 Tom Tromey <tom@tromey.com>
5551
5552 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5553 gdb::unique_xmalloc_ptr.
5554
5555 2017-09-03 Tom Tromey <tom@tromey.com>
5556
5557 * thread.c (print_thread_info_1): Use string_printf.
5558 (thread_apply_command, thread_apply_all_command): Use
5559 std::string.
5560
5561 2017-09-03 Tom Tromey <tom@tromey.com>
5562
5563 * valprint.c (val_print_string): Update.
5564 * gdbcore.h (memory_error_message): Return std::string.
5565 * corefile.c (memory_error_message): Return std::string.
5566 (memory_error): Update.
5567 * breakpoint.c (insert_bp_location): Update.
5568
5569 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5570
5571 * target/waitstatus.h (target_waitstatus_to_string): Change
5572 return type to std::string.
5573 * target/waitstatus.c (target_waitstatus_to_string): Return
5574 std::string.
5575 * target.h (target_waitstatus_to_string): Remove declaration.
5576 * infrun.c (resume, clear_proceed_status_thread,
5577 print_target_wait_results, do_target_wait, save_waitstatus,
5578 stop_all_threads): Adjust.
5579 * record-btrace.c (record_btrace_wait): Adjust.
5580 * target-debug.h
5581 (target_debug_print_struct_target_waitstatus_p): Adjust.
5582
5583 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5584
5585 PR gdb/22046
5586 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5587 detection.
5588
5589 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5590
5591 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5592 for setting/unsetting environment variables on the remote target.
5593 (New remote packets): Add entries for QEnvironmentHexEncoded,
5594 QEnvironmentUnset and QEnvironmentReset.
5595 * common/environ.c (gdb_environ::operator=): Extend method to
5596 handle m_user_set_env_list and m_user_unset_env_list.
5597 (gdb_environ::clear): Likewise.
5598 (match_var_in_string): Change type of first parameter from 'char
5599 *' to 'const char *'.
5600 (gdb_environ::set): Extend method to handle
5601 m_user_set_env_list and m_user_unset_env_list.
5602 (gdb_environ::unset): Likewise.
5603 (gdb_environ::clear_user_set_env): New method.
5604 (gdb_environ::user_set_envp): Likewise.
5605 (gdb_environ::user_unset_envp): Likewise.
5606 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5607 m_user_unset_env_list on move constructor/assignment.
5608 (unset): Add new default parameter 'update_unset_list = true'.
5609 (clear_user_set_env): New method.
5610 (user_set_envp): Likewise.
5611 (user_unset_envp): Likewise.
5612 (m_user_set_env_list): New std::set.
5613 (m_user_unset_env_list): Likewise.
5614 * common/rsp-low.c (hex2str): New function.
5615 (bin2hex): New overload for bin2hex function.
5616 * common/rsp-low.c (hex2str): New prototype.
5617 (str2hex): New overload prototype.
5618 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5619 QEnvironmentUnset and QEnvironmentReset.
5620 (remote_protocol_features): Add QEnvironmentHexEncoded,
5621 QEnvironmentUnset and QEnvironmentReset packets.
5622 (send_environment_packet): New function.
5623 (extended_remote_environment_support): Likewise.
5624 (extended_remote_create_inferior): Call
5625 extended_remote_environment_support.
5626 (_initialize_remote): Add QEnvironmentHexEncoded,
5627 QEnvironmentUnset and QEnvironmentReset packet configs.
5628 * unittests/environ-selftests.c (gdb_selftest_env_var):
5629 New variable.
5630 (test_vector_initialization): New function.
5631 (test_init_from_host_environ): Likewise.
5632 (test_reinit_from_host_environ): Likewise.
5633 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5634 Likewise.
5635 (test_unset_set_empty_vector): Likewise.
5636 (test_vector_clear): Likewise.
5637 (test_std_move): Likewise.
5638 (test_move_constructor):
5639 (test_self_move): Likewise.
5640 (test_set_unset_reset): Likewise.
5641 (run_tests): Rewrite in terms of the functions above.
5642
5643 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
5644
5645 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5646 (adi_available): Use a temp variable of type CORE_ADDR as argument
5647 3 when calling target_auxv_search.
5648 (adi_normalize_address): Use masks and xor operators to calculate
5649 normalized address.
5650 (adi_read_versions, adi_write_versions, adi_print_versions)
5651 (do_examine, do_assign): Use paddress.
5652
5653 2017-08-29 John Baldwin <jhb@FreeBSD.org>
5654
5655 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5656 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5657 out of loop and add supply of FIR.
5658 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5659 add collect of FIR.
5660
5661 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5662
5663 PR gdb/21827
5664 * cli/cli-script.c (define_command): Don't convert command name
5665 to lower case.
5666
5667 2017-08-25 Joel Brobecker <brobecker@adacore.com>
5668
5669 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5670 Update all callers accordingly. Remove all code blocks handling
5671 the case where DISPP is not NULL.
5672
5673 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5674
5675 PR symtab/22003
5676 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5677 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5678 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5679
5680 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5681
5682 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5683 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5684 (read_comp_units_from_section): New parameter abbrev_section, use
5685 read_and_check_comp_unit_head, allocate signatured_type if needed.
5686 (create_all_comp_units): Update read_comp_units_from_section caller.
5687
5688 2017-08-23 Pedro Alves <palves@redhat.com>
5689
5690 PR remote/21852
5691 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5692 to null_ptid and switch to thread without reading the registers
5693 after adding the inferior.
5694
5695 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5696
5697 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5698 compile-gcc.
5699 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5700 (compile_to_object): Implement compile_gcc.
5701 (_initialize_compile): Install "set compile-gcc". Initialize
5702 compile_gcc.
5703
5704 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5705
5706 * compile/compile.c (compile_to_object): Conditionally call
5707 set_verbose. Conditionally call compile or compile_v0.
5708
5709 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
5710
5711 * sparc64-tdep.h: (adi_normalize_address): New export.
5712 * sparc-nat.h: (open_adi_tag_fd): New export.
5713 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5714 * sparc64-linux-tdep.c:
5715 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5716 (sparc64_linux_handle_segmentation_fault): New function.
5717 (sparc64_linux_init_abi): Register
5718 sparc64_linux_handle_segmentation_fault
5719 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5720 (sparc64_addr_bits_remove): New function.
5721 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5722 (MAX_PROC_NAME_SIZE): New macro.
5723 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5724 (sparc64adilist): New variable.
5725 (adi_proc_list): New variable.
5726 (find_adi_info): New function.
5727 (add_adi_info): New function.
5728 (get_adi_info_proc): New function.
5729 (get_adi_info): New function.
5730 (info_adi_command): New function.
5731 (read_maps_entry): New function.
5732 (adi_available): New function.
5733 (adi_normalize_address): New function.
5734 (adi_align_address): New function.
5735 (adi_convert_byte_count): New function.
5736 (adi_tag_fd): New function.
5737 (adi_is_addr_mapped): New function.
5738 (adi_read_versions): New function.
5739 (adi_write_versions): New function.
5740 (adi_print_versions): New function.
5741 (do_examine): New function.
5742 (do_assign): New function.
5743 (adi_examine_command): New function.
5744 (adi_assign_command): New function.
5745 (_initialize_sparc64_adi_tdep): New function.
5746
5747 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5748
5749 * breakpoint.c (breakpoints_info): Rename to ...
5750 (info_breakpoints_command): ... this.
5751 (watchpoints_info): Rename to ...
5752 (info_watchpoints_command): ... this.
5753 (tracepoints_info): Rename to ...
5754 (info_tracepoints_command): ... this.
5755 (_initialize_breakpoint): Adjust.
5756 * dcache.c (dcache_info): Rename to ...
5757 (info_display_command): ... this.
5758 (_initialize_dcache): Adjust.
5759 * frame.h (args_info): Rename to ...
5760 (info_args_command): ... this.
5761 (locals_info): Rename to ...
5762 (info_locals_command): ... this.
5763 * infcmd.c (nofp_registers_info): Rename to ...
5764 (info_registers_command): ... this.
5765 (float_info): Rename to ...
5766 (info_float_command): ... this.
5767 (program_info): Rename to ...
5768 (info_program_command): ... this.
5769 (all_registers_info): Rename to ...
5770 (info_all_registers_command): ... this.
5771 (vector_info): Rename to ...
5772 (info_vector_command): ... this.
5773 (float_info): Rename to ...
5774 (info_float_command): ... this.
5775 (_initialize_infcmd): Adjust.
5776 * inferior.h (term_info): Rename to ...
5777 (info_terminal_command): ... this.
5778 * inflow.c (term_info): Rename to ...
5779 (info_terminal_command): ... this.
5780 (_initialize_inflow): Adjust.
5781 * infrun.c (signals_info): Rename to ...
5782 (info_signals_command): ... this.
5783 (_initialize_infrun): Adjust.
5784 * objc-lang.c (classes_info): Rename to ...
5785 (info_classes_command): ... this.
5786 (selectors_info): Rename to ...
5787 (info_selectors_command): ... this.
5788 (_initialize_objc_language): Adjust.
5789 * printcmd.c (sym_info): Rename to ...
5790 (info_symbol_command): ... this.
5791 (address_info): Rename to ...
5792 (info_address_command): ... this.
5793 (display_info): Rename to ...
5794 (info_display_command): ... this.
5795 (_initialize_printcmd): Adjust.
5796 * reverse.c (bookmarks_info): Rename to ...
5797 (info_breakpoints_command): ... this.
5798 (_initialize_reverse): Adjust.
5799 * ser-go32.c (dos_info): Rename to ...
5800 (info_serial_command): ... this.
5801 (_initialize_ser_dos): Adjust.
5802 * skip.c (skip_info): Rename to ...
5803 (info_skip_command): ... this.
5804 (_initialize_step_skip): Adjust.
5805 * source.c (line_info): Rename to ...
5806 (info_line_command): ... this.
5807 (source_info): Rename to ...
5808 (info_source_command)
5809 * stack.c (frame_info): Rename to ...
5810 (info_frame_command): ... this.
5811 (locals_info): Rename to ...
5812 (info_locals_command): ... this.
5813 (args_info): Rename to ...
5814 (info_args_command): ... this.
5815 (_initialize_stack): Adjust.
5816 * symtab.c (sources_info): Rename to ...
5817 (info_sources_command): ... this.
5818 (variables_info): Rename to ...
5819 (info_variables_command): ... this.
5820 (functions_info): Rename to ...
5821 (info_functions_command): ... this.
5822 (types_info): Rename to ...
5823 (info_types_command): ... this.
5824 (_initialize_symtab): Adjust.
5825 * target.c (target_info): Rename to ...
5826 (info_target_command): ... this.
5827 (initialize_targets): Adjust.
5828 * tracepoint.c (tvariables_info): Rename to ...
5829 (info_tvariables_command): ... this.
5830 (scope_info): Rename to ...
5831 (info_scope_command): ... this.
5832 (trace_dump_actions): Adjust.
5833 (_initialize_tracepoint): Adjust.
5834
5835 2017-08-22 Tom Tromey <tom@tromey.com>
5836
5837 * breakpoint.h (install_breakpoint): Update.
5838 * breakpoint.c (add_solib_catchpoint): Update.
5839 (install_breakpoint): Change argument to a std::unique_ptr.
5840 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5841 (create_breakpoint_sal, create_breakpoint): Update.
5842 (watch_command_1, catch_exec_command_1)
5843 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5844 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5845 Return the breakpoint.
5846 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5847 (new_single_step_breakpoint): Update.
5848 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5849 std::unique_ptr.
5850 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5851 std::unique_ptr.
5852 * break-catch-sig.c (create_signal_catchpoint): Use
5853 std::unique_ptr.
5854 * ada-lang.c (create_ada_exception_catchpoint): Use
5855 std::unique_ptr.
5856
5857 2017-08-22 Tom Tromey <tom@tromey.com>
5858
5859 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
5860
5861 2017-08-22 Tom Tromey <tom@tromey.com>
5862
5863 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
5864 (lookup_partial_symbol): Update.
5865
5866 2017-08-22 Tom Tromey <tom@tromey.com>
5867
5868 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
5869 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
5870 (find_and_open_source, symtab_to_fullname): Update.
5871 * psymtab.c (psymtab_to_fullname): Update.
5872
5873 2017-08-22 Tom Tromey <tom@tromey.com>
5874
5875 * exec.c (exec_file_attach): Update.
5876 * linux-thread-db.c (try_thread_db_load): Update.
5877 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
5878 * utils.c (gdb_realpath): Change return type.
5879 (gdb_realpath_keepfile): Update.
5880 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
5881 (_initialize_utils): Register the new self test.
5882 * source.c (openp): Update.
5883 (find_and_open_source): Update.
5884 * nto-tdep.c (nto_find_and_open_solib): Update.
5885 * main.c (set_gdb_data_directory): Update.
5886 (captured_main_1): Update.
5887 * dwarf2read.c (dwarf2_get_dwz_file): Update
5888 (dw2_map_symbol_filenames): Update.
5889 * auto-load.c (auto_load_safe_path_vec_update): Update.
5890 (filename_is_in_auto_load_safe_path_vec): Change type of
5891 "filename_realp".
5892 (auto_load_objfile_script): Update.
5893 (file_is_auto_load_safe): Update. Use std::string.
5894 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
5895
5896 2017-08-22 Tom Tromey <tom@tromey.com>
5897
5898 * utils.c (gdb_realpath_keepfile): Return a
5899 gdb::unique_xmalloc_ptr.
5900 * exec.c (exec_file_attach): Update.
5901 * utils.h (gdb_realpath_keepfile): Return a
5902 gdb::unique_xmalloc_ptr.
5903
5904 2017-08-22 Tom Tromey <tom@tromey.com>
5905
5906 * compile/compile.c (compile_file_command): Use
5907 gdb::unique_xmalloc_ptr, std::string.
5908 * utils.c (gdb_abspath): Change return type.
5909 * source.c (openp): Update.
5910 * objfiles.c (allocate_objfile): Update.
5911 * main.c (set_gdb_data_directory): Update.
5912 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
5913
5914 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
5915
5916 * cli-cmds.c (list_commands): List actual code around more than
5917 one location.
5918
5919 2017-08-21 John Baldwin <jhb@FreeBSD.org>
5920
5921 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
5922
5923 2017-08-21 Pedro Alves <palves@redhat.com>
5924
5925 PR gdb/19487
5926 * c-exp.y (variable production): Handle function aliases.
5927 * minsyms.c (msymbol_is_text): New function.
5928 * minsyms.h (msymbol_is_text): Declare.
5929 * symtab.c (find_function_alias_target): New function.
5930 * symtab.h (find_function_alias_target): Declare.
5931
5932 2017-08-21 Pedro Alves <palves@redhat.com>
5933
5934 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
5935 typedefs.
5936 * typeprint.c (whatis_exp): If handling "whatis", and expression
5937 is OP_TYPE, strip one typedef level. Otherwise don't strip
5938 typedefs here.
5939 * valops.c (value_cast): Save "to" type before resolving
5940 stubs/typedefs. Use that type as resulting value's type.
5941
5942 2017-08-18 Tom Tromey <tom@tromey.com>
5943 Pedro Alves <palves@redhat.com>
5944
5945 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
5946 * sol-thread.c (sol_thread_resume, sol_thread_wait)
5947 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
5948 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
5949 * proc-service.c (ps_xfer_memory): Use scoped_restore.
5950 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
5951 (linux_get_siginfo_data): Add "thread" argument. Use
5952 scoped_restore.
5953 * linux-nat.c (linux_child_follow_fork)
5954 (check_stopped_by_watchpoint): Use scoped_restore.
5955 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
5956 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
5957 (restore_inferior_ptid, save_inferior_ptid): Remove.
5958 * btrace.c (btrace_fetch): Use scoped_restore.
5959 * bsd-uthread.c (bsd_uthread_fetch_registers)
5960 (bsd_uthread_store_registers): Use scoped_restore.
5961 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5962 scoped_restore.
5963 * aix-thread.c (aix_thread_resume, aix_thread_wait)
5964 (aix_thread_xfer_partial): Use scoped_restore.
5965 * inferior.h (save_inferior_ptid): Remove.
5966
5967 2017-08-18 Yao Qi <yao.qi@linaro.org>
5968
5969 PR tdep/21818
5970 * arm-tdep.c (gdb_print_insn_arm): Mark
5971 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
5972
5973 2017-08-18 Yao Qi <yao.qi@linaro.org>
5974
5975 * NEWS: Mention GDBserver's new option "--selftest".
5976 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
5977 * selftest.c: Move it to common/selftest.c.
5978 * selftest.h: Move it to common/selftest.h.
5979 * selftest-arch.c (reset): New function.
5980 (tests_with_arch): Call reset.
5981
5982 2017-08-18 Yao Qi <yao.qi@linaro.org>
5983
5984 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
5985 instead of exception_fprintf and printf_filtered.
5986
5987 2017-08-18 Yao Qi <yao.qi@linaro.org>
5988
5989 * selftest.c (register_self_test): Rename it to
5990 selftests::register_test.
5991 (run_self_tests): selftest::run_tests.
5992 * selftest.h: Update declarations.
5993 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
5994 selftests::register_test_foreach_arch.
5995 * selftest-arch.h: Update declaration.
5996 * aarch64-tdep.c: Update.
5997 * arm-tdep.c: Likewise.
5998 * disasm-selftests.c: Likewise.
5999 * dwarf2loc.c: Likewise.
6000 * dwarf2-frame.c: Likewise.
6001 * findvar.c: Likewise.
6002 * gdbarch-selftests.c: Likewise.
6003 * maint.c (maintenance_selftest): Likewise.
6004 * regcache.c: Likewise.
6005 * rust-exp.y: Likewise.
6006 * selftest-arch.c: Likewise.
6007 * unittests/environ-selftests.c: Likewise.
6008 * unittests/function-view-selftests.c: Likewise.
6009 * unittests/offset-type-selftests.c: Likewise.
6010 * unittests/optional-selftests.c: Likewise.
6011 * unittests/scoped_restore-selftests.c: Likewise.
6012 * utils-selftests.c: Likewise.
6013
6014 2017-08-17 Pedro Alves <palves@redhat.com>
6015
6016 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
6017 local.
6018
6019 2017-08-17 Pedro Alves <palves@redhat.com>
6020
6021 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
6022 field.
6023 (reset_die_in_process): Delete, replaced by ...
6024 (process_die_scope): ... this new class. Make it responsible for
6025 freeing cu->line_header too.
6026 (process_die): Use process_die_scope.
6027 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
6028 cu->line_header_die_owner. Don't release the line header if it's
6029 owned by the CU.
6030 (setup_type_unit_groups): Make the CU/DIE own the line header.
6031 Don't release the line header here.
6032
6033 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
6034
6035 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
6036
6037 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
6038
6039 * NEWS: Mention new shortcuts for nexti and stepi in TUI
6040 Single-Key mode
6041
6042 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
6043
6044 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
6045 mode command list.
6046
6047 2017-08-15 Stafford Horne <shorne@gmail.com>
6048
6049 * MAINTAINERS (Write After Approval): Add Stafford Horne.
6050
6051 2017-08-15 Stafford Horne <shorne@gmail.com>
6052
6053 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
6054
6055 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
6056
6057 PR gdb/21954
6058 * infcmd.c (unset_environment_command): Use the 'clear' method on
6059 the environment instead of resetting it.
6060
6061 2017-08-15 John Baldwin <jhb@FreeBSD.org>
6062
6063 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
6064 platforms.
6065
6066 2017-08-14 Tom Tromey <tom@tromey.com>
6067
6068 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
6069 (print_binary_chars): Likewise.
6070 (BITS_IN_BYTES): Remove.
6071
6072 2017-08-14 Tom Tromey <tom@tromey.com>
6073
6074 PR gdb/21675
6075 * valprint.c (LOW_ZERO): Change value to 034.
6076 (print_octal_chars): Add static_asserts for octal constants.
6077 * printcmd.c (print_scalar_formatted): Add 'd' case.
6078
6079 2017-08-11 Tom Tromey <tom@tromey.com>
6080
6081 * symfile.c (add_symbol_file_command): Use std::vector.
6082
6083 2017-08-14 Tom Tromey <tom@tromey.com>
6084
6085 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
6086 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
6087 std::move.
6088 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
6089
6090 2017-08-11 Pedro Alves <palves@redhat.com>
6091
6092 * infrun.c (process_event_stop_test): Adjust
6093 function_name_is_marked_for_skip call.
6094 * skip.c: Include <list>.
6095 (skiplist_entry): Make it a class with private fields, and
6096 getters/setters.
6097 (skiplist_entry_chain): Delete.
6098 (skiplist_entries): New.
6099 (skiplist_entry_count): Delete.
6100 (highest_skiplist_entry_num): New.
6101 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
6102 (add_skiplist_entry): Delete.
6103 (skiplist_entry::skiplist_entry): New.
6104 (skiplist_entry::add_entry): New.
6105 (skip_file_command, skip_function): Adjust.
6106 (compile_skip_regexp): Delete.
6107 (skip_command): Don't compile regexp here. Adjust to use
6108 skiplist_entry::add_entry.
6109 (skip_info): Adjust to use range-for and getters.
6110 (skip_enable_command, skip_disable_command): Adjust to use
6111 range-for and setters.
6112 (skip_delete_command): Adjust to use std::list.
6113 (add_skiplist_entry): Delete.
6114 (skip_file_p): Delete, refactored as ...
6115 (skiplist_entry::do_skip_file_p): ... this new method.
6116 (skip_gfile_p): Delete, refactored as ...
6117 (skiplist_entry::do_gskip_file_p): ... this new method.
6118 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
6119 (skiplist_entry::skip_function_p): ... this new method.
6120 (function_name_is_marked_for_skip): Now returns bool, and takes
6121 the function sal by const reference. Adjust to use range-for and
6122 skiplist_entry methods.
6123 (_initialize_step_skip): Remove references to
6124 skiplist_entry_chain, skiplist_entry_count.
6125 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
6126 takes the function sal by const reference.
6127
6128 2017-08-11 Yao Qi <yao.qi@linaro.org>
6129
6130 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
6131 (dwarf2_frame_cache): Remove reset_cache_cleanup.
6132 (dwarf2_frame_cache):
6133 * frame-unwind.c (frame_unwind_try_unwinder): Catch
6134 RETURN_MASK_ALL and set *this_case to NULL.
6135 * frame-unwind.h: Update comments.
6136
6137 2017-08-11 Yao Qi <yao.qi@linaro.org>
6138
6139 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
6140 (dwarf2_frame_state_copy_regs): Remove.
6141 (dwarf2_frame_state_free_regs): Remove.
6142 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
6143 (dwarf2_restore_rule): Call method .alloc_regs instead of
6144 dwarf2_frame_state_alloc_regs.
6145 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
6146 constructor. Call std::move.
6147 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
6148 (dwarf2_frame_cache): Likewise.
6149
6150 [GDB_SELF_TEST]: Include selftest.h and
6151 selftest-arch.h.
6152 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
6153 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
6154 execute_cfa_program_test.
6155
6156 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
6157 copy ctor, assignment operator, move assignment.
6158 <alloc_regs>: New method.
6159 <swap>: New method.
6160 (struct dwarf2_frame_state): Delete dtor.
6161 (dwarf2_frame_state_alloc_regs): Remove declaration.
6162 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
6163 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
6164
6165 2017-08-11 Yao Qi <yao.qi@linaro.org>
6166
6167 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
6168 (dwarf2_frame_state::dwarf2_frame_state): New.
6169 (dwarf2_frame_state::~dwarf2_frame_state): New.
6170 (dwarf2_fetch_cfa_info): Update.
6171 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
6172 rather than a pointer. Update code.
6173 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
6174 dtor.
6175 <data_align, code_align, retaddr_column>: Change them to const.
6176 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
6177 to bool.
6178
6179 2017-08-11 Yao Qi <yao.qi@linaro.org>
6180
6181 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
6182 <loc.exp>: New field.
6183 * dwarf2-frame.c (execute_cfa_program): Update.
6184 (dwarf2_frame_prev_register): Update.
6185
6186 2017-08-10 Pedro Alves <palves@redhat.com>
6187
6188 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
6189
6190 2017-08-09 John Baldwin <jhb@FreeBSD.org>
6191
6192 * fbsd-nat.c (struct fbsd_fork_info): Remove.
6193 (fbsd_pending_children): Use std::list.
6194 (fbsd_remember_child): Likewise.
6195 (fbsd_is_child_pending): Likewise.
6196 (fbsd_pending_vfork_done): Use std::forward_list.
6197 (fbsd_add_vfork_done): Likewise.
6198 (fbsd_is_vfork_done_pending): Likewise.
6199 (fbsd_next_vfork_done): Likewise.
6200
6201 2017-08-09 John Baldwin <jhb@FreeBSD.org>
6202
6203 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
6204 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
6205 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
6206 for `mapfilename'.
6207 (fbsd_xfer_partial): Use gdb::byte_vector.
6208 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
6209
6210 2017-08-09 John Baldwin <jhb@FreeBSD.org>
6211
6212 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
6213 "filestuff.h".
6214 (fbsd_find_memory_regions): Fix `mapfile' initialization.
6215
6216 2017-08-09 Tom Tromey <tom@tromey.com>
6217
6218 * skip.c (skiplist_entry): New constructor.
6219 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
6220 (skiplist_entry::file_is_glob): Now bool.
6221 (skiplist_entry::file, skiplist_entry::function): Now
6222 std::string.
6223 (make_skip_entry): Return a unique_ptr. Use new.
6224 (free_skiplist_entry, free_skiplist_entry_cleanup)
6225 (make_free_skiplist_entry_cleanup): Remove.
6226 (skip_command, skip_disable_command, add_skiplist_entry)
6227 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
6228 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
6229 (function_name_is_marked_for_skip): Update.
6230 (skip_delete_command): Update. Use delete.
6231
6232 2017-08-09 Jiong Wang <jiong.wang@arm.com>
6233
6234 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
6235 (aarch64_linux_core_read_description): New function.
6236 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
6237
6238 2017-08-09 Pedro Alves <palves@redhat.com>
6239
6240 * cp-name-parser.y (cp_comp_to_string): Return a
6241 gdb::unique_xmalloc_ptr<char>.
6242 * cp-support.c (replace_typedefs_qualified_name)
6243 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
6244 (cp_canonicalize_string_full): Use op= instead of explicit
6245 convertion.
6246 (cp_class_name_from_physname, method_name_from_physname)
6247 (cp_func_name, cp_remove_params): Adjust to use
6248 gdb::unique_xmalloc_ptr<char>.
6249 * cp-support.h (cp_comp_to_string): Return a
6250 gdb::unique_xmalloc_ptr<char>.
6251 * python/py-type.c (typy_lookup_type): Adjust to use
6252 gdb::unique_xmalloc_ptr<char>.
6253
6254 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
6255
6256 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
6257
6258 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
6259 Yao Qi <yao.qi@linaro.org>
6260
6261 * cp-support.c (cp_canonicalize_string_full): Use
6262 gdb::unique_xmalloc_ptr<char>.
6263 (cp_canonicalize_string): Likewise.
6264
6265 2017-08-09 Yao Qi <yao.qi@linaro.org>
6266
6267 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
6268 * regformats/i386/amd64-avx-avx512.dat: Remove.
6269 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
6270 * regformats/i386/amd64-avx-mpx.dat:Remove.
6271 * regformats/i386/amd64-avx.dat: Remove.
6272 * regformats/i386/amd64-mpx.dat: Remove.
6273 * regformats/i386/i386-avx-avx512.dat: Remove.
6274 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
6275 * regformats/i386/i386-avx-mpx.dat: Remove.
6276 * regformats/i386/i386-mmx.dat: Remove.
6277 * regformats/i386/i386-mpx.dat: Remove.
6278
6279 2017-08-09 Yao Qi <yao.qi@linaro.org>
6280
6281 * amd64-tdep.h (tdesc_x32): Remove the declaration.
6282 * amd64-tdep.c: Don't include features/i386/x32*.c.
6283 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
6284 functions.
6285 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
6286 and i386/x32-avx-avx512.
6287 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
6288 and i386/x32.xml.
6289 * features/i386/x32-avx-avx512.c: Removed.
6290 * features/i386/x32-avx-avx512.xml: Removed.
6291 * features/i386/x32-avx.c: Removed.
6292 * features/i386/x32-avx.xml: Removed.
6293 * features/i386/x32.c: Removed.
6294 * features/i386/x32.xml: Removed.
6295 * regformats/i386/x32-avx-avx512.dat: Removed.
6296 * regformats/i386/x32-avx.dat: Removed.
6297 * regformats/i386/x32.dat: Removed.
6298
6299 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6300
6301 PR breakpoints/21886
6302 * mem-break.c (default_memory_insert_breakpoint): Use
6303 `->placed_address' rather than `->reqstd_address' for the
6304 breakpoint location.
6305
6306 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6307
6308 * arch-utils.c (default_print_insn): Remove arch/mach/endian
6309 assertions.
6310
6311 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6312
6313 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
6314 a union of `tdep_info', `tdesc_data' and `id'.
6315 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
6316 rather than `info.tdep_info'.
6317 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
6318 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6319 * i386-tdep.c (i386_gdbarch_init): Likewise.
6320 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
6321 * mips-tdep.c (mips_gdbarch_init): Likewise.
6322 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6323 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6324 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
6325 `info.tdep_info'.
6326 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
6327 `info.tdep_info'.
6328 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6329 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
6330 `info.tdep_info'.
6331 * spu-tdep.c (spu_gdbarch_init): Likewise.
6332 * gdbarch.h: Regenerate.
6333
6334 2017-08-07 Leszek Swirski <leszeks@google.com>
6335
6336 PR symtab/20899
6337 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
6338
6339 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
6340
6341 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
6342 (gdbsim_open): Rename gdb_argv args object to argv.
6343
6344 2017-08-05 Tom Tromey <tom@tromey.com>
6345
6346 * compile/compile-object-load.c (compile_object_load): Use
6347 gdb::unique_xmalloc_ptr.
6348 * cli/cli-dump.c (scan_filename): Rename from
6349 scan_filename_with_cleanup. Change return type.
6350 (scan_expression): Rename from scan_expression_with_cleanup.
6351 Change return type.
6352 (dump_memory_to_file, dump_value_to_file, restore_command):
6353 Use gdb::unique_xmalloc_ptr. Update.
6354 * cli/cli-cmds.c (find_and_open_script): Use
6355 gdb::unique_xmalloc_ptr.
6356 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
6357 * symmisc.c (maintenance_print_symbols)
6358 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
6359 * symfile.c (symfile_bfd_open, generic_load)
6360 (add_symbol_file_command, remove_symbol_file_command): Use
6361 gdb::unique_xmalloc_ptr.
6362 * source.c (openp): Use gdb::unique_xmalloc_ptr.
6363 * psymtab.c (maintenance_print_psymbols): Use
6364 gdb::unique_xmalloc_ptr.
6365 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
6366 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
6367 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
6368 (reload_shared_libraries_1): Likewise.
6369
6370 2017-08-05 Tom Tromey <tom@tromey.com>
6371
6372 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
6373 (rust_op_vector, rust_set_vector): New typedefs.
6374 (current_parser): New global.
6375 (work_obstack): Change to pointer type. Update all users.
6376 (rust_ast, pstate): Remove globals.
6377 (struct rust_parser): New.
6378 (%union) <params, field_inits>: Change type.
6379 (start, tuple_expr, unit_expr, struct_expr_list, literal)
6380 (field_expr, expr_list, maybe_expr_list, type_list): Update.
6381 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
6382 (convert_params_to_types, convert_params_to_expression): Change
6383 type of "params".
6384 (ast_string): Change type of "fields".
6385 (rust_parse): Make a rust_parser. Remove cleanups.
6386 (rust_lex_tests): Make and install an auto_obstack.
6387
6388 2017-08-04 Yao Qi <yao.qi@linaro.org>
6389
6390 * configure.srv (ipa_x32_linux_regobj): New.
6391 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
6392 instead of X86_TDESC_AVX512.
6393 (initialize_low_tracepoint): Call
6394 init_registers_x32_avx_avx512_linux.
6395
6396 2017-08-04 Yao Qi <yao.qi@linaro.org>
6397
6398 * utils.h (gdb_argv): Add namespace std for nullptr_t.
6399
6400 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
6401
6402 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
6403
6404 2017-08-03 Tom Tromey <tom@tromey.com>
6405
6406 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
6407 Remove.
6408 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
6409
6410 2017-08-03 Tom Tromey <tom@tromey.com>
6411
6412 * python/py-param.c (compute_enum_values): Use gdb_argv.
6413
6414 2017-08-03 Tom Tromey <tom@tromey.com>
6415
6416 * utils.h (struct gdb_argv_deleter): New.
6417 (gdb_argv): New class.
6418 * utils.c (gdb_argv::reset): New method.
6419 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
6420 * tracefile.c (tsave_command): Use gdb_argv.
6421 * top.c (new_ui_command): Use gdb_argv.
6422 * symmisc.c (maintenance_print_symbols)
6423 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
6424 * symfile.c (symbol_file_command, generic_load)
6425 (remove_symbol_file_command): Use gdb_argv.
6426 * stack.c (backtrace_command): Use gdb_argv.
6427 * source.c (add_path, show_substitute_path_command)
6428 (unset_substitute_path_command, set_substitute_path_command):
6429 Use gdb_argv.
6430 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
6431 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
6432 * remote.c (extended_remote_run, remote_put_command)
6433 (remote_get_command, remote_delete_command): Use gdb_argv.
6434 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
6435 (gdbsim_open): Use gdb_argv.
6436 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
6437 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
6438 * procfs.c (procfs_info_proc): Use gdb_argv.
6439 * interps.c (interpreter_exec_cmd): Use gdb_argv.
6440 * infrun.c (handle_command): Use gdb_argv.
6441 * inferior.c (add_inferior_command, clone_inferior_command):
6442 Use gdb_argv.
6443 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
6444 * exec.c (exec_file_command): Use gdb_argv.
6445 * cli/cli-cmds.c (alias_command): Use gdb_argv.
6446 * compile/compile.c (build_argc_argv): Use gdb_argv.
6447
6448 2017-08-03 Tom Tromey <tom@tromey.com>
6449
6450 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
6451
6452 2017-08-03 Tom Tromey <tom@tromey.com>
6453
6454 * python/python.c (compute_python_string): Return std::string.
6455 (gdbpy_eval_from_control_command): Update.
6456 (do_start_initialization): Use std::string.
6457 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
6458 xstrprintf.
6459 * python/py-breakpoint.c (local_setattro): Use string_printf, not
6460 xstrprintf.
6461
6462 2017-08-03 Tom Tromey <tom@tromey.com>
6463
6464 * top.h (do_restore_instream_cleanup): Remove.
6465 * top.c (do_restore_instream_cleanup): Remove.
6466 (read_command_file): Use scoped_restore.
6467 * cli/cli-script.c (execute_user_command): Use scoped_restore.
6468
6469 2017-08-03 Tom Tromey <tom@tromey.com>
6470
6471 * cli/cli-script.c (execute_user_command)
6472 (execute_control_command): Use scoped_restore.
6473
6474 2017-08-03 Tom Tromey <tom@tromey.com>
6475
6476 * cli/cli-script.c (do_restore_user_call_depth): Remove.
6477 (execute_user_command): Remove user_call_depth; use
6478 user_args_stack's size instead.
6479
6480 2017-08-03 Tom Tromey <tom@tromey.com>
6481
6482 * top.h (in_user_command): Remove.
6483 * top.c (in_user_command): Remove.
6484 * cli/cli-script.c (do_restore_user_call_depth)
6485 (execute_user_command): Update.
6486
6487 2017-08-03 Tom Tromey <tom@tromey.com>
6488
6489 * valops.c (search_struct_method): Use gdb::byte_vector.
6490 * valarith.c (value_concat): Use std::vector.
6491 * target.c (memory_xfer_partial): Use gdb::byte_vector.
6492 (simple_search_memory): Likewise.
6493 * printcmd.c (find_string_backward): Use gdb::byte_vector.
6494 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
6495 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
6496 * elfread.c (elf_rel_plt_read): Use std::string.
6497 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
6498 * cli/cli-dump.c (restore_section_callback): Use
6499 gdb::byte_vector.
6500
6501 2017-08-03 Tom Tromey <tom@tromey.com>
6502
6503 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
6504
6505 2017-08-03 Tom Tromey <tom@tromey.com>
6506
6507 * tui/tui-regs.c (tui_restore_gdbout): Remove.
6508 (tui_register_format): Use scoped_restore.
6509
6510 2017-08-03 Tom Tromey <tom@tromey.com>
6511
6512 * reverse.c (exec_direction_default): Remove.
6513 (exec_reverse_once): Use scoped_restore.
6514 * remote.c (restore_remote_timeout): Remove.
6515 (remote_flash_erase, remote_flash_write, remote_flash_done)
6516 (readchar, remote_serial_write): Use scoped_restore.
6517 * cli/cli-script.c (struct source_cleanup_lines_args)
6518 (source_cleanup_lines): Remove.
6519 (script_from_file): Use scoped_restore.
6520 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
6521 (source_command): Use scoped_restore.
6522
6523 2017-08-03 Tom Tromey <tom@tromey.com>
6524
6525 * utils.h (make_cleanup_free_so): Remove.
6526 * utils.c (do_free_so, make_cleanup_free_so): Remove.
6527 * solist.h (struct so_deleter): New.
6528 (so_list_up): New typedef.
6529 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
6530
6531 2017-08-03 Tom Tromey <tom@tromey.com>
6532
6533 * utils.h (make_cleanup_restore_current_language): Remove.
6534 * utils.c (do_restore_current_language)
6535 (make_cleanup_restore_current_language): Remove.
6536 * parse.c (parse_exp_in_context_1)
6537 (parse_expression_with_language): Use
6538 scoped_restore_current_language.
6539 * mi/mi-main.c (mi_cmd_execute): Use
6540 scoped_restore_current_language.
6541 * language.h (scoped_restore_current_language): New class.
6542
6543 2017-08-03 Tom Tromey <tom@tromey.com>
6544
6545 * compile/compile.c (cleanup_unlink_file): Remove.
6546 (compile_to_object): Use gdb::unlinker.
6547 (eval_compile_command): Likewise.
6548
6549 2017-08-03 Tom Tromey <tom@tromey.com>
6550
6551 * utils.h (make_cleanup_fclose): Remove.
6552 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6553
6554 2017-08-03 Tom Tromey <tom@tromey.com>
6555
6556 * top.c (open_terminal_stream): Return gdb_file_up.
6557 (new_ui_command): Update.
6558
6559 2017-08-03 Tom Tromey <tom@tromey.com>
6560
6561 * source.c (print_source_lines_base, forward_search_command)
6562 (reverse_search_command): Use gdb_file_up.
6563
6564 2017-08-03 Tom Tromey <tom@tromey.com>
6565
6566 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6567
6568 2017-08-03 Tom Tromey <tom@tromey.com>
6569
6570 * cli/cli-cmds.c (find_and_open_script): Change return type.
6571 Remove "streamp" and "full_path" parameters.
6572 (source_script_with_search): Update.
6573 * auto-load.c (source_script_file): Update.
6574 * cli/cli-cmds.h (find_and_open_script): Change type.
6575 (open_script): New struct.
6576
6577 2017-08-03 Tom Tromey <tom@tromey.com>
6578
6579 * xml-support.c (xml_fetch_content_from_file): Update.
6580 * ui-file.c (stdio_file::open): Update.
6581 * tracefile-tfile.c (tfile_start): Update.
6582 * remote.c (remote_file_put, remote_file_get): Update.
6583 * nat/linux-procfs.c (linux_proc_get_int)
6584 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6585 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6586 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6587 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6588 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6589 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6590 * linux-nat.c (linux_proc_pending_signals): Update.
6591 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6592 (file_closer): Remove.
6593 * compile/compile.c (compile_to_object): Update.
6594 * common/filestuff.h (struct gdb_file_deleter): New.
6595 (gdb_file_up): New typedef.
6596 (gdb_fopen_cloexec): Change return type.
6597 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6598 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6599 (dump_binary_file, restore_binary_file): Update.
6600 * auto-load.c (auto_load_objfile_script_1): Update.
6601
6602 2017-08-03 Tom Tromey <tom@tromey.com>
6603
6604 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6605 (info_static_tracepoint_markers_command): Likewise.
6606 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6607 * skip.c (skip_info): Use ui_out_emit_table.
6608 * progspace.c (print_program_space): Use ui_out_emit_table.
6609 * osdata.c (info_osdata): Use ui_out_emit_table.
6610 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6611 ui_out_emit_table.
6612 * linux-thread-db.c (info_auto_load_libthread_db): Use
6613 ui_out_emit_table.
6614 * inferior.c (print_inferior): Use ui_out_emit_table.
6615 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6616 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6617 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6618 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6619 * ui-out.h (class ui_out_emit_table): New.
6620
6621 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6622
6623 * mips-tdep.c (mips_fpu_type_str): New function.
6624 (mips_dump_tdep): Call it.
6625
6626 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6627
6628 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6629 `->mips_fpu_type'.
6630
6631 2017-07-31 Xavier Roirand <roirand@adacore.com>
6632
6633 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6634
6635 2017-07-27 Xavier Roirand <roirand@adacore.com>
6636
6637 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6638
6639 2017-07-26 Yao Qi <yao.qi@linaro.org>
6640
6641 * cli/cli-cmds.c (maintenancechecklist): New variable.
6642 * gdbcmd.h (maintenancechecklist): Declare it.
6643 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6644 Call i386_linux_read_description with different masks.
6645 * maint.c (maintenance_check_command): New function.
6646 (_initialize_maint_cmds): Call add_prefix_cmd.
6647 * target-descriptions.c (tdesc_reg): override operator != and ==.
6648 (tdesc_type): Likewise.
6649 (tdesc_feature): Likewise.
6650 (target_desc): Likewise.
6651 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6652 (maintenance_check_xml_descriptions): New function.
6653 (_initialize_target_descriptions) Add command "xml-descriptions".
6654 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6655
6656 2017-07-26 Yao Qi <yao.qi@linaro.org>
6657
6658 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6659 Include features/i386/32bit-*.c.
6660 (i386_linux_read_description): Generate target description if it
6661 doesn't exist.
6662 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6663 functions.
6664 * features/i386/32bit-linux.c: Re-generated.
6665 * features/i386/32bit-sse.c: Likewise.
6666 * target-descriptions.c (print_c_feature::visit): Print code to
6667 set register number if needed.
6668 (print_c_feature) <m_next_regnum>: New field.
6669
6670 2017-07-26 Yao Qi <yao.qi@linaro.org>
6671
6672 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6673 (FEATURE_XMLFILES): New.
6674 (FEATURE_CFILES): New.
6675 New rules.
6676 (clean-cfiles): Remove generated c files.
6677 * features/i386/32bit-avx.c: Generated.
6678 * features/i386/32bit-avx512.c: Generated.
6679 * features/i386/32bit-core.c: Generated.
6680 * features/i386/32bit-linux.c: Generated.
6681 * features/i386/32bit-mpx.c: Generated.
6682 * features/i386/32bit-pkeys.c: Generated.
6683 * features/i386/32bit-sse.c: Generated.
6684 * target-descriptions.c: Include algorithm.
6685 (tdesc_element_visitor): Add method visit_end.
6686 (print_c_tdesc): Implement visit_end.
6687 (print_c_tdesc:: m_filename_after_features): Move it to
6688 protected.
6689 (print_c_feature): New class.
6690 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6691 name starts with "i386/32bit-".
6692
6693 2017-07-26 Yao Qi <yao.qi@linaro.org>
6694
6695 * target-descriptions.c (tdesc_element_visitor): New class.
6696 (tdesc_element): New class.
6697 (tdesc_reg): Inherit from tdesc_element.
6698 (tdesc_reg::accept): New function.
6699 (tdesc_type): Inherit from tdesc_element.
6700 (tdesc_type::accept): New function.
6701 (tdesc_feature): Inherit from tdesc_element.
6702 (tdesc_feature::accept): New function.
6703 (target_desc): Inherit from tdesc_element.
6704 (target_desc::target_desc): New.
6705 (target_desc::~target_desc): New.
6706 (target_desc::accept): New.
6707 (allocate_target_description): Use new.
6708 (free_target_description): Use delete.
6709 (print_c_tdesc): New class.
6710 (maint_print_c_tdesc_cmd): Adjust.
6711
6712 * features/aarch64.c: Re-generated.
6713 * features/arc-arcompact.c: Re-generated.
6714 * features/arc-v2.c: Re-generated.
6715 * features/arm/arm-with-iwmmxt.c: Re-generated.
6716 * features/arm/arm-with-m.c: Re-generated.
6717 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6718 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6719 * features/arm/arm-with-neon.c: Re-generated.
6720 * features/arm/arm-with-vfpv2.c: Re-generated.
6721 * features/arm/arm-with-vfpv3.c: Re-generated.
6722 * features/i386/amd64-avx-avx512.c: Re-generated.
6723 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6724 * features/i386/amd64-avx.c: Re-generated.
6725 * features/i386/amd64-avx-linux.c: Re-generated.
6726 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6727 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6728 * features/i386/amd64-avx-mpx.c: Re-generated.
6729 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6730 * features/i386/amd64.c: Re-generated.
6731 * features/i386/amd64-linux.c: Re-generated.
6732 * features/i386/amd64-mpx.c: Re-generated.
6733 * features/i386/amd64-mpx-linux.c: Re-generated.
6734 * features/i386/i386-avx-avx512.c: Re-generated.
6735 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6736 * features/i386/i386-avx.c: Re-generated.
6737 * features/i386/i386-avx-linux.c: Re-generated.
6738 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6739 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6740 * features/i386/i386-avx-mpx.c: Re-generated.
6741 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6742 * features/i386/i386.c: Re-generated.
6743 * features/i386/i386-linux.c: Re-generated.
6744 * features/i386/i386-mmx.c: Re-generated.
6745 * features/i386/i386-mmx-linux.c: Re-generated.
6746 * features/i386/i386-mpx.c: Re-generated.
6747 * features/i386/i386-mpx-linux.c: Re-generated.
6748 * features/i386/x32-avx-avx512.c: Re-generated.
6749 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6750 * features/i386/x32-avx.c: Re-generated.
6751 * features/i386/x32-avx-linux.c: Re-generated.
6752 * features/i386/x32.c: Re-generated.
6753 * features/i386/x32-linux.c: Re-generated.
6754 * features/microblaze.c: Re-generated.
6755 * features/microblaze-with-stack-protect.c: Re-generated.
6756 * features/mips64-dsp-linux.c: Re-generated.
6757 * features/mips64-linux.c: Re-generated.
6758 * features/mips-dsp-linux.c: Re-generated.
6759 * features/mips-linux.c: Re-generated.
6760 * features/nds32.c: Re-generated.
6761 * features/nios2.c: Re-generated.
6762 * features/nios2-linux.c: Re-generated.
6763 * features/rs6000/powerpc-32.c: Re-generated.
6764 * features/rs6000/powerpc-32l.c: Re-generated.
6765 * features/rs6000/powerpc-403.c: Re-generated.
6766 * features/rs6000/powerpc-403gc.c : Re-generated.
6767 * features/rs6000/powerpc-405.c: Re-generated.
6768 * features/rs6000/powerpc-505.c: Re-generated.
6769 * features/rs6000/powerpc-601.c: Re-generated.
6770 * features/rs6000/powerpc-602.c: Re-generated.
6771 * features/rs6000/powerpc-603.c: Re-generated.
6772 * features/rs6000/powerpc-604.c: Re-generated.
6773 * features/rs6000/powerpc-64.c: Re-generated.
6774 * features/rs6000/powerpc-64l.c: Re-generated.
6775 * features/rs6000/powerpc-7400.c: Re-generated.
6776 * features/rs6000/powerpc-750.c: Re-generated.
6777 * features/rs6000/powerpc-860.c: Re-generated.
6778 * features/rs6000/powerpc-altivec32.c: Re-generated.
6779 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6780 * features/rs6000/powerpc-altivec64.c: Re-generated.
6781 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6782 * features/rs6000/powerpc-cell32l.c: Re-generated.
6783 * features/rs6000/powerpc-cell64l.c: Re-generated.
6784 * features/rs6000/powerpc-e500.c: Re-generated.
6785 * features/rs6000/powerpc-e500l.c: Re-generated.
6786 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6787 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6788 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6789 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6790 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6791 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6792 * features/rs6000/powerpc-vsx32.c: Re-generated.
6793 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6794 * features/rs6000/powerpc-vsx64.c: Re-generated.
6795 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6796 * features/rs6000/rs6000.c: Re-generated.
6797 * features/s390-linux32.c: Re-generated.
6798 * features/s390-linux32v1.c: Re-generated.
6799 * features/s390-linux32v2.c: Re-generated.
6800 * features/s390-linux64.c: Re-generated.
6801 * features/s390-linux64v1.c: Re-generated.
6802 * features/s390-linux64v2.c: Re-generated.
6803 * features/s390-te-linux64.c: Re-generated.
6804 * features/s390-tevx-linux64.c: Re-generated.
6805 * features/s390-vx-linux64.c: Re-generated.
6806 * features/s390x-linux64.c: Re-generated.
6807 * features/s390x-linux64v1.c: Re-generated.
6808 * features/s390x-linux64v2.c: Re-generated.
6809 * features/s390x-te-linux64.c: Re-generated.
6810 * features/s390x-tevx-linux64.c: Re-generated.
6811 * features/s390x-vx-linux64.c: Re-generated.
6812 * features/sparc/sparc32-solaris.c: Re-generated.
6813 * features/sparc/sparc64-solaris.c: Re-generated.
6814 * features/tic6x-c62x.c: Re-generated.
6815 * features/tic6x-c62x-linux.c: Re-generated.
6816 * features/tic6x-c64x.c: Re-generated.
6817 * features/tic6x-c64x-linux.c: Re-generated.
6818 * features/tic6x-c64xp.c: Re-generated.
6819 * features/tic6x-c64xp-linux.c: Re-generated.
6820
6821 2017-07-26 Yao Qi <yao.qi@linaro.org>
6822
6823 * i386-linux-tdep.c (i386_linux_read_description): New function.
6824 (i386_linux_core_read_description): Call
6825 i386_linux_read_description.
6826 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6827 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6828 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6829 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6830 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6831 * x86-linux-nat.c (x86_linux_read_description): Call
6832 i386_linux_read_description.
6833
6834 2017-07-26 Yao Qi <yao.qi@linaro.org>
6835
6836 * NEWS: Mention it.
6837 * features/Makefile (%.c: %.xml): Pass the xml file name to
6838 command "maint print c-tdesc".
6839 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6840 name from 'arg'.
6841
6842 2017-07-26 Yao Qi <yao.qi@linaro.org>
6843
6844 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6845 in-class initialization.
6846 (tdesc_create_feature): Call new instead of XCNEW.
6847 (free_target_description): Ue delete.
6848
6849 2017-07-25 John Baldwin <jhb@FreeBSD.org>
6850
6851 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6852
6853 2017-07-25 Yao Qi <yao.qi@linaro.org>
6854
6855 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
6856 constant.
6857 (amd64_x32_init_abi): Likewise.
6858 * amd64-tdep.h (amd64_init_abi): Update declaration.
6859 (amd64_x32_init_abi): Likewise.
6860
6861 2017-07-25 Yao Qi <yao.qi@linaro.org>
6862
6863 PR tdep/21717
6864 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
6865 condition for FPSCR.
6866 (arm_linux_store_inferior_registers): Likewise.
6867
6868 2017-07-22 Tom Tromey <tom@tromey.com>
6869
6870 * break-catch-syscall.c (struct catch_syscall_inferior_data)
6871 <syscalls_counts>: Now a std::vector.
6872 (get_catch_syscall_inferior_data): Use "new".
6873 (catch_syscall_inferior_data_cleanup): Use "delete".
6874 (insert_catch_syscall, remove_catch_syscall)
6875 (clear_syscall_counts): Update.
6876
6877 2017-07-22 Tom Tromey <tom@tromey.com>
6878
6879 * break-catch-syscall.c (syscall_catchpoint)
6880 <syscalls_to_be_caught>: Now a std::vector<int>
6881 (~syscall_catchpoint): Remove.
6882 (insert_catch_syscall, remove_catch_syscall)
6883 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
6884 (print_mention_catch_syscall, print_recreate_catch_syscall):
6885 Update.
6886 (create_syscall_event_catchpoint): Change type of "filter"
6887 parameter.
6888 (catch_syscall_split_args): Return a std::vector.
6889 (catch_syscall_command_1, catching_syscall_number_1): Update.
6890
6891 2017-07-22 Tom Tromey <tom@tromey.com>
6892
6893 * break-catch-throw.c (struct exception_catchpoint)
6894 <exception_rx>: Now a std::string.
6895 (~exception_catchpoint): Remove.
6896 (print_one_detail_exception_catchpoint): Update.
6897 (handle_gnu_v3_exceptions): Change type of except_rx.
6898 (extract_exception_regexp): Return a std::string.
6899 (catch_exception_command_1): Update.
6900
6901 2017-07-22 Tom Tromey <tom@tromey.com>
6902
6903 * break-catch-sig.c (gdb_signal_type): Remove typedef.
6904 (struct signal_catchpoint) <signals_to_be_caught>: Now a
6905 std::vector.
6906 <catch_all>: Now a bool.
6907 (~signal_catchpoint): Remove.
6908 (signal_catchpoint_insert_location)
6909 (signal_catchpoint_remove_location)
6910 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
6911 (signal_catchpoint_print_mention)
6912 (signal_catchpoint_print_recreate)
6913 (signal_catchpoint_explains_signal): Update.
6914 (create_signal_catchpoint): Change type of "filter" and
6915 "catch_all".
6916 (catch_signal_split_args): Return a std::vector. Change type of
6917 "catch_all".
6918 (catch_signal_command): Update.
6919
6920 2017-07-20 Pedro Alves <palves@redhat.com>
6921
6922 * ada-lang.c (ada_language_defn): Make extern.
6923 (_initialize_ada_language): Remove add_language call.
6924 * c-lang.c (c_language_defn, cplus_language_defn)
6925 (asm_language_defn, minimal_language_defn): Make extern.
6926 (_initialize_c_language): Delete.
6927 * completer.c (compare_cstrings): Delete, moved to utils.h.
6928 * d-lang.c (d_language_defn): Make extern.
6929 (_initialize_d_language): Remove add_language calls.
6930 * defs.h (enum language): Add comment.
6931 * f-lang.c (f_language_defn): Make extern.
6932 (_initialize_f_language): Remove add_language call.
6933 * go-lang.c (go_language_defn): Make extern.
6934 (_initialize_go_language): Remove add_language call.
6935 * language.c: Include <algorithm>.
6936 (languages): Redefine as const array.
6937 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
6938 (set_language_command): Handle "local". Use for-range loop.
6939 (set_language): Remove loop.
6940 (language_enum): Rewrite.
6941 (language_def, language_str): Remove loops.
6942 (add_language): Delete.
6943 (add_set_language_command): New, based on add_languages.
6944 (skip_language_trampoline): Adjust.
6945 (local_language_defn): Delete.
6946 (language_gdbarch_post_init): Adjust.
6947 (_initialize_language): Remove add_language calls. Call
6948 add_set_language_command.
6949 * language.h (add_language): Delete.
6950 (auto_language_defn)
6951 (unknown_language_defn, minimal_language_defn, ada_language_defn)
6952 (asm_language_defn, c_language_defn, cplus_language_defn)
6953 (d_language_defn, f_language_defn, go_language_defn)
6954 (m2_language_defn, objc_language_defn, opencl_language_defn)
6955 (pascal_language_defn, rust_language_defn): Declare.
6956 * m2-lang.c (m2_language_defn): Make extern.
6957 (_initialize_m2_language): Remove add_language call.
6958 * objc-lang.c (objc_language_defn): Make extern.
6959 (_initialize_objc_language): Remove add_language call.
6960 * opencl-lang.c (opencl_language_defn): Make extern.
6961 (_initialize_opencl_language): Remove add_language call.
6962 * p-lang.c (pascal_language_defn): Make extern.
6963 (_initialize_pascal_language): Delete.
6964 * rust-lang.c (rust_language_defn): Make extern.
6965 (_initialize_rust_language): Delete.
6966 * utils.h (compare_cstrings): New static inline function.
6967
6968 2017-07-20 Pedro Alves <palves@redhat.com>
6969
6970 * ada-lang.c (ada_to_fixed_type_1): Adjust.
6971 (get_var_value): Constify parameters.
6972 (get_int_var_value): Change prototype.
6973 (to_fixed_range_type): Adjust.
6974 * ada-lang.h (get_int_var_value): Change prototype.
6975
6976 2017-07-20 Pedro Alves <palves@redhat.com>
6977
6978 * dwarf2read.c (dw2_lookup_symbol): Use
6979 SYMBOL_MATCHES_SEARCH_NAME.
6980 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
6981
6982 2017-07-20 Pedro Alves <palves@redhat.com>
6983
6984 * block.c (block_iter_name_step, block_iter_name_first)
6985 (block_iter_name_next): Delete.
6986 (block_lookup_symbol_primary): Adjust to use
6987 dict_iter_match_first/dict_iter_match_next.
6988 * block.h (block_iter_name_first, block_iter_name_next): Delete
6989 declarations.
6990 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
6991 dict_iter_match_first/dict_iter_match_next.
6992
6993 2017-07-20 Pedro Alves <palves@redhat.com>
6994
6995 * cp-support.c (cp_find_first_component_aux): Add missing case for
6996 end of string.
6997
6998 2017-07-18 David Blaikie <dblaikie@gmail.com>
6999
7000 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
7001 of dwo_cu's dwo_file.
7002
7003 2017-07-18 Yao Qi <yao.qi@linaro.org>
7004
7005 * remote.c (store_registers_using_G): Remove one line comment.
7006
7007 2017-07-18 Yao Qi <yao.qi@linaro.org>
7008
7009 * regcache.c (regcache_cpy): Simplify it.
7010 (regcache::cpy_no_passthrough): Remove it.
7011 * regcache.h (cpy_no_passthrough): Remove it.
7012 (regcache_dup, regcache_cpy): Update comments.
7013
7014 2017-07-18 Pedro Alves <palves@redhat.com>
7015
7016 * remote-sim.c (sim_command_completer): Adjust to work with a
7017 completion_tracker instead of a VEC.
7018
7019 2017-07-17 Pedro Alves <palves@redhat.com>
7020
7021 * completer.c (complete_source_filenames): New function.
7022 (complete_address_and_linespec_locations): New function.
7023 (location_completer): Use complete_address_and_linespec_locations.
7024 (completion_tracker::build_completion_result): Honor the tracker's
7025 request to suppress append.
7026 * completer.h (completion_tracker::suppress_append_ws)
7027 (completion_tracker::set_suppress_append_ws): New methods.
7028 (completion_tracker::m_suppress_append_ws): New field.
7029 (complete_source_filenames): New declaration.
7030 * linespec.c (linespec_complete_what): New.
7031 (struct ls_parser) <complete_what, completion_word,
7032 completion_quote_char, completion_quote_end, completion_tracker>:
7033 New fields.
7034 (string_find_incomplete_keyword_at_end): New.
7035 (linespec_lexer_lex_string): Record quote char. If in completion
7036 mode, don't throw.
7037 (linespec_lexer_consume_token): Advance the completion word point.
7038 (linespec_lexer_peek_token): Save/restore completion info.
7039 (save_stream_and_consume_token): New.
7040 (set_completion_after_number): New.
7041 (linespec_parse_basic): Set what to complete next depending on
7042 token. Handle function and label completions specially.
7043 (parse_linespec): Disable objc shortcut in completion mode. Set
7044 what to complete next depending on token type. Skip keyword if in
7045 completion mode.
7046 (complete_linespec_component, linespec_complete): New.
7047 * linespec.h (linespec_complete): Declare.
7048
7049 2017-07-17 Pedro Alves <palves@redhat.com>
7050
7051 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
7052 Handle 'operator<' / 'operator<<'.
7053
7054 2017-07-17 Pedro Alves <palves@redhat.com>
7055
7056 * completer.c (collect_explicit_location_matches): Handle
7057 MATCH_LABEL.
7058 (convert_explicit_location_to_linespec): New, factored out from
7059 ...
7060 (convert_explicit_location_to_sals): ... this.
7061 (complete_label): New.
7062 (linespec_complete_label, find_label_symbols_in_block): New.
7063 (find_label_symbols): Add completion_mode parameter and adjust to
7064 call find_label_symbols_in_block.
7065 * linespec.h (linespec_complete_label): Declare.
7066
7067 2017-07-17 Pedro Alves <palves@redhat.com>
7068
7069 * ada-lang.c (ada_collect_symbol_completion_matches): Add
7070 complete_symbol_mode parameter.
7071 * cli/cli-cmds.c (complete_command): Get the completion result out
7072 of the handle_brkchars tracker if used a custom word point.
7073 * completer.c: Include "linespec.h".
7074 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
7075 (advance_to_expression_complete_word_point): New.
7076 (completion_tracker::completes_to_completion_word): New.
7077 (complete_files_symbols): Pass down
7078 complete_symbol_mode::EXPRESSION.
7079 (explicit_options, probe_options): New.
7080 (collect_explicit_location_matches): Complete on the
7081 explictit_loc->foo instead of word. Use
7082 linespec_complete_function. Handle MATCH_LINE. Handle offering
7083 keyword and options completions.
7084 (backup_text_ptr): Delete.
7085 (skip_keyword): New.
7086 (complete_explicit_location): Remove 'word' parameter. Add
7087 language, quoted_arg_start and quoted_arg_end parameters.
7088 Rewrite, parsing left to right.
7089 (location_completer): Rewrite.
7090 (location_completer_handle_brkchars): New function.
7091 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
7092 (enum complete_line_internal_reason): Adjust comments.
7093 (completion_tracker::discard_completions): New.
7094 (completer_handle_brkchars_func_for_completer): Handle
7095 location_completer.
7096 (gdb_custom_word_point_brkchars)
7097 (gdb_org_rl_basic_quote_characters): New.
7098 (gdb_completion_word_break_characters_throw)
7099 (completion_find_completion_word): Handle trackers that use a
7100 custom word point.
7101 (completion_tracker::advance_custom_word_point_by): New.
7102 (completion_tracker::build_completion_result): Don't rely on
7103 readline appending the quote char.
7104 (gdb_rl_attempted_completion_function_throw): Handle trackers that
7105 use a custom word point.
7106 (gdb_rl_attempted_completion_function): Restore
7107 rl_basic_quote_characters.
7108 * completer.h (class completion_tracker): Extend intro comment.
7109 (completion_tracker::set_quote_char)
7110 (completion_tracker::quote_char)
7111 (completion_tracker::set_use_custom_word_point)
7112 (completion_tracker::use_custom_word_point)
7113 (completion_tracker::custom_word_point)
7114 (completion_tracker::set_custom_word_point)
7115 (completion_tracker::advance_custom_word_point_by)
7116 (completion_tracker::completes_to_completion_word)
7117 (completion_tracker::discard_completions): New methods.
7118 (completion_tracker::m_quote_char)
7119 (completion_tracker::m_use_custom_word_point)
7120 (completion_tracker::m_custom_word_point): New fields.
7121 (advance_to_expression_complete_word_point): Declare.
7122 * f-lang.c (f_collect_symbol_completion_matches): Add
7123 complete_symbol_mode parameter.
7124 * language.h (struct language_defn)
7125 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
7126 parameter.
7127 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
7128 (linespec_complete_function): New function.
7129 (linespec_lexer_lex_keyword): Adjust.
7130 * linespec.h (linespec_keywords, linespec_complete_function): New
7131 declarations.
7132 * location.c (find_end_quote): New function.
7133 (explicit_location_lex_one): Add explicit_completion_info
7134 parameter. Save quoting info. Don't throw if being called for
7135 completion. Don't handle Ada operators here.
7136 (is_cp_operator, skip_op_false_positives, first_of)
7137 (explicit_location_lex_one_function): New function.
7138 (string_to_explicit_location): Replace 'dont_throw' parameter with
7139 an explicit_completion_info pointer parameter. Handle it. Don't
7140 use explicit_location_lex_one to lex function names. Use
7141 explicit_location_lex_one_function instead.
7142 * location.h (struct explicit_completion_info): New.
7143 (string_to_explicit_location): Replace 'dont_throw' parameter with
7144 an explicit_completion_info pointer parameter.
7145 * symtab.c (default_collect_symbol_completion_matches_break_on):
7146 Add complete_symbol_mode parameter. Handle LINESPEC mode.
7147 (default_collect_symbol_completion_matches)
7148 (collect_symbol_completion_matches): Add complete_symbol_mode
7149 parameter.
7150 (collect_symbol_completion_matches_type): Pass down
7151 complete_symbol_mode::EXPRESSION.
7152 (collect_file_symbol_completion_matches): Add complete_symbol_mode
7153 parameter. Handle LINESPEC mode.
7154 * symtab.h (complete_symbol_mode): New.
7155 (default_collect_symbol_completion_matches_break_on)
7156 (default_collect_symbol_completion_matches)
7157 (collect_symbol_completion_matches)
7158 (collect_file_symbol_completion_matches): Add complete_symbol_mode
7159 parameter.
7160
7161 2017-07-17 Pedro Alves <palves@redhat.com>
7162
7163 * utils.c (enum class strncmp_iw_mode): New.
7164 (strcmp_iw): Rename to ...
7165 (strncmp_iw_with_mode): ... this. Add string2_len and mode
7166 parameters. Handle them.
7167 (strncmp_iw): New.
7168 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
7169 * utils.h (strncmp_iw): Declare.
7170 (strcmp_iw): Move describing comments here.
7171
7172 2017-07-17 Pedro Alves <palves@redhat.com>
7173
7174 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
7175 CP_OPERATOR_STR.
7176 * c-typeprint.c (is_type_conversion_operator): Use
7177 CP_OPERATOR_STR.
7178 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
7179 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
7180 CP_OPERATOR_LEN.
7181 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
7182 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
7183 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
7184 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
7185 CP_OPERATOR_STR.
7186 * location.c: Include "cp-support.h".
7187 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
7188 CP_OPERATOR_STR.
7189 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
7190 CP_OPERATOR_LEN.
7191
7192 2017-07-17 Pedro Alves <palves@redhat.com>
7193
7194 * cli/cli-cmds.c (complete_command): Use a completion tracker
7195 along with completion_find_completion_word for handle_brkchars
7196 phase.
7197 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
7198 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
7199 (struct gdb_rl_completion_word_info): New.
7200 (gdb_rl_find_completion_word): New.
7201 (completion_find_completion_word): New.
7202 * completer.h (completion_find_completion_word): Declare.
7203
7204 2017-07-17 Pedro Alves <palves@redhat.com>
7205
7206 * ada-lang.c (symbol_completion_match): Adjust comments.
7207 (symbol_completion_add): Replace vector parameter with
7208 completion_tracker parameter. Use it.
7209 (ada_make_symbol_completion_list): Rename to...
7210 (ada_collect_symbol_completion_matches): ... this. Add
7211 completion_tracker parameter and use it.
7212 (ada_language_defn): Adjust.
7213 * break-catch-syscall.c (catch_syscall_completer): Adjust
7214 prototype and work with completion_tracker instead of VEC.
7215 * breakpoint.c (condition_completer): Adjust prototype and work
7216 with completion_tracker instead of VEC.
7217 * c-lang.c (c_language_defn, cplus_language_defn)
7218 (asm_language_defn, minimal_language_defn): Adjust to renames.
7219 * cli/cli-cmds.c (complete_command): Rework using
7220 completion_tracker. Catch exceptions when completing.
7221 * cli/cli-decode.c (integer_unlimited_completer)
7222 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
7223 with completion_tracker instead of VEC.
7224 * command.h (struct completion_tracker): Forward declare.
7225 (completer_ftype, completer_handle_brkchars_ftype): Change
7226 types.
7227 (complete_on_cmdlist, complete_on_enum): Adjust.
7228 * completer.c: Include <algorithm>.
7229 (struct gdb_completer_state): New.
7230 (current_completion): New global.
7231 (readline_line_completion_function): Delete.
7232 (noop_completer, filename_completer)
7233 (filename_completer_handle_brkchars, complete_files_symbols)
7234 (linespec_location_completer): Adjust to work with a
7235 completion_tracker instead of a VEC.
7236 (string_or_empty): New.
7237 (collect_explicit_location_matches): Adjust to work with a
7238 completion_tracker instead of a VEC.
7239 (explicit_location_completer): Rename to ...
7240 (complete_explicit_location): ... this and adjust to work with a
7241 completion_tracker instead of a VEC.
7242 (location_completer): Adjust to work with a completion_tracker
7243 instead of a VEC.
7244 (add_struct_fields): Adjust to work with a completion_list instead
7245 of VEC.
7246 (expression_completer): Rename to ...
7247 (complete_expression): ... this and adjust to work with a
7248 completion_tracker instead of a VEC. Use complete_files_symbols.
7249 (expression_completer): Reimplement on top of complete_expression.
7250 (symbol_completer): Adjust to work with a completion_tracker
7251 instead of a VEC.
7252 (enum complete_line_internal_reason): Add describing comments.
7253 (complete_line_internal_normal_command): Adjust to work with a
7254 completion_tracker instead of a VEC.
7255 (complete_line_internal): Rename to ...
7256 (complete_line_internal_1): ... this and adjust to work with a
7257 completion_tracker instead of a VEC. Assert TEXT is NULL in the
7258 handle_brkchars phase.
7259 (new_completion_tracker): Delete.
7260 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
7261 complete_line_internal_1.
7262 (free_completion_tracker): Delete.
7263 (INITIAL_COMPLETION_HTAB_SIZE): New.
7264 (completion_tracker::completion_tracker)
7265 (completion_tracker::~completion_tracker): New.
7266 (maybe_add_completion): Delete.
7267 (completion_tracker::maybe_add_completion)
7268 (completion_tracker::add_completion)
7269 (completion_tracker::add_completions): New.
7270 (throw_max_completions_reached_error): Delete.
7271 (complete_line): Adjust to work with a completion_tracker instead
7272 of a VEC. Don't create a completion_tracker_t or check for max
7273 completions here.
7274 (command_completer, command_completer_handle_brkchars)
7275 (signal_completer, reg_or_group_completer_1)
7276 (reg_or_group_completer, default_completer_handle_brkchars):
7277 Adjust to work with a completion_tracker.
7278 (gdb_completion_word_break_characters_throw): New.
7279 (gdb_completion_word_break_characters): Reimplement.
7280 (line_completion_function): Delete.
7281 (completion_tracker::recompute_lowest_common_denominator)
7282 (expand_preserving_ws)
7283 (completion_tracker::build_completion_result)
7284 (completion_result::completion_result)
7285 (completion_result::completion_result)
7286 (completion_result::~completion_result)
7287 (completion_result::completion_result)
7288 (completion_result::release_match_list, compare_cstrings)
7289 (completion_result::sort_match_list)
7290 (completion_result::reset_match_list)
7291 (gdb_rl_attempted_completion_function_throw)
7292 (gdb_rl_attempted_completion_function): New.
7293 * completer.h (completion_list, struct completion_result)
7294 (class completion_tracker): New.
7295 (complete_line): Add completion_tracker parameter.
7296 (readline_line_completion_function): Delete.
7297 (gdb_rl_attempted_completion_function): New.
7298 (noop_completer, filename_completer, expression_completer)
7299 (location_completer, symbol_completer, command_completer)
7300 (signal_completer, reg_or_group_completer): Update prototypes.
7301 (completion_tracker_t, new_completion_tracker)
7302 (make_cleanup_free_completion_tracker): Delete.
7303 (enum maybe_add_completion_enum): Delete.
7304 (maybe_add_completion): Delete.
7305 (throw_max_completions_reached_error): Delete.
7306 * corefile.c (complete_set_gnutarget): Adjust to work with a
7307 completion_tracker instead of a VEC.
7308 * cp-abi.c (cp_abi_completer): Adjust to work with a
7309 completion_tracker instead of a VEC.
7310 * d-lang.c (d_language_defn): Adjust.
7311 * disasm.c (disassembler_options_completer): Adjust to work with a
7312 completion_tracker instead of a VEC.
7313 * f-lang.c (f_make_symbol_completion_list): Rename to ...
7314 (f_collect_symbol_completion_matches): ... this. Adjust to work
7315 with a completion_tracker instead of a VEC.
7316 (f_language_defn): Adjust.
7317 * go-lang.c (go_language_defn): Adjust.
7318 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
7319 Adjust to work with a completion_tracker instead of a VEC.
7320 * infrun.c (handle_completer): Likewise.
7321 * interps.c (interpreter_completer): Likewise.
7322 * interps.h (interpreter_completer): Likewise.
7323 * language.c (unknown_language_defn, auto_language_defn)
7324 (local_language_defn): Adjust.
7325 * language.h (language_defn::la_make_symbol_completion_list):
7326 Rename to ...
7327 (language_defn::la_collect_symbol_completion_matches): ... this
7328 and adjust to work with a completion_tracker instead of a VEC.
7329 * m2-lang.c (m2_language_defn): Adjust.
7330 * objc-lang.c (objc_language_defn): Adjust.
7331 * opencl-lang.c (opencl_language_defn): Adjust.
7332 * p-lang.c (pascal_language_defn): Adjust.
7333 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
7334 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
7335 with a completion_tracker.
7336 * rust-lang.c (rust_language_defn): Adjust.
7337 * symtab.c (free_completion_list, do_free_completion_list)
7338 (return_val, completion_tracker): Delete.
7339 (completion_list_add_name, completion_list_add_symbol)
7340 (completion_list_add_msymbol, completion_list_objc_symbol)
7341 (completion_list_add_fields, add_symtab_completions): Add
7342 completion_tracker parameter and use it.
7343 (default_make_symbol_completion_list_break_on_1): Rename to...
7344 (default_collect_symbol_completion_matches_break_on): ... this.
7345 Add completion_tracker parameter and use it instead of allocating
7346 a completion tracker here.
7347 (default_make_symbol_completion_list_break_on): Delete old
7348 implementation.
7349 (default_make_symbol_completion_list): Delete.
7350 (default_collect_symbol_completion_matches): New.
7351 (make_symbol_completion_list): Delete.
7352 (collect_symbol_completion_matches): New.
7353 (make_symbol_completion_type): Rename to ...
7354 (collect_symbol_completion_matches_type): ... this. Add
7355 completion_tracker parameter and use it instead of VEC.
7356 (make_file_symbol_completion_list_1): Rename to...
7357 (collect_file_symbol_completion_matches): ... this. Add
7358 completion_tracker parameter and use it instead of VEC.
7359 (make_file_symbol_completion_list): Delete.
7360 (add_filename_to_list): Use completion_list instead of a VEC.
7361 (add_partial_filename_data::list): Now a completion_list.
7362 (make_source_files_completion_list): Work with a completion_list
7363 instead of a VEC.
7364 * symtab.h: Include "completer.h".
7365 (default_make_symbol_completion_list_break_on)
7366 (default_make_symbol_completion_list, make_symbol_completion_list)
7367 (make_symbol_completion_type, make_file_symbol_completion_list)
7368 (make_source_files_completion_list): Delete.
7369 (default_collect_symbol_completion_matches_break_on)
7370 (default_collect_symbol_completion_matches)
7371 (collect_symbol_completion_matches)
7372 (collect_symbol_completion_matches_type)
7373 (collect_file_symbol_completion_matches)
7374 (make_source_files_completion_list): New.
7375 * top.c (init_main): Don't install a rl_completion_entry_function
7376 hook. Install a rl_attempted_completion_function hook instead.
7377 * tui/tui-layout.c (layout_completer): Adjust to work with a
7378 completion_tracker.
7379 * tui/tui-regs.c (tui_reggroup_completer):
7380 * tui/tui-win.c (window_name_completer, focus_completer)
7381 (winheight_completer): Adjust to work with a completion_tracker.
7382 * value.c: Include "completer.h".
7383 (complete_internalvar): Adjust to work with a completion_tracker.
7384 * value.h (complete_internalvar): Likewise.
7385
7386 2017-07-17 Pedro Alves <palves@redhat.com>
7387
7388 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
7389 renames.
7390 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
7391 comments to completer_ftype's declaration.
7392 <completer_handle_brkchars>: Change type to
7393 completer_handle_brkchars_ftype.
7394 * command.h (completer_ftype): Add describing comment and give
7395 names to parameters.
7396 (completer_ftype_void): Rename to ...
7397 (completer_handle_brkchars_ftype) ... this. Add describing comment.
7398 (set_cmd_completer_handle_brkchars): Adjust.
7399 * completer.c (filename_completer_handle_brkchars): New function.
7400 (complete_line_internal_normal_command): New function, factored
7401 out from ...
7402 (complete_line_internal): ... here.
7403 (command_completer_handle_brkchars)
7404 (default_completer_handle_brkchars)
7405 (completer_handle_brkchars_func_for_completer): New functions.
7406 * completer.h (set_gdb_completion_word_break_characters): Delete
7407 declaration.
7408 (completer_handle_brkchars_func_for_completer): New declaration.
7409 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
7410 completer_handle_brkchars_func_for_completer.
7411
7412 2017-07-17 Pedro Alves <palves@redhat.com>
7413
7414 * completer.c (symbol_completer): New function, based on
7415 make_symbol_completion_list_fn.
7416 * completer.h (symbol_completer): New declaration.
7417 * guile/scm-cmd.c (cmdscm_completers): Adjust.
7418 * python/py-cmd.c (completers): Adjust.
7419 * symtab.c (make_symbol_completion_list_fn): Delete.
7420 * symtab.h (make_symbol_completion_list_fn): Delete.
7421 * cli/cli-decode.c (add_cmd): Adjust.
7422
7423 2017-07-17 Pedro Alves <palves@redhat.com>
7424
7425 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
7426 * dwarf2read.c: Include "filename-seen-cache.h".
7427 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
7428 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
7429 * filename-seen-cache.c: New file.
7430 * filename-seen-cache.h: New file.
7431 * symtab.c: Include "filename-seen-cache.h".
7432 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
7433 (create_filename_seen_cache, clear_filename_seen_cache)
7434 (delete_filename_seen_cache, filename_seen): Delete, parts moved
7435 to filename-seen-cache.h/filename-seen-cache.c.
7436 (output_source_filename, sources_info)
7437 (maybe_add_partial_symtab_filename)
7438 (make_source_files_completion_list): Adjust to use
7439 filename_seen_cache.
7440
7441 2017-07-17 Pedro Alves <palves@redhat.com>
7442
7443 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
7444 fields.
7445 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
7446 dwarf2_debug_sections*)): New.
7447 (dwarf2_per_objfile::dwarf2_per_objfile(const
7448 dwarf2_per_objfile&)): Declare as deleted.
7449 (dwarf2_per_objfile::operator=): Declare as deleted.
7450 (dwarf2_per_objfile::dwarf2_per_objfile)
7451 (dwarf2_per_objfile::~dwarf2_per_objfile)
7452 (dwarf2_per_objfile::free_cached_comp_units): New.
7453 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
7454 ctor. Call dwarf2_per_objfile's ctor manually.
7455 (dwarf2_locate_sections): Deleted/refactored as ...
7456 (dwarf2_per_objfile::locate_sections): ... this new method.
7457 (free_cached_comp_units): Defer to
7458 dwarf2_per_objfile::free_cached_comp_units.
7459 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
7460
7461 2017-07-14 Tom Tromey <tom@tromey.com>
7462
7463 PR rust/21764:
7464 * rust-exp.y (convert_ast_to_expression): Add "want_type"
7465 parameter.
7466 <UNOP_SIZEOF>: Split into separate case.
7467 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
7468
7469 2017-07-14 Tom Tromey <tom@tromey.com>
7470
7471 PR rust/21763:
7472 * symtab.c (symbol_matches_domain): Add language_rust to special
7473 case.
7474 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
7475 treat LOC_TYPEDEF symbols as variables.
7476
7477 2017-07-14 Pedro Alves <palves@redhat.com>
7478
7479 * symtab.c (make_file_symbol_completion_list_1): Iterate over
7480 symtabs matching all symtabs with SRCFILE as file name instead of
7481 only considering the first hit, with lookup_symtab.
7482
7483 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7484
7485 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
7486 operator_name parameters.
7487 (gen_expr): Update function call.
7488
7489 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7490
7491 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
7492 parameter.
7493 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
7494 Likewise.
7495 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
7496 parameter, use agent_expr::gdbarch instead, update function
7497 calls.
7498 (locexpr_tracepoint_var_ref): Likewise.
7499 (loclist_tracepoint_var_ref): Likewise.
7500 * ax-gdb.c (gen_trace_static_fields): Likewise.
7501 (gen_traced_pop): Likewise.
7502 (gen_frame_args_address): Likewise.
7503 (gen_frame_locals_address): Likewise.
7504 (gen_var_ref): Likewise.
7505 (gen_struct_ref_recursive): Likewise.
7506 (gen_static_field): Likewise.
7507 (gen_maybe_namespace_elt): Likewise.
7508 (gen_expr): Likewise.
7509 (gen_trace_for_var): Likewise.
7510 (gen_trace_for_expr): Likewise.
7511 (gen_trace_for_return_address): Likewise.
7512
7513 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7514
7515 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
7516 parameter.
7517 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
7518
7519 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7520
7521 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
7522 from ax, update calls.
7523 (gen_usual_arithmetic): Likewise.
7524 (gen_integral_promotions): Likewise.
7525 (gen_bitfield_ref): Likewise.
7526 (gen_primitive_field): Likewise.
7527 (gen_struct_ref_recursive): Likewise.
7528 (gen_struct_ref): Likewise.
7529 (gen_maybe_namespace_elt): Likewise.
7530 (gen_struct_elt_for_reference): Likewise.
7531 (gen_namespace_elt): Likewise.
7532 (gen_aggregate_elt_ref): Likewise.
7533 (gen_expr): Get gdbarch from ax, update calls.
7534 (gen_expr_binop_rest): Likewise.
7535
7536 2017-07-13 Pedro Alves <palves@redhat.com>
7537
7538 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7539 as default tdesc.
7540 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7541 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7542 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7543 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7544 tdep.
7545 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7546 Get final tdesc from the tdep.
7547 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7548 default tdesc.
7549 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7550 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7551 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7552 Use it as default tdesc.
7553 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7554 down to amd_init_abi. No longer handle fallback tdesc here.
7555 * amd64-tdep.h (tdesc_x32): Declare.
7556 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7557 parameter.
7558 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7559 as default tdesc.
7560
7561 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7562
7563 * s390-linux-tdep.c (s390_process_record): Add support for
7564 instructions new in arch12.
7565
7566 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7567
7568 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7569 PT_GETFSBASE and PT_GETGSBASE.
7570 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7571 PT_SETGSBASE.
7572
7573 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7574
7575 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7576 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7577 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7578 those rules.
7579 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7580 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7581 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7582 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7583 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7584 * features/i386/amd64.xml: Add 64bit-segments.xml.
7585 * features/i386/amd64-avx-avx512.c: Regenerated.
7586 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7587 * features/i386/amd64-avx-mpx.c: Regenerated.
7588 * features/i386/amd64-avx.c: Regenerated.
7589 * features/i386/amd64-mpx.c: Regenerated.
7590 * features/i386/amd64.c: Regenerated.
7591 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7592 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7593 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7594 * regformats/i386/amd64-avx.dat: Regenerated.
7595 * regformats/i386/amd64-mpx.dat: Regenerated.
7596 * regformats/i386/amd64.dat: Regenerated.
7597
7598 2017-07-10 Yao Qi <yao.qi@linaro.org>
7599
7600 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7601 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7602
7603 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7604
7605 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7606 unsetenv.
7607 * gnulib/aclocal.m4: Regenerate.
7608 * gnulib/config.in: Regenerate.
7609 * gnulib/configure: Regenerate.
7610 * gnulib/import/Makefile.am: Regenerate.
7611 * gnulib/import/Makefile.in: Regenerate.
7612 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7613 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7614 * gnulib/import/m4/environ.m4: New file.
7615 * gnulib/import/m4/setenv.m4: New file.
7616 * gnulib/import/setenv.c: New file.
7617 * gnulib/import/unsetenv.c: New file.
7618
7619 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7620
7621 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7622 address when op is DW_OP_addr.
7623
7624 2017-07-09 Tom Tromey <tom@tromey.com>
7625
7626 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7627 check and apply to outer type.
7628
7629 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7630
7631 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7632 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7633 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7634 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7635
7636 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7637
7638 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7639
7640 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7641
7642 * corelow.c (get_core_siginfo): Remove.
7643 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7644 instead of get_core_siginfo.
7645 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7646 * gdbarch.h: Re-generate.
7647 * gdbarch.c: Re-generate.
7648 * linux-tdep.c (linux_core_xfer_siginfo): New.
7649 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7650
7651 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7652
7653 * corelow.c (thread_section_name): Move to ...
7654 * gdbcore.h (thread_section_name): ... here.
7655
7656 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7657
7658 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7659 (struct siginfo32): New.
7660 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7661 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7662 via ptrace(PT_LWPINFO).
7663
7664 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7665
7666 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7667 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7668 (fbsd_get_siginfo_type): New.
7669 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7670 (_initialize_fbsd_tdep): New.
7671
7672 2017-07-06 David Blaikie <dblaikie@gmail.com>
7673
7674 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7675 a singular dwo_unit*) to support multiple CUs in the same way that
7676 multiple TUs are supported.
7677 (create_cus_hash_table): Replace create_dwo_cu with a function for
7678 parsing multiple CUs from a DWO file.
7679 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7680 create_dwo_cu.
7681 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7682 htab_find, rather than comparing the signature to a singleton CU in
7683 the dwo_file.
7684
7685 2017-07-06 Pedro Alves <palves@redhat.com>
7686
7687 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7688
7689 2017-07-04 Pedro Alves <palves@redhat.com>
7690
7691 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7692 * gdbtypes.h (TYPE_STATIC): Delete.
7693 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7694 is_synchronized, is_native>: Delete.
7695 <dummy>: Bump.
7696 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7697 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7698 (TYPE_FN_FIELD_ABSTRACT): Delete.
7699
7700 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7701
7702 * buffer.h (buffer_finish): Fix spelling mistakes.
7703
7704 2017-07-01 Eli Zaretskii <eliz@gnu.org>
7705
7706 * .dir-locals.el: Automatically switch to C-style comments in
7707 versions of Emacs that support the feature.
7708
7709 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7710 Pedro Alves <palves@redhat.com>
7711
7712 PR cli/21688
7713 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7714 (process_next_line): New variable 'inline_cmd'.
7715 Adjust 'if' clauses for "python", "compile" and "guile" to use
7716 'command_name_equals' and check for '!inline_cmd'.
7717
7718 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7719
7720 PR cli/21688
7721 * cli/cli-script.c (command_name_equals_not_inline): New function.
7722 (process_next_line): Adjust 'if' clauses for "python", "compile"
7723 and "guile" to use command_name_equals_not_inline.
7724
7725 2017-06-29 Pedro Alves <palves@redhat.com>
7726
7727 * completer.c (expression_completer): Call
7728 linespec_location_completer instead of location_completer.
7729
7730 2017-06-29 Pedro Alves <palves@redhat.com>
7731
7732 * completer.c (expression_completer): Remove code that recomputes
7733 'text' from 'word'.
7734
7735 2017-06-29 Yao Qi <yao.qi@linaro.org>
7736
7737 * regformats/regdat.sh: Generate code with
7738 "ifndef IN_PROCESS_AGENT".
7739
7740 2017-06-28 Pedro Alves <palves@redhat.com>
7741
7742 * command.h: Include "common/scoped_restore.h".
7743
7744 2017-06-28 Yao Qi <yao.qi@linaro.org>
7745
7746 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7747 instead of obstack_grow.
7748
7749 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7750
7751 PR gdb/21337
7752 * symfile.c (reread_symbols): Call objfiles_changed just before
7753 read_symbols.
7754
7755 2017-06-27 Pedro Alves <palves@redhat.com>
7756
7757 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7758 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7759 (completion_list_add_symbol, completion_list_add_msymbol):
7760 ... these new functions.
7761 (add_symtab_completions)
7762 (default_make_symbol_completion_list_break_on_1): Adjust.
7763
7764 2017-06-27 Pedro Alves <palves@redhat.com>
7765
7766 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7767 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7768 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7769 dtor.
7770 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7771 'storage_obstack' field an auto_obstack. In-class initialize all
7772 non-bitfield fields. Make minsyms_read bool.
7773 * symfile.c (read_symbols): Adjust.
7774
7775 2017-06-27 Alan Hayward <alan.hayward@arm.com>
7776
7777 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7778 (gdbsim_store_register): Likewise.
7779
7780 2017-06-27 Pedro Alves <palves@redhat.com>
7781
7782 * c-exp.y (name_obstack): Now an auto_obstack.
7783 (yylex): Use auto_obstack::clear.
7784 (c_parse): Use auto_obstack::clear instead of reinitializing and
7785 freeing the obstack.
7786 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7787 * d-exp.y (name_obstack): Now an auto_obstack.
7788 (yylex): Use auto_obstack::clear.
7789 (d_parse): Use auto_obstack::clear instead of reinitializing and
7790 freeing the obstack.
7791 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7792 auto_obstack.
7793 * dwarf2read.c (create_addrmap_from_index)
7794 (dwarf2_build_psymtabs_hard)
7795 (update_enumeration_type_from_children): Likewise.
7796 * gdb_obstack.h (auto_obstack): New type.
7797 * go-exp.y (name_obstack): Now an auto_obstack.
7798 (build_packaged_name): Use auto_obstack::clear.
7799 (go_parse): Use auto_obstack::clear instead of reinitializing and
7800 freeing the obstack.
7801 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7802 auto_obstack.
7803 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7804 * rust-exp.y (work_obstack): Now an auto_obstack.
7805 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7806 reinitializing and freeing the obstack.
7807 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7808 (host_char_to_target): Use auto_obstack.
7809 * utils.h (make_cleanup_obstack_free): Delete declaration.
7810 * valprint.c (generic_emit_char, generic_printstr): Use
7811 auto_obstack.
7812
7813 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7814
7815 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7816 thread.
7817 (darwin_init_thread_list): Don't update dummy thread.
7818 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7819
7820 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7821
7822 * record-full.c (netorder16): Remove.
7823
7824 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7825
7826 * common/diagnostics.h: Define macros for GCC.
7827 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7828 * common/vec.h: Include diagnostics.h.
7829 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7830 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7831 warning.
7832
7833 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7834
7835 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7836 New macro.
7837 * ada-lex.l: Ignore deprecated register warnings.
7838
7839 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7840
7841 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7842 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7843
7844 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7845
7846 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7847 its own line.
7848
7849 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7850
7851 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7852
7853 2017-06-23 Alan Hayward <alan.hayward@arm.com>
7854
7855 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
7856 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
7857 (xtensa_register_read_masked): Likewise.
7858
7859 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
7860
7861 * common/environ.c (gdb_environ::unset): Update comment.
7862
7863 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7864
7865 * python/py-unwind.c (pyuw_sniffer): Allocate space for
7866 registers.
7867
7868 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7869
7870 * record-full.c (record_full_exec_insn): Use byte_vector.
7871
7872 2017-06-22 Yao Qi <yao.qi@linaro.org>
7873
7874 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
7875 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7876
7877 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7878
7879 * remote.c (cached_reg): Move from here...
7880 * regcache.h (cached_reg): ...to here.
7881 * python/py-unwind.c (struct reg_info): Remove.
7882 (cached_frame_info): Use cached_reg_t.
7883 (pyuw_prev_register): Likewise.
7884 (pyuw_sniffer): Use cached_reg_t and allocate registers.
7885 (pyuw_dealloc_cache): Free all registers.
7886
7887 2017-06-22 Pedro Alves <palves@redhat.com>
7888 Simon Marchi <simon.marchi@ericsson.com>
7889
7890 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
7891 warning.
7892 * common/diagnostics.h: New file.
7893
7894 2017-06-22 Pedro Alves <palves@redhat.com>
7895
7896 * common/agent.h: Add include guards.
7897
7898 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
7899
7900 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
7901 talk about addressable units instead of bytes.
7902
7903 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7904
7905 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
7906 of '::const_iterator'.
7907
7908 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7909
7910 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7911 'unittests/environ-selftests.c'.
7912 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
7913 * charset.c (find_charset_names): Declare object 'iconv_env'.
7914 Update code to use 'iconv_env' object. Remove call to
7915 'free_environ'.
7916 * common/environ.c: Include <utility>.
7917 (make_environ): Delete function.
7918 (free_environ): Delete function.
7919 (gdb_environ::clear): New function.
7920 (gdb_environ::operator=): New function.
7921 (gdb_environ::get): Likewise.
7922 (environ_vector): Delete function.
7923 (set_in_environ): Delete function.
7924 (gdb_environ::set): New function.
7925 (unset_in_environ): Delete function.
7926 (gdb_environ::unset): New function.
7927 (gdb_environ::envp): Likewise.
7928 * common/environ.h: Include <vector>.
7929 (struct gdb_environ): Delete; transform into...
7930 (class gdb_environ): ... this class.
7931 (free_environ): Delete prototype.
7932 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
7933 environ_vector): Likewise.
7934 * infcmd.c (run_command_1): Update code to call
7935 'envp' from 'gdb_environ' class.
7936 (environment_info): Update code to call methods from 'gdb_environ'
7937 class.
7938 (unset_environment_command): Likewise.
7939 (path_info): Likewise.
7940 (path_command): Likewise.
7941 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
7942 (inferior::inferior): Initialize 'environment' using the host's
7943 information.
7944 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
7945 Include "environ.h".
7946 (class inferior) <environment>: Change type from 'struct
7947 gdb_environ' to 'gdb_environ'.
7948 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
7949 methods from 'gdb_environ' class.
7950 * solib.c (solib_find_1): Likewise
7951 * unittests/environ-selftests.c: New file.
7952
7953 2017-06-20 Yao Qi <yao.qi@linaro.org>
7954
7955 * features/i386/i386-linux.xml: Exchange the order of including
7956 32bit-linux.xml and 32bit-sse.xml.
7957 * features/i386/i386-linux.c: Regenerated.
7958
7959 2017-06-20 Yao Qi <yao.qi@linaro.org>
7960
7961 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
7962 Delete copy ctor and assignment operator.
7963 (tdesc_type): Likewise.
7964 (tdesc_feature): Likewise.
7965 (tdesc_free_reg): Remove.
7966 (tdesc_create_reg): Use new.
7967 (tdesc_free_type): Remove.
7968 (tdesc_create_vector): Use new.
7969 (tdesc_create_union): Likewise.
7970 (tdesc_create_flags): Likewise.
7971 (tdesc_create_enum): Likewise.
7972 (tdesc_free_feature): Delete.
7973 (free_target_description): Use delete.
7974
7975 2017-06-19 John Baldwin <jhb@FreeBSD.org>
7976
7977 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
7978 registers.
7979
7980 2017-06-19 Pedro Alves <palves@redhat.com>
7981
7982 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
7983 after gdb::unlinker.
7984
7985 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
7986
7987 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
7988 gdb_environ to access an environment variable.
7989
7990 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7991
7992 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
7993 gdb_byte*.
7994
7995 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7996
7997 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
7998
7999 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8000
8001 * configure: Re-generate.
8002 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
8003
8004 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8005
8006 * configure: Re-generate.
8007 * warning.m4: Pass -Werror to compiler when checking for
8008 supported warning flags.
8009
8010 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8011
8012 * Makefile.in (COMPILE.pre): Add "-x c++".
8013
8014 2017-06-16 Alan Hayward <alan.hayward@arm.com>
8015 Pedro Alves <palves@redhat.com>
8016 Yao Qi <yao.qi@linaro.org>
8017
8018 * defs.h (RequireLongest): New.
8019 (extract_integer): Declare function template.
8020 (extract_signed_integer): Remove the declaration, but define it
8021 static inline.
8022 (extract_unsigned_integer): Likewise.
8023 (store_integer): Declare function template.
8024 (store_signed_integer): Remove the declaration, but define it
8025 static inline.
8026 (store_unsigned_integer): Likewise.
8027 * findvar.c (extract_integer): New function template.
8028 (extract_signed_integer): Remove.
8029 (extract_unsigned_integer): Remove.
8030 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
8031 instantiations.
8032 (store_integer): New function template.
8033 (store_signed_integer): Remove.
8034 (store_unsigned_integer): Remove.
8035 (store_integer): Explicit instantiations.
8036 * regcache.c (regcache_raw_read_signed): Update.
8037 (regcache::raw_read): New function.
8038 (regcache::raw_read_signed): Remove.
8039 (regcache::raw_read_unsigned): Remove.
8040 (regcache_raw_read_unsigned): Update.
8041 (regcache_raw_write_unsigned): Update.
8042 (regcache::raw_write_signed): Remove.
8043 (regcache::raw_write): New function.
8044 (regcache_cooked_read_signed): Update.
8045 (regcache::raw_write_unsigned): Remove.
8046 (regcache::cooked_read_signed): Remove.
8047 (regcache_cooked_read_unsigned): Update.
8048 (regcache::cooked_read_unsigned): Remove.
8049 (regcache_cooked_write_signed): Update.
8050 (regcache_cooked_write_unsigned): Update.
8051 * regcache.h (regcache) <raw_read_signed>: Remove.
8052 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
8053 <raw_read, raw_write>: New.
8054 <cooked_read_signed, cooked_write_signed>: Remove.
8055 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
8056 <cooked_read, cooked_write>: New.
8057 * sh64-tdep.c (sh64_pseudo_register_read): Update.
8058 (sh64_pseudo_register_write): Update.
8059
8060 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
8061
8062 * arc-tdep.c (arc_disassembler_options): New variable.
8063 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
8064 of default_print_insn.
8065 (arc_delayed_print_insn): Set info->section when needed,
8066 use default_print_insn to retrieve a disassembler.
8067
8068 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
8069
8070 PR gdb/21574
8071 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
8072 to mention $SHELL and startup-with-shell.
8073
8074 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
8075
8076 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
8077
8078 2017-06-14 Yao Qi <yao.qi@linaro.org>
8079
8080 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
8081 default_print_insn instead of print_insn_aarch64.
8082 * arm-tdep.c (gdb_print_insn_arm): Call
8083 default_print_insn instead of print_insn_big_arm
8084 and print_insn_little_arm.
8085 * i386-tdep.c (i386_print_insn): Call default_print_insn
8086 instead of print_insn_i386.
8087 * ia64-tdep.c (ia64_print_insn): Call
8088 default_print_insn instead of print_insn_ia64.
8089 * mips-tdep.c (gdb_print_insn_mips): Call
8090 default_print_insn instead of print_insn_big_mips
8091 and print_insn_little_mips.
8092 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
8093 instead of print_insn_spu.
8094
8095 2017-06-14 Pedro Alves <palves@redhat.com>
8096
8097 * ada-lang.c: Include "common/byte-vector.h".
8098 (ada_value_primitive_packed_val): Use gdb::byte_vector.
8099 * charset.c (wchar_iterator::iterate): Resize the vector instead
8100 of reserving it.
8101 * common/byte-vector.h: Include "common/def-vector.h".
8102 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
8103 * cli/cli-dump.c: Include "common/byte-vector.h".
8104 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
8105 * common/byte-vector.h: New file.
8106 * common/def-vector.h: New file.
8107 * common/default-init-alloc.h: New file.
8108 * dwarf2loc.c: Include "common/byte-vector.h".
8109 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
8110 instead of reserving it.
8111 * dwarf2read.c: Include "common/byte-vector.h".
8112 (data_buf::m_vec): Now a gdb::byte_vector.
8113 * gdb_regex.c: Include "common/def-vector.h".
8114 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
8115 * mi/mi-main.c: Include "common/byte-vector.h".
8116 (mi_cmd_data_read_memory): Use gdb::byte_vector.
8117 * printcmd.c: Include "common/byte-vector.h".
8118 (print_scalar_formatted): Use gdb::byte_vector.
8119 * valprint.c: Include "common/byte-vector.h".
8120 (maybe_negate_by_bytes, print_decimal_chars): Use
8121 gdb::byte_vector.
8122
8123 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8124
8125 * darwin-nat.c: Include "nat/fork-inferior.h".
8126
8127 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8128
8129 * configure.nat: Factor out Darwin bits that are not
8130 architecture-specific. Add fork-inferior.o.
8131
8132 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8133
8134 * configure.nat: Factor out AIX bits that are not
8135 architecture-specific. Add fork-inferior.o.
8136
8137 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8138
8139 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
8140 (read_pieced_value, write_pieced_value): ...here. Reduce to
8141 wrappers that just call rw_pieced_value.
8142
8143 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8144
8145 * dwarf2loc.c (write_pieced_value): When writing the data for a
8146 memory piece, use write_memory_with_notification instead of
8147 write_memory.
8148
8149 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8150
8151 * valops.c (read_value_memory): Change embedded_offset to
8152 represent a bit offset instead of a byte offset.
8153 * value.h (read_value_memory): Adjust comment.
8154
8155 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8156
8157 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
8158 dest_offset_bits and source_offset_bits.
8159 (write_pieced_value): Likewise.
8160
8161 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8162
8163 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
8164 given by DW_OP_bit_piece.
8165 (write_pieced_value): Likewise.
8166
8167 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8168
8169 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
8170 some other preparations to the places where sufficient information
8171 is available.
8172 (write_pieced_value): Likewise.
8173
8174 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8175
8176 * dwarf2loc.c (bits_to_bytes): New function.
8177 (read_pieced_value): Fix offset calculations for register pieces
8178 on big-endian targets.
8179 (write_pieced_value): Likewise.
8180
8181 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8182
8183 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
8184 (write_pieced_value): Likewise.
8185
8186 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8187
8188 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
8189 transfer the source value's least significant bits, instead of its
8190 lowest-addressed ones. Rename type_len to max_offset.
8191 (read_pieced_value): Mirror above changes to write_pieced_value as
8192 applicable.
8193
8194 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8195
8196 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
8197 truncate full bytes from dest_offset_bits before using it as an
8198 offset into the buffer.
8199
8200 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8201
8202 * dwarf2loc.c (write_pieced_value): Include transfer size in
8203 byte-wise check.
8204
8205 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8206
8207 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
8208 calculation of this_size.
8209
8210 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8211
8212 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
8213 when targeting a bit-field.
8214 (write_pieced_value): Likewise.
8215
8216 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8217
8218 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
8219 (allocate_piece_closure): Drop addr_size parameter.
8220 (dwarf2_evaluate_loc_desc_full): Adjust call to
8221 allocate_piece_closure.
8222
8223 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8224
8225 PR gdb/21226
8226 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
8227 the LSB end, independent of endianness.
8228
8229 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8230
8231 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
8232 size capping.
8233
8234 2017-06-13 Yao Qi <yao.qi@linaro.org>
8235
8236 * mips-linux-nat.c: Move include features/mips*-linux.c to
8237 mips-linux-tdep.c.
8238 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
8239 to mips-linux-tdep.c.
8240 * mips-linux-tdep.c: Include features/mips*-linux.c
8241 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
8242 functions.
8243 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
8244 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
8245 (tdesc_mips64_dsp_linux): Declare.
8246
8247 2017-06-12 Tom Tromey <tom@tromey.com>
8248
8249 * valprint.h (val_print_type_code_int): Remove.
8250 * valprint.c (generic_val_print_int): Always call
8251 val_print_scalar_formatted.
8252 (val_print_type_code_int): Remove.
8253 * printcmd.c (print_scalar_formatted): Handle options->format==0.
8254 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
8255 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
8256 * ada-valprint.c (ada_val_print_num): Use
8257 val_print_scalar_formatted.
8258
8259 2017-06-12 Tom Tromey <tom@tromey.com>
8260
8261 * printcmd.c (print_scalar_formatted): Unify the two switches.
8262 Don't convert scalars to LONGEST.
8263
8264 2017-06-12 Tom Tromey <tom@tromey.com>
8265
8266 PR exp/16225:
8267 * valprint.h (print_decimal_chars): Update.
8268 * valprint.c (maybe_negate_by_bytes): New function.
8269 (print_decimal_chars): Add "is_signed" argument.
8270 * printcmd.c (print_scalar_formatted): Update.
8271
8272 2017-06-12 Tom Tromey <tom@tromey.com>
8273
8274 PR exp/16225:
8275 * valprint.h (print_binary_chars, print_hex_chars): Update.
8276 * valprint.c (val_print_type_code_int): Update.
8277 (print_binary_chars): Add "zero_pad" argument.
8278 (emit_octal_digit): New function.
8279 (print_octal_chars): Don't zero-pad.
8280 (print_decimal_chars): Likewise.
8281 (print_hex_chars): Add "zero_pad" argument.
8282 * sh64-tdep.c (sh64_do_fp_register): Update.
8283 * regcache.c (regcache::dump): Update.
8284 * printcmd.c (print_scalar_formatted): Update.
8285 * infcmd.c (default_print_one_register_info): Update.
8286
8287 2017-06-12 Pedro Alves <palves@redhat.com>
8288 Alan Hayward <alan.hayward@arm.com>
8289
8290 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
8291 (mips_eabi_push_dummy_call): Rename local 'regsize' to
8292 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
8293 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
8294 Assert that abi_regsize bytes fit in 'ref_valbuf'.
8295
8296 2017-06-12 Pedro Alves <palves@redhat.com>
8297
8298 * dwarf2read.c (mapped_symtab::data): Now a vector of
8299 symtab_index_entry instead of vector of
8300 std::unique_ptr<symtab_index_entry>. All users adjusted to check
8301 whether an element's name is NULL instead of checking whether the
8302 element itself is NULL.
8303 (find_slot): Change return type. Adjust.
8304 (hash_expand, , add_index_entry, uniquify_cu_indices)
8305 (write_hash_table): Adjust.
8306
8307 2017-06-12 Pedro Alves <palves@redhat.com>
8308
8309 * dwarf2read.c (recursively_count_psymbols): New function.
8310 (write_psymtabs_to_index): Call it to compute number of psyms and
8311 pass estimate size of psyms_seen to unordered_set's ctor.
8312
8313 2017-06-12 Pedro Alves <palves@redhat.com>
8314
8315 * dwarf2read.c (write_hash_table): Check if key already exists
8316 before emplacing.
8317
8318 2017-06-12 Pedro Alves <palves@redhat.com>
8319
8320 * dwarf2read.c (data_buf::append_space): Rename to...
8321 (data_buf::grow): ... this, and make private. Adjust all callers.
8322 (data_buf::append_uint): New method.
8323 (add_address_entry, write_one_signatured_type)
8324 (write_psymtabs_to_index): Use it.
8325
8326 2017-06-12 Pedro Alves <palves@redhat.com>
8327
8328 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
8329 (file_write (FILE *, const std::vector<Elem>&)): Delete.
8330 (data_buf::file_write): Call ::fwrite directly.
8331
8332 2017-06-12 Pedro Alves <palves@redhat.com>
8333
8334 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
8335 std::vector::erase.
8336
8337 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8338
8339 Code cleanup: C++ify .gdb_index producer.
8340 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
8341 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
8342 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
8343 (create_strtab, add_string): Remove.
8344 (file_write, data_buf): New.
8345 (struct symtab_index_entry): Use std::vector for cu_indices.
8346 (struct mapped_symtab): Use std::vector for data.
8347 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
8348 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
8349 Remove.
8350 (find_slot): Change return type. Update it to the new data structures.
8351 (hash_expand, add_index_entry): Update it to the new data structures.
8352 (offset_type_compare): Remove.
8353 (uniquify_cu_indices): Update it to the new data structures.
8354 (c_str_view, c_str_view_hasher, vector_hasher): New.
8355 (add_indices_to_cpool): Remove.
8356 (write_hash_table): Update it to the new data structures.
8357 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
8358 (eq_psymtab_cu_index): Remove.
8359 (psym_index_map): New typedef.
8360 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
8361 reference and std::unordered_map for cu_index_htab.
8362 (add_address_entry, add_address_entry_worker, write_address_map)
8363 (write_psymbols): Update it to the new data structures.
8364 (write_obstack): Remove.
8365 (struct signatured_type_index_data): Change types_list to a data_buf
8366 reference and psyms_seen to a std::unordered_set reference.
8367 (write_one_signatured_type, recursively_write_psymbols)
8368 (write_psymtabs_to_index): Update it to the new data structures.
8369
8370 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
8371
8372 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
8373 separate-debug-file commands.
8374 * symfile.h (separate_debug_file_debug): New global.
8375 * symfile.c (separate_debug_file_debug): New global.
8376 (separate_debug_file_exists, find_separate_debug_file): Add
8377 debug output.
8378 (_initialize_symfile): Add "set debug separate-debug-file"
8379 command.
8380 * build-id.c (build_id_to_debug_bfd,
8381 find_separate_debug_file_by_buildid): Add debug output.
8382
8383 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8384
8385 * gdbarch.sh (displaced_step_free_closure): Remove.
8386 * gdbarch.h, gdbarch.c: Re-generate.
8387 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
8388 displaced_step_free_closure.
8389 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8390 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8391 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8392 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8393 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8394 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8395 * arch-utils.h (simple_displaced_step_free_closure): Remove.
8396 * arch-utils.c (simple_displaced_step_free_closure): Remove.
8397 * infrun.c (displaced_step_clear): Call xfree instead of
8398 gdbarch_displaced_step_free_closure.
8399
8400 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
8401
8402 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
8403 NULL".
8404
8405 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8406
8407 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
8408 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
8409 (mn10300_push_dummy_call): Likewise.
8410
8411 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8412
8413 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
8414
8415 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8416
8417 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
8418
8419 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8420
8421 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
8422 able to start inferiors using a shell.
8423 (New remote packets): Announce new packet "QStartupWithShell".
8424 * remote.c: Add PACKET_QStartupWithShell.
8425 (extended_remote_create_inferior): Handle new
8426 PACKET_QStartupWithShell.
8427 (remote_protocol_features) <QStartupWithShell>: New entry for
8428 PACKET_QStartupWithShell.
8429 (_initialize_remote): Call "add_packet_config_cmd" for
8430 QStartupShell.
8431
8432 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8433 Pedro Alves <palves@redhat.com>
8434
8435 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
8436 and "nat/fork-inferior.h".
8437 * common/common-inferior.h: New file, with contents from
8438 "gdb/inferior.h".
8439 * commom/common-utils.c: Include "common-utils.h".
8440 (stringify_argv): New function.
8441 * common/common-utils.h (stringify_argv): New prototype.
8442 * configure.nat: Add "fork-inferior.o" as a dependency for
8443 "*linux*", "fbsd*" and "nbsd*" hosts.
8444 * corefile.c (get_exec_file): Update comment.
8445 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
8446 instead of "startup_inferior".
8447 (darwin_create_inferior): Call "add_thread_silent" after
8448 "fork_inferior".
8449 * fork-child.c: Cleanup unnecessary includes.
8450 (SHELL_FILE): Move to "common/common-fork-child.c".
8451 (environ): Likewise.
8452 (exec_wrapper): Initialize.
8453 (get_exec_wrapper): New function.
8454 (breakup_args): Move to "common/common-fork-child.c"; rename to
8455 "breakup_args_for_exec".
8456 (escape_bang_in_quoted_argument): Move to
8457 "common/common-fork-child.c".
8458 (saved_ui): New variable.
8459 (prefork_hook): New function.
8460 (postfork_hook): Likewise.
8461 (postfork_child_hook): Likewise.
8462 (gdb_startup_inferior): Likewise.
8463 (fork_inferior): Move to "common/common-fork-child.c". Update
8464 function to support gdbserver.
8465 (startup_inferior): Likewise.
8466 * gdbcore.h (get_exec_file): Remove declaration.
8467 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
8468 instead of "startup_inferior". Call "add_thread_silent" after
8469 "fork_inferior".
8470 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
8471 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
8472 instead of "startup_inferior". Call "add_thread_silent" after
8473 "fork_inferior".
8474 * inferior.h: Include "common-inferior.h".
8475 (trace_start_error): Move to "common/common-utils.h".
8476 (trace_start_error_with_name): Likewise.
8477 (fork_inferior): Move prototype to "nat/fork-inferior.h".
8478 (startup_inferior): Likewise.
8479 (gdb_startup_inferior): New prototype.
8480 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
8481 * nat/fork-inferior.h: New file.
8482 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
8483 instead of "startup_inferior". Call "add_thread_silent" after
8484 "fork_inferior".
8485 * target.h (target_terminal_init): Move prototype to
8486 "target/target.h".
8487 (target_terminal_inferior): Likewise.
8488 (target_terminal_ours): Likewise.
8489 * target/target.h (target_terminal_init): New prototype, moved
8490 from "target.h".
8491 (target_terminal_inferior): Likewise.
8492 (target_terminal_ours): Likewise.
8493 * utils.c (gdb_flush_out_err): New function.
8494
8495 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8496
8497 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
8498 * common/common-gdbthread.h: New file, with parts from
8499 "gdb/gdbthread.h".
8500 * gdbthread.h: Include "common-gdbthread.h".
8501 (switch_to_thread): Moved to "common/common-gdbthread.h".
8502
8503 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8504
8505 * Makefile.in (SFILES): Add "common/job-control.c".
8506 (HFILES_NO_SRCDIR): Add "common/job-control.h".
8507 (COMMON_OBS): Add "job-control.o".
8508 * common/job-control.c: New file, with contents from
8509 "gdb/inflow.c".
8510 * common/job-control.h: New file, with contents from "terminal.h".
8511 * fork-child.c: Include "job-control.h".
8512 * inflow.c: Include "job-control.h".
8513 (gdb_setpgid): Move to "common/common-inflow.c".
8514 (_initialize_inflow): Move setting of "job_control" to
8515 "handle_job_control".
8516 * terminal.h (job_control): Moved to "common/common-terminal.h".
8517 (gdb_setpgid): Likewise.
8518 * top.c: Include "job_control.h".
8519 * utils.c: Likewise.
8520 (job_control): Moved to "job-control.c".
8521
8522 2017-06-07 Pedro Alves <palves@redhat.com>
8523
8524 * Makefile.in (SFILES): Add gdb_regex.c.
8525 (COMMON_OBS): Add gdb_regex.o.
8526 * ada-lang.c (ada_add_standard_exceptions)
8527 (ada_add_exceptions_from_frame, name_matches_regex)
8528 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
8529 parameter type to compiled_regex. Adjust.
8530 (ada_exceptions_list): Use compiled_regex.
8531 * break-catch-throw.c (exception_catchpoint::pattern): Now a
8532 std::unique_ptr<compiled_regex>.
8533 (exception_catchpoint::~exception_catchpoint): Remove regfree
8534 call.
8535 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8536 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8537 * breakpoint.c (solib_catchpoint::compiled): Now a
8538 std::unique_ptr<compiled_regex>.
8539 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8540 (check_status_catch_solib): Adjust to use compiled_regex.
8541 (add_solib_catchpoint): Adjust to use compiled_regex.
8542 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8543 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8544 compiled_regex reference. Adjust to use it.
8545 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8546 declaration. Include "gdb_regex.h".
8547 (apropos_cmd): Change regex parameter to compiled_regex reference.
8548 * gdb_regex.c: New file.
8549 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8550 declarations.
8551 (class compiled_regex): New.
8552 * linux-tdep.c: Include "common/gdb_optional.h".
8553 (struct mapping_regexes): New, factored out from
8554 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8555 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8556 gdb::optional and remove cleanups. Adjust to compiled_regex.
8557 * probe.c: Include "common/gdb_optional.h".
8558 (collect_probes): Use compiled_regex and gdb::optional and remove
8559 cleanups.
8560 * skip.c: Include "common/gdb_optional.h".
8561 (skiplist_entry::compiled_function_regexp): Now a
8562 gdb::optional<compiled_regex>.
8563 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8564 (free_skiplist_entry): Remove regfree call.
8565 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8566 compiled_regex and gdb::optional.
8567 * symtab.c: Include "common/gdb_optional.h".
8568 (search_symbols): Use compiled_regex and gdb::optional.
8569 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8570 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8571 to gdb_regex.c.
8572
8573 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8574
8575 * regcache.c (regcache::save): Avoid buffer use.
8576 (regcache::dump): Likewise.
8577
8578 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8579
8580 * sh-tdep.c (sh_pseudo_register_read): Remove
8581 MAX_REGISTER_SIZE.
8582 (sh_pseudo_register_write): Likewise.
8583 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8584 (sh64_pseudo_register_write): Likewise
8585
8586 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8587
8588 * aarch64-tdep.c (aarch64_store_return_value): Use
8589 V_REGISTER_SIZE.
8590 (aarch64_pseudo_read_value): Likewise.
8591 (aarch64_pseudo_write): Likewise.
8592
8593 2017-06-06 Yao Qi <yao.qi@linaro.org>
8594
8595 * regformats/regdef.h (set_register_cache): Remove the
8596 declaration.
8597
8598 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8599
8600 * frame.c (frame_unwind_register_signed): Use
8601 frame_unwind_register_value.
8602
8603 2017-06-06 Pedro Alves <palves@redhat.com>
8604
8605 PR breakpoints/21553
8606 * breakpoint.c (create_breakpoints_sal_default)
8607 (init_breakpoint_sal, create_breakpoint_sal): Use
8608 gdb::unique_xmalloc_ptr for string parameters.
8609 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8610 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8611 (base_breakpoint_create_breakpoints_sal)
8612 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8613 (strace_marker_create_breakpoints_sal)
8614 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8615 string parameters.
8616 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8617 gdb::unique_xmalloc_ptr for string parameters.
8618 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8619 parameters.
8620
8621 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8622
8623 * alpha-tdep.c (alpha_register_to_value): Use
8624 get_frame_register_value.
8625 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8626
8627 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8628
8629 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8630 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8631 (ia64_value_to_register): Likewise.
8632 (ia64_extract_return_value): Likewise.
8633 (ia64_store_return_value): Likewise.
8634 (ia64_push_dummy_call): Likewise.
8635
8636 2017-06-04 Joel Brobecker <brobecker@adacore.com>
8637
8638 GDB 8.0 released.
8639
8640 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8641
8642 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8643
8644 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8645
8646 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8647 parameter.
8648 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8649
8650 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8651
8652 * event-loop.c (poll_timers): Unallocate timer using delete
8653 instead of xfree.
8654
8655 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8656
8657 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8658 (struct breakpoint) <~breakpoint>: New.
8659 (struct watchpoint): Inherit from breakpoint.
8660 <~watchpoint>: New.
8661 <base>: Remove.
8662 (struct tracepoint): Inherit from breakpoint.
8663 <base>: Remove.
8664 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8665 (struct longjmp_breakpoint): Inherit from breakpoint.
8666 <~longjmp_breakpoint>: New.
8667 <base>: Remove.
8668 (new_breakpoint_from_type): Remove casts.
8669 (watchpoint_in_thread_scope): Remove reference to base field.
8670 (watchpoint_del_at_next_stop): Likewise.
8671 (update_watchpoint): Likewise.
8672 (watchpoint_check): Likewise.
8673 (bpstat_check_watchpoint): Likewise.
8674 (set_longjmp_breakpoint): Likewise.
8675 (struct fork_catchpoint): Inherit from breakpoint.
8676 <base>: Remove.
8677 (struct solib_catchpoint): Inherit from breakpoint.
8678 <~solib_catchpoint>: New.
8679 <base>: Remove.
8680 (dtor_catch_solib): Change to ...
8681 (solib_catchpoint::~solib_catchpoint): ... this.
8682 (breakpoint_hit_catch_solib): Remove reference to base field.
8683 (add_solib_catchpoint): Likewise.
8684 (create_fork_vfork_event_catchpoint): Likewise.
8685 (struct exec_catchpoint): Inherit from breakpoint.
8686 <~exec_catchpoint>: New.
8687 <base>: Remove.
8688 (dtor_catch_exec): Change to ...
8689 (exec_catchpoint::~exec_catchpoint): ... this.
8690 (dtor_watchpoint): Change to ...
8691 (watchpoint::~watchpoint): ... this.
8692 (watch_command_1): Remove reference to base field.
8693 (catch_exec_command_1): Likewise.
8694 (base_breakpoint_dtor): Change to ...
8695 (breakpoint::~breakpoint): ... this.
8696 (base_breakpoint_ops): Remove dtor field value.
8697 (longjmp_bkpt_dtor): Change to ...
8698 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8699 (strace_marker_create_breakpoints_sal): Remove reference to base
8700 field.
8701 (delete_breakpoint): Don't manually call breakpoint destructor.
8702 (create_tracepoint_from_upload): Remove reference to base field.
8703 (trace_pass_set_count): Likewise.
8704 (initialize_breakpoint_ops): Don't initialize
8705 momentary_breakpoint_ops, don't set dtors.
8706 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8707 <~ada_catchpoint>: New.
8708 <base>: Remove.
8709 (create_excep_cond_exprs): Remove reference to base field.
8710 (dtor_exception): Change to ...
8711 (ada_catchpoint::~ada_catchpoint): ... this.
8712 (dtor_catch_exception): Remove.
8713 (dtor_catch_exception_unhandled): Remove.
8714 (dtor_catch_assert): Remove.
8715 (create_ada_exception_catchpoint): Remove reference to base
8716 field.
8717 (initialize_ada_catchpoint_ops): Don't set dtors.
8718 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8719 breakpoint.
8720 <~signal_catchpoint>: New.
8721 <base>: Remove.
8722 (signal_catchpoint_dtor): Change to ...
8723 (signal_catchpoint::~signal_catchpoint): ... this.
8724 (create_signal_catchpoint): Remove reference to base field.
8725 (initialize_signal_catchpoint_ops): Don't set dtor.
8726 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8727 from breakpoint.
8728 <~syscall_catchpoint>: New.
8729 <base>: Remove.
8730 (dtor_catch_syscall): Change to ...
8731 (syscall_catchpoint::~syscall_catchpoint): ... this.
8732 (create_syscall_event_catchpoint): Remove reference to base
8733 field.
8734 (initialize_syscall_catchpoint_ops): Don't set dtor.
8735 * break-catch-throw.c (struct exception_catchpoint): Inherit
8736 from breakpoint.
8737 <~exception_catchpoint>: New.
8738 <base>: Remove.
8739 (dtor_exception_catchpoint): Change to ...
8740 (exception_catchpoint::~exception_catchpoint): ... this.
8741 (handle_gnu_v3_exceptions): Remove reference to base field.
8742 (initialize_throw_catchpoint_ops): Don't set dtor.
8743 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8744 field.
8745 * remote.c (remote_get_tracepoint_status): Likewise.
8746 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8747 * tracefile.c (tracefile_fetch_registers): Likewise.
8748 * tracepoint.c (actions_command): Likewise.
8749 (validate_actionline): Likewise.
8750 (tfind_1): Likewise.
8751 (get_traceframe_location): Likewise.
8752 (find_matching_tracepoint_location): Likewise.
8753 (parse_tracepoint_status): Likewise.
8754 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8755
8756 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8757
8758 * breakpoint.c (struct longjmp_breakpoint): New struct.
8759 (is_tracepoint_type): Change return type to bool.
8760 (is_longjmp_type): New function.
8761 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8762 (set_raw_breakpoint_without_location): Use
8763 new_breakpoint_from_type.
8764 (set_raw_breakpoint): Likewise.
8765
8766 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8767
8768 * breakpoint.c (new_breakpoint_from_type): New function.
8769 (create_breakpoint_sal): Use new_breakpoint_from_type and
8770 unique_ptr.
8771 (create_breakpoint): Likewise.
8772
8773 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8774
8775 * memattr.c (mem_info_command): Rename to ...
8776 (info_mem_command): ... this.
8777 (mem_enable_command): Rename to ...
8778 (enable_mem_command): ... this.
8779 (mem_disable_command): Rename to ...
8780 (disable_mem_command): ... this.
8781 (mem_delete_command): Rename to ...
8782 (delete_mem_command): ... this.
8783 (_initialize_mem): Adjust function names.
8784
8785 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8786
8787 * btrace.c (handle_pt_insn_events): New.
8788 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8789 STATUS. Split into this and ...
8790 (handle_pt_insn_event_flags): ... this.
8791
8792 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8793
8794 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8795 and struct pt_insn.resynced.
8796 * configure: Regenerated.
8797 * config.in: Regenerated.
8798
8799 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8800
8801 * btrace.c (ftrace_find_call_by_number): New function.
8802 (ftrace_new_function): Store objects, not pointers.
8803 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8804 ftrace_new_gap, ftrace_update_function,
8805 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8806 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8807 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8808 btrace_ends_with_single_insn, btrace_call_get): Account for
8809 btrace_thread_info::functions now storing objects.
8810 * btrace.h (struct btrace_thread_info): Add constructor.
8811 (struct btrace_thread_info) <functions>: Make std::vector.
8812 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8813 Initialize with default values.
8814 * record-btrace.c (record_btrace_frame_sniffer): Account for
8815 btrace_thread_info::functions now storing objects.
8816
8817 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8818
8819 * btrace.c: Remove typedef bfun_s.
8820 (ftrace_new_gap): Directly add gaps to the list of gaps.
8821 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8822 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8823 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8824 instead of gdb VEC.
8825
8826 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8827
8828 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8829 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8830 with btrace_thread_info::next_segment and
8831 btrace_thread_info::prev_segment.
8832 * btrace.h: Remove struct btrace_func_link.
8833 (struct btrace_function): Replace pair of function segment pointers
8834 with pair of indices.
8835 * python/py-record-btrace.c (btpy_call_prev_sibling,
8836 btpy_call_next_sibling): Replace references to
8837 btrace_thread_info::segment with btrace_thread_info::next_segment and
8838 btrace_thread_info::prev_segment.
8839 * record-btrace.c (record_btrace_frame_this_id): Use
8840 btrace_find_call_by_number.
8841
8842 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8843
8844 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8845 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8846 btrace_insn_next, btrace_insn_prev): Remove references to
8847 btrace_thread_info::flow.
8848 * btrace.h (struct btrace_function): Remove FLOW.
8849
8850 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8851
8852 * btrace.c (ftrace_find_call_by_number): New function.
8853 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8854 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8855 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
8856 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
8857 index.
8858 * btrace.h (struct btrace_function): Turn UP into an index.
8859 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
8860 as an index.
8861 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
8862 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
8863 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
8864
8865 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8866
8867 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8868 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8869 ftrace_update_function, ftrace_compute_global_level_offset,
8870 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
8871 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
8872 btrace_insn_end, btrace_is_empty): Remove references to
8873 btrace_thread_info::begin and btrace_thread_info::end.
8874 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
8875 (struct btrace_thread_info) <functions>: Adjust comment.
8876 * record-btrace.c (record_btrace_start_replaying): Remove reference to
8877 btrace_thread_info::begin.
8878
8879 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8880
8881 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8882 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8883 ftrace_update_function): Remove arguments that implicitly were always
8884 BTINFO->END.
8885 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
8886 Don't pass BTINFO->END.
8887
8888 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8889
8890 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
8891 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
8892 btrace_find_insn_by_number): Replace function segment pointer with
8893 index.
8894 (btrace_insn_cmp): Simplify.
8895 * btrace.h: (struct btrace_insn_iterator) Rename index to
8896 insn_index. Replace function segment pointer with index into function
8897 segment vector.
8898 * record-btrace.c (record_btrace_call_history): Replace function
8899 segment pointer use with index.
8900 (record_btrace_frame_sniffer): Retrieve function call segment through
8901 vector.
8902 (record_btrace_set_replay): Remove defunc't safety check.
8903
8904 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8905
8906 * btrace.c (btrace_ends_with_single_insn): New function.
8907 (btrace_call_get, btrace_call_number, btrace_call_begin,
8908 btrace_call_end, btrace_call_next, btrace_call_prev,
8909 btrace_find_call_by_number): Use index into call segment vector
8910 instead of pointer.
8911 (btrace_call_cmp): Simplify.
8912 * btrace.h (struct btrace_call_iterator): Replace function call segment
8913 pointer with index into vector.
8914 * record-btrace.c (record_btrace_call_history): Use index instead of
8915 pointer.
8916
8917 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8918
8919 * btrace.c (btrace_insn_begin, btrace_insn_end,
8920 btrace_find_insn_by_number): Add btinfo to iterator.
8921 * btrace.h (struct btrace_insn_iterator): Add btinfo.
8922
8923 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8924
8925 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
8926 and save pointers directly.
8927 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
8928 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
8929 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
8930 changed signature of functions.
8931 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
8932 (btrace_fetch): Remove code that adds btrace_function pointers to
8933 vector of btrace_functions.
8934 (btrace_clear): Simplify freeing vector of btrace_functions.
8935
8936 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8937
8938 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
8939 Replace VEC_* with std::vector functions.
8940 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
8941 (struct btrace_thread_info)<functions>: Change type to std::vector.
8942
8943 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
8944
8945 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
8946 "Removed targets and native configurations" up. Merge duplicate
8947 "New commands" sub-sections. Add "New options" sub-sections.
8948
8949 2017-05-26 Alan Hayward <alan.hayward@arm.com>
8950
8951 * defs.h (copy_integer_to_size): New declaration.
8952 * findvar.c (copy_integer_to_size): New function.
8953 (do_cint_test): New selftest function.
8954 (copy_integer_to_size_test): Likewise.
8955 (_initialize_findvar): Likewise.
8956 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
8957 (mips_fbsd_collect_reg): Use raw_collect_integer.
8958 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
8959 (mips64_fill_gregset): Use raw_collect_integer
8960 (mips64_fill_fpregset): Use raw_supply_integer.
8961 * regcache.c (regcache::raw_supply_integer): New function.
8962 (regcache::raw_collect_integer): Likewise.
8963 * regcache.h: (regcache::raw_supply_integer): New declaration.
8964 (regcache::raw_collect_integer): Likewise.
8965
8966 2017-05-24 Yao Qi <yao.qi@linaro.org>
8967
8968 * Makefile.in (SFILES): Add gdbarch-selftests.c.
8969 (COMMON_OBS): Add gdbarch-selftests.o.
8970 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
8971 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
8972 * gdbarch-selftests.c: New file.
8973 * regcache.h (regcache) <~regcache>: Mark it virtual if
8974 GDB_SELF_TEST.
8975 <raw_write>: Likewise.
8976
8977 2017-05-24 Yao Qi <yao.qi@linaro.org>
8978
8979 * regcache.c (current_regcache): Change it to
8980 regcache::current_regcache.
8981 (regcache_observer_target_changed): Update.
8982 (regcache_thread_ptid_changed): Make it a regcache static
8983 method.
8984 (regcache_thread_ptid_changed): Update.
8985 (class regcache_access): New.
8986 (current_regcache_test): Update.
8987 (_initialize_regcache): Update.
8988 * regcache.h: Include forward_list.
8989 (regcache): Declare regcache_thread_ptid_changed and declare
8990 registers_changed_ptid as friend.
8991
8992 2017-05-24 Yao Qi <yao.qi@linaro.org>
8993
8994 * i387-tdep.c (i387_register_to_value): Use register_size
8995 instead of TYPE_LENGTH.
8996 * m68k-tdep.c (m68k_register_to_value): Likewise.
8997
8998 2017-05-24 Yao Qi <yao.qi@linaro.org>
8999
9000 * i387-tdep.c (i387_convert_register_p): Return false if type
9001 code isn't TYPE_CODE_FLT.
9002
9003 2017-05-24 Yao Qi <yao.qi@linaro.org>
9004
9005 * alpha-tdep.c (alpha_convert_register_p): Return true if type
9006 length is 4.
9007 (alpha_register_to_value): Remove type length check.
9008 (alpha_value_to_register): Likewise.
9009
9010 2017-05-24 Yao Qi <yao.qi@linaro.org>
9011
9012 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
9013 TYPE_CODE_FLT.
9014
9015 2017-05-24 Yao Qi <yao.qi@linaro.org>
9016
9017 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
9018 TYPE_CODE_FLT or not.
9019
9020 2017-05-24 Yao Qi <yao.qi@linaro.org>
9021
9022 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
9023 * avr-tdep.c (avr_gdbarch_init): Likewise.
9024 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9025 * cris-tdep.c (cris_gdbarch_init): Likewise.
9026 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
9027 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9028 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9029 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9030 * mep-tdep.c (mep_gdbarch_init): Likewise.
9031 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9032 * mips-tdep.c (mips_gdbarch_init): Likewise.
9033 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9034 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9035 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
9036 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9037 * v850-tdep.c (v850_gdbarch_init): Likewise.
9038
9039 2017-05-24 Yao Qi <yao.qi@linaro.org>
9040
9041 * selftest-arch.c (tests_with_arch): Call registers_changed
9042 and reinit_frame_cache.
9043 * selftest.c (run_self_tests): Likewise.
9044
9045 2017-05-24 Yao Qi <yao.qi@linaro.org>
9046
9047 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
9048 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
9049
9050 2017-05-24 Yao Qi <yao.qi@linaro.org>
9051
9052 * rl78-tdep.c (rl78_gdbarch_init): Don't call
9053 set_gdbarch_print_insn.
9054
9055 2017-05-24 Yao Qi <yao.qi@linaro.org>
9056
9057 * h8300-tdep.c (h8300_gdbarch_init): Don't call
9058 set_gdbarch_print_insn.
9059
9060 2017-05-24 Yao Qi <yao.qi@linaro.org>
9061
9062 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9063 set_gdbarch_print_insn.
9064 * arc-tdep.c (arc_gdbarch_init): Likewise.
9065 * arch-utils.c: include dis-asm.h.
9066 (default_print_insn): New function.
9067 * arch-utils.h (default_print_insn): Declare.
9068 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
9069 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9070 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
9071 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
9072 * frv-tdep.c (frv_gdbarch_init): Likewise.
9073 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
9074 * gdbarch.sh (print_insn): Use default_print_insn.
9075 * gdbarch.c: Regenerated.
9076 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9077 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
9078 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9079 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
9080 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9081 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
9082 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
9083 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9084 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
9085 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9086 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9087 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9088 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
9089 * mt-tdep.c (mt_gdbarch_init): Likewise.
9090 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9091 * nios2-tdep.c (nios2_print_insn): Remove.
9092 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
9093 * rx-tdep.c (rx_gdbarch_init): Likewise.
9094 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9095 * score-tdep.c (score_print_insn): Remove.
9096 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
9097 * sh-tdep.c (sh_gdbarch_init): Likewise.
9098 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9099 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9100 * tic6x-tdep.c (tic6x_print_insn): Remove.
9101 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
9102 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
9103 * v850-tdep.c (v850_gdbarch_init): Likewise.
9104 * vax-tdep.c (vax_gdbarch_init): Likewise.
9105 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9106 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
9107
9108 2017-05-23 John Baldwin <jhb@FreeBSD.org>
9109
9110 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
9111 (MIPS_FP0_REGNUM): Remove.
9112 (MIPS_FSR_REGNUM): Remove.
9113 (mips_fbsd_supply_fpregs): Use mips_regnum.
9114 (mips_fbsd_supply_gregs): Likewise.
9115 (mips_fbsd_collect_fpregs): Likewise.
9116 (mips_fbsd_collect_gregs): Likewise.
9117
9118 2017-05-23 John Baldwin <jhb@FreeBSD.org>
9119
9120 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
9121 (getpfpregs_supplies): New function.
9122 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
9123 getfpregs_supplies.
9124 (mips_fbsd_store_inferior_registers): Likewise.
9125
9126 2017-05-22 Pedro Alves <palves@redhat.com>
9127
9128 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
9129 maintainer.
9130
9131 2017-05-22 Alan Hayward <alan.hayward@arm.com>
9132
9133 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
9134 (store_register): Likewise.
9135 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
9136 (get_decimal_float_return_value): Likewise.
9137 (do_ppc_sysv_return_value): Likewise.
9138 (ppc64_sysv_abi_push_integer): Likewise.
9139 (ppc64_sysv_abi_push_freg): Likewise.
9140 (ppc64_sysv_abi_return_value_base): Likewise.
9141 (ppc64_sysv_abi_return_value): Likewise.
9142 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
9143 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
9144 * rs6000-nat.c: Likewise.
9145 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
9146 (rs6000_value_to_register): Likewise.
9147 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
9148
9149 2017-05-21 Tom Tromey <tom@tromey.com>
9150
9151 PR rust/21466:
9152 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
9153 arrays as "[T]", not "[T; ]".
9154
9155 2017-05-19 Tom Tromey <tom@tromey.com>
9156
9157 PR rust/21484:
9158 * rust-lang.c (exp_descriptor_rust): New function.
9159 (rust_language_defn): Use it.
9160 * p-lang.c (pascal_language_defn): Update.
9161 * opencl-lang.c (opencl_language_defn): Update.
9162 * objc-lang.c (objc_language_defn): Update.
9163 * m2-lang.c (m2_language_defn): Update.
9164 * language.h (struct language_defn)
9165 <la_watch_location_expression>: New member.
9166 * language.c (unknown_language_defn, auto_language_defn)
9167 (local_language_defn): Update.
9168 * go-lang.c (go_language_defn): Update.
9169 * f-lang.c (f_language_defn): Update.
9170 * d-lang.c (d_language_defn): Update.
9171 * c-lang.h (c_watch_location_expression): Declare.
9172 * c-lang.c (c_watch_location_expression): New function.
9173 (c_language_defn, cplus_language_defn, asm_language_defn)
9174 (minimal_language_defn): Use it.
9175 * breakpoint.c (watch_command_1): Call
9176 la_watch_location_expression.
9177 * ada-lang.c (ada_language_defn): Update.
9178
9179 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9180
9181 PR tui/21482
9182 * gdb_curses.h (NOMACROS): Define.
9183 (NCURSES_NOMACROS): Define.
9184
9185 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9186
9187 PR tui/21482
9188 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
9189 arg to char *.
9190 * tui/tui-wingeneral.c (box_win): Likewise.
9191 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
9192 (tui_show_source_line): Likewise.
9193 (tui_show_exec_info_content): Likewise.
9194
9195 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
9196
9197 * sparc-tdep.c (sparc_structure_return_p)
9198 (sparc_arg_on_registers_p): New functions.
9199 (sparc32_store_arguments): Use them.
9200 * sparc64-tdep.c (sparc64_16_byte_align_p)
9201 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
9202 Handle TYPE_CODE_ARRAY.
9203
9204 2017-05-17 Yao Qi <yao.qi@linaro.org>
9205
9206 * cli/cli-decode.c (add_alias_cmd): New function.
9207 * command.h (add_alias_cmd): Declare.
9208 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
9209 instead call add_alias_cmd.
9210
9211 2017-05-17 Pedro Alves <palves@redhat.com>
9212
9213 * Makefile.in (nat_extra_makefile_frag): Rename to ...
9214 (nat_makefile_frag): ... this. All references updated.
9215 * configure.ac: Likewise.
9216 * configure.nat: Likewise. Enhance comments.
9217 * configure: Regenerate.
9218
9219 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9220
9221 * procfs.c (procfs_create_inferior): Change prototype to match
9222 definition.
9223
9224 2017-05-13 Eli Zaretskii <eliz@gnu.org>
9225
9226 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
9227 C++ compiler warning.
9228
9229 2017-05-12 Tom Tromey <tom@tromey.com>
9230
9231 PR rust/21483:
9232 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
9233 recurse, just call value_struct_elt directly.
9234
9235 2017-05-12 Tom Tromey <tom@tromey.com>
9236
9237 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
9238 OP_RUST_ARRAY>: Fix.
9239
9240 2017-05-12 Tom Tromey <tom@tromey.com>
9241
9242 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
9243
9244 2017-05-09 Yao Qi <yao.qi@linaro.org>
9245
9246 * regcache.c: Include <forward_list>.
9247 (struct regcache_list): Remove.
9248 (current_regcache): Update.
9249 (get_thread_arch_aspace_regcache): Update for std::forward_list.
9250 (regcache_thread_ptid_changed): Likewise.
9251 (registers_changed_ptid): Likewise.
9252 (current_regcache_size): Likewise.
9253
9254 2017-05-09 Yao Qi <yao.qi@linaro.org>
9255
9256 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
9257 (current_regcache_size): New function.
9258 (current_regcache_test): New function.
9259 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
9260
9261 2017-05-08 Alan Hayward <alan.hayward@arm.com>
9262
9263 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
9264 (print_gp_register_row): Use get_frame_register_value.
9265
9266 2017-05-08 Alan Hayward <alan.hayward@arm.com>
9267
9268 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
9269 (mips_supply_fpregset): Likewise.
9270 (mips64_supply_gregset): Likewise.
9271
9272 2017-05-08 Alan Hayward <alan.hayward@arm.com>
9273
9274 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
9275 regcache->raw_supply_zeroed.
9276
9277 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9278
9279 * configure.nat: Rearrange 'case' statements to match
9280 host before cpu.
9281
9282 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9283
9284 * Makefile.in: Remove "@host_makefile_frag@". Add variables
9285 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
9286 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
9287 "@nat_extra_makefile_frag@".
9288 (Makefile): Remove dependency on "@frags@".
9289 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
9290 (data-directory/Makefile): Likewise.
9291 * config/aarch64/linux.mh: Deleted; moved contents to
9292 "gdb/configure.nat".
9293 * config/alpha/alpha-linux.mh: Likewise.
9294 * config/alpha/nbsd.mh: Likewise.
9295 * config/arm/linux.mh: Likewise.
9296 * config/arm/nbsdelf.mh: Likewise.
9297 * config/i386/cygwin.mh: Likewise.
9298 * config/i386/cygwin64.mh: Likewise.
9299 * config/i386/darwin.mh: Likewise.
9300 * config/i386/fbsd.mh: Likewise.
9301 * config/i386/fbsd64.mh: Likewise.
9302 * config/i386/go32.mh: Likewise.
9303 * config/i386/i386gnu.mh: Likewise.
9304 * config/i386/i386sol2.mh: Likewise.
9305 * config/i386/linux.mh: Likewise.
9306 * config/i386/linux64.mh: Likewise.
9307 * config/i386/mingw.mh: Likewise.
9308 * config/i386/mingw64.mh: Likewise.
9309 * config/i386/nbsd64.mh: Likewise.
9310 * config/i386/nbsdelf.mh: Likewise.
9311 * config/i386/nto.mh: Likewise.
9312 * config/i386/obsd.mh: Likewise.
9313 * config/i386/obsd64.mh: Likewise.
9314 * config/i386/sol2-64.mh: Likewise.
9315 * config/ia64/linux.mh: Likewise.
9316 * config/m32r/linux.mh: Likewise.
9317 * config/m68k/linux.mh: Likewise.
9318 * config/m68k/nbsdelf.mh: Likewise.
9319 * config/m68k/obsd.mh: Likewise.
9320 * config/m88k/obsd.mh: Likewise.
9321 * config/mips/fbsd.mh: Likewise.
9322 * config/mips/linux.mh: Likewise.
9323 * config/mips/nbsd.mh: Likewise.
9324 * config/mips/obsd64.mh: Likewise.
9325 * config/pa/linux.mh: Likewise.
9326 * config/pa/nbsd.mh: Likewise.
9327 * config/pa/obsd.mh: Likewise.
9328 * config/powerpc/aix.mh: Likewise.
9329 * config/powerpc/fbsd.mh: Likewise.
9330 * config/powerpc/linux.mh: Likewise.
9331 * config/powerpc/nbsd.mh: Likewise.
9332 * config/powerpc/obsd.mh: Likewise.
9333 * config/powerpc/ppc64-linux.mh: Likewise.
9334 * config/powerpc/spu-linux.mh: Likewise.
9335 * config/s390/linux.mh: Likewise.
9336 * config/sh/nbsd.mh: Likewise.
9337 * config/sparc/fbsd.mh: Likewise.
9338 * config/sparc/linux.mh: Likewise.
9339 * config/sparc/linux64.mh: Likewise.
9340 * config/sparc/nbsd64.mh: Likewise.
9341 * config/sparc/nbsdelf.mh: Likewise.
9342 * config/sparc/obsd64.mh: Likewise.
9343 * config/sparc/sol2.mh: Likewise.
9344 * config/tilegx/linux.mh: Likewise.
9345 * config/vax/nbsdelf.mh: Likewise.
9346 * config/vax/obsd.mh: Likewise.
9347 * config/xtensa/linux.mh: Likewise.
9348 * config/i386/i386gnu.mn: New file, with excerpts from
9349 "config/i386/i386gnu.mh".
9350 * configure: Regenerate.
9351 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
9352 *.mh files under "gdb/config".
9353 * configure.nat: New file, with contents from the
9354 "gdb/config/*/*.mh" files.
9355
9356 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
9357
9358 * btrace.c (btrace_clear): Free insn vector.
9359
9360 2017-05-05 Pedro Alves <palves@redhat.com>
9361
9362 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
9363 * configure: Regenerate.
9364
9365 2017-05-04 Pedro Alves <palves@redhat.com>
9366
9367 * Makefile.in (SFILES): Add progspace-and-thread.c.
9368 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
9369 (COMMON_OBS): Add progspace-and-thread.o.
9370 * breakpoint.c: Include "progspace-and-thread.h".
9371 (update_inserted_breakpoint_locations)
9372 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
9373 Use scoped_restore_current_pspace_and_thread.
9374 (create_std_terminate_master_breakpoint): Use
9375 scoped_restore_current_program_space.
9376 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
9377 (print_breakpoint_location): Use
9378 scoped_restore_current_program_space.
9379 (bp_loc_is_permanent): Use
9380 scoped_restore_current_pspace_and_thread.
9381 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
9382 (download_tracepoint_locations): Use
9383 scoped_restore_current_pspace_and_thread.
9384 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
9385 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
9386 (enum step_over_calls_kind): Moved from inferior.h.
9387 (class scoped_restore_current_thread): New class.
9388 * gdbthread.h (make_cleanup_restore_current_thread): Delete
9389 declaration.
9390 (scoped_restore_current_thread): New class.
9391 * infcmd.c: Include "common/gdb_optional.h".
9392 (continue_1, proceed_after_attach): Use
9393 scoped_restore_current_thread.
9394 (notice_new_inferior): Use scoped_restore_current_thread.
9395 * inferior.c: Include "progspace-and-thread.h".
9396 (restore_inferior, save_current_inferior): Delete.
9397 (add_inferior_command, clone_inferior_command): Use
9398 scoped_restore_current_pspace_and_thread.
9399 * inferior.h (scoped_restore_current_inferior): New class.
9400 * infrun.c: Include "progspace-and-thread.h" and
9401 "common/gdb_optional.h".
9402 (follow_fork_inferior): Use
9403 scoped_restore_current_pspace_and_thread.
9404 (scoped_restore_exited_inferior): New class.
9405 (handle_vfork_child_exec_or_exit): Use
9406 scoped_restore_exited_inferior,
9407 scoped_restore_current_pspace_and_thread,
9408 scoped_restore_current_thread and scoped_restore.
9409 (fetch_inferior_event): Use scoped_restore_current_thread.
9410 * linespec.c (decode_line_full, decode_line_1): Use
9411 scoped_restore_current_program_space.
9412 * mi/mi-main.c: Include "progspace-and-thread.h".
9413 (exec_continue): Use scoped_restore_current_thread.
9414 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
9415 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
9416 * proc-service.c (ps_pglobal_lookup): Use
9417 scoped_restore_current_program_space.
9418 * progspace-and-thread.c: New file.
9419 * progspace-and-thread.h: New file.
9420 * progspace.c (release_program_space, clone_program_space): Use
9421 scoped_restore_current_program_space.
9422 (restore_program_space, save_current_program_space)
9423 (save_current_space_and_thread): Delete.
9424 (switch_to_program_space_and_thread): Moved to
9425 progspace-and-thread.c.
9426 * progspace.h (save_current_program_space)
9427 (save_current_space_and_thread): Delete declarations.
9428 (scoped_restore_current_program_space): New class.
9429 * remote.c (remote_btrace_maybe_reopen): Use
9430 scoped_restore_current_thread.
9431 * symtab.c: Include "progspace-and-thread.h".
9432 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
9433 * thread.c (print_thread_info_1): Use
9434 scoped_restore_current_thread.
9435 (struct current_thread_cleanup): Delete.
9436 (do_restore_current_thread_cleanup)
9437 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
9438 (scoped_restore_current_thread::~scoped_restore_current_thread):
9439 ... this new dtor.
9440 (make_cleanup_restore_current_thread): Rename/convert to ...
9441 (scoped_restore_current_thread::scoped_restore_current_thread):
9442 ... this new ctor.
9443 (thread_apply_all_command): Use scoped_restore_current_thread.
9444 (thread_apply_command): Use scoped_restore_current_thread.
9445 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
9446 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
9447
9448 2017-05-04 Pedro Alves <palves@redhat.com>
9449
9450 * thread.c (make_cleanup_restore_current_thread): Move
9451 find_thread_ptid call before the is_stopped call. Assert that the
9452 thread is found. Replace is_stopped call by checking the thread's
9453 state directly. Remove unnecessary NULL-thread check.
9454
9455 2017-05-04 Pedro Alves <palves@redhat.com>
9456
9457 * corelow.c (thread_section_name): New class.
9458 (get_core_register_section, get_core_siginfo): Use it.
9459
9460 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9461
9462 * corelow.c (sniff_core_bfd): Remove extra semicolon.
9463 (get_core_register_section): Remove xfree of NULL pointer.
9464
9465 2017-05-03 Alan Hayward <alan.hayward@arm.com>
9466
9467 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
9468 * regcache.c (regcache::raw_supply_zeroed): New function.
9469 * regcache.h (regcache::raw_supply_zeroed): New declaration.
9470
9471 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
9472
9473 * gdbarch.sh: Remove commented out definition of
9474 TARGET_CHAR_BIT.
9475 * gdbarch.h: Re-generate.
9476
9477 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
9478
9479 * configure: Regenerate.
9480
9481 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
9482
9483 * solib-target.c (solib_target_relocate_section_addresses):
9484 Remove num_section_bases, num_bases, segment_bases variables.
9485
9486 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9487
9488 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
9489
9490 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9491
9492 * solib-target.c: Include <vector>
9493 (struct lm_info_target) <~lm_info_target>: Remove.
9494 <segment_bases, section_bases>: Change type to
9495 std::vector<CORE_ADDR>.
9496 (library_list_start_segment, library_list_start_section,
9497 library_list_end_library,
9498 solib_target_relocate_section_addresses): Adjust.
9499
9500 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9501
9502 * gdbarch.sh (software_single_step): Change return type to
9503 std::vector<CORE_ADDR>.
9504 * gdbarch.c, gdbarch.h: Re-generate.
9505 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9506 Adjust.
9507 (arm_deal_with_atomic_sequence_raw): Adjust.
9508 (thumb_get_next_pcs_raw): Adjust.
9509 (arm_get_next_pcs_raw): Adjust.
9510 (arm_get_next_pcs): Adjust.
9511 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
9512 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
9513 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
9514 (alpha_software_single_step): Adjust.
9515 * alpha-tdep.h (alpha_software_single_step): Adjust.
9516 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
9517 * arm-tdep.c (arm_software_single_step): Adjust.
9518 (arm_breakpoint_kind_from_current_state): Adjust.
9519 * arm-tdep.h (arm_software_single_step): Adjust.
9520 * breakpoint.c (insert_single_step_breakpoint): Adjust.
9521 * cris-tdep.c (cris_software_single_step): Adjust.
9522 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
9523 (micromips_deal_with_atomic_sequence): Adjust.
9524 (deal_with_atomic_sequence): Adjust.
9525 (mips_software_single_step): Adjust.
9526 * mips-tdep.h (mips_software_single_step): Adjust.
9527 * moxie-tdep.c (moxie_software_single_step): Adjust.
9528 * nios2-tdep.c (nios2_software_single_step): Adjust.
9529 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
9530 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
9531 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
9532 * s390-linux-tdep.c (s390_software_single_step): Adjust.
9533 * sparc-tdep.c (sparc_software_single_step): Adjust.
9534 * spu-tdep.c (spu_software_single_step): Adjust.
9535 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9536
9537 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9538
9539 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9540 * gdbarch.h: Re-generate.
9541
9542 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9543
9544 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9545 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9546 * python/py-instruction.c, python/py-instruction.h: New file.
9547 * python/py-record.c: Add py-instruction.h include.
9548 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9549 gdb.RecordInstruction.
9550 * python/python-internal.h: Add gdbpy_initialize_instruction
9551 declaration.
9552 * python/python.c (do_start_initialization): Add
9553 gdbpy_initialize_instruction.
9554
9555 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9556
9557 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9558 Remove.
9559 (btrace_func_from_recpy_func): New function.
9560 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9561 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9562 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9563 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9564 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9565 Also, use new helper functions.
9566 (btpy_list_item): Use new helper functions.
9567 (recpy_bt_function_call_history): Use new type name.
9568 (btpy_call_getset): Remove.
9569 (gdbpy_initialize_btrace): Remove code to initialize
9570 gdb.BtraceFunctionCall.
9571 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9572 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9573 recpy_bt_func_prev, recpy_bt_func_next): New export.
9574 * python/py-record.c (recpy_func_type): New static object.
9575 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9576 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9577 recpy_func_next): New function.
9578 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9579 (recpy_func_getset): New static object.
9580 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9581 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9582
9583 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9584
9585 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9586 (btpy_object, btpy_insn_type, btpy_new): Remove.
9587 (btpy_list_object): Use gdb.RecordInstruction type instead of
9588 gdb.BtraceInstruction type.
9589 (btrace_insn_from_recpy_insn): New function.
9590 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9591 btpy_new.
9592 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9593 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9594 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9595 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9596 instead of btpy_object.
9597 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9598 btpy_insn_data, btpy_insn_decode): Rename to ...
9599 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9600 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9601 recpy_bt_insn_decode): This. Also, use new helper functions.
9602 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9603 recpy_insn_type.
9604 (btpy_insn_getset): Remove.
9605 (gdbpy_initialize_btrace): Remove code to initialize
9606 gdb.BtraceInstruction. Use recpy_element_object.
9607 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9608 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9609 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9610 * python/py-record.c (recpy_insn_type): New static object.
9611 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9612 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9613 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9614 New function.
9615 (recpy_insn_getset): New static object.
9616 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9617 * python/py-record.h (recpy_element_object): New typedef.
9618 (recpy_insn_type, recpy_insn_new): New export.
9619
9620 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9621
9622 * py-record-btrace.c (btpy_insn_new): Removed.
9623 (btpy_insn_or_gap_new): New function.
9624 (btpy_insn_error): Removed.
9625 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9626 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9627 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9628 btpy_insn_or_gap_new instead of btpy_insn_new.
9629 (btpy_insn_getset): Remove btpy_insn_error.
9630 * py-record.c (recpy_gap_type): New static object.
9631 (recpy_gap_object): New typedef.
9632 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9633 recpy_gap_reason_string): New function.
9634 (recpy_gap_getset): New static object.
9635 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9636 * py-record.h (recpy_gap_new): New export.
9637
9638 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9639
9640 * python/py-record.c (recpy_ptid): Remove.
9641 (recpy_record_getset): Remove recpy_ptid.
9642
9643 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9644
9645 * btrace.c (btrace_fetch): Set inferior_ptid.
9646 * python/py-record-btrace.c: Add "py-record.h" include.
9647 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9648 recpy_bt_end, recpy_bt_instruction_history,
9649 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9650 in gdb.Record object instead of current ptid.
9651 * python/py-record.c: Include new "py-record.h" file.
9652 (recpy_record_object): Moved to py-record.h.
9653 * python/py-record.h: New file.
9654
9655 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9656
9657 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9658 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9659 indentation.
9660
9661 2017-05-01 Joel Brobecker <brobecker@adacore.com>
9662
9663 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9664 the past maintainers section.
9665
9666 2017-04-28 Yao Qi <yao.qi@linaro.org>
9667
9668 * infcmd.c (get_return_value): Use regcache ctor, and remove
9669 cleanup.
9670
9671 2017-04-28 Yao Qi <yao.qi@linaro.org>
9672 Pedro Alves <palves@redhat.com>
9673
9674 * regcache.c (regcache::regcache): New tag dispatch ctor.
9675 (do_cooked_read): Moved above.
9676 (regcache_dup): Use the tag dispatch ctor..
9677 * regcache.h (regcache): Declare ctor, delete copy ctor and
9678 assignment operator, remove friend regcache_dup.
9679
9680 2017-04-28 Yao Qi <yao.qi@linaro.org>
9681
9682 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9683 call method save instead of regcache_cpy.
9684 * regcache.h (struct regcache): Make regcache_dup a friend.
9685
9686 2017-04-28 Yao Qi <yao.qi@linaro.org>
9687
9688 * regcache.c (struct regcache): Move to regcache.h
9689 (regcache::arch): New method.
9690 (regcache_get_ptid): Update.
9691 (get_regcache_arch): Call arch method.
9692 (get_regcache_aspace): Call method aspace.
9693 (register_buffer): Change it to method.
9694 (regcache_save): Change it to regcache::save.
9695 (regcache_restore): Likewise.
9696 (regcache_cpy_no_passthrough): Remove the declaration.
9697 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9698 (regcache_cpy_no_passthrough): Change it to method
9699 cpy_no_passthrough.
9700 (regcache_register_status): Change it to method
9701 get_register_status.
9702 (regcache_invalidate): Change it to method invalidate.
9703 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9704 (regcache_raw_update): Change it to method raw_update.
9705 (regcache_raw_read): Likewise.
9706 (regcache_raw_read_signed): Likewise.
9707 (regcache_raw_read_unsigned): Likewise.
9708 (regcache_raw_write_signed): Likewise.
9709 (regcache_raw_write_unsigned): Likewise.
9710 (regcache_cooked_read): Likewise.
9711 (regcache_cooked_read_value): Likewise.
9712 (regcache_cooked_read_signed): Likewise.
9713 (regcache_cooked_read_unsigned): Likewise.
9714 (regcache_cooked_write_signed): Likewise.
9715 (regcache_cooked_write_unsigned): Likewise.
9716 (regcache_raw_set_cached_value): Likewise.
9717 (regcache_raw_write): Likewise.
9718 (regcache_cooked_write): Likewise.
9719 (regcache_xfer_part): Likewise.
9720 (regcache_raw_read_part): Likewise.
9721 (regcache_raw_write_part): Likewise.
9722 (regcache_cooked_read_part): Likewise.
9723 (regcache_cooked_write_part): Likewise.
9724 (regcache_raw_supply): Likewise.
9725 (regcache_raw_collect): Likewise.
9726 (regcache_transfer_regset): Likewise.
9727 (regcache_supply_regset): Likewise.
9728 (regcache_collect_regset): Likewise.
9729 (regcache_debug_print_register): Likewise.
9730 (enum regcache_dump_what): Move it to regcache.h.
9731 (regcache_dump): Change it to method dump.
9732 * regcache.h (enum regcache_dump_what): New.
9733 (class regcache): New.
9734 * target.c (target_fetch_registers): Call method
9735 debug_print_register.
9736 (target_store_registers): Likewise.
9737
9738 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9739
9740 * windows-nat.c (struct lm_info_windows): Initialize field.
9741 (windows_make_so): Allocate lm_info_windows with new.
9742 (windows_free_so): Free lm_info_windows with delete.
9743
9744 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9745
9746 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9747 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9748 cleanup.
9749 (darwin_free_so): Free lm_info_darwin with delete.
9750
9751 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9752
9753 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9754 <l_addr_p>: Change type to bool.
9755 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9756 (svr4_free_so): Free lm_info_svr4 with delete.
9757 (svr4_copy_library_list): Replace memcpy with call to copy
9758 constructor.
9759 (library_list_start_library, svr4_default_sos): Allocate
9760 lm_info_svr4 with new.
9761
9762 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9763
9764 * solib-target.c (struct lm_info_target): Add destructor,
9765 initialize fields.
9766 <name>: Change type to std::string.
9767 (library_list_start_library): Allocate lm_info_target with new.
9768 (solib_target_free_library_list): Free lm_info_target with
9769 delete.
9770 (solib_target_current_sos): Adapt to std::string.
9771 (solib_target_free_so): Free lm_info_target with delete.
9772
9773 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9774
9775 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9776 fields.
9777 (frv_current_sos): Allocate lm_info_frv with new.
9778 (frv_relocate_main_executable): Free lm_info_frv with delete,
9779 allocate with new.
9780 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9781
9782 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9783
9784 * solib-frv.c (struct lm_info_frv): Fix indentation.
9785
9786 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9787
9788 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9789 map field.
9790 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9791 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9792 and allocate with new.
9793 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9794
9795 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9796
9797 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9798 <filename, member_name>: Change type to std::string.
9799 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9800 (library_list_start_library): Allocate lm_info_aix with new.
9801 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9802 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9803 with copy constructor.
9804
9805 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9806
9807 * solist.h (struct lm_info): Remove.
9808 (struct lm_info_base): New class.
9809 (struct so_list) <lm_info>: Change type to lm_info_base *.
9810 * nto-tdep.c (struct lm_info): Remove.
9811 (lm_addr): Adjust.
9812 * solib-aix.c (struct lm_info): Rename to ...
9813 (struct lm_info_aix): ... this. Extend lm_info_base.
9814 (lm_info_p): Rename to ...
9815 (lm_info_aix_p): ... this, and adjust.
9816 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9817 solib_aix_parse_libraries, library_list_start_library,
9818 solib_aix_free_library_list, solib_aix_parse_libraries,
9819 solib_aix_get_library_list,
9820 solib_aix_relocate_section_addresses, solib_aix_free_so,
9821 solib_aix_get_section_offsets,
9822 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9823 Adjust.
9824 (struct solib_aix_inferior_data) <library_list>: Adjust.
9825 * solib-darwin.c (struct lm_info): Rename to ...
9826 (struct lm_info_darwin): ... this. Extend lm_info_base.
9827 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9828 * solib-dsbt.c (struct lm_info): Rename to ...
9829 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9830 (struct dsbt_info) <main_executable_lm_info): Adjust.
9831 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9832 dsbt_relocate_section_addresses): Adjust.
9833 * solib-frv.c (struct lm_info): Rename to ...
9834 (struct lm_info_frv): ... this. Extend lm_info_base.
9835 (main_executable_lm_info): Adjust.
9836 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9837 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9838 find_canonical_descriptor_in_load_object,
9839 frv_fdpic_find_canonical_descriptor): Adjust.
9840 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9841 to lm_info_svr4.
9842 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9843 svr4_clear_so, svr4_copy_library_list,
9844 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9845 svr4_current_sos, svr4_fetch_objfile_link_map,
9846 solist_update_incremental): Adjust.
9847 * solib-svr4.h (struct lm_info_svr4): Move here from
9848 solib-svr4.c.
9849 * solib-target.c (struct lm_info): Rename to ...
9850 (struct lm_info_target): ... this. Extend lm_info_base.
9851 (lm_info_p): Rename to ...
9852 (lm_info_target_p): ... this.
9853 (solib_target_parse_libraries, library_list_start_segment,
9854 library_list_start_section, library_list_start_library,
9855 library_list_end_library, solib_target_free_library_list,
9856 solib_target_current_sos, solib_target_free_so,
9857 solib_target_relocate_section_addresses): Adjust.
9858 * windows-nat.c (struct lm_info): Rename to ...
9859 (struct lm_info_windows): ... this. Extend lm_info_base.
9860 (windows_make_so, handle_load_dll, handle_unload_dll,
9861 windows_xfer_shared_libraries): Adjust.
9862
9863 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9864
9865 * solib-darwin.c (struct darwin_so_list): Remove.
9866 (darwin_current_sos): Allocate an so_list object instead of a
9867 darwin_so_list, separately allocate an lm_info object.
9868 (darwin_free_so): Free lm_info.
9869
9870 2017-04-28 John Baldwin <jhb@FreeBSD.org>
9871
9872 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
9873 with fprintf_filtered.
9874
9875 2017-04-28 Yao Qi <yao.qi@linaro.org>
9876
9877 * regcache.c (regcache::regcache): New function.
9878 (regcache::~regcache): New function.
9879 (regcache_xmalloc_1): Remove.
9880 (regcache_xmalloc): Call new regcache.
9881 (regcache_xfree): Call delete regcache.
9882 (get_thread_arch_aspace_regcache): Call new regcache.
9883
9884 2017-04-28 Yao Qi <yao.qi@linaro.org>
9885
9886 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
9887 lwp instead of ptid_get_lwp.
9888
9889 2017-04-28 Yao Qi <yao.qi@linaro.org>
9890
9891 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
9892 lwp_info instead of getting from inferior_ptid.
9893
9894 2017-04-27 Keith Seitz <keiths@redhat.com>
9895
9896 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
9897 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
9898 (CV_CONVERSION_BADNESS): Define.
9899 (rank_one_type): Remove overly restrictive rvalue reference
9900 rank checks.
9901 Add cv-qualifier checks and subranks for type equality.
9902 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
9903 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
9904 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
9905
9906 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
9907
9908 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
9909 count when creating the object.
9910
9911 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
9912 Ulrich Weigand <uweigand@de.ibm.com>
9913
9914 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
9915 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
9916 is used in AIX.
9917 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
9918 (process_xcoff_symbol): Likewise.
9919 (scan_xcoff_symtab): Likewise.
9920
9921 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9922
9923 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
9924 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
9925 (ia64_access_reg): Use get_frame_register_unsigned.
9926 (ia64_access_rse_reg): Likewise.
9927 (ia64_libunwind_frame_prev_register): Likewise.
9928
9929 2017-04-26 Jiong Wang <jiong.wang@arm.com>
9930
9931 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
9932 * gdbarch.c: Regenerated.
9933 * gdbarch.h: Regenerated.
9934 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
9935 visibility external.
9936 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
9937 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
9938 (enum cfa_how_kind): Move to ...
9939 (struct dwarf2_frame_state_reg_info): Likewise.
9940 (struct dwarf2_frame_state): Likewise.
9941 * dwarf2-frame.h: ... here.
9942 (dwarf2_frame_state_alloc_regs): New declaration.
9943 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
9944 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
9945
9946 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9947
9948 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
9949 regcache_raw_read_unsigned.
9950 (xtensa_pseudo_register_write): Likewise.
9951
9952 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9953
9954 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
9955 (nds32_pseudo_register_write): Likewise.
9956
9957 2017-04-25 Yao Qi <yao.qi@linaro.org>
9958
9959 * regcache.c (struct regcache) <readonly_p>: Change its type
9960 to bool.
9961 (regcache_xmalloc_1): Update parameter type and callers update.
9962
9963 2017-04-25 Yao Qi <yao.qi@linaro.org>
9964
9965 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9966 set_gdbarch_wchar_bit.
9967 * arm-tdep.c (arm_gdbarch_init): Likewise.
9968
9969 2017-04-25 Pedro Alves <palves@redhat.com>
9970
9971 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
9972 (BothAreRelocatable, memcopy, memmove): Don't define.
9973 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
9974 macros.
9975
9976 2017-04-25 Pedro Alves <palves@redhat.com>
9977
9978 * common/common-defs.h: Include "common/poison.h".
9979 * common/function-view.h: (Not, Or, Requires): Move to traits.h
9980 and adjust.
9981 * common/poison.h: New file.
9982 * common/traits.h: Include <type_traits>.
9983 (Not, Or, Requires): New, moved from common/function-view.h.
9984
9985 2017-04-25 Pedro Alves <palves@redhat.com>
9986
9987 * breakpoint.h (struct breakpoint): In-class initialize all
9988 fields. Make boolean fields "bool".
9989 * breakpoint.c (init_raw_breakpoint_without_location): Remove
9990 memset call and initializations no longer necessary.
9991
9992 2017-04-25 Pedro Alves <palves@redhat.com>
9993
9994 * btrace.c (pt_btrace_insn_flags): Change parameter type to
9995 reference.
9996 (pt_btrace_insn): New function.
9997 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
9998
9999 2017-04-25 Pedro Alves <palves@redhat.com>
10000
10001 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
10002 "base" field and inherit from "bp_location" instead. Add
10003 non-default ctor.
10004 (allocate_location_exception): Use new non-default ctor.
10005 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
10006 (init_bp_location): Convert to ...
10007 (bp_location::bp_location): ... this new ctor, and remove memset
10008 call.
10009 (base_breakpoint_allocate_location): Use the new non-default ctor.
10010 * breakpoint.h (bp_location): Now a class. Declare default and
10011 non-default ctors. In-class initialize all members.
10012 (init_bp_location): Remove declaration.
10013
10014 2017-04-25 Pedro Alves <palves@redhat.com>
10015
10016 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
10017 assignment operator.
10018
10019 2017-04-24 Yao Qi <yao.qi@linaro.org>
10020
10021 * doublest.c (convert_doublest_to_floatformat): Call
10022 floatformat_totalsize_bytes.
10023
10024 2017-04-22 Tom Tromey <tom@tromey.com>
10025
10026 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
10027 ui_out_emit_list.
10028 * stack.c (print_frame): Use ui_out_emit_list.
10029 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
10030 ui_out_emit_list.
10031 * mi/mi-main.c (print_one_inferior)
10032 (mi_cmd_data_list_register_names)
10033 (mi_cmd_data_list_register_values, mi_cmd_list_features)
10034 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
10035 ui_out_emit_list.
10036 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
10037 (mi_output_solib_attribs): Use ui_out_emit_list,
10038 ui_out_emit_tuple.
10039 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
10040 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
10041 (mi_cmd_stack_list_args, list_args_or_locals): Use
10042 ui_out_emit_list.
10043 * disasm.c (do_assembly_only): Use ui_out_emit_list.
10044 * breakpoint.c (print_solib_event, output_thread_groups): Use
10045 ui_out_emit_list.
10046
10047 2017-04-22 Tom Tromey <tom@tromey.com>
10048
10049 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
10050 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
10051 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
10052
10053 2017-04-22 Tom Tromey <tom@tromey.com>
10054
10055 * tracepoint.c (tvariables_info_1)
10056 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
10057
10058 2017-04-22 Tom Tromey <tom@tromey.com>
10059
10060 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
10061 annotate_arg_emitter.
10062 * breakpoint.c (print_mention_watchpoint)
10063 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
10064 * annotate.h (struct annotate_arg_emitter): New.
10065
10066 2017-04-22 Tom Tromey <tom@tromey.com>
10067
10068 * record-btrace.c (record_btrace_insn_history)
10069 (record_btrace_insn_history_range, record_btrace_call_history)
10070 (record_btrace_call_history_range): Use ui_out_emit_tuple.
10071 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
10072 ui_out_emit_tuple.
10073 * stack.c (print_frame_info): Use ui_out_emit_tuple.
10074 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
10075 * skip.c (skip_info): Use ui_out_emit_tuple.
10076 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
10077 * progspace.c (print_program_space): Use ui_out_emit_tuple.
10078 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
10079 * osdata.c (info_osdata): Use ui_out_emit_tuple.
10080 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
10081 ui_out_emit_tuple.
10082 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
10083 (output_register, mi_cmd_data_read_memory)
10084 (mi_cmd_data_read_memory_bytes, mi_load_progress)
10085 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
10086 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
10087 Use ui_out_emit_tuple.
10088 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
10089 ui_out_emit_tuple.
10090 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
10091 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
10092 * linux-thread-db.c (info_auto_load_libthread_db): Use
10093 ui_out_emit_tuple.
10094 * inferior.c (print_inferior): Use ui_out_emit_tuple.
10095 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
10096 * disasm.c (do_mixed_source_and_assembly_deprecated)
10097 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
10098 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
10099 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
10100 * breakpoint.c (print_one_breakpoint_location)
10101 (print_one_breakpoint): Use ui_out_emit_tuple.
10102 * auto-load.c (print_script, info_auto_load_cmd): Use
10103 ui_out_emit_tuple.
10104 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
10105
10106 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
10107
10108 * thread.c (print_thread_info_1): Remove dead code.
10109
10110 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10111
10112 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
10113 GDB_SELF_TEST.
10114 * arm-tdep.c (selftests::arm_record_test): Likewise.
10115
10116 2017-04-21 Yao Qi <yao.qi@linaro.org>
10117
10118 * regcache.c (regcache_restore): Remove argument 2. Replace
10119 argument 3 with regcache. Get register status from
10120 src->register_status and get register contents from
10121 register_buffer (src, regnum).
10122 (regcache_cpy): Update.
10123
10124 2017-04-19 Pedro Alves <palves@redhat.com>
10125
10126 * gdbthread.h (thread): Add missing closing parenthesis in
10127 comment.
10128
10129 2017-04-19 Pedro Alves <palves@redhat.com>
10130
10131 * common/refcounted-object.h: New file.
10132 * gdbthread.h: Include "common/refcounted-object.h".
10133 (thread_info): Inherit from refcounted_object and add comments.
10134 (thread_info::incref, thread_info::decref)
10135 (thread_info::m_refcount): Delete.
10136 (thread_info::deletable): Use the refcounted_object::refcount()
10137 method.
10138 * inferior.c (current_inferior_): Add comment.
10139 (set_current_inferior): Increment/decrement refcounts.
10140 (prune_inferiors, remove_inferior_command): Skip inferiors marked
10141 not-deletable instead of comparing with the current inferior.
10142 (initialize_inferiors): Increment the initial inferior's refcount.
10143 * inferior.h (struct inferior): Forward declare.
10144 Include "common/refcounted-object.h".
10145 (current_inferior, set_current_inferior): Move declaration to
10146 before struct inferior's definition, and fix comment.
10147 (inferior): Inherit from refcounted_object. Add comments.
10148 * thread.c (switch_to_thread_no_regs): Reference the thread's
10149 inferior pointer directly instead of doing a ptid lookup.
10150 (switch_to_no_thread): New function.
10151 (switch_to_thread(thread_info *)): New function, factored out
10152 from ...
10153 (switch_to_thread(ptid_t)): ... this.
10154 (restore_current_thread): Delete.
10155 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
10156 fields, and add 'inf' field.
10157 (do_restore_current_thread_cleanup): Check whether old->inf is
10158 alive instead of looking up an inferior by ptid. Use
10159 switch_to_thread and switch_to_no_thread.
10160 (restore_current_thread_cleanup_dtor): Use old->inf directly
10161 instead of lookup up an inferior by id. Decref the inferior.
10162 Don't restore 'removable'.
10163 (make_cleanup_restore_current_thread): Same the inferior pointer
10164 in old, instead of the inferior number. Incref the inferior.
10165 Don't save/clear 'removable'.
10166
10167 2017-04-19 Pedro Alves <palves@redhat.com>
10168
10169 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10170 unittests/scoped_restore-selftests.c.
10171 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
10172 * common/scoped_restore.h (scoped_restore_base): Make "class".
10173 (scoped_restore_base::release): New public method.
10174 (scoped_restore_base::scoped_restore_base): New protected ctor.
10175 (scoped_restore_base::m_saved_var): New protected field.
10176 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
10177 scoped_restore_base base class instead of m_saved_var directly.
10178 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
10179 (scoped_restore_tmpl::scoped_restore_tmpl(const
10180 scoped_restore_tmpl<T>&)): Likewise.
10181 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
10182 method.
10183 (scoped_restore_tmpl::saved_var): New method.
10184 (scoped_restore_tmpl::m_saved_var): Delete.
10185 * inferior.h (inferior::detaching): Now a bool.
10186 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
10187 cleanup.
10188 * unittests/scoped_restore-selftests.c: New file.
10189
10190 2017-04-19 Pedro Alves <palves@redhat.com>
10191
10192 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
10193 Re-sort in alphabetic order.
10194
10195 2017-04-18 Pedro Alves <palves@redhat.com>
10196
10197 * xml-support.c (obstack_xml_printf): Delete.
10198 * xml-support.h (obstack_xml_printf): Delete.
10199
10200 2017-04-18 Pedro Alves <palves@redhat.com>
10201
10202 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
10203 vdebug, verror, body_text, start_element, end_element, name,
10204 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
10205 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
10206 is_xinclude>: Make private and add m_ prefix.
10207 (gdb_xml_parser::body_text): New method, based on ...
10208 (gdb_xml_body_text): ... this. Adjust.
10209 (gdb_xml_parser::vdebug): New method, based on ...
10210 (gdb_xml_debug): ... this. Adjust.
10211 (gdb_xml_parser::verror): New method, based on ...
10212 (gdb_xml_error): ... this. Adjust.
10213 (gdb_xml_parser::start_element): New method, based on ...
10214 (gdb_xml_start_element): ... this. Adjust.
10215 (gdb_xml_start_element_wrapper): Defer to
10216 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
10217 (gdb_xml_parser::end_element): New method, based on ...
10218 (gdb_xml_end_element_wrapper): ... this. Adjust.
10219 (gdb_xml_parser::~gdb_xml_parser): Adjust.
10220 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
10221 (gdb_xml_parser::use_dtd): New method, based on ...
10222 (gdb_xml_use_dtd): ... this. Adjust.
10223 (gdb_xml_parser::parse): New method, based on ...
10224 (gdb_xml_parse): ... this. Adjust.
10225 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
10226 (xinclude_start_include): Adjust to call the parser's name method.
10227 (xml_xinclude_default, xml_xinclude_start_doctype)
10228 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
10229 method.
10230 (xml_process_xincludes): Adjust to call parser methods.
10231 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
10232 declarations.
10233
10234 2017-04-18 Pedro Alves <palves@redhat.com>
10235
10236 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
10237 gdb::optional<std::string>.
10238 * xml-support.c: Include <string>.
10239 (scope_level::scope_level(scope_level &&))
10240 (scope_level::~scope_level): Delete.
10241 (scope_level::body): Now a std::string.
10242 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
10243 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
10244 parameter.
10245 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
10246 (xinclude_parsing_data::output): Now a std::string reference.
10247 (xinclude_start_include): Adjust.
10248 (xml_xinclude_default): Adjust.
10249 (xml_process_xincludes): Add 'output' parameter, and return bool.
10250 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
10251 and return bool.
10252 * xml-tdesc.c: Include <unordered_map> and <string>.
10253 (tdesc_xml_cache): Delete.
10254 (tdesc_xml_cache_s): Delete.
10255 (xml_cache): Now an std::unordered_map.
10256 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
10257 (target_fetch_description_xml): Change return type to
10258 gdb::optional<std::string>, and adjust.
10259 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
10260 (target_fetch_description_xml): Change return type to
10261 gdb::optional<std::string>.
10262
10263 2017-04-18 Pedro Alves <palves@redhat.com>
10264
10265 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10266 unittests/optional-selftests.c.
10267 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
10268 * unittests/optional-selftests.c: New file.
10269 * unittests/optional/assignment/1.cc: New file.
10270 * unittests/optional/assignment/2.cc: New file.
10271 * unittests/optional/assignment/3.cc: New file.
10272 * unittests/optional/assignment/4.cc: New file.
10273 * unittests/optional/assignment/5.cc: New file.
10274 * unittests/optional/assignment/6.cc: New file.
10275 * unittests/optional/assignment/7.cc: New file.
10276 * unittests/optional/cons/copy.cc: New file.
10277 * unittests/optional/cons/default.cc: New file.
10278 * unittests/optional/cons/move.cc: New file.
10279 * unittests/optional/cons/value.cc: New file.
10280 * unittests/optional/in_place.cc: New file.
10281 * unittests/optional/observers/1.cc: New file.
10282 * unittests/optional/observers/2.cc: New file.
10283
10284 2017-04-18 Pedro Alves <palves@redhat.com>
10285
10286 * common/gdb_optional.h: Include common/traits.h.
10287 (in_place_t): New type.
10288 (in_place): New constexpr variable.
10289 (optional::optional): Remove member initialization of
10290 m_instantiated.
10291 (optional::optional(in_place_t...)): New constructor.
10292 (optional::~optional): Use reset.
10293 (optional::optional(const optional&)): New.
10294 (optional::optional(const optional&&)): New.
10295 (optional::optional(T &)): New.
10296 (optional::optional(T &&)): New.
10297 (operator::operator=(const optional &)): New.
10298 (operator::operator=(optional &&)): New.
10299 (operator::operator= (const T &))
10300 (operator::operator= (T &&))
10301 (operator::emplace (Args &&... args)): Return a T&. Use reset.
10302 (operator::reset): New.
10303 (operator::m_instantiated):: Add in-class initializer.
10304 * common/traits.h: Include <type_traits>.
10305 (struct And): New types.
10306
10307 2017-04-18 Pedro Alves <palves@redhat.com>
10308
10309 * xml-support.c: Include <vector>.
10310 (scope_level::scope_level(const gdb_xml_element *))
10311 (scope_level::scope_level(scope_level&&)): New.
10312 (scope_level::~scope_level): New.
10313 (scope_level_s): Delete.
10314 (gdb_xml_parser::scopes): Now a std::vector.
10315 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
10316 Use std::vector.
10317 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
10318 scope cleanup code.
10319 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
10320 of the scopes member. Use std::vector::emplace_back.
10321
10322 2017-04-18 Pedro Alves <palves@redhat.com>
10323
10324 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
10325 a bool.
10326 (gdb_xml_end_element): Change type of first parameter.
10327 (gdb_xml_cleanup): Rename to ...
10328 (gdb_xml_parser::~gdb_xml_parser): ... this.
10329 (gdb_xml_create_parser_and_cleanup): Delete with ...
10330 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
10331 to this new ctor.
10332 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
10333 using gdb_xml_create_parser_and_cleanup.
10334 (xinclude_parsing_data): Add ctor/dtor.
10335 (xml_xinclude_cleanup): Delete.
10336 (xml_process_xincludes): Create a local xinclude_parsing_data
10337 instead of heap-allocating one. Create a local gdb_xml_parser
10338 instead of heap-allocating one with
10339 gdb_xml_create_parser_and_cleanup.
10340
10341 2017-04-18 John Baldwin <jhb@FreeBSD.org>
10342
10343 PR threads/20743
10344 * fbsd-nat.c (resume_one_thread_cb): Remove.
10345 (resume_all_threads_cb): Remove.
10346 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
10347 iterate_over_threads.
10348
10349 2017-04-17 Joel Brobecker <brobecker@adacore.com>
10350
10351 * NEWS: Create a new section for the next release branch.
10352 Rename the section of the current branch, now that it has
10353 been cut.
10354
10355 2017-04-17 Joel Brobecker <brobecker@adacore.com>
10356
10357 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
10358 * version.in: Bump version to 8.0.50.DATE-git.
10359
10360 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
10361
10362 PR gdb/21385
10363 * windows-nat.c (windows_create_inferior): Declare 'allargs'
10364 independently of the host, and fix build breakage on Cygwin.
10365
10366 2017-04-13 Pedro Alves <palves@redhat.com>
10367
10368 * inferior.c (free_inferior): Convert to ...
10369 (inferior::~inferior): ... this dtor.
10370 (inferior::inferior): New ctor, factored out from ...
10371 (add_inferior_silent): ... here. Allocate the inferior with a new
10372 expression.
10373 (delete_inferior): Call delete instead of free_inferior.
10374 * inferior.h (gdb_environ, continuation): Forward declare.
10375 (inferior): Now a class. Add in-class initialization to all
10376 members. Make boolean fields bool, except 'detaching'.
10377 (inferior::inferior): New explicit ctor.
10378 (inferior::~inferior): New.
10379
10380 2017-04-13 Pedro Alves <palves@redhat.com>
10381
10382 * inferior.c (init_inferior_list): Delete.
10383 * inferior.h (init_inferior_list): Delete.
10384
10385 2017-04-13 Pedro Alves <palves@redhat.com>
10386
10387 PR threads/13217
10388 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
10389 (top level): Call it twice, with different thread sets.
10390
10391 2017-04-13 Pedro Alves <palves@redhat.com>
10392
10393 * thread.c: Include <algorithm>.
10394 (thread_array_cleanup): Delete.
10395 (scoped_inc_dec_ref): New class.
10396 (live_threads_count): New function.
10397 (set_thread_refcount): Delete.
10398 (tp_array_compar_ascending): Now a bool.
10399 (tp_array_compar): Convert to a std::sort comparison function.
10400 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
10401 and live_threads_count.
10402
10403 2017-04-13 Pedro Alves <palves@redhat.com>
10404
10405 * infrun.c (follow_fork_inferior): Also switch the current
10406 inferior.
10407
10408 2017-04-13 Pedro Alves <palves@redhat.com>
10409
10410 * breakpoint.c (watch_command_1): Save watchpoint-frame info
10411 before calling create_internal_breakpoint.
10412
10413 2017-04-13 Pedro Alves <palves@redhat.com>
10414
10415 * fork-child.c (execv_argv): New class.
10416 (breakup_args): Refactored as ...
10417 (execv_argv::init_for_no_shell): .. this method of execv_argv.
10418 Copy arguments to storage and replace separators with NULL
10419 terminators in place.
10420 (escape_bang_in_quoted_argument): Adjust to return bool.
10421 (execv_argv::execv_argv): New ctor.
10422 (execv_argv::init_for_shell): New method, factored out from
10423 fork_inferior. Don't strdup strings into the vector.
10424 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
10425 Remove free_vector_argv call.
10426
10427 2017-04-13 Yao Qi <yao.qi@linaro.org>
10428
10429 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
10430 tdep->rx_psw_type.
10431
10432 2017-04-13 Yao Qi <yao.qi@linaro.org>
10433
10434 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
10435 * rx-tdep.c (rx_gdbarch_init): Likewise.
10436
10437 2017-04-13 Pedro Alves <palves@redhat.com>
10438
10439 * breakpoint.h (struct breakpoint): Reindent.
10440
10441 2017-04-13 Pedro Alves <palves@redhat.com>
10442
10443 * breakpoint.c (bp_location): Rename to ...
10444 (bp_locations): ... this. All references updated.
10445 (bp_location_count): Rename to ...
10446 (bp_locations_count): ... this. All references updated.
10447 (bp_location_placed_address_before_address_max): Rename to ...
10448 (bp_locations_placed_address_before_address_max): ... this. All
10449 references updated.
10450 (bp_location_shadow_len_after_address_max): Rename to ...
10451 (bp_locations_shadow_len_after_address_max): ... this. All
10452 references updated.
10453 (bp_location_compare_addrs): Rename to ...
10454 (bp_locations_compare_addrs): ... this. All references updated.
10455 (bp_location_compare):Rename to ...
10456 (bp_locations_compare): ... this. All references updated.
10457 (bp_location_target_extensions_update): Rename to ...
10458 (bp_locations_target_extensions_update): ... this. All references
10459 updated.
10460
10461 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10462
10463 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
10464 * common/common.m4: Check headers 'termios.h', 'termio.h' and
10465 'sgtty.h'.
10466 * common/gdb_termios.h: New file, with parts of "terminal.h".
10467 * inflow.c: Include "gdb_termios.h".
10468 * ser-unix.c: Include "gdb_termios.h".
10469 * terminal.h: Move terminal-related defines to
10470 "common/gdb_termios.h".
10471
10472 2017-04-12 Tom Tromey <tom@tromey.com>
10473
10474 * probe.c (parse_probes): Update.
10475 * location.h (delete_event_location): Don't declare.
10476 (event_location_deleter::operator()): Update.
10477 * location.c (event_location_deleter::operator()): Rename from
10478 delete_event_location.
10479 * linespec.h (linespec_result) <location>: Change type to
10480 event_location_up.
10481 * linespec.c (canonicalize_linespec, event_location_to_sals)
10482 (decode_objc): Update.
10483 (linespec_result): Don't call delete_event_location.
10484 * breakpoint.c (create_breakpoints_sal)
10485 (bkpt_probe_create_sals_from_location)
10486 (strace_marker_create_sals_from_location): Update.
10487
10488 2017-04-12 Tom Tromey <tom@tromey.com>
10489
10490 * linespec.h (struct linespec_result): Add constructor and
10491 destructor.
10492 (init_linespec_result, destroy_linespec_result)
10493 (make_cleanup_destroy_linespec_result): Don't declare.
10494 * linespec.c (init_linespec_result): Remove.
10495 (linespec_result::~linespec_result): Rename from
10496 destroy_linespec_result. Update.
10497 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
10498 Remove.
10499 * breakpoint.c (create_breakpoint, break_range_command)
10500 (decode_location_default): Update.
10501 * ax-gdb.c (agent_command_1): Update.
10502
10503 2017-04-12 Tom Tromey <tom@tromey.com>
10504
10505 * remote.c (remote_download_tracepoint): Update.
10506 * python/py-breakpoint.c (bppy_get_location): Update.
10507 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
10508 (gdbscm_breakpoint_location): Update.
10509 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
10510 * breakpoint.h (struct breakpoint) <location, location_range_end>:
10511 Change type to event_location_up.
10512 * breakpoint.c (create_overlay_event_breakpoint)
10513 (create_longjmp_master_breakpoint)
10514 (create_std_terminate_master_breakpoint)
10515 (create_exception_master_breakpoint)
10516 (breakpoint_event_location_empty_p, print_breakpoint_location)
10517 (print_one_breakpoint_location, create_thread_event_breakpoint)
10518 (init_breakpoint_sal, create_breakpoint)
10519 (print_recreate_ranged_breakpoint, break_range_command)
10520 (init_ada_exception_breakpoint, say_where): Update.
10521 (base_breakpoint_dtor): Don't call delete_event_location.
10522 (bkpt_print_recreate, tracepoint_print_recreate)
10523 (dprintf_print_recreate, update_static_tracepoint)
10524 (breakpoint_re_set_default): Update.
10525
10526 2017-04-12 Tom Tromey <tom@tromey.com>
10527
10528 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10529 type of "to_do". Update.
10530 (compute_stack_depth): Use std::vector.
10531
10532 2017-04-12 Tom Tromey <tom@tromey.com>
10533
10534 * printcmd.c (find_instruction_backward): Use std::vector.
10535
10536 2017-04-12 Tom Tromey <tom@tromey.com>
10537
10538 * symfile.c (objfilep): Remove typedef.
10539 (reread_symbols): Use a std::vector.
10540
10541 2017-04-12 Tom Tromey <tom@tromey.com>
10542
10543 * mi/mi-main.c (exec_direction_forward): Remove.
10544 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10545 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10546 scoped_restore.
10547 * guile/guile.c (guile_repl_command, guile_command)
10548 (gdbscm_execute_gdb_command): Use scoped_restore.
10549 * go-exp.y (go_parse): Use scoped_restore.
10550 * d-exp.y (d_parse): Use scoped_restore.
10551 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10552 * c-exp.y (c_parse): Use scoped_restore.
10553
10554 2017-04-12 Tom Tromey <tom@tromey.com>
10555
10556 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10557 (mi_parse): Update return type.
10558 (mi_parse_free): Remove.
10559 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10560 (mi_parse::~mi_parse): Rename from mi_parse_free.
10561 (mi_parse_cleanup): Remove.
10562 (mi_parse): Return a unique_ptr. Use new.
10563 * mi/mi-main.c (mi_execute_command): Update.
10564
10565 2017-04-12 Tom Tromey <tom@tromey.com>
10566
10567 * location.c (explicit_location_lex_one): Return a
10568 unique_xmalloc_ptr.
10569 (string_to_explicit_location): Update. Remove cleanups.
10570
10571 2017-04-12 Tom Tromey <tom@tromey.com>
10572
10573 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10574 (compare_value_and_voffset): Change type. Update.
10575 (compute_vtable_size): Change type of "offset_vec".
10576 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10577 (gnuv3_get_typeid): Remove extraneous declaration.
10578
10579 2017-04-12 Tom Tromey <tom@tromey.com>
10580
10581 * charset.h (wchar_iterator): Fix comment.
10582
10583 2017-04-12 Tom Tromey <tom@tromey.com>
10584
10585 * charset.c (iconv_wrapper): New class.
10586 (cleanup_iconv): Remove.
10587 (convert_between_encodings): Use it.
10588
10589 2017-04-12 Tom Tromey <tom@tromey.com>
10590
10591 * symfile.h (increment_reading_symtab): Update type.
10592 * symfile.c (decrement_reading_symtab): Remove.
10593 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10594 * psymtab.c (psymtab_to_symtab): Update.
10595 * dwarf2read.c (dw2_instantiate_symtab): Update.
10596
10597 2017-04-12 Tom Tromey <tom@tromey.com>
10598
10599 * jit.c (struct jit_reader): Declare separately. Add constructor
10600 and destructor. Change type of "handle".
10601 (loaded_jit_reader): Define separately.
10602 (jit_reader_load): Update. New "new".
10603 (jit_reader_unload_command): Use "delete".
10604 * gdb-dlfcn.h (struct dlclose_deleter): New.
10605 (gdb_dlhandle_up): New typedef.
10606 (gdb_dlopen, gdb_dlsym): Update types.
10607 (gdb_dlclose): Remove.
10608 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10609 (gdb_dlsym): Change type of "handle".
10610 (make_cleanup_dlclose): Remove.
10611 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10612 * compile/compile-c-support.c (load_libcc): Update.
10613
10614 2017-04-12 Tom Tromey <tom@tromey.com>
10615
10616 * symtab.h (find_pcs_for_symtab_line): Change return type.
10617 * symtab.c (find_pcs_for_symtab_line): Change return type.
10618 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10619 type of "vec". Update.
10620 (ltpy_get_pcs_for_line): Update.
10621 * linespec.c (decode_digits_ordinary): Update.
10622
10623 2017-04-12 Tom Tromey <tom@tromey.com>
10624
10625 * tracepoint.c (actions_command): Update.
10626 * python/python.c (python_command, python_interactive_command):
10627 Update.
10628 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10629 * guile/guile.c (guile_command): Update.
10630 * defs.h (read_command_lines, read_command_lines_1): Return
10631 command_line_up.
10632 (command_lines_deleter): New struct.
10633 (command_line_up): New typedef.
10634 * compile/compile.c (compile_code_command)
10635 (compile_print_command): Update.
10636 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10637 command_line_up.
10638 (make_cleanup_free_command_lines): Remove.
10639 * cli/cli-script.c (get_command_line, read_command_lines_1)
10640 (copy_command_lines): Return command_line_up.
10641 (while_command, if_command, read_command_lines, define_command)
10642 (document_command): Update.
10643 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10644 Remove.
10645 * breakpoint.h (breakpoint_set_commands): Change type of
10646 "commands".
10647 * breakpoint.c (breakpoint_set_commands): Change type of
10648 "commands". Update.
10649 (do_map_commands_command, update_dprintf_command_list)
10650 (create_tracepoint_from_upload): Update.
10651
10652 2017-04-12 Tom Tromey <tom@tromey.com>
10653
10654 * tracepoint.c (scope_info): Update.
10655 * spu-tdep.c (spu_catch_start): Update.
10656 * python/python.c (gdbpy_decode_line): Update.
10657 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10658 * python/py-breakpoint.c (bppy_init): Update.
10659 * probe.c (parse_probes): Update.
10660 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10661 * location.h (event_location_deleter): New struct.
10662 (event_location_up): New typedef.
10663 (new_linespec_location, new_address_location, new_probe_location)
10664 (new_explicit_location, copy_event_location)
10665 (string_to_event_location, string_to_event_location_basic)
10666 (string_to_explicit_location): Update return type.
10667 (make_cleanup_delete_event_location): Remove.
10668 * location.c (new_linespec_location, new_address_location)
10669 (new_probe_location, new_explicit_location, copy_event_location):
10670 Return event_location_up.
10671 (delete_event_location_cleanup)
10672 (make_cleanup_delete_event_location): Remove.
10673 (string_to_explicit_location, string_to_event_location_basic)
10674 (string_to_event_location): Return event_location_up.
10675 * linespec.c (canonicalize_linespec, event_location_to_sals)
10676 (decode_line_with_current_source)
10677 (decode_line_with_last_displayed, decode_objc): Update.
10678 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10679 * completer.c (location_completer): Update.
10680 * cli/cli-cmds.c (edit_command, list_command): Update.
10681 * breakpoint.c (create_overlay_event_breakpoint)
10682 (create_longjmp_master_breakpoint)
10683 (create_std_terminate_master_breakpoint)
10684 (create_exception_master_breakpoint)
10685 (create_thread_event_breakpoint): Update.
10686 (init_breakpoint_sal): Update. Remove some dead code.
10687 (create_breakpoint_sal): Change type of "location". Update.
10688 (create_breakpoints_sal, create_breakpoint, break_command_1)
10689 (dprintf_command, break_range_command, until_break_command)
10690 (init_ada_exception_breakpoint)
10691 (strace_marker_create_sals_from_location)
10692 (update_static_tracepoint, trace_command, ftrace_command)
10693 (strace_command, create_tracepoint_from_upload): Update.
10694 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10695 * ax-gdb.c (agent_command_1): Update.
10696
10697 2017-04-12 Pedro Alves <palves@redhat.com>
10698
10699 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10700 * configure.tgt: Handle i[34567]86-*-go32* and
10701 i[34567]86-*-msdosdjgpp*.
10702 * i386-tdep.c (i386_svr4_reg_to_regnum):
10703 Make extern.
10704 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10705 i386-go32-tdep.c.
10706 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10707 * i386-go32-tdep.c: New file.
10708 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10709 declarations.
10710
10711 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10712
10713 * aix-thread.c (pd_status2str): Change return type to const char *.
10714
10715 2017-04-12 Pedro Alves <palves@redhat.com>
10716
10717 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10718 calls to set_gdbarch_gnu_triplet_regexp.
10719
10720 2017-04-12 Pedro Alves <palves@redhat.com>
10721
10722 PR gdb/21323
10723 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10724 New enum value.
10725 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10726 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10727 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10728 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10729 * gdbarch.h, gdbarch.c: Regenerate.
10730 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10731 gdbarch_wchar_bit and gdbarch_wchar_signed.
10732 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10733 * arm-tdep.c (arm_gdbarch_init): Likewise.
10734 * avr-tdep.c (avr_gdbarch_init): Likewise.
10735 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10736 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10737 * i386-tdep.c (i386_go32_init_abi): Likewise.
10738 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10739 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10740 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10741 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10742 * sh-tdep.c (sh_gdbarch_init): Likewise.
10743 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10744 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10745 * windows-tdep.c (windows_init_abi): Likewise.
10746 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10747
10748 2017-04-12 Pedro Alves <palves@redhat.com>
10749
10750 PR c++/21323
10751 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10752 cplus_primitive_type_char32_t>: New enum values.
10753 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10754 and cplus_primitive_type_char32_t.
10755 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10756 32, use the archtecture's built-in type for char16_t and char32_t,
10757 respectively. Otherwise, fallback to init_integer_type as before,
10758 but make the type unsigned, and issue a complaint.
10759 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10760
10761 2017-04-12 Alan Hayward <alan.hayward@arm.com>
10762
10763 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
10764 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10765
10766 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10767
10768 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10769 'const char *'.
10770
10771 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10772
10773 * common/common-utils.c (free_vector_argv): New function.
10774 * common/common-utils.h: Include <vector>.
10775 (free_vector_argv): New prototype.
10776 * darwin-nat.c (darwin_create_inferior): Rewrite function
10777 prototype in order to constify "exec_file" and accept a
10778 "std::string" for "allargs".
10779 * fork-child.c: Include <vector>.
10780 (breakup_args): Rewrite function, using C++.
10781 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10782 and accept "std::string" for "allargs". Update the code to
10783 calculate "argv" based on "allargs". Update calls to "exec_fun"
10784 and "execvp".
10785 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10786 order to constify "exec_file" and accept a "std::string" for
10787 "allargs".
10788 * go32-nat.c (go32_create_inferior): Likewise.
10789 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10790 * infcmd.c (run_command_1): Constify "exec_file". Use
10791 "std::string" for inferior arguments.
10792 * inferior.h (fork_inferior): Update prototype.
10793 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10794 prototype in order to constify "exec_file" and accept a
10795 "std::string" for "allargs".
10796 * nto-procfs.c (procfs_create_inferior): Likewise.
10797 * procfs.c (procfs_create_inferior): Likewise.
10798 * remote-sim.c (gdbsim_create_inferior): Likewise.
10799 * remote.c (extended_remote_run): Update code to accept
10800 "std::string" as argument.
10801 (extended_remote_create_inferior): Rewrite function prototype in
10802 order to constify "exec_file" and accept a "std::string" for
10803 "allargs".
10804 * rs6000-nat.c (super_create_inferior): Likewise.
10805 (rs6000_create_inferior): Likewise.
10806 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10807 * windows-nat.c (windows_create_inferior): Likewise.
10808
10809 2017-04-11 Pedro Alves <palves@redhat.com>
10810
10811 * thread.c: Fix whitespace throughout.
10812
10813 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10814
10815 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10816
10817 2017-04-11 Alan Hayward <alan.hayward@arm.com>
10818
10819 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10820
10821 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10822
10823 PR gdb/21364
10824 * osdata.c (info_osdata): Check if 'type' is an empty string
10825 instead of NULL.
10826
10827 2017-04-10 Pedro Alves <palves@redhat.com>
10828
10829 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10830 (ptid_to_global_thread_id, in_thread_list)
10831 (do_captured_list_thread_ids, set_resumed, set_running)
10832 (set_executing, set_stop_requested, finish_thread_state)
10833 (validate_registers_access, can_access_registers_ptid)
10834 (print_thread_info_1, switch_to_thread)
10835 (do_restore_current_thread_cleanup)
10836 (make_cleanup_restore_current_thread, thread_command)
10837 (thread_name_command): Use operator== instead of ptid_equal.
10838
10839 2017-04-10 Pedro Alves <palves@redhat.com>
10840
10841 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10842 (current_thread_cleanup_chain): Delete.
10843 (restore_current_thread_cleanup_dtor)
10844 (make_cleanup_restore_current_thread): Remove references to
10845 current_thread_cleanup_chain.
10846
10847 2017-04-10 Alan Hayward <alan.hayward@arm.com>
10848
10849 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10850 REG_UNKNOWN.
10851
10852 2017-04-10 Yao Qi <yao.qi@linaro.org>
10853
10854 PR gdb/19942
10855 * gdbthread.h (thread_info::deletable): New method.
10856 (thread_info::incref): New method.
10857 (thread_info::decref): New method.
10858 (thread_info::refcount): Move it to private.
10859 * infrun.c (save_stop_context): Call inc_refcount.
10860 (release_stop_context_cleanup): Likewise.
10861 * thread.c (set_thread_exited): New function.
10862 (init_thread_list): Delete "tp" only it is deletable, otherwise
10863 call set_thread_exited.
10864 (delete_thread_1): Call set_thread_exited.
10865 (current_thread_cleanup) <inferior_pid>: Remove.
10866 <thread>: New field.
10867 (restore_current_thread_ptid_changed): Removed.
10868 (do_restore_current_thread_cleanup): Adjust.
10869 (restore_current_thread_cleanup_dtor): Don't call
10870 find_thread_ptid.
10871 (set_thread_refcount): Use dec_refcount.
10872 (make_cleanup_restore_current_thread): Adjust.
10873 (thread_apply_all_command): Call inc_refcount.
10874 (_initialize_thread): Don't call
10875 observer_attach_thread_ptid_changed.
10876
10877 2017-04-10 Yao Qi <yao.qi@linaro.org>
10878
10879 * thread.c (delete_thread_1): Hoist code on marking thread as
10880 exited.
10881
10882 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10883
10884 * windows-nat.c (windows_detach): Initialize ptid with
10885 minus_one_ptid.
10886
10887 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
10888
10889 * unittests/ptid-selftests.c: Fix erroneous assert messages.
10890
10891 2017-04-07 Alan Hayward <alan.hayward@arm.com>
10892
10893 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
10894 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
10895 (bfin_pseudo_register_write): Likewise
10896
10897 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
10898
10899 * common/ptid.h (struct ptid): Change to...
10900 (class ptid_t): ... this.
10901 <ptid_t>: New constructors.
10902 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
10903 matches>: New methods.
10904 <make_null, make_minus_one>: New static methods.
10905 <pid>: Rename to...
10906 <m_pid>: ...this.
10907 <lwp>: Rename to...
10908 <m_lwp>: ...this.
10909 <tid>: Rename to...
10910 <m_tid>: ...this.
10911 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
10912 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
10913 as references, move comment to class ptid_t.
10914 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
10915 ptid_t static methods.
10916 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
10917 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
10918 Take ptid arguments as references, implement using ptid_t methods.
10919 * unittests/ptid-selftests.c: New file.
10920 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10921 unittests/ptid-selftests.c.
10922 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
10923
10924 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
10925
10926 * python/python.c (python_run_simple_file): Cast mode literal to
10927 non-const char pointer as expected by PyFile_FromString.
10928
10929 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
10930
10931 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
10932 minus_one_ptid and null_ptid.
10933
10934 2017-04-05 Pedro Alves <palves@redhat.com>
10935
10936 * warning.m4 (build_warnings): Remove -Wno-write-strings.
10937 * configure: Regenerate.
10938
10939 2017-04-05 Pedro Alves <palves@redhat.com>
10940
10941 * ada-exp.y (yyerror): Constify.
10942 * ada-lang.c (bound_name, get_selections)
10943 (ada_variant_discrim_type)
10944 (ada_variant_discrim_name, ada_value_struct_elt)
10945 (ada_lookup_struct_elt_type, is_unchecked_variant)
10946 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
10947 (catch_ada_exception_command_split)
10948 (catch_ada_assert_command_split, catch_assert_command)
10949 (ada_op_name): Constify.
10950 * ada-lang.h (ada_yyerror, get_selections)
10951 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
10952 * arc-tdep.c (arc_print_frame_cache): Constify.
10953 * arm-tdep.c (arm_skip_stub): Constify.
10954 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
10955 (gen_aggregate_elt_ref): Constify.
10956 * bcache.c (print_bcache_statistics): Constify.
10957 * bcache.h (print_bcache_statistics): Constify.
10958 * break-catch-throw.c (catch_exception_command_1):
10959 * breakpoint.c (struct ep_type_description::description):
10960 Constify.
10961 (add_solib_catchpoint): Constify.
10962 (catch_fork_command_1): Add cast.
10963 (add_catch_command): Constify.
10964 * breakpoint.h (add_catch_command, add_solib_catchpoint):
10965 Constify.
10966 * bsd-uthread.c (bsd_uthread_state): Constify.
10967 * buildsym.c (patch_subfile_names): Constify.
10968 * buildsym.h (next_symbol_text_func, patch_subfile_names):
10969 Constify.
10970 * c-exp.y (yyerror): Constify.
10971 (token::oper): Constify.
10972 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
10973 * c-varobj.c (cplus_describe_child): Constify.
10974 * charset.c (find_charset_names): Add cast.
10975 (find_charset_names): Constify array and add const_cast.
10976 * cli/cli-cmds.c (complete_command, cd_command): Constify.
10977 (edit_command): Constify.
10978 * cli/cli-decode.c (lookup_cmd): Constify.
10979 * cli/cli-dump.c (dump_memory_command, dump_value_command):
10980 Constify.
10981 (struct dump_context): Constify.
10982 (add_dump_command, restore_command): Constify.
10983 * cli/cli-script.c (get_command_line): Constify.
10984 * cli/cli-script.h (get_command_line): Constify.
10985 * cli/cli-utils.c (check_for_argument): Constify.
10986 * cli/cli-utils.h (check_for_argument): Constify.
10987 * coff-pe-read.c (struct read_pe_section_data): Constify.
10988 * command.h (lookup_cmd): Constify.
10989 * common/print-utils.c (decimal2str): Constify.
10990 * completer.c (gdb_print_filename): Constify.
10991 * corefile.c (set_gnutarget): Constify.
10992 * cp-name-parser.y (yyerror): Constify.
10993 * cp-valprint.c (cp_print_class_member): Constify.
10994 * cris-tdep.c (cris_register_name, crisv32_register_name):
10995 Constify.
10996 * d-exp.y (yyerror): Constify.
10997 (struct token::oper): Constify.
10998 * d-lang.h (d_yyerror): Constify.
10999 * dbxread.c (struct header_file_location::name): Constify.
11000 (add_old_header_file, add_new_header_file, last_function_name)
11001 (dbx_next_symbol_text, add_bincl_to_list)
11002 (find_corresponding_bincl_psymtab, set_namestring)
11003 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
11004 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
11005 * defs.h (command_line_input, print_address_symbolic)
11006 (deprecated_readline_begin_hook): Constify.
11007 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
11008 Constify.
11009 * event-top.c (handle_line_of_input): Constify and add cast.
11010 * exceptions.c (catch_errors): Constify.
11011 * exceptions.h (catch_errors): Constify.
11012 * expprint.c (print_subexp_standard, op_string, op_name)
11013 (op_name_standard, dump_raw_expression, dump_raw_expression):
11014 * expression.h (op_name, op_string, dump_raw_expression):
11015 Constify.
11016 * f-exp.y (yyerror): Constify.
11017 (struct token::oper): Constify.
11018 (struct f77_boolean_val::name): Constify.
11019 * f-lang.c (f_word_break_characters): Constify.
11020 * f-lang.h (f_yyerror): Constify.
11021 * fork-child.c (fork_inferior): Add cast.
11022 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
11023 (new_variant): Constify.
11024 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
11025 * gdbarch.c: Regenerate.
11026 * gdbcore.h (set_gnutarget): Constify.
11027 * go-exp.y (yyerror): Constify.
11028 (token::oper): Constify.
11029 * go-lang.h (go_yyerror): Constify.
11030 * go32-nat.c (go32_sysinfo): Constify.
11031 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
11032 * guile/scm-cmd.c (cmdscm_function): Constify.
11033 * guile/scm-param.c (pascm_param_value): Constify.
11034 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
11035 (h8300sx_register_name): Constify.
11036 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
11037 Constify.
11038 * ia64-tdep.c (ia64_register_names): Constify.
11039 * infcmd.c (construct_inferior_arguments): Constify.
11040 (path_command, attach_post_wait): Constify.
11041 * language.c (show_range_command, show_case_command)
11042 (unk_lang_error): Constify.
11043 * language.h (language_defn::la_error)
11044 (language_defn::la_name_of_this): Constify.
11045 * linespec.c (decode_line_2): Constify.
11046 * linux-thread-db.c (thread_db_err_str): Constify.
11047 * lm32-tdep.c (lm32_register_name): Constify.
11048 * m2-exp.y (yyerror): Constify.
11049 * m2-lang.h (m2_yyerror): Constify.
11050 * m32r-tdep.c (m32r_register_names): Constify and make static.
11051 * m68hc11-tdep.c (m68hc11_register_names): Constify.
11052 * m88k-tdep.c (m88k_register_name): Constify.
11053 * macroexp.c (appendmem): Constify.
11054 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
11055 (upgrade_type, parse_external, parse_partial_symbols)
11056 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
11057 (new_symbol): Constify.
11058 * memattr.c (mem_info_command): Constify.
11059 * mep-tdep.c (register_name_from_keyword): Constify.
11060 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
11061 Constify.
11062 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
11063 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
11064 * mi/mi-main.c (captured_mi_execute_command): Constify and add
11065 cast.
11066 (mi_execute_async_cli_command): Constify.
11067 * mips-tdep.c (mips_register_name): Constify.
11068 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
11069 (am33_register_name, am33_2_register_name)
11070 * moxie-tdep.c (moxie_register_names): Constify.
11071 * nat/linux-osdata.c (osdata_type): Constify fields.
11072 * nto-tdep.c (nto_parse_redirection): Constify.
11073 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
11074 (lookup_child_selector): Constify.
11075 (objc_methcall::name): Constify.
11076 * objc-lang.h (lookup_objc_class, lookup_child_selector)
11077 (lookup_struct_typedef): Constify.
11078 * objfiles.c (pc_in_section): Constify.
11079 * objfiles.h (pc_in_section): Constify.
11080 * p-exp.y (struct token::oper): Constify.
11081 (yyerror): Constify.
11082 * p-lang.h (pascal_yyerror): Constify.
11083 * parser-defs.h (op_name_standard): Constify.
11084 (op_print::string): Constify.
11085 (exp_descriptor::op_name): Constify.
11086 * printcmd.c (print_address_symbolic): Constify.
11087 * psymtab.c (print_partial_symbols): Constify.
11088 * python/py-breakpoint.c (stop_func): Constify.
11089 (bppy_get_expression): Constify.
11090 * python/py-cmd.c (cmdpy_completer::name): Constify.
11091 (cmdpy_function): Constify.
11092 * python/py-event.c (evpy_add_attribute)
11093 (gdbpy_initialize_event_generic): Constify.
11094 * python/py-event.h (evpy_add_attribute)
11095 (gdbpy_initialize_event_generic): Constify.
11096 * python/py-evts.c (add_new_registry): Constify.
11097 * python/py-finishbreakpoint.c (outofscope_func): Constify.
11098 * python/py-framefilter.c (get_py_iter_from_func): Constify.
11099 * python/py-inferior.c (get_buffer): Add cast.
11100 * python/py-param.c (parm_constant::name): Constify.
11101 * python/py-unwind.c (fprint_frame_id): Constify.
11102 * python/python.c (gdbpy_parameter_value): Constify.
11103 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
11104 * remote.c (memory_packet_config::name): Constify.
11105 (show_packet_config_cmd, remote_write_bytes)
11106 (remote_buffer_add_string):
11107 * reverse.c (exec_reverse_once): Constify.
11108 * rs6000-tdep.c (variant::name, variant::description): Constify.
11109 * rust-exp.y (rustyyerror): Constify.
11110 * rust-lang.c (rust_op_name): Constify.
11111 * rust-lang.h (rustyyerror): Constify.
11112 * serial.h (serial_ops::name): Constify.
11113 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
11114 (sh_sh3e_register_name, sh_sh2e_register_name)
11115 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
11116 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
11117 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
11118 (sh_sh4al_dsp_register_name): Constify.
11119 * sh64-tdep.c (sh64_register_name): Constify.
11120 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
11121 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
11122 * stabsread.c (patch_block_stabs, read_type_number)
11123 (ref_map::stabs, ref_add, process_reference)
11124 (symbol_reference_defined, define_symbol, define_symbol)
11125 (error_type, read_type, read_member_functions, read_cpp_abbrev)
11126 (read_one_struct_field, read_struct_fields, read_baseclasses)
11127 (read_tilde_fields, read_struct_type, read_array_type)
11128 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
11129 (read_huge_number, read_range_type, read_args, common_block_start)
11130 (find_name_end): Constify.
11131 * stabsread.h (common_block_start, define_symbol)
11132 (process_one_symbol, symbol_reference_defined, ref_add):
11133 * symfile.c (get_section_index, add_symbol_file_command):
11134 * symfile.h (get_section_index): Constify.
11135 * target-descriptions.c (tdesc_type::name): Constify.
11136 (tdesc_free_type): Add cast.
11137 * target.c (find_default_run_target):
11138 (add_deprecated_target_alias, find_default_run_target)
11139 (target_announce_detach): Constify.
11140 (do_option): Constify.
11141 * target.h (add_deprecated_target_alias): Constify.
11142 * thread.c (print_thread_info_1): Constify.
11143 * top.c (deprecated_readline_begin_hook, command_line_input):
11144 Constify.
11145 (init_main): Add casts.
11146 * top.h (handle_line_of_input): Constify.
11147 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
11148 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
11149 (tfind_command): Rename to ...
11150 (tfind_command_1): ... this and constify.
11151 (tfind_command): New function.
11152 (tfind_end_command, tfind_start_command): Adjust.
11153 (encode_source_string): Constify.
11154 * tracepoint.h (encode_source_string): Constify.
11155 * tui/tui-data.c (tui_partial_win_by_name): Constify.
11156 * tui/tui-data.h (tui_partial_win_by_name): Constify.
11157 * tui/tui-source.c (tui_set_source_content_nil): Constify.
11158 * tui/tui-source.h (tui_set_source_content_nil): Constify.
11159 * tui/tui-win.c (parse_scrolling_args): Constify.
11160 * tui/tui-windata.c (tui_erase_data_content): Constify.
11161 * tui/tui-windata.h (tui_erase_data_content): Constify.
11162 * tui/tui-winsource.c (tui_erase_source_content): Constify.
11163 * tui/tui.c (tui_enable): Add cast.
11164 * utils.c (defaulted_query): Constify.
11165 (init_page_info): Add cast.
11166 (puts_debug, subset_compare): Constify.
11167 * utils.h (subset_compare): Constify.
11168 * varobj.c (varobj_format_string): Constify.
11169 * varobj.h (varobj_format_string): Constify.
11170 * vax-tdep.c (vax_register_name): Constify.
11171 * windows-nat.c (windows_detach): Constify.
11172 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
11173 * xml-support.c (gdb_xml_end_element): Constify.
11174 * xml-tdesc.c (tdesc_start_reg): Constify.
11175 * xstormy16-tdep.c (xstormy16_register_name): Constify.
11176 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
11177 * xtensa-tdep.h (xtensa_register_t::name): Constify.
11178
11179 2017-04-05 Pedro Alves <palves@redhat.com>
11180
11181 * proc-api.c (struct trans): Constify.
11182 (procfs_note): Constify.
11183 * proc-events.c (struct trans, syscall_table):
11184 * proc-flags.c (struct trans): Constify.
11185 * proc-utils.h (procfs_note): Constify.
11186 * proc-why.c (struct trans): Constify.
11187 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
11188 (procfs_detach): Constify.
11189 * sol-thread.c (struct string_map): Constify.
11190 (td_err_string, td_state_string): Constify.
11191
11192 2017-04-05 Pedro Alves <palves@redhat.com>
11193
11194 * proc-api.c (procfs_filename): Don't initialize
11195 procfs_filename.
11196 (prepare_to_trace): Assume procfs_filename is non-NULL.
11197 (_initialize_proc_api): Give procfs_filename a default value here.
11198
11199 2017-04-05 Pedro Alves <palves@redhat.com>
11200
11201 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
11202 'cond_string' parameter.
11203 (extract_exception_regexp): Constify 'string' parameter.
11204 (catch_exception_command_1): Constify.
11205 * breakpoint.c (init_catchpoint)
11206 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
11207 parameter.
11208 (ep_parse_optional_if_clause, catch_fork_command_1)
11209 (catch_exec_command_1): Constify.
11210 * breakpoint.h (init_catchpoint): Constify 'cond_string'
11211 parameter.
11212 (ep_parse_optional_if_clause): Constify.
11213 * cli/cli-utils.c (remove_trailing_whitespace)
11214 (check_for_argument): Constify.
11215 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
11216 non-const overload.
11217 (check_for_argument): Likewise.
11218
11219 2017-04-05 Pedro Alves <palves@redhat.com>
11220
11221 * event-top.c (command_line_handler): Add cast to execute_command
11222 call.
11223 * record-btrace.c (cmd_record_btrace_bts_start)
11224 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
11225 (cmd_record_btrace_start): Add cast to execute_command call.
11226 * record-full.c (record_full_goto_insn):
11227 * record.c (record_start, record_stop): Add cast to
11228 execute_command_to_string calls.
11229 (cmd_record_start): Add cast to execute_command calls.
11230
11231 2017-04-05 Pedro Alves <palves@redhat.com>
11232
11233 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
11234 static inline function.
11235 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
11236 array and use gdb_PyArg_ParseTupleAndKeywords.
11237 * python/py-cmd.c (cmdpy_init): Likewise.
11238 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
11239 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
11240 (infpy_search_memory): Likewise.
11241 * python/py-objfile.c (objfpy_add_separate_debug_file)
11242 (gdbpy_lookup_objfile): Likewise.
11243 * python/py-symbol.c (gdbpy_lookup_symbol)
11244 (gdbpy_lookup_global_symbol): Likewise.
11245 * python/py-type.c (gdbpy_lookup_type): Likewise.
11246 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
11247 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
11248 Likewise.
11249
11250 2017-04-05 Pedro Alves <palves@redhat.com>
11251
11252 * python/python-internal.h (gdb_PyGetSetDef): New type.
11253 * python/py-block.c (block_object_getset)
11254 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
11255 * python/py-event.c (event_object_getset)
11256 (finish_breakpoint_object_getset): Likewise.
11257 * python/py-inferior.c (inferior_object_getset): Likewise.
11258 * python/py-infthread.c (thread_object_getset): Likewise.
11259 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
11260 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
11261 * python/py-objfile.c (objfile_getset): Likewise.
11262 * python/py-progspace.c (pspace_getset): Likewise.
11263 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
11264 Likewise.
11265 * python/py-record.c (recpy_record_getset): Likewise.
11266 * python/py-symbol.c (symbol_object_getset): Likewise.
11267 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
11268 Likewise.
11269 * python/py-type.c (type_object_getset, field_object_getset):
11270 Likewise.
11271 * python/py-value.c (value_object_getset): Likewise.
11272
11273 2017-04-05 Pedro Alves <palves@redhat.com>
11274
11275 * python/python-internal.h (gdb_PyObject_CallMethod)
11276 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
11277 New functions.
11278 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
11279 (PySys_GetObject, PySys_SetPath): New macros.
11280
11281 2017-04-05 Pedro Alves <palves@redhat.com>
11282
11283 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
11284 info_osdata_command.
11285 * osdata.c (info_osdata_command): Rename to ...
11286 (info_osdata): ... this. Constify 'type' parameter, and remove
11287 the 'from_tty' parameter. Accept NULL TYPE.
11288 (info_osdata_command): New function.
11289 * osdata.h (info_osdata_command): Remove declaration.
11290 (info_osdata): New declaration.
11291
11292 2017-04-05 Pedro Alves <palves@redhat.com>
11293
11294 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
11295 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
11296 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
11297 parameter.
11298 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
11299 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
11300 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
11301 parameter.
11302 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
11303 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
11304 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11305 (mi_cmd_file_list_exec_source_files)
11306 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
11307 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
11308 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
11309 parameter.
11310 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
11311 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
11312 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11313 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
11314 (mi_cmd_stack_info_frame): Constify 'command' parameter.
11315 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
11316 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
11317 'command' parameter.
11318 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
11319 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
11320 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
11321 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
11322 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
11323 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
11324 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
11325 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
11326 (mi_cmd_var_set_update_range): Constify 'command' parameter.
11327 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
11328 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
11329 parameter.
11330 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
11331 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
11332 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
11333 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
11334 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
11335 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
11336 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
11337 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
11338 (mi_cmd_data_list_changed_registers)
11339 (mi_cmd_data_write_register_values)
11340 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
11341 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
11342 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
11343 (mi_cmd_list_features, mi_cmd_list_target_features)
11344 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
11345 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
11346 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
11347 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
11348 (mi_cmd_trace_frame_collected): Constify 'command'
11349 parameter.
11350 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
11351 'command' parameter.
11352
11353 2017-04-05 Pedro Alves <palves@redhat.com>
11354
11355 * ada-lang.c (ada_completer_word_break_characters): Now a const
11356 array.
11357 (ada_get_gdb_completer_word_break_characters): Constify.
11358 * completer.c (gdb_completer_command_word_break_characters)
11359 (gdb_completer_file_name_break_characters)
11360 (gdb_completer_quote_characters): Now const arrays.
11361 (get_gdb_completer_quote_characters): Constify.
11362 (set_rl_completer_word_break_characters): New function.
11363 (set_gdb_completion_word_break_characters)
11364 (complete_line_internal): Use it.
11365 * completer.h (get_gdb_completer_quote_characters): Constify.
11366 (set_rl_completer_word_break_characters): Declare.
11367 * f-lang.c (f_word_break_characters): Constify.
11368 * language.c (default_word_break_characters): Constify.
11369 * language.h (language_defn::la_word_break_characters): Constify.
11370 (default_word_break_characters): Constify.
11371 * top.c (init_main): Use set_rl_completer_word_break_characters.
11372
11373 2017-04-05 Pedro Alves <palves@redhat.com>
11374
11375 * aix-thread.c (aix_thread_pid_to_str)
11376 (aix_thread_extra_thread_info): Constify.
11377 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
11378 * bsd-uthread.c (bsd_uthread_extra_thread_info)
11379 (bsd_uthread_pid_to_str): Constify.
11380 * corelow.c (core_pid_to_str): Constify.
11381 * darwin-nat.c (darwin_pid_to_str): Constify.
11382 * fbsd-nat.c (fbsd_pid_to_str): Constify.
11383 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
11384 Constify.
11385 * gnu-nat.c (gnu_pid_to_str): Constify.
11386 * go32-nat.c (go32_pid_to_str): Constify.
11387 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
11388 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
11389 * inferior.c (inferior_pid_to_str): Constify.
11390 * linux-nat.c (linux_nat_pid_to_str): Constify.
11391 * linux-tdep.c (linux_core_pid_to_str): Constify.
11392 * linux-thread-db.c (thread_db_pid_to_str)
11393 (thread_db_extra_thread_info): Constify.
11394 * nto-tdep.c (nto_extra_thread_info): Constify.
11395 * nto-tdep.h (nto_extra_thread_info): Constify.
11396 * obsd-nat.c (obsd_pid_to_str): Constify.
11397 * procfs.c (procfs_pid_to_str): Constify.
11398 * ravenscar-thread.c (ravenscar_extra_thread_info)
11399 (ravenscar_pid_to_str): Constify.
11400 * remote-sim.c (gdbsim_pid_to_str): Constify.
11401 * remote.c (remote_threads_extra_info, remote_pid_to_str):
11402 Constify.
11403 * sol-thread.c (solaris_pid_to_str): Constify.
11404 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
11405 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
11406 * target.c (default_pid_to_str, target_pid_to_str)
11407 (normal_pid_to_str, default_pid_to_str): Constify.
11408 * target.h (target_ops::to_pid_to_str)
11409 (target_ops::to_extra_thread_info): Constify.
11410 (target_pid_to_str, normal_pid_to_str): Constify.
11411 * windows-nat.c (windows_pid_to_str): Constify.
11412 * gdbarch.sh (core_pid_to_str): Constify.
11413 * target-delegates.c: Regenerate.
11414 * gdbarch.h, gdbarch.c: Regenerate.
11415
11416 2017-04-05 Pedro Alves <palves@redhat.com>
11417
11418 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
11419 the memory of the temporary warning_pre_print override.
11420 * utils.c (warning_pre_print): Constify.
11421 * utils.h (warning_pre_print): Constify.
11422
11423 2017-04-05 Pedro Alves <palves@redhat.com>
11424
11425 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
11426 (shell_command): New function.
11427 (make_command): Use std::string.
11428 (init_cli_cmds): Register shell_command instead of shell_escape.
11429
11430 2017-04-05 Pedro Alves <palves@redhat.com>
11431
11432 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
11433 * tracepoint.c (default_collect): Don't initialize.
11434
11435 2017-04-05 Pedro Alves <palves@redhat.com>
11436
11437 * macroexp.c (macro_buffer::shared): Now a bool.
11438 (init_buffer): Update.
11439 (init_shared_buffer): Constify 'addr' parameter.
11440 (substitute_args, expand, macro_expand, macro_expand_next): Remove
11441 casts.
11442
11443 2017-04-05 Pedro Alves <palves@redhat.com>
11444
11445 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
11446 * disasm.c (set_disassembler_options): Constify local.
11447 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
11448
11449 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
11450
11451 PR gdb/21352
11452 * tracefile.c (tsave_command): Fix argument parsing for '-r'
11453 option.
11454
11455 2017-04-05 Yao Qi <yao.qi@linaro.org>
11456
11457 * frame.c (frame_unwind_register_unsigned): Call
11458 frame_unwind_register_value.
11459
11460 2017-04-05 Yao Qi <yao.qi@linaro.org>
11461
11462 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
11463 Use gdb_test_multiple, and don't match anchor.
11464
11465 2017-04-05 Pedro Alves <palves@redhat.com>
11466
11467 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
11468 (Write After Approval): Remove Simon Marchi.
11469
11470 2017-04-05 Pedro Alves <palves@redhat.com>
11471
11472 * common/gdb_optional.h (optional::optional): Make constexpr and
11473 initialize m_dummy.
11474
11475 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11476
11477 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11478 (amd64fbsd_jmp_buf_reg_offset): Remove.
11479 (amd64fbsd_supply_uthread): Remove function.
11480 (amd64fbsd_collect_uthread): Remove function.
11481 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
11482 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
11483 (x86_64-*-freebsd*): Remove bsd-uthread.o.
11484 (fbsd-nat.c): Update comment.
11485 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11486 (i386fbsd_jmp_buf_reg_offset): Remove.
11487 (i386fbsd_supply_uthread): Remove function.
11488 (i386fbsd_collect_uthread): Remove function.
11489 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
11490
11491 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11492
11493 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
11494 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
11495 * NEWS: Mention that support for FreeBSD/alpha was removed.
11496 * alpha-fbsd-tdep.c: Delete file.
11497 * config/alpha/fbsd.mh: Delete file.
11498 * configure.host: Delete alpha*-*-freebsd* and
11499 alpha*-*-kfreebsd*-gnu.
11500 * configure.tgt: Delete alpha*-*-freebsd* and
11501 alpha*-*-kfreebsd*-gnu.
11502
11503 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11504
11505 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
11506 amd64bsd_store_inferior_registers): Use ptid from regcache.
11507
11508 2017-04-04 Pedro Alves <palves@redhat.com>
11509
11510 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
11511 data fields, make them private and add "m_" prefixes.
11512 (lnp_state_machine::lnp_state_machine): New ctor.
11513 (record_line, check_line_address, handle_set_discriminator)
11514 (handle_set_address, handle_advance_pc, handle_special_opcode)
11515 (handle_advance_line, handle_set_file, handle_negate_stmt)
11516 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
11517 (end_sequence, advance_line): New methods.
11518 (m_gdbarch, m_record_lines_p): New fields.
11519 (lnp_reader_state): Delete.
11520 (dwarf_record_line): Rename to ...
11521 (lnp_state_machine::record_line): ... adjust.
11522 (init_lnp_state_machine): Delete.
11523 (lnp_state_machine::lnp_state_machine): New.
11524 (check_line_address): Rename to ...
11525 (lnp_state_machine::check_line_address): This.
11526 (dwarf_decode_lines_1): Remove reference to "reader_state".
11527 Adjust lnp_state_machine having a non-default ctor. Use bool.
11528 State machine internal state manipulation moved to
11529 lnp_state_machine methods.
11530
11531 2017-04-04 Pedro Alves <palves@redhat.com>
11532
11533 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11534 unittests/offset-type-selftests.c.
11535 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11536 * common/offset-type.h: New file.
11537 * common/preprocessor.h: New file.
11538 * common/traits.h: New file.
11539 * common/valid-expr.h: New file.
11540 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11541 sect_offset and cu_offset strong typedefs throughout.
11542 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11543 typedefs throughout.
11544 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11545 sect_offset and cu_offset strong typedefs throughout.
11546 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11547 typedefs throughout.
11548 * gdbtypes.h: Include "common/offset-type.h".
11549 (cu_offset): Now an offset type (strong typedef) instead of a
11550 struct.
11551 (sect_offset): Likewise.
11552 (union call_site_parameter_u): Rename "param_offset" field to
11553 "param_cu_off".
11554 * unittests/offset-type-selftests.c: New file.
11555
11556 2017-04-04 Pedro Alves <palves@redhat.com>
11557
11558 * common/underlying.h: New file.
11559 * dwarf2read.c: Include "common/gdb_optional.h" and
11560 "common/underlying.h".
11561 (dir_index, file_name_index): New types.
11562 (file_entry): Use them.
11563 (file_entry::include): Use to_underlying.
11564 (line_header::add_file_name): Use dir_index.
11565 (read_formatted_entries): Use gdb::optional. Read form before
11566 writting to file_entry.
11567 (dwarf_decode_line_header): Use dir_index.
11568 (lnp_state_machine::current_file): Use to_underlying.
11569 (lnp_state_machine::file): Change type to file_name_index.
11570 (dwarf_record_line): Use to_underlying.
11571 (init_lnp_state_machine): Use file_name_index.
11572 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11573
11574 2017-04-04 Pedro Alves <palves@redhat.com>
11575
11576 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11577 operator bool, has_value and get methods.
11578
11579 2017-04-04 Pedro Alves <palves@redhat.com>
11580
11581 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11582 fields.
11583 (line_header): Initialize all data fields. Change type of
11584 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11585 Change type of include_dirs to std::vector<const char *>. Remove
11586 num_include_dirs, include_dirs_size. Change type of file_names to
11587 std::vector<file_entry>. Remove num_file_names, file_names_size.
11588 (line_header::line_header): New.
11589 (line_header::add_include_dir, line_header::add_file_name): New
11590 methods.
11591 (line_header::include_dir_at): Remove NULL check.
11592 (line_header::file_name_at): Add const overload.
11593 (line_header_up): New unique_ptr typedef.
11594 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11595 std::vector. Remove free_line_header call.
11596 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11597 free_line_header call.
11598 (free_cu_line_header): Delete.
11599 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11600 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11601 Adjust to use std::vector.
11602 (free_line_header): Delete.
11603 (free_line_header_voidp): Use delete.
11604 (add_include_dir): Replace with ...
11605 (line_header::add_include_dir): ... this method. Use std::vector.
11606 (add_file_name): Replace with ...
11607 (line_header::add_file_name): ... this method. Use std::vector.
11608 (add_include_dir_stub): Delete.
11609 (read_formatted_entries): Remove memset.
11610 (dwarf_decode_line_header): Return a line_header_up instead of a
11611 raw pointer. Remove cleanup handling. Pass lambdas to
11612 read_formatted_entries. Adjust to use line_header methods.
11613 (dwarf_decode_lines_1): Adjust to use line_header methods.
11614 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11615 use std::vector.
11616
11617 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11618
11619 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11620 instead of struct ptid.
11621
11622 2017-05-04 Alan Hayward <alan.hayward@arm.com>
11623
11624 * frame.c (get_frame_register_bytes): Unwind using value.
11625 (put_frame_register_bytes): Likewise.
11626
11627 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11628
11629 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11630 aggregate-like.
11631
11632 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11633
11634 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11635
11636 2017-03-29 Yao Qi <yao.qi@linaro.org>
11637
11638 * gdbthread.h (struct thread_info): Declare constructor and
11639 destructor. Add some in-class member initializers.
11640 * thread.c (free_thread): Remove.
11641 (init_thread_list): Call delete instead of free_thread.
11642 (new_thread): Call thread_info constructor.
11643 (thread_info::thread_info): New function.
11644 (thread_info::~thread_info): New function.
11645 (delete_thread_1): Call delete instead of free_thread.
11646 (make_cleanup_restore_current_thread): Move tp and frame to
11647 inner block.
11648
11649 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11650
11651 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11652 (arc_skip_prologue): Likewise.
11653 (arc_make_frame_cache): Likewise.
11654 (arc_pv_get_operand): New function.
11655 (arc_is_in_prologue): Likewise.
11656 (arc_analyze_prologue): Likewise.
11657 (arc_print_frame_cache): Likewise.
11658 (MAX_PROLOGUE_LENGTH): New constant.
11659
11660 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11661
11662 * configure.tgt: Add arc-insn.o.
11663 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11664 (dump_arc_instruction_command): New function.
11665 (arc_fprintf_disasm): Likewise.
11666 (arc_disassemble_info): Likewise.
11667 (arc_insn_get_operand_value): Likewise.
11668 (arc_insn_get_operand_value_signed): Likewise.
11669 (arc_insn_get_memory_base_reg): Likewise.
11670 (arc_insn_get_memory_offset): Likewise.
11671 (arc_insn_get_branch_target): Likewise.
11672 (arc_insn_dump): Likewise.
11673 (arc_insn_get_linear_next_pc): Likewise.
11674 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11675 (arc_disassemble_info): Likewise.
11676 (arc_insn_get_branch_target): Likewise.
11677 (arc_insn_get_linear_next_pc): Likewise.
11678 * NEWS: Mention new "maint print arc arc-instruction".
11679
11680 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11681
11682 * arc-tdep (maintenance_print_arc_list): New variable.
11683 (maintenance_print_arc_command): New function.
11684
11685 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11686
11687 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11688 Add "limm" and "reserved".
11689 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11690 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11691 * arc-tdep.h (arc_regnum): Likewise.
11692
11693 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11694
11695 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11696 for THREADPTR register.
11697 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11698 register.
11699 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11700 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11701 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11702
11703 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11704
11705 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11706 registers above gdbarch_num_regs (gdbarch) as privileged in
11707 call0 ABI.
11708
11709 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11710
11711 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11712 for a single specified register or for all registers in
11713 a0_base..a0_base + C0_NREGS range.
11714 (supply_gregset_reg): Call regcache_raw_supply for a single
11715 specified register or for all registers in a0_base..a0_base +
11716 C0_NREGS range.
11717
11718 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11719
11720 * arch/xtensa.h (C0_NREGS): Add definition.
11721 * xtensa-tdep.c (C0_NREGS): Remove definition.
11722
11723 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11724
11725 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11726 Drop xtensa_default_isa initialization.
11727 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11728
11729 2017-03-27 Pedro Alves <palves@redhat.com>
11730
11731 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11732 (file_entry::include_dir): New method.
11733 (line_header::include_dir_at, line_header::file_name_at): New
11734 methods.
11735 (setup_type_unit_groups, setup_type_unit_groups)
11736 (psymtab_include_file_name): Simplify using the new methods.
11737 (lnp_state_machine) <the_line_header>: New field.
11738 <file>: Add comment.
11739 (lnp_state_machine::current_file): New method.
11740 (dwarf_record_line): Simplify using the new methods.
11741 (init_lnp_state_machine): Initialize the "the_line_header" field.
11742 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11743 Simplify using the new methods.
11744
11745 2017-03-27 Pedro Alves <palves@redhat.com>
11746
11747 * cp-name-parser.y (make_empty): Delete.
11748 (demangler_special, nested_name, ptr_operator, array_indicator)
11749 (direct_declarator, declarator_1): Use fill_comp instead of
11750 make_empty.
11751
11752 2017-03-27 Pedro Alves <palves@redhat.com>
11753
11754 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11755 to ATTRIBUTE_PRINTF.
11756 * solib-target.c (library_list_start_list): Print "string" not
11757 "version".
11758 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11759 gdb_xml_error call.
11760
11761 2017-03-27 Pedro Alves <palves@redhat.com>
11762
11763 * dwarf2read.c (struct file_and_directory): New.
11764 (dwarf2_get_dwz_file): Adjust to use std::string.
11765 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11766 (find_file_and_directory): Adjust to return a file_and_directory
11767 object.
11768 (read_file_scope): Adjust to use file_and_directory. Remove
11769 make_cleanup/do_cleanups calls.
11770 (open_and_init_dwp_file): Adjust to use std::string. Remove
11771 make_cleanup/do_cleanups calls.
11772 * python/python.c (do_start_initialization): Adjust to ldirname
11773 returning a std::string.
11774 * utils.c (ldirname): Now returns a std::string.
11775 * utils.h (ldirname): Change return type to std::string.
11776 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11777 returning a std::string.
11778 * xml-tdesc.c (file_read_description_xml): Likewise.
11779
11780 2017-03-24 Alan Hayward <alan.hayward@arm.com>
11781
11782 * regcache.c (regcache_debug_print_register): New function.
11783 * regcache.h (regcache_debug_print_register): New declaration.
11784 * target.c (debug_print_register): Remove.
11785 (target_fetch_registers): Call regcache_debug_print_register.
11786 (target_store_registers): Likewise.
11787
11788 2017-03-24 Pádraig Brady <pbrady@fb.com>
11789
11790 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11791 reference beyond the 'lh->include_dirs' array before accessing to
11792 it.
11793 (psymtab_include_file_name): Likewise.
11794 (dwarf_decode_lines_1): Likewise.
11795 (dwarf_decode_lines): Likewise.
11796 (file_file_name): Likewise.
11797
11798 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11799
11800 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11801 inferior_ptid.
11802 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11803 ps_lsetfpregs): Likewise.
11804 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11805 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11806 ps_lsetfpregs): Likewise.
11807 * target.c (target_fetch_registers, target_store_registers):
11808 Remove asserts.
11809
11810 2017-03-23 Alan Hayward <alan.hayward@arm.com>
11811
11812 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11813
11814 2017-03-23 Yao Qi <yao.qi@linaro.org>
11815
11816 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11817 (_initialize_aarch64_tdep): Register it.
11818 (aarch64_record_load_store): Handle PRFM instruction.
11819 (aarch64_process_record_test): New function.
11820
11821 2017-03-23 Yao Qi <yao.qi@linaro.org>
11822
11823 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11824 indentation.
11825
11826 2017-03-23 Yao Qi <yao.qi@linaro.org>
11827
11828 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11829
11830 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11831
11832 python/python.c (do_start_initialization): Fix memory leak.
11833
11834 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11835
11836 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11837 using get_ptrace_pid.
11838 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11839 inferior_ptid.
11840 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11841 inferior_ptid instead of pid.
11842
11843 2017-03-22 Yao Qi <yao.qi@linaro.org>
11844
11845 * aarch64-tdep.c: Wrap locally used classes in anonymous
11846 namespace.
11847 * arm-tdep.c: Likewise.
11848 * linespec.c: Likewise.
11849 * ui-out.c: Likewise.
11850
11851 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
11852
11853 PR gdb/19637
11854 * python/lib/gdb/printer/bound_registers.py: Import sys.
11855
11856 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11857
11858 * windows-nat.c (do_windows_fetch_inferior_registers): Add
11859 windows_thread_info parameter and use it instead of
11860 current_thread.
11861 (windows_fetch_inferior_registers): Don't set current_thread,
11862 pass the thread to do_windows_fetch_inferior_registers. Use
11863 ptid from regcache instead of inferior_ptid.
11864 (do_windows_store_inferior_registers): Add windows_thread_info
11865 parameter and use it instead of current_thread.
11866 (windows_store_inferior_registers): Don't set current_thread,
11867 pass the thread to do_windows_store_inferior_registers. Use
11868 ptid from regcache instead of inferior_ptid.
11869
11870 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11871
11872 * ser-mingw.c (ser_windows_raw): Remove reference to
11873 struct serial::current_timeout.
11874
11875 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
11876
11877 PR tdep/20928
11878 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
11879 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
11880 (sparc64_fsr_type): Fix %fsr decoding.
11881
11882 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
11883
11884 * python/py-record-btrace.c (btpy_insn_data): Change return type
11885 for Python 2.
11886
11887 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11888
11889 * spu-linux-nat.c (spu_fetch_inferior_registers,
11890 spu_store_inferior_registers): Use ptid from regcache, set and
11891 restore inferior_ptid.
11892 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
11893 Likewise.
11894
11895 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11896
11897 * i386-linux-nat.c (fetch_register, store_register,
11898 i386_linux_fetch_inferior_registers,
11899 i386_linux_store_inferior_registers): Use ptid from regcache.
11900 * ia64-linux-nat.c (ia64_linux_fetch_register,
11901 ia64_linux_store_register): Likewise.
11902 * inf-ptrace.c (inf_ptrace_fetch_register,
11903 inf_ptrace_store_register): Likewise.
11904 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
11905 m32r_linux_store_inferior_registers): Likewise.
11906 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
11907 m68kbsd_store_inferior_registers): Likewise.
11908 * m68k-linux-nat.c (fetch_register, store_register,
11909 m68k_linux_fetch_inferior_registers,
11910 m68k_linux_store_inferior_registers): Likewise.
11911 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
11912 m88kbsd_store_inferior_registers): Likewise.
11913 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
11914 mips_fbsd_store_inferior_registers): Likewise.
11915 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
11916 mips64_linux_regsets_store_registers): Likewise.
11917 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
11918 mipsnbsd_store_inferior_registers): Likewise.
11919 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
11920 mips64obsd_store_inferior_registers): Likewise.
11921 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
11922 Likewise.
11923 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
11924 ppcfbsd_store_inferior_registers): Likewise.
11925 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
11926 ppc_linux_store_inferior_registers): Likewise.
11927 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
11928 ppcnbsd_store_inferior_registers): Likewise.
11929 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
11930 ppcobsd_store_registers): Likewise.
11931 * procfs.c (procfs_fetch_registers, procfs_store_registers):
11932 Likewise.
11933 * ravenscar-thread.c (ravenscar_fetch_registers,
11934 ravenscar_store_registers, ravenscar_prepare_to_store):
11935 Likewise.
11936 * record-btrace.c (record_btrace_fetch_registers,
11937 record_btrace_store_registers, record_btrace_prepare_to_store):
11938 Likewise.
11939 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
11940 Lookup inferior using ptid from regcache, instead of
11941 current_inferior.
11942 * remote.c (remote_fetch_registers, remote_store_registers): Use
11943 ptid from regcache.
11944 * rs6000-nat.c (fetch_register, store_register): Likewise.
11945 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
11946 s390_linux_store_inferior_registers): Likewise.
11947 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
11948 shnbsd_store_inferior_registers): Likewise.
11949 * sol-thread.c (sol_thread_fetch_registers,
11950 sol_thread_store_registers): Likewise.
11951 * sparc-nat.c (sparc_fetch_inferior_registers,
11952 sparc_store_inferior_registers): Likewise.
11953 * tilegx-linux-nat.c (fetch_inferior_registers,
11954 store_inferior_registers): Likewise.
11955 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
11956 vaxbsd_store_inferior_registers): Likewise.
11957 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
11958 store_xtregs): Likewise.
11959
11960 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11961
11962 PR gdb/14441
11963 * NEWS: Mention support for rvalue references in GDB and python.
11964 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
11965 supports both lvalue and rvalue references.
11966
11967 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11968
11969 PR gdb/14441
11970 * gdbtypes.c (rank_one_type): Implement overloading
11971 resolution rules regarding rvalue references.
11972
11973 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11974
11975 PR gdb/14441
11976 * aarch64-tdep.c (aarch64_type_align)
11977 (aarch64_extract_return_value, aarch64_store_return_value): Change
11978 lvalue reference type checks to general reference type checks.
11979 * amd64-tdep.c (amd64_classify): Likewise.
11980 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
11981 Likewise.
11982 * arm-tdep.c (arm_type_align, arm_extract_return_value)
11983 (arm_store_return_value): Likewise.
11984 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
11985 * c-typeprint.c (c_print_type): Likewise.
11986 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
11987 (cplus_number_of_children, cplus_describe_child): Likewise.
11988 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
11989 * completer.c (expression_completer): Likewise.
11990 * cp-support.c (make_symbol_overload_list_adl_namespace):
11991 Likewise.
11992 * darwin-nat-info.c (info_mach_region_command): Likewise.
11993 * dwarf2loc.c (entry_data_value_coerce_ref)
11994 (value_of_dwarf_reg_entry): Likewise.
11995 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
11996 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
11997 Likewise.
11998 * findvar.c (extract_typed_address, store_typed_address):
11999 Likewise.
12000 * gdbtypes.c (rank_one_type): Likewise.
12001 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
12002 * infcall.c (value_arg_coerce): Likewise.
12003 * language.c (pointer_type): Likewise.
12004 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
12005 Likewise.
12006 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
12007 * mn10300-tdep.c (mn10300_type_align): Likewise.
12008 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
12009 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
12010 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
12011 Likewise.
12012 * printcmd.c (print_formatted, x_command): Likewise.
12013 * python/py-type.c (typy_get_composite, typy_template_argument):
12014 Likewise.
12015 * python/py-value.c (valpy_referenced_value)
12016 (valpy_get_dynamic_type, value_has_field): Likewise.
12017 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
12018 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
12019 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
12020 * spu-tdep.c (spu_scalar_value_p): Likewise.
12021 * symtab.c (lookup_symbol_aux): Likewise.
12022 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
12023 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
12024 Likewise.
12025 * valops.c (value_cast_pointers, value_cast)
12026 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
12027 (value_struct_elt, value_struct_elt_bitpos)
12028 (value_find_oload_method_list, find_overload_match)
12029 (value_rtti_indirect_type): Likewise.
12030 * valprint.c (val_print_scalar_type_p, generic_val_print):
12031 Likewise.
12032 * value.c (value_actual_type, value_as_address, unpack_long)
12033 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
12034 (coerce_ref): Likewise.
12035 * varobj.c (varobj_get_value_type): Likewise.
12036
12037 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12038
12039 PR gdb/14441
12040 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
12041 table of constants.
12042 * python/lib/gdb/command/explore.py: Support exploring values
12043 of rvalue reference types.
12044 * python/lib/gdb/types.py: Implement get_basic_type() for
12045 rvalue reference types.
12046 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
12047 constant.
12048 * python/py-value.c (valpy_getitem): Add an rvalue reference
12049 check.
12050 (valpy_reference_value): Add new parameter "refcode".
12051 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
12052 New wrappers for valpy_reference_value().
12053 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
12054 (gdbpy_invoke_xmethod): Likewise.
12055
12056 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12057
12058 PR gdb/14441
12059 * dwarf2read.c (process_die, read_type_die_1): Handle the
12060 DW_TAG_rvalue_reference_type DIE.
12061 (read_tag_reference_type): Add new parameter "refcode".
12062
12063 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12064
12065 PR gdb/14441
12066 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
12067 (c_type_print_modifier, c_type_print_varspec_suffix)
12068 (c_type_print_base): Support printing rvalue reference types.
12069 * c-valprint.c (c_val_print, c_value_print): Support printing
12070 rvalue reference values.
12071
12072 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12073
12074 PR gdb/14441
12075 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
12076 typename.
12077 * cp-support.c (replace_typedefs): Handle
12078 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
12079 * python/py-type.c (typy_lookup_type): Likewise.
12080
12081 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12082
12083 PR gdb/14441
12084 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
12085 * parse.c (insert_type): Change assert statement.
12086 (follow_types): Handle rvalue reference types.
12087 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
12088 constant.
12089
12090 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12091
12092 PR gdb/14441
12093 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
12094 value_ref() interface.
12095 * c-valprint.c (c_value_print): Likewise.
12096 * infcall.c (value_arg_coerce): Likewise.
12097 * python/py-value.c (valpy_reference_value): Likewise.
12098 * valops.c (value_cast, value_reinterpret_cast)
12099 (value_dynamic_cast, typecmp): Likewise.
12100 (value_ref): Parameterize by kind of return value reference type.
12101 * value.h (value_ref): Add new parameter "refcode".
12102
12103 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12104
12105 PR gdb/14441
12106 * dwarf2read.c (read_tag_reference_type): Use
12107 lookup_lvalue_reference_type() instead of lookup_reference_type().
12108 * eval.c (evaluate_subexp_standard): Likewise.
12109 * f-exp.y: Likewise.
12110 * gdbtypes.c (make_reference_type, lookup_reference_type):
12111 Generalize with rvalue reference types.
12112 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
12113 convenience wrappers for lookup_reference_type().
12114 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
12115 reference kind parameter.
12116 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
12117 wrappers for lookup_reference_type().
12118 * guile/scm-type.c (gdbscm_type_reference): Use
12119 lookup_lvalue_reference_type() instead of lookup_reference_type().
12120 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
12121 * parse.c (follow_types): Likewise.
12122 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
12123 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
12124 Likewise.
12125 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
12126 (gdbpy_invoke_xmethod): Likewise.
12127 * stabsread.c: Provide extra argument to make_reference_type()
12128 call.
12129 * valops.c (value_ref, value_rtti_indirect_type): Use
12130 lookup_lvalue_reference_type() instead of lookup_reference_type().
12131
12132 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
12133
12134 PR gdb/14441
12135 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
12136 (TYPE_IS_REFERENCE): New macro.
12137 (struct type): Add rvalue_reference_type field.
12138 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
12139
12140 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
12141
12142 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
12143 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
12144 New function definition.
12145 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
12146 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
12147 New function declaration.
12148 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
12149 * mi/mi-interp.h: New file.
12150 * solib.c (info_sharedlibrary_command): Replace for loop with
12151 ALL_SO_LIBS macro
12152 * solib.h (update_solib_list): New function declaration.
12153 (so_list_head): Move macro.
12154 * solist.h (ALL_SO_LIBS): New macro.
12155
12156 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
12157
12158 * infcmd.c (post_create_inferior): Remove unused argument in
12159 call to solib_add.
12160 * remote.c (remote_start_remote): Likewise.
12161 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
12162 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
12163 (enable_break): Likewise.
12164 * solib.c (update_solib_list): Remove unused target argument
12165 and its documentation.
12166 (solib_add): Remove unused target argument. Remove unused
12167 argument in call to update_solib_list.
12168 (info_sharedlibrary_command): Remove unused argument in call
12169 to update_solib_list.
12170 (sharedlibrary_command): Remove unused argument in call to
12171 solib_add.
12172 (handle_solib_event): Likewise.
12173 (reload_shared_libraries): Likewise.
12174 * solib.h (solib_add): Remove unused target argument.
12175
12176 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
12177
12178 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
12179 (s390_displaced_step_fixup): Cover relative branches with the
12180 default fixup handling. This fixes lack of support for some
12181 relative branch instructions.
12182
12183 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12184
12185 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
12186 ptid from regcache.
12187
12188 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12189
12190 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
12191 i386_darwin_store_inferior_registers): Use ptid from regcache.
12192
12193 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12194
12195 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
12196 i386bsd_store_inferior_registers): Use ptid from regcache.
12197
12198 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12199
12200 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
12201 hppaobsd_store_registers): Use ptid from regcache.
12202
12203 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12204
12205 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
12206 hppanbsd_store_registers): Use ptid from regcache.
12207
12208 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12209
12210 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
12211 from regcache. Use get_ptrace_pid.
12212
12213 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12214
12215 * corelow.c (get_core_register_section): Use ptid from regcache,
12216 update doc.
12217
12218 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12219
12220 * bsd-uthread.c (bsd_uthread_fetch_registers,
12221 bsd_uthread_store_registers): Use ptid from regcache, set and
12222 restore inferior_ptid.
12223
12224 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12225
12226 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
12227 fetch_fp_regs, store_register, store_regs, store_fp_register,
12228 store_fp_regs): Use ptid from regcache.
12229
12230 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12231
12232 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
12233 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
12234 store_vfp_regs): Use ptid from regcache.
12235
12236 2017-03-17 Pedro Alves <palves@redhat.com>
12237
12238 PR remote/21188
12239 * ser-base.c (ser_base_wait_for): Add comment.
12240 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
12241 version.
12242 * ser-unix.c (hardwire_raw): Remove reference to
12243 scb->current_timeout.
12244 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
12245 (hardwire_ops): Install ser_base_readchar instead of
12246 hardwire_readchar.
12247 * serial.h (struct serial) <current_timeout, timeout_remaining>:
12248 Remove fields.
12249
12250 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
12251
12252 PR gdb/19637
12253 * python/lib/gdb/printer/bound_registers.py: Add support for
12254 Python 3.
12255
12256 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
12257
12258 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
12259 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
12260 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
12261 byte_offset to subobj_byte_offset. Fix the handling of
12262 DWARF_VALUE_STACK on big-endian targets when coming via an
12263 implicit pointer.
12264 (dwarf2_evaluate_loc_desc): Adjust call to
12265 dwarf2_evaluate_loc_desc_full.
12266 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
12267 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
12268
12269 2017-03-16 Yao Qi <yao.qi@linaro.org>
12270
12271 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
12272 and REVSH instructions.
12273
12274 2017-03-16 Yao Qi <yao.qi@linaro.org>
12275
12276 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
12277 (arm_record_test): Declare.
12278 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
12279 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
12280 align with the manual.
12281 (thumb_record_misc): Adjust the code order to align with the
12282 manual.
12283 (thumb2_record_decode_insn_handler): Fix instruction matching.
12284 (instruction_reader_thumb): New class.
12285 (arm_record_test): New function.
12286
12287 2017-03-16 Yao Qi <yao.qi@linaro.org>
12288
12289 * arm-tdep.c (abstract_memory_reader): New class.
12290 (instruction_reader): New class.
12291 (extract_arm_insn): Add argument 'reader'. Callers updated.
12292 (decode_insn): Likewise.
12293
12294 2017-03-16 Doug Evans <dje@google.com>
12295
12296 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
12297 member. Change type of TYPE member to SCM. All uses updated.
12298 (lsscm_make_lazy_string_smob): Add assert.
12299 (lsscm_make_lazy_string): Flag bad length values.
12300 (lsscm_elt_type): New function.
12301 (gdbscm_lazy_string_to_value): Rewrite to use
12302 lsscm_safe_lazy_string_to_value.
12303 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
12304 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
12305 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
12306 in incoming type.
12307 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12308 * guile/scm-type.c (tyscm_scm_to_type): New function.
12309
12310 2017-03-15 Doug Evans <dje@google.com>
12311
12312 PR python/17728, python/18439, python/18779
12313 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
12314 member. Change type of TYPE member to PyObject *. All uses updated.
12315 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
12316 (gdbpy_create_lazy_string_object): Flag bad length values.
12317 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
12318 Handle typedefs in incoming type.
12319 (stpy_lazy_string_elt_type): New function.
12320 (gdbpy_extract_lazy_string): Call it.
12321 * python/py-value.c (valpy_lazy_string): Flag bad length values.
12322 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
12323 typedefs in incoming type.
12324
12325 2017-03-16 Doug Evans <dje@google.com>
12326
12327 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12328 * guile/scm-type.c (tyscm_scm_to_type): New function.
12329
12330 2017-03-16 Jiong Wang <jiong.wang@arm.com>
12331
12332 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
12333 "ULONGEST" for "skip".
12334
12335 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12336
12337 PR gdb/21220
12338 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
12339 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
12340 (inf_ptrace_peek_poke): ...here. New function. Now also loop
12341 over ptrace peek/poke until end of buffer or error.
12342
12343 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
12344
12345 * parse.c (length_of_subexp): Make static.
12346 * parser-defs.h (length_of_subexp): Remove.
12347
12348 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12349
12350 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
12351 as well.
12352
12353 2017-03-14 Pedro Alves <palves@redhat.com>
12354
12355 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
12356 (main): Use std::unique_ptr. Remove calls to
12357 cp_demangled_name_parse_free.
12358
12359 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12360
12361 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
12362 alphabsd_store_inferior_registers): Use regcache->ptid instead
12363 of inferior_ptid.
12364
12365 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12366
12367 * aix-thread.c (aix_thread_fetch_registers,
12368 aix_thread_store_registers): Use regcache->ptid instead of
12369 inferior_ptid.
12370
12371 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12372
12373 * aarch64-linux-nat.c (fetch_gregs_from_thread,
12374 store_gregs_to_thread, fetch_fpregs_from_thread,
12375 store_fpregs_to_thread): Use regcache->ptid instead of
12376 inferior_ptid.
12377
12378 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12379
12380 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
12381 amd64_linux_fetch_inferior_registers): Use regcache->ptid
12382 instead of inferior_ptid.
12383
12384 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12385
12386 * target.c (target_fetch_registers, target_store_registers): Add
12387 assert.
12388
12389 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12390
12391 * regcache.h (regcache_get_ptid): New function.
12392 * regcache.c (regcache_get_ptid): New function.
12393
12394 2017-03-13 Mark Wielaard <mark@klomp.org>
12395
12396 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
12397
12398 2017-03-10 Keith Seitz <keiths@redhat.com>
12399
12400 PR c++/8218
12401 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
12402
12403 2017-03-08 Pedro Alves <palves@redhat.com>
12404
12405 PR gdb/18360
12406 * infrun.c (start_step_over, do_target_resume, resume)
12407 (restart_threads): Assert we're not resuming a thread that is
12408 meant to be stopped.
12409 (infrun_thread_stop_requested_callback): Delete.
12410 (infrun_thread_stop_requested): If the thread is internally
12411 stopped, queue a pending stop event and clear the thread's
12412 inline-frame state.
12413 (handle_stop_requested): New function.
12414 (handle_syscall_event, handle_inferior_event_1): Use
12415 handle_stop_requested.
12416 (handle_stop_requested): New function.
12417 (handle_signal_stop): Set the thread's stop_signal here instead of
12418 at caller.
12419 (finish_step_over): Clear step over info unconditionally.
12420 (handle_signal_stop): If the user had interrupted the event
12421 thread, consider the stop a random signal.
12422 (handle_signal_stop) <signal arrived while stepping over
12423 breakpoint>: Don't restart threads here.
12424 (stop_waiting): Don't clear step-over info here.
12425
12426 2017-03-08 Pedro Alves <palves@redhat.com>
12427
12428 PR 21206
12429 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
12430 goes to argument 2, not 1.
12431
12432 2017-03-08 Pedro Alves <palves@redhat.com>
12433
12434 PR cli/21218
12435 * top.c (gdb_readline_wrapper): Avoid passing NULL to
12436 display_gdb_prompt.
12437 (command_line_input): Add comment.
12438
12439 2017-03-08 Pedro Alves <palves@redhat.com>
12440
12441 PR tui/21216
12442 * tui/tui-file.c (tui_file::write): New.
12443 * tui/tui-file.h (tui_file): Override "write".
12444 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
12445 factored out from ...
12446 (tui_puts): ... here.
12447 (tui_putc): Use them.
12448 (tui_write): New function.
12449 * tui/tui-io.h (tui_write): Declare.
12450
12451 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
12452
12453 * Makefile.in (SFILES): Replace "environ.c" with
12454 "common/environ.c".
12455 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
12456 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
12457 to...
12458 * common/environ.c: ... here.
12459 * environ.h: Moved to...
12460 * common/environ.h: ... here.
12461
12462 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12463
12464 * gdbarch.sh (pstring_ptr): New static function.
12465 (gdbarch_disassembler_options): Use it.
12466 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
12467 not valid_disassembler_option->name.
12468 * gdbarch.c: Regenerate.
12469
12470 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12471
12472 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
12473
12474 2017-03-07 Pedro Alves <palves@redhat.com>
12475
12476 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
12477
12478 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
12479
12480 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12481 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
12482 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
12483 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
12484
12485 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
12486
12487 * xtensa-linux-nat.c (fetch_gregs): Remove const.
12488
12489 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
12490
12491 * remote.c (remote_add_target_side_commands): Use range-based
12492 for loop.
12493
12494 2017-03-03 Yao Qi <yao.qi@linaro.org>
12495
12496 PR gdb/21165
12497 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
12498 value is lazy.
12499 * valprint.c (common_val_print): Likewise.
12500
12501 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
12502
12503 * NEWS: Mention new set/show disassembler-options commands.
12504 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
12505 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
12506 (prospective_options): New static variable.
12507 (gdb_disassembler::gdb_disassembler): Initialize
12508 m_di.disassembler_options.
12509 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
12510 (get_disassembler_options): New function.
12511 (set_disassembler_options): Likewise.
12512 (set_disassembler_options_sfunc): Likewise.
12513 (show_disassembler_options_sfunc): Likewise.
12514 (disassembler_options_completer): Likewise.
12515 (_initialize_disasm): Likewise.
12516 * disasm.h (get_disassembler_options): New prototype.
12517 (set_disassembler_options): Likewise.
12518 * gdbarch.sh (gdbarch_disassembler_options): New variable.
12519 (gdbarch_verify_disassembler_options): Likewise.
12520 * gdbarch.c: Regenerate.
12521 * gdbarch.h: Likewise.
12522 * arm-tdep.c (num_disassembly_options): Delete.
12523 (set_disassembly_style): Likewise.
12524 (arm_disassembler_options): New static variable.
12525 (set_disassembly_style_sfunc): Convert short style name into long
12526 option name. Call set_disassembler_options.
12527 (show_disassembly_style_sfunc): New function.
12528 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
12529 set_gdbarch_verify_disassembler_options.
12530 (_initialize_arm_tdep): Delete regnames variable and update callers.
12531 (arm_disassembler_options): Initialize.
12532 (disasm_options): New variable.
12533 (num_disassembly_options): Rename from this...
12534 (num_disassembly_styles): ...to this. Compute by scanning through
12535 disasm_options.
12536 (valid_disassembly_styles): Initialize using disasm_options.
12537 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12538 set_arm_regname_option.
12539 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12540 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12541 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12542 set_gdbarch_verify_disassembler_options.
12543 * s390-tdep.c (s390_disassembler_options): New static variable.
12544 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12545 set_gdbarch_verify_disassembler_options.
12546
12547 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12548
12549 * remote.c (remote_add_target_side_condition): Remove "struct"
12550 keyword from range-based for loop.
12551
12552 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12553
12554 * remote.c (remote_add_target_side_condition): Use range-based
12555 for loop. Update comment.
12556
12557 2017-02-27 Yao Qi <yao.qi@linaro.org>
12558
12559 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12560
12561 2017-02-26 Alan Hayward <alan.hayward@arm.com>
12562
12563 * regcache.c (regcache_raw_update): New function.
12564 (regcache_raw_read): Move code to regcache_raw_update.
12565 * regcache.h (regcache_raw_update): New declaration.
12566 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12567
12568 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12569
12570 * dwarf2read.c (create_debug_type_hash_table): Initialize
12571 header.signature and header.type_offset_in_tu.
12572
12573 2017-02-24 Pedro Alves <palves@redhat.com>
12574
12575 * symtab.c (make_file_symbol_completion_list_1): Use
12576 add_symtab_completions.
12577
12578 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12579
12580 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12581
12582 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12583
12584 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12585 I386_MAX_REGISTER_SIZE.
12586 (i386_pseudo_register_write): Likewise.
12587 (i386_process_record): Likewise.
12588 * i387-tdep.c (i387_supply_xsave): Likewise.
12589 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12590 (store_register): Likewise.
12591
12592 2017-02-23 Pedro Alves <palves@redhat.com>
12593
12594 * ada-lang.c: Include "common/function-view.h".
12595 (ada_iterate_over_symbols): Adjust to use function_view as
12596 callback type.
12597 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12598 (ada_make_symbol_completion_list): Use a lambda.
12599 (ada_exc_search_name_matches): Delete.
12600 (name_matches_regex): New.
12601 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12602 * compile/compile-c-support.c: Include "common/function-view.h".
12603 (print_one_macro): Change prototype to accept a ui_file pointer.
12604 (write_macro_definitions): Use a lambda.
12605 * dwarf2read.c: Include "common/function-view.h".
12606 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12607 (dw2_expand_symtabs_matching): Adjust to use function_view as
12608 callback type.
12609 * language.h: Include "common/function-view.h".
12610 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12611 function_view as callback type.
12612 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12613 * linespec.c: Include "common/function-view.h".
12614 (collect_info::add_symbol): New method.
12615 (struct symbol_and_data_callback, iterate_inline_only, struct
12616 symbol_matcher_data, iterate_name_matcher): Delete.
12617 (iterate_over_all_matching_symtabs): Adjust to use function_view
12618 as callback type and lambdas.
12619 (iterate_over_file_blocks): Adjust to use function_view as
12620 callback type.
12621 (decode_compound_collector): Now a class with private fields.
12622 (decode_compound_collector::release_symbols): New method.
12623 (collect_one_symbol): Rename to...
12624 (decode_compound_collector::operator()): ... this and adjust.
12625 (lookup_prefix_sym): decode_compound_collector construction bits
12626 move to decode_compound_collector ctor. Pass the
12627 decode_compound_collector object directly as callback. Remove
12628 cleanups and use decode_compound_collector::release_symbols
12629 instead.
12630 (symtab_collector): Now a class with private fields.
12631 (symtab_collector::release_symtabs): New method.
12632 (add_symtabs_to_list): Rename to...
12633 (symtab_collector::operator()): ... this and adjust.
12634 (collect_symtabs_from_filename): symtab_collector construction
12635 bits move to symtab_collector ctor. Pass the symtab_collector
12636 object directly as callback. Remove cleanups and use
12637 symtab_collector::release_symtabs instead.
12638 (collect_symbols): Delete.
12639 (add_matching_symbols_to_info): Use lambdas.
12640 * macrocmd.c (print_macro_callback): Delete.
12641 (info_macro_command): Use a lambda.
12642 (info_macros_command): Pass print_macro_definition as callable
12643 directly.
12644 (print_one_macro): Remove 'ignore' parameter.
12645 (macro_list_command): Adjust.
12646 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12647 (macro_for_each_data::user_data): Delete field.
12648 (foreach_macro): Adjust to call the function_view.
12649 (macro_for_each): Adjust to use function_view as callback type.
12650 (foreach_macro_in_scope): Adjust to call the function_view.
12651 (macro_for_each_in_scope): Adjust to use function_view as callback
12652 type.
12653 * macrotab.h: Include "common/function-view.h".
12654 (macro_callback_fn): Declare a prototype instead of a pointer.
12655 Remove "user_data" parameter.
12656 (macro_for_each, macro_for_each_in_scope): Adjust to use
12657 function_view as callback type.
12658 * psymtab.c (partial_map_expand_apply)
12659 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12660 Adjust to use function_view as callback type and to return bool.
12661 (psym_expand_symtabs_matching): Adjust to use function_view as
12662 callback types.
12663 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12664 to use function_view as callback type and to return bool.
12665 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12666 callback types.
12667 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12668 as callback types.
12669 * symfile.h: Include "common/function-view.h".
12670 (expand_symtabs_file_matcher_ftype)
12671 (expand_symtabs_symbol_matcher_ftype)
12672 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12673 return bool.
12674 (quick_symbol_functions::map_symtabs_matching_filename)
12675 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12676 function_view as callback type and return bool.
12677 (expand_symtabs_matching): Adjust to use function_view as callback
12678 type.
12679 (maintenance_expand_name_matcher)
12680 (maintenance_expand_file_matcher): Delete.
12681 (maintenance_expand_symtabs): Use lambdas.
12682 * symtab.c (iterate_over_some_symtabs): Adjust to use
12683 function_view as callback types and return bool.
12684 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12685 of a cleanup.
12686 (lookup_symtab_callback): Delete.
12687 (lookup_symtab): Use a lambda.
12688 (iterate_over_symbols): Adjust to use function_view as callback
12689 type.
12690 (struct search_symbols_data, search_symbols_file_matches)
12691 (search_symbols_name_matches): Delete.
12692 (search_symbols): Use a pair of lambdas.
12693 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12694 (symtab_expansion_callback): Delete.
12695 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12696 * symtab.h: Include "common/function-view.h".
12697 (iterate_over_some_symtabs): Adjust to use function_view as
12698 callback type and return bool.
12699 (iterate_over_symtabs): Adjust to use function_view as callback
12700 type.
12701 (symbol_found_callback_ftype): Remove 'data' parameter and return
12702 bool.
12703 (iterate_over_symbols): Adjust to use function_view as callback
12704 type.
12705
12706 2017-02-23 Pedro Alves <palves@redhat.com>
12707
12708 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12709 (%.o) <unittests/%.c>: New pattern.
12710 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12711 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12712 * common/function-view.h: New file.
12713 * unittests/function-view-selftests.c: New file.
12714 * configure: Regenerate.
12715
12716 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12717
12718 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12719 inferior_ptid.
12720 * go32-nat.c (go32_thread_alive): Likewise.
12721
12722 2017-02-23 Yao Qi <yao.qi@linaro.org>
12723
12724 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12725 delete.
12726
12727 2017-02-23 Yao Qi <yao.qi@linaro.org>
12728
12729 * varobj.c (varobj_clear_saved_item): Use delete instead of
12730 xfree.
12731 (update_dynamic_varobj_children): Likewise.
12732
12733 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12734
12735 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12736
12737 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12738
12739 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12740 m_enum_value to 0 in default constructor.
12741
12742 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12743
12744 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12745 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12746 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12747 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12748 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12749 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12750 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12751 IS_STORE_CONDITIONAL_INSN.
12752
12753 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12754
12755 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12756
12757 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12758
12759 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12760
12761 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12762
12763 * dwarf2read.c (skip_one_die, read_attribute_value)
12764 (dwarf2_const_value_attr, dump_die_shallow)
12765 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12766 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12767
12768 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12769
12770 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12771 (dwarf_parse_macro_header): Accept DWARF version 5.
12772 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12773
12774 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12775
12776 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12777 DW_AT_GNU_*.
12778 * common/common-exceptions.h (enum errors): Likewise.
12779 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12780 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12781 (dwarf_expr_context::execute_stack_op): Likewise.
12782 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12783 Likewise.
12784 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12785 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12786 (show_entry_values_debug, call_site_to_target_addr)
12787 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12788 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12789 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12790 (value_of_dwarf_block_entry, indirect_pieced_value)
12791 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12792 (disassemble_dwarf_expression): Likewise.
12793 * dwarf2read.c (process_die, inherit_abstract_dies)
12794 (read_call_site_scope): Likewise.
12795 * gdbtypes.h (struct func_type, struct call_site_parameter)
12796 (struct call_site): Likewise.
12797 * stack.c (read_frame_arg): Likewise.
12798 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12799
12800 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12801
12802 * defs.h (read_unsigned_leb128): New declaration.
12803 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12804 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12805 (dwarf2_find_location_expression): Call also
12806 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12807 * dwarf2loc.h (dwarf2_version): New declaration.
12808 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12809 rnglists.
12810 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12811 .debug_rnglists.
12812 (struct dwop_section_names): Add loclists_dwo.
12813 (dwop_section_names): Add .debug_loclists.dwo.
12814 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12815 (struct dwarf2_per_cu_data): Add dwarf_version.
12816 (struct dwo_sections): Add loclists.
12817 (struct attr_abbrev): Add implicit_const.
12818 (read_indirect_line_string): New declaration.
12819 (read_unsigned_leb128): Delete declaration.
12820 (rcuh_kind): New definition.
12821 (read_and_check_comp_unit_head): Change parameter
12822 is_debug_types_section to section_kind.
12823 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12824 (read_comp_unit_head): Change parameter abfd to section, add parameter
12825 section_kind. Handle DWARF-5.
12826 (error_check_comp_unit_head): Accept also DWARF version 5.
12827 (read_and_check_comp_unit_head): Change parameter
12828 is_debug_types_section to section_kind.
12829 (read_and_check_type_unit_head): Delete function.
12830 (read_abbrev_offset): Handle DWARF-5.
12831 (create_debug_type_hash_table): Add parameter section_kind. Process
12832 only DW_UT_type. Use signature and type_offset_in_tu from struct
12833 comp_unit_head.
12834 (create_debug_types_hash_table): Update create_debug_type_hash_table
12835 caller.
12836 (create_all_type_units): Call create_debug_type_hash_table.
12837 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12838 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12839 caller.
12840 (skip_one_die): Handle DW_FORM_implicit_const.
12841 (dwarf2_rnglists_process): New function.
12842 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12843 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12844 (read_attribute_value): Handle DW_FORM_implicit_const,
12845 DW_FORM_line_strp.
12846 (read_attribute): Handle DW_FORM_implicit_const.
12847 (read_indirect_string_at_offset_from): New function from
12848 read_indirect_string_at_offset.
12849 (read_indirect_string_at_offset): Call
12850 read_indirect_string_at_offset_from.
12851 (read_indirect_line_string_at_offset): New function.
12852 (read_indirect_string): New function comment.
12853 (read_indirect_line_string): New function.
12854 (read_unsigned_leb128): Make it global.
12855 (dwarf2_string_attr): Handle DWARF-5.
12856 (add_include_dir_stub, read_formatted_entries): New functions.
12857 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
12858 Handle DWARF-5.
12859 (per_cu_header_read_in): Update read_comp_unit_head caller.
12860 (dwarf2_version): New function.
12861 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
12862 rnglists.
12863 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
12864 fields.
12865
12866 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12867
12868 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
12869
12870 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12871
12872 * dwarf2read.c (dwarf2_ranges_process): New function from
12873 dwarf2_ranges_read.
12874 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
12875 dwarf2_ranges_process.
12876
12877 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12878
12879 * dwarf2read.c (create_debug_type_hash_table): New function from
12880 create_debug_types_hash_table.
12881 (create_debug_types_hash_table): Call create_debug_type_hash_table.
12882 (create_all_type_units, open_and_init_dwo_file): Update
12883 create_debug_types_hash_table callers.
12884
12885 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12886
12887 PR gdb/16188
12888 * fork-child.c (trace_start_error): Fix thinko. va_end should
12889 refer to 'ap', not 'args'.
12890
12891 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12892 Pedro Alves <palves@redhat.com>
12893
12894 PR gdb/16188
12895 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
12896 calls succeeded.
12897 * fork-child.c (trace_start_error): New function.
12898 (trace_start_error_with_name): Likewise.
12899 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
12900 * inf-ptrace.c (inf_ptrace_me): Likewise.
12901 * inferior.h (trace_start_error): New prototype.
12902 (trace_start_error_with_name): Likewise.
12903
12904 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
12905
12906 PR gdb/21164
12907 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
12908 NULL before using it.
12909 * symmisc.c (maintenance_print_symbols): Likewise.
12910 (maintenance_print_msymbols): Likewise.
12911
12912 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12913
12914 * NEWS: Add record Python bindings entry.
12915
12916 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12917
12918 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
12919 py-record-full.o.
12920 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
12921 * python/py-record-btrace.c, python/py-record-btrace.h,
12922 python/py-record-full.c, python/py-record-full.h: New file.
12923 * python/py-record.c: Add include for py-record-btrace.h and
12924 py-record-full.h.
12925 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
12926 recpy_instruction_history, recpy_function_call_history, recpy_begin,
12927 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
12928 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
12929 New definition.
12930 (gdbpy_initialize_btrace): New export.
12931 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
12932
12933 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12934
12935 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
12936 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
12937 * python/py-record.c: New file.
12938 * python/python-internal.h (gdbpy_start_recording,
12939 gdbpy_current_recording, gdpy_stop_recording,
12940 gdbpy_initialize_record): New export.
12941 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
12942 (python_GdbMethods): Add gdbpy_start_recording,
12943 gdbpy_current_recording and gdbpy_stop_recording.
12944
12945 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12946
12947 * record-btrace.c (record_btrace_record_method): New function.
12948 (init_record_btrace_ops): Initialize to_record_method.
12949 * record-full.c (record_full_record_method): New function.
12950 (init_record_full_ops, init_record_full_core_ops): Add
12951 record_full_record_method.
12952 * record.h (enum record_method): New enum.
12953 * target-debug.h (target_debug_print_enum_record_method: New define.
12954 * target-delegates.c: Regenerate.
12955 * target.c (target_record_method): New function.
12956 * target.h: Include record.h.
12957 (struct target_ops) <to_record_method>: New field.
12958 (target_record_method): New export.
12959
12960 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12961
12962 * record.h (record_start, record_stop): New export.
12963 * record.c (record_start, record_stop): New function.
12964
12965 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12966
12967 * btrace.c (btrace_fetch): Copy function call segments pointer
12968 into a vector.
12969 (btrace_clear): Clear the vector.
12970 (btrace_find_insn_by_number): Use binary search to find the correct
12971 function call segment.
12972 * btrace.h (brace_fun_p): New typedef.
12973 (struct btrace_thread_info) <functions>: New field.
12974
12975 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12976
12977 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
12978 * btrace.c (btrace_decode_error): ... here. New function.
12979 * btrace.h (btrace_decode_error): New export.
12980
12981 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12982
12983 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
12984 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
12985 btrace_find_insn_by_number): Remove special case for gaps.
12986 * btrace.h (btrace_insn_get_error): New export.
12987 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
12988 * record-btrace.c (btrace_insn_history): Print number for gaps.
12989 (record_btrace_info, record_btrace_goto): Handle gaps.
12990
12991 2017-02-14 Tom Tromey <tom@tromey.com>
12992
12993 PR python/13598:
12994 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
12995 event.
12996 * python/py-evts.c (gdbpy_initialize_py_events): Add
12997 before_prompt registry.
12998 * python/py-events.h (events_object) <before_prompt>: New field.
12999
13000 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
13001
13002 * btrace.c (ftrace_new_switch): Preserve up link and flags.
13003
13004 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
13005
13006 * symfile (_initialize_symfile): Add usage text to the load command's
13007 help text.
13008
13009 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
13010
13011 * utils.c (defaulted_query): Don't query on secondary UIs.
13012
13013 2017-02-10 Tom Tromey <tom@tromey.com>
13014
13015 * rust-lang.c (rust_get_disr_info): Remove unused variable.
13016
13017 2017-02-10 Tom Tromey <tom@tromey.com>
13018
13019 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
13020 "cleanup" local.
13021 * python/py-type.c (typy_legacy_template_argument): Remove
13022 unnecessary "cleanup" local.
13023
13024 2017-02-10 Tom Tromey <tom@tromey.com>
13025
13026 * python/python.c (do_start_initialization): New function, from
13027 _initialize_python.
13028 (_initialize_python): Call do_start_initialization.
13029 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
13030 goto.
13031
13032 2017-02-10 Tom Tromey <tom@tromey.com>
13033
13034 * python/py-prettyprint.c (pretty_print_one_value): Use
13035 gdbpy_ref.
13036
13037 2017-02-10 Tom Tromey <tom@tromey.com>
13038
13039 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
13040 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
13041 gdbpy_ref.
13042 * python/py-type.c (field_new): Use gdbpy_ref.
13043 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
13044 gdbpy_ref.
13045 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
13046 (py_free_pspace): Likewise.
13047 (pspace_to_pspace_object): Likewise.
13048 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
13049 (py_free_objfile): Likewise.
13050 (objfile_to_objfile_object): Likewise.
13051 * python/py-inferior.c (delete_thread_object): Use
13052 gdbpy_ref.
13053 (infpy_read_memory): Likewise.
13054 (py_free_inferior): Likewise.
13055 * python/py-evtregistry.c (create_eventregistry_object): Use
13056 gdbpy_ref.
13057 * python/py-event.c (create_event_object): Use gdbpy_ref.
13058
13059 2017-02-10 Tom Tromey <tom@tromey.com>
13060
13061 * python/py-ref.h (gdbpy_ref_policy): Now a template.
13062 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
13063 used.
13064 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
13065 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
13066 python/py-exitedevent.c, python/py-finishbreakpoint.c,
13067 python/py-framefilter.c, python/py-function.c,
13068 python/py-inferior.c, python/py-infevents.c,
13069 python/py-linetable.c, python/py-newobjfileevent.c,
13070 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
13071 python/py-signalevent.c, python/py-stopevent.c,
13072 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
13073 python/py-unwind.c, python/py-utils.c, python/py-value.c,
13074 python/py-varobj.c, python/py-xmethods.c, python/python.c,
13075 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
13076
13077 2017-02-10 Tom Tromey <tom@tromey.com>
13078
13079 * ui-out.h (ui_out_emit_type): New class.
13080 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
13081 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
13082 and ui_out_emit_tuple.
13083 (enumerate_locals): Likewise.
13084 (py_mi_print_variables, py_print_locals, py_print_args): Use
13085 ui_out_emit_list.
13086 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
13087 ui_out_emit_list.
13088 * common/gdb_optional.h: New file.
13089
13090 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
13091
13092 * MAINTAINERS (Write After Approval): Update my e-mail address.
13093
13094 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
13095
13096 PR gdb/21122
13097 * breakpoint.c (_initialize_breakpoint): Update the help description
13098 of the 'commands' command to indicate that it takes a list argument.
13099
13100 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
13101
13102 * interps.c (current_interp_set_logging): Remove "return".
13103
13104 2017-02-09 Gary Benson <gbenson@redhat.com>
13105
13106 * symtab.c (add_symtab_completions): Prevent NULL pointer
13107 dereference.
13108
13109 2017-02-08 Pedro Alves <palves@redhat.com>
13110
13111 * interps.c (interp::interp): Remove reference to quiet_p.
13112 (interp_set): Make static. Remove dead "Switching to" output
13113 code.
13114 (interp_quiet_p, interp_set_quiet): Delete.
13115 (interpreter_exec_cmd): Don't set the interpreter quiet.
13116 * interps.h (interp_quiet_p): Make static.
13117 (class interp) <quiet_p>: Remove field
13118
13119 2017-02-08 Jerome Guitton <guitton@adacore.com>
13120
13121 * cli/cli-decode.c (find_command_name_length): Make it extern.
13122 * cli/cli-decode.h (find_command_name_length): Declare.
13123 * cli/cli-script.c (command_name_equals, line_first_arg):
13124 New functions.
13125 (process_next_line): Use cli-decode to parse command names.
13126 (build_command_line): Make args a constant pointer.
13127
13128 2017-02-08 Jerome Guitton <guitton@adacore.com>
13129
13130 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
13131 Remove case-insensitive search.
13132
13133 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
13134
13135 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
13136 at the end of the line. Avoids an ARI warning.
13137
13138 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
13139
13140 * NEWS: Mention support for record/replay of Intel 64 rdrand and
13141 rdseed instructions.
13142 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
13143
13144 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
13145
13146 PR tdep/20936
13147 Provide and use sparc32 and sparc64 target description XML files.
13148 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
13149 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
13150 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
13151 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
13152 * features/sparc/sparc32-solaris.xml: New file.
13153 * features/sparc/sparc64-solaris.xml: New file.
13154 * features/sparc/sparc32-solaris.c: Generated.
13155 * features/sparc/sparc64-solaris.c: Generated.
13156 * sparc-tdep.h: Account for differences in target descriptions.
13157 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
13158 (sparc32_register_type): Use target provided registers.
13159 (validate_tdesc_registers): New function.
13160 (sparc32_gdbarch_init): Use tdesc_has_registers.
13161 Set pseudoregister functions.
13162 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
13163 (sparc64_register_type): Use target provided registers.
13164 (sparc64_init_abi): Set pseudoregister functions.
13165
13166 2017-02-03 Tom Tromey <tom@tromey.com>
13167
13168 PR rust/21097:
13169 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
13170 with a single member.
13171
13172 2017-02-03 Pedro Alves <palves@redhat.com>
13173
13174 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
13175 (cli_interp_base::~cli_interp_base): New.
13176 (cli_interp): New struct.
13177 (as_cli_interp): Cast the interp itself to cli_interp.
13178 (cli_interpreter_pre_command_loop): Rename to ...
13179 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
13180 parameter.
13181 (cli_interpreter_init): Rename to ...
13182 (cli_interp::init): ... this. Remove 'self' parameter. Use
13183 boolean. Make extern.
13184 (cli_interpreter_resume): Rename to ...
13185 (cli_interp::resume): ... this. Remove 'data' parameter. Make
13186 extern.
13187 (cli_interpreter_suspend): Rename to ...
13188 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
13189 extern.
13190 (cli_interpreter_exec): Rename to ...
13191 (cli_interp::exec): ... this. Remove 'data' parameter. Make
13192 extern.
13193 (cli_interpreter_supports_command_editing): Rename to ...
13194 (cli_interp_base::supports_command_editing): ... this. Remove
13195 'interp' parameter. Make extern.
13196 (cli_ui_out): Rename to ...
13197 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
13198 Make extern.
13199 (cli_set_logging): Rename to ...
13200 (cli_interp_base::set_logging): ... this. Remove 'interp'
13201 parameter. Make extern.
13202 (cli_interp_procs): Delete.
13203 (cli_interp_factory): Adjust to use "new".
13204 * cli/cli-interp.h: Include "interps.h".
13205 (struct cli_interp_base): New struct.
13206 * interps.c (struct interp): Delete. Fields moved to interps.h.
13207 (interp_new): Delete.
13208 (interp::interp, interp::~interp): New.
13209 (interp_set): Use bool, and return void. Assume the interpreter
13210 has suspend, init and resume methods, and that the all return
13211 void.
13212 (set_top_level_interpreter): interp_set returns void.
13213 (interp_ui_out): Adapt.
13214 (current_interp_set_logging): Adapt.
13215 (interp_data): Delete.
13216 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
13217 (interp_exec): Adapt.
13218 (top_level_interpreter_data): Delete.
13219 * interps.h (interp_init_ftype, interp_resume_ftype)
13220 (interp_suspend_ftype, interp_exec_ftype)
13221 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
13222 (class interp): New.
13223 (interp_new): Delete.
13224 (interp_set): Now returns void. Use bool.
13225 (interp_data, top_level_interpreter_data): Delete.
13226 * mi/mi-common.h: Include interps.h.
13227 (class mi_interp): Inherit from interp. Define a ctor. Declare
13228 init, resume, suspect, exec, interp_ui_out, set_logging and
13229 pre_command_loop methods.
13230 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
13231 (mi_interpreter_init): Rename to ...
13232 (mi_interp::init): ... this. Remove the 'interp' parameter, use
13233 bool, return void and make extern. Adjust.
13234 (mi_interpreter_resume): ... Rename to ...
13235 (mi_interp::resume): ... this. Remove the 'data' parameter,
13236 return void and make extern. Adjust.
13237 (mi_interpreter_suspend): ... Rename to ...
13238 (mi_interp::suspend): ... this. Remove the 'data' parameter,
13239 return void and make extern. Adjust.
13240 (mi_interpreter_exec): ... Rename to ...
13241 (mi_interp::exec): ... this. Remove the 'data' parameter and make
13242 extern. Adjust.
13243 (mi_interpreter_pre_command_loop): ... Rename to ...
13244 (mi_interp::pre_command_loop): ... this. Remove the 'self'
13245 parameter and make extern.
13246 (mi_on_normal_stop_1): Adjust.
13247 (mi_ui_out): Rename to ...
13248 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
13249 parameter and make extern. Adjust.
13250 (mi_set_logging): Rename to ...
13251 (mi_interp::set_logging): ... this. Remove the 'interp'
13252 parameter and make extern. Adjust.
13253 (mi_interp_procs): Delete.
13254 (mi_interp_factory): Adjust to use 'new'.
13255 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
13256 (mi_print_exception, mi_execute_command, mi_load_progress):
13257 Adjust.
13258 * tui/tui-interp.c (tui_interp): New class.
13259 (as_tui_interp): Return a tui_interp pointer.
13260 (tui_on_normal_stop, tui_on_signal_received)
13261 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
13262 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
13263 to use interp::interp_ui_out.
13264 (tui_init): Rename to ...
13265 (tui_interp::init): ... this. Remove the 'self' parameter, use
13266 bool, return void and make extern. Adjust.
13267 (tui_resume): Rename to ...
13268 (tui_interp::resume): ... this. Remove the 'data' parameter,
13269 return void and make extern. Adjust.
13270 (tui_suspend): Rename to ...
13271 (tui_interp::suspend): ... this. Remove the 'data' parameter,
13272 return void and make extern. Adjust.
13273 (tui_ui_out): Rename to ...
13274 (tui_interp::interp_ui_out): ... this. Remove the 'self'
13275 parameter, and make extern. Adjust.
13276 (tui_exec): Rename to ...
13277 (tui_interp::exec): ... this. Remove the 'data' parameter and
13278 make extern.
13279 (tui_interp_procs): Delete.
13280 (tui_interp_factory): Use "new".
13281
13282 2017-02-02 Tom Tromey <tom@tromey.com>
13283
13284 * rust-exp.y (ends_raw_string, space_then_number)
13285 (rust_identifier_start_p): Return bool.
13286 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
13287 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
13288 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
13289 (rust_chartype_p): Return bool.
13290 (val_print_struct, rust_print_struct_def, rust_print_type):
13291 Update.
13292 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
13293 Return bool.
13294
13295 2017-02-02 Tom Tromey <tom@tromey.com>
13296
13297 * rust-lang.c: Reindent.
13298
13299 2017-02-02 Tom Tromey <tom@tromey.com>
13300
13301 * rust-lang.h (rust_crate_for_block): Update.
13302 * rust-lang.c (rust_crate_for_block): Return std::string.
13303 (rust_get_disr_info): Use std:;string, not
13304 gdb::unique_xmalloc_ptr.
13305 * rust-exp.y (crate_name): Update.
13306
13307 2017-02-02 Pedro Alves <palves@redhat.com>
13308
13309 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
13310 field out of gdb_disassembler_test and make it static.
13311
13312 2017-02-02 Pedro Alves <palves@redhat.com>
13313
13314 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
13315 mi1_interp and mi_interp fields.
13316
13317 2017-02-02 Pedro Alves <palves@redhat.com>
13318
13319 * cli/cli-interp.c (struct saved_output_files, saved_output):
13320 Moved from cli/cli-logging.c.
13321 (cli_set_logging): New function.
13322 (cli_interp_procs): Install cli_set_logging.
13323 * cli/cli-interp.h (make_logging_output, cli_set_logging):
13324 Declare.
13325 * cli/cli-logging.c (struct saved_output_files, saved_output):
13326 Moved to cli/cli-interp.c.
13327 (pop_output_files): Don't save outputs here.
13328 (make_logging_output): New function.
13329 (handle_redirections): Don't build tee nor save previous outputs
13330 here.
13331 * interps.c (current_interp_set_logging): Change prototype.
13332 Assume there's always a set_logging_proc method installed.
13333 * interps.h (interp_set_logging_ftype): Change prototype.
13334 (current_interp_set_logging): Change prototype and adjust comment.
13335 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
13336 use make_logging_output.
13337 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
13338 2017-02-02 Pedro Alves <palves@redhat.com>
13339
13340 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
13341 from ...
13342 (set_logging_overwrite): ... here.
13343 (logging_no_redirect_file): Delete.
13344 (set_logging_redirect): Don't handle redirection on the fly.
13345 Instead warn that "logging off" / "logging on" is necessary.
13346 (pop_output_files): Delete references to logging_no_redirect_file.
13347 (show_logging_command): Always speak in terms of what will happen
13348 once logging is reenabled.
13349
13350 2017-02-02 Pedro Alves <palves@redhat.com>
13351
13352 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
13353
13354 2017-02-02 Pedro Alves <palves@redhat.com>
13355
13356 * disasm.c (gdb_pretty_print_insn): Rename to ...
13357 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
13358 Remove gdbarch parameter. Adapt to clear the object's buffers
13359 instead of allocating new buffers, and to print using the object's
13360 gdb_disassembler instead of calling gdb_print_insn.
13361 (dump_insns): Use gdb_pretty_print_disassembler.
13362 * disasm.h (gdb_pretty_print_insn): Delete declaration.
13363 (gdb_pretty_print_disassembler): New class.
13364 * record-btrace.c (btrace_insn_history): Use
13365 gdb_pretty_print_disassembler.
13366
13367 2017-02-02 Pedro Alves <palves@redhat.com>
13368
13369 * ada-lang.c (type_as_string): Use string_file.
13370 * ada-valprint.c (ada_print_floating): Use string_file.
13371 * ada-varobj.c (ada_varobj_scalar_image)
13372 (ada_varobj_get_value_image): Use string_file.
13373 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
13374 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
13375 * breakpoint.c (update_inserted_breakpoint_locations)
13376 (insert_breakpoint_locations, reattach_breakpoints)
13377 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
13378 (print_it_watchpoint): Use string_file.
13379 (save_breakpoints): Use stdio_file.
13380 * c-exp.y (oper): Use string_file.
13381 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
13382 tee_file.
13383 (pop_output_files): Use delete.
13384 (handle_redirections): Use stdio_file and tee_file.
13385 * cli/cli-setshow.c (do_show_command): Use string_file.
13386 * compile/compile-c-support.c (c_compute_program): Use
13387 string_file.
13388 * compile/compile-c-symbols.c (generate_vla_size): Take a
13389 'string_file &' instead of a 'ui_file *'.
13390 (generate_c_for_for_one_variable): Take a 'string_file &' instead
13391 of a 'ui_file *'. Use string_file.
13392 (generate_c_for_variable_locations): Take a 'string_file &'
13393 instead of a 'ui_file *'.
13394 * compile/compile-internal.h (generate_c_for_for_one_variable):
13395 Take a 'string_file &' instead of a 'ui_file *'.
13396 * compile/compile-loc2c.c (push, pushf, unary, binary)
13397 (print_label, pushf_register_address, pushf_register)
13398 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
13399 'ui_file *'. Adjust.
13400 * compile/compile.c (compile_to_object): Use string_file.
13401 * compile/compile.h (compile_dwarf_expr_to_c)
13402 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
13403 'ui_file *'.
13404 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
13405 (replace_typedefs_qualified_name): Use string_file and
13406 obstack_copy0.
13407 * disasm.c (gdb_pretty_print_insn): Use string_file.
13408 (gdb_disassembly): Adjust reference the null_stream global.
13409 (do_ui_file_delete): Delete.
13410 (gdb_insn_length): Use null_stream.
13411 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
13412 * dwarf2loc.c (dwarf2_compile_property_to_c)
13413 (locexpr_generate_c_location, loclist_generate_c_location): Take a
13414 'string_file &' instead of a 'ui_file *'.
13415 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
13416 * dwarf2read.c (do_ui_file_peek_last): Delete.
13417 (dwarf2_compute_name): Use string_file.
13418 * event-top.c (gdb_setup_readline): Use stdio_file.
13419 * gdbarch.sh (verify_gdbarch): Use string_file.
13420 * gdbtypes.c (safe_parse_type): Use null_stream.
13421 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
13422 string_file.
13423 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
13424 'string_file *' instead of a 'ui_file *'.
13425 (gdbscm_arch_disassemble): Use string_file.
13426 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
13427 * guile/scm-ports.c (class ioscm_file_port): Now a class that
13428 inherits from ui_file.
13429 (ioscm_file_port_delete, ioscm_file_port_rewind)
13430 (ioscm_file_port_put): Delete.
13431 (ioscm_file_port_write): Rename to ...
13432 (ioscm_file_port::write): ... this. Remove file_port_magic
13433 checks.
13434 (ioscm_file_port_new): Delete.
13435 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
13436 ui_file_up.
13437 * guile/scm-type.c (tyscm_type_name): Use string_file.
13438 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
13439 Use string_file.
13440 * infcmd.c (print_return_value_1): Use string_file.
13441 * infrun.c (print_target_wait_results): Use string_file.
13442 * language.c (add_language): Use string_file.
13443 * location.c (explicit_to_string_internal): Use string_file.
13444 * main.c (captured_main_1): Use null_file.
13445 * maint.c (maintenance_print_architecture): Use stdio_file.
13446 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
13447 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
13448 event_channel>: Change type to mi_console_file pointer.
13449 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
13450 (mi_console_file_delete): Delete.
13451 (struct mi_console_file): Delete.
13452 (mi_console_file_magic): Delete.
13453 (mi_console_file_new): Delete.
13454 (mi_console_file::mi_console_file): New.
13455 (mi_console_file_delete): Delete.
13456 (mi_console_file_fputs): Delete.
13457 (mi_console_file::write): New.
13458 (mi_console_raw_packet): Delete.
13459 (mi_console_file::flush): New.
13460 (mi_console_file_flush): Delete.
13461 (mi_console_set_raw): Rename to ...
13462 (mi_console_file::set_raw): ... this.
13463 * mi/mi-console.h (class mi_console_file): New class.
13464 (mi_console_file_new, mi_console_set_raw): Delete.
13465 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
13466 (mi_set_logging): Use delete and tee_file. Adjust.
13467 * mi/mi-main.c (output_register): Use string_file.
13468 (mi_cmd_data_evaluate_expression): Use string_file.
13469 (mi_cmd_data_read_memory): Use string_file.
13470 (mi_cmd_execute, print_variable_or_computed): Use string_file.
13471 * mi/mi-out.c (mi_ui_out::main_stream): New.
13472 (mi_ui_out::rewind): Use main_stream and
13473 string_file.
13474 (mi_ui_out::put): Use main_stream and string_file.
13475 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13476 Allocate a 'string_file' instead.
13477 (mi_out_new): Don't allocate a mem_fileopen stream here.
13478 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13479 (mi_ui_out::main_stream): Declare method.
13480 * printcmd.c (eval_command): Use string_file.
13481 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
13482 * python/py-arch.c (archpy_disassemble): Use string_file.
13483 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
13484 * python/py-frame.c (frapy_str): Use string_file.
13485 * python/py-framefilter.c (py_print_type, py_print_single_arg):
13486 Use string_file.
13487 * python/py-type.c (typy_str): Use string_file.
13488 * python/py-unwind.c (unwind_infopy_str): Use string_file.
13489 * python/py-value.c (valpy_str): Use string_file.
13490 * record-btrace.c (btrace_insn_history): Use string_file.
13491 * regcache.c (regcache_print): Use stdio_file.
13492 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
13493 * remote.c (escape_buffer): Use string_file.
13494 * rust-lang.c (rust_get_disr_info): Use string_file.
13495 * serial.c (serial_open_ops_1): Use stdio_file.
13496 (do_serial_close): Use delete.
13497 * stack.c (print_frame_arg): Use string_file.
13498 (print_frame_args): Remove local mem_fileopen stream, not used.
13499 (print_frame): Use string_file.
13500 * symmisc.c (maintenance_print_symbols): Use stdio_file.
13501 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
13502 Take a 'string_file *' instead of a 'ui_file *'.
13503 * top.c (new_ui): Use stdio_file and stderr_file.
13504 (free_ui): Use delete.
13505 (execute_command_to_string): Use string_file.
13506 (quit_confirm): Use string_file.
13507 * tracepoint.c (collection_list::append_exp): Use string_file.
13508 * tui/tui-disasm.c (tui_disassemble): Use string_file.
13509 * tui/tui-file.c: Don't include "ui-file.h".
13510 (enum streamtype, struct tui_stream): Delete.
13511 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
13512 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
13513 (tui_file::tui_file): New method.
13514 (tui_file_fputs): Delete.
13515 (tui_file_get_strbuf): Delete.
13516 (tui_file::puts): New method.
13517 (tui_file_adjust_strbuf): Delete.
13518 (tui_file_flush): Delete.
13519 (tui_file::flush): New method.
13520 * tui/tui-file.h: Tweak intro comment.
13521 Include ui-file.h.
13522 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
13523 (tui_file_adjust_strbuf): Delete declarations.
13524 (class tui_file): New class.
13525 * tui/tui-io.c (tui_initialize_io): Use tui_file.
13526 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
13527 (tui_register_format): Use string_stream.
13528 * tui/tui-stack.c (tui_make_status_line): Use string_file.
13529 (tui_get_function_from_frame): Use string_file.
13530 * typeprint.c (type_to_string): Use string_file.
13531 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
13532 (null_stream): New global.
13533 (ui_file_delete): Delete.
13534 (ui_file::ui_file): New.
13535 (null_file_isatty): Delete.
13536 (ui_file::~ui_file): New.
13537 (null_file_rewind): Delete.
13538 (ui_file::printf): New.
13539 (null_file_put): Delete.
13540 (null_file_flush): Delete.
13541 (ui_file::putstr): New.
13542 (null_file_write): Delete.
13543 (ui_file::putstrn): New.
13544 (null_file_read): Delete.
13545 (ui_file::putc): New.
13546 (null_file_fputs): Delete.
13547 (null_file_write_async_safe): Delete.
13548 (ui_file::vprintf): New.
13549 (null_file_delete): Delete.
13550 (null_file::write): New.
13551 (null_file_fseek): Delete.
13552 (null_file::puts): New.
13553 (ui_file_data): Delete.
13554 (null_file::write_async_safe): New.
13555 (gdb_flush, ui_file_isatty): Adjust.
13556 (ui_file_put, ui_file_rewind): Delete.
13557 (ui_file_write): Adjust.
13558 (ui_file_write_for_put): Delete.
13559 (ui_file_write_async_safe, ui_file_read): Adjust.
13560 (ui_file_fseek): Delete.
13561 (fputs_unfiltered): Adjust.
13562 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13563 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13564 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13565 (set_ui_file_data): Delete.
13566 (string_file::~string_file, string_file::write)
13567 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13568 (do_ui_file_as_string, ui_file_as_string): Delete.
13569 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13570 (struct mem_file): Delete.
13571 (mem_file_new): Delete.
13572 (stdio_file::stdio_file): New.
13573 (mem_file_delete): Delete.
13574 (stdio_file::stdio_file): New.
13575 (mem_fileopen): Delete.
13576 (stdio_file::~stdio_file): New.
13577 (mem_file_rewind): Delete.
13578 (stdio_file::set_stream): New.
13579 (mem_file_put): Delete.
13580 (stdio_file::open): New.
13581 (mem_file_write): Delete.
13582 (stdio_file_magic, struct stdio_file): Delete.
13583 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13584 (stdio_file::flush): New.
13585 (stdio_file_read): Rename to ...
13586 (stdio_file::read): ... this. Adjust.
13587 (stdio_file_write): Rename to ...
13588 (stdio_file::write): ... this. Adjust.
13589 (stdio_file_write_async_safe): Rename to ...
13590 (stdio_file::write_async_safe) ... this. Adjust.
13591 (stdio_file_fputs): Rename to ...
13592 (stdio_file::puts) ... this. Adjust.
13593 (stdio_file_isatty): Delete.
13594 (stdio_file_fseek): Delete.
13595 (stdio_file::isatty): New.
13596 (stderr_file_write): Rename to ...
13597 (stderr_file::write) ... this. Adjust.
13598 (stderr_file_fputs): Rename to ...
13599 (stderr_file::puts) ... this. Adjust.
13600 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13601 (stderr_file::stderr_file): New.
13602 (tee_file_magic): Delete.
13603 (struct tee_file): Delete.
13604 (tee_file::tee_file): New.
13605 (tee_file_new): Delete.
13606 (tee_file::~tee_file): New.
13607 (tee_file_delete): Delete.
13608 (tee_file_flush): Rename to ...
13609 (tee_file::flush): ... this. Adjust.
13610 (tee_file_write): Rename to ...
13611 (tee_file::write): ... this. Adjust.
13612 (tee_file::write_async_safe): New.
13613 (tee_file_fputs): Rename to ...
13614 (tee_file::puts): ... this. Adjust.
13615 (tee_file_isatty): Rename to ...
13616 (tee_file::isatty): ... this. Adjust.
13617 * ui-file.h (struct obstack, struct ui_file): Don't
13618 forward-declare.
13619 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13620 (ui_file_write_ftype)
13621 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13622 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13623 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13624 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13625 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13626 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13627 (set_ui_file_fseek): Delete.
13628 (ui_file_data, ui_file_delete, ui_file_rewind)
13629 (struct ui_file): New.
13630 (ui_file_up): New.
13631 (class null_file): New.
13632 (null_stream): Declare.
13633 (ui_file_write_for_put, ui_file_put): Delete.
13634 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13635 Delete.
13636 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13637 (gdb_fopen, tee_file_new): Delete.
13638 (struct string_file): New.
13639 (struct stdio_file): New.
13640 (stdio_file_up): New.
13641 (struct stderr_file): New.
13642 (class tee_file): New.
13643 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13644 of a 'ui_file *'. Adjust.
13645 * ui-out.h (class ui_out) <field_stream>: Likewise.
13646 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13647 (null_stream): Delete.
13648 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13649 Adjust.
13650 * utils.h (struct ui_file): Delete forward declaration..
13651 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13652 (error_stream): Take a 'string_file &' instead of a
13653 'ui_file *'.
13654 * varobj.c (varobj_value_get_print_value): Use string_file.
13655 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13656 * gdbarch.c: Regenerate.
13657
13658 2017-02-02 Pedro Alves <palves@redhat.com>
13659
13660 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13661 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13662 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13663 Adjust to call gdb_print_insn instead of
13664 gdb_disassembler::print_insn.
13665 (dump_insns, do_mixed_source_and_assembly_deprecated)
13666 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13667 'gdbarch' parameter. Remove gdb_disassembler parameter.
13668 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13669 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13670 declaration.
13671 (gdb_pretty_print_insn): Re-add declaration.
13672 * record-btrace.c (btrace_insn_history): Don't allocate a
13673 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13674
13675 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13676
13677 * disasm.h (gdb_disassembly): Remove file_string parameter.
13678 * disasm.c (gdb_disassembly): Likewise.
13679 * cli/cli-cmds.c (print_disassembly): Adapt.
13680 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13681 * stack.c (do_gdb_disassembly): Likewise.
13682
13683 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13684
13685 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13686 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13687 targets. And if the implicit value is longer than needed, extract
13688 the first bytes instead of the "least significant" ones.
13689
13690 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13691
13692 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13693 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13694 (btrace_fetch): Assert can_access_registers_ptid.
13695 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13696 validate_registers_access.
13697
13698 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13699
13700 * gdbthread.h (can_access_registers_ptid): New.
13701 * thread.c (can_access_registers_ptid): New.
13702
13703 2017-02-01 Pedro Alves <palves@redhat.com>
13704
13705 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13706
13707 2017-01-31 Pedro Alves <palves@redhat.com>
13708
13709 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13710 Fix typos.
13711
13712 2017-01-31 Pedro Alves <palves@redhat.com>
13713
13714 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13715 not used.
13716
13717 2017-01-31 Pedro Alves <palves@redhat.com>
13718
13719 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13720
13721 2017-01-31 Pedro Alves <palves@redhat.com>
13722
13723 * common/scoped_restore.h
13724 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13725 change the value's parameter type to T2.
13726 (make_scoped_restore): Likewise.
13727
13728 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13729 Richard Henderson <rth@redhat.com>
13730
13731 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13732 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13733 GS_BASE for older kernels.
13734 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13735 GS_BASE for older kernels.
13736 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13737 and GS_BASE to the offset table.
13738 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13739 system register group.
13740 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13741 for older kernels.
13742 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13743 amd64 ABI.
13744 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13745 AMD64_GSBASE_REGNUM.
13746 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13747 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13748 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13749 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13750 i386/64bit-segments.xml in those rules.
13751 * features/i386/64bit-segments.xml: New file.
13752 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13753 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13754 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13755 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13756 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13757 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13758 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13759 * features/i386/amd64-avx-linux.c: Regenerated.
13760 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13761 * features/i386/amd64-avx-mpx.c: Regenerated.
13762 * features/i386/amd64-avx512-linux.c: Regenerated.
13763 * features/i386/amd64-linux.c: Regenerated.
13764 * features/i386/amd64-mpx-linux.c: Regenerated.
13765 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13766 * features/i386/i386-avx-mpx.c: Regenerated.
13767 * features/i386/x32-avx-linux.c: Regenerated.
13768 * features/i386/x32-avx512-linux.c: Regenerated.
13769 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13770 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13771 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13772 * regformats/i386/amd64-linux.dat: Regenerated.
13773 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13774 * regformats/i386/x32-avx-linux.dat: Regenerated.
13775 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13776 * regformats/i386/x32-linux.dat: Regenerated.
13777
13778 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13779
13780 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13781 Set to AMD64_NUM_REGS.
13782
13783 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13784
13785 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13786 that checks validity of a register number.
13787
13788 2017-01-27 Kees Cook <keescook@google.com>
13789
13790 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13791 fetch_fpregs if target has fpa registers.
13792 (arm_linux_store_inferior_registers): Call store_fpregs if target
13793 has fpa registers.
13794
13795 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13796
13797 * cris-tdep.c (cris_gdbarch_init): Remove check for
13798 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13799
13800 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13801
13802 * corelow.c (get_core_register_section): Check for regset
13803 existence before checking for REGSET_VARIABLE_SIZE.
13804
13805 2017-01-26 Yao Qi <yao.qi@linaro.org>
13806 Pedro Alves <palves@redhat.com>
13807
13808 PR gdb/20939
13809 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13810 call memory_error, save memaddr instead.
13811 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13812 negative, cal memory_error.
13813 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13814
13815 2017-01-26 Yao Qi <yao.qi@linaro.org>
13816
13817 * disasm-selftests.c (memory_error_test): New function.
13818 (_initialize_disasm_selftests): Register memory_error_test.
13819
13820 2017-01-26 Yao Qi <yao.qi@linaro.org>
13821
13822 * Makefile.in (SFILES): Add disasm-selftests.c and
13823 selftest-arch.c.
13824 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13825 * disasm-selftests.c: New file.
13826 * selftest-arch.c: New file.
13827 * selftest-arch.h: New file.
13828
13829 2017-01-26 Yao Qi <yao.qi@linaro.org>
13830
13831 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13832 to bfd_arch_mep. Don't return 0 if section is not
13833 found. Call print_insn_mep.
13834
13835 2017-01-26 Pedro Alves <palves@redhat.com>
13836 Yao Qi <yao.qi@linaro.org>
13837
13838 * arm-tdep.c: Include "disasm.h".
13839 (gdb_print_insn_arm): Update code to get gdbarch.
13840 * disasm.c (dis_asm_read_memory): Change it to
13841 gdb_disassembler::dis_asm_read_memory.
13842 (dis_asm_memory_error): Likewise.
13843 (dis_asm_print_address): Likewise.
13844 (gdb_pretty_print_insn): Change it to
13845 gdb_disassembler::pretty_print_insn.
13846 (dump_insns): Add one argument gdb_disassemlber. All
13847 callers updated.
13848 (do_mixed_source_and_assembly_deprecated): Likewise.
13849 (do_mixed_source_and_assembly): Likewise.
13850 (do_assembly_only): Likewise.
13851 (gdb_disassembler::gdb_disassembler): New.
13852 (gdb_disassembler::print_insn): New.
13853 * disasm.h (class gdb_disassembler): New.
13854 (gdb_pretty_print_insn): Remove declaration.
13855 (gdb_disassemble_info): Likewise.
13856 * guile/scm-disasm.c (class gdbscm_disassembler): New.
13857 (gdbscm_disasm_read_memory_worker): Update.
13858 (gdbscm_disasm_read_memory): Update.
13859 (gdbscm_disasm_memory_error): Remove.
13860 (gdbscm_disasm_print_address): Remove.
13861 (gdbscm_disassembler::gdbscm_disassembler): New.
13862 (gdbscm_print_insn_from_port): Update.
13863 * mips-tdep.c: Include disasm.h.
13864 (gdb_print_insn_mips): Update code to get gdbarch.
13865 * record-btrace.c (btrace_insn_history): Update.
13866 * spu-tdep.c: Include disasm.h.
13867 (struct spu_dis_asm_data): Remove.
13868 (struct spu_dis_asm_info): New.
13869 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
13870 SPU id.
13871 (gdb_print_insn_spu): Cast disassemble_info to
13872 spu_dis_asm_info.
13873
13874 2017-01-26 Yao Qi <yao.qi@linaro.org>
13875
13876 * disasm.c (do_ui_file_delete): Delete.
13877 (gdb_insn_length): Move code creating stream to ...
13878 * utils.c (null_stream): ... here. New function.
13879 * utils.h (null_stream): Declare.
13880
13881 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13882
13883 * python/py-inferior.c (find_thread_object): Return directly
13884 from the loop. Remove "found" variable.
13885
13886 2017-01-21 Joel Brobecker <brobecker@adacore.com>
13887
13888 GDB 7.12.1 released.
13889
13890 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13891
13892 * python/py-function.c (fnpy_call): Reorder declarations to have
13893 the gdbpy_enter object declared first.
13894 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
13895
13896 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13897
13898 PR python/21068
13899 * python/python-internal.h (PyMem_RawMalloc): Define for
13900 Python < 3.4.
13901 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
13902 PyMem_RawMalloc instead of PyMem_Malloc.
13903
13904 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
13905 Luis Machado <lgustavo@codesourcery.com>
13906
13907 * NEWS (New commands): Mention flash-erase.
13908 (New MI commands): Mention target-flash-erase.
13909 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
13910 command.
13911 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
13912 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
13913 * target.c (flash_erase_command): New function.
13914 (initialize_targets): Add new flash-erase command.
13915 * target.h (flash_erase_command): New declaration.
13916
13917 2017-01-20 Joel Brobecker <brobecker@adacore.com>
13918
13919 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
13920 HAVE_SYS_PROCFS_H is defined.
13921
13922 2017-01-18 Alan Hayward <alan.hayward@arm.com>
13923
13924 * remote.c (struct cached_reg): Change data into a pointer.
13925 * (stop_reply_dtr): Free data pointers before deleting vector.
13926 (process_stop_reply): Likewise.
13927 (remote_parse_stop_reply): Allocate space for data
13928
13929 2017-01-18 Alan Hayward <alan.hayward@arm.com>
13930
13931 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
13932 MAX_REGISTER_SIZE.
13933 (amd64_pseudo_register_read_value): Likewise.
13934 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
13935 (store_register_using_P): Likewise.
13936 * regcache.c (regcache_xfer_part): Likewise.
13937
13938 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
13939
13940 Split real and pseudo registers.
13941 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
13942 (sparc32_pseudo_regnum): New enum.
13943 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
13944 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
13945 (SPARC32_CP0_REGISTERS): New macro.
13946 (sparc32_pseudo_register_name): New function.
13947 (sparc32_register_name): Use sparc32_pseudo_register_name.
13948 (sparc32_pseudo_register_type): New function.
13949 (sparc32_register_type): Use sparc32_pseudo_register_type.
13950 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
13951 pseudo register numbers.
13952 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
13953 (SPARC64_CP0_REGISTERS): New macro.
13954 (sparc64_pseudo_register_name): New function.
13955 (sparc64_register_name): Use sparc64_pseudo_register_name.
13956 (sparc64_pseudo_register_type): New function.
13957 (sparc64_register_type): Use sparc64_pseudo_register_type.
13958 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
13959 pseudo register numbers.
13960 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
13961 sparc64_store_arguments): Handle pseudo register numbers.
13962
13963 2017-01-13 Yao Qi <yao.qi@linaro.org>
13964
13965 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
13966 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
13967 output.
13968 (getpkt_or_notif_sane_1): Likewise.
13969
13970 2017-01-13 Yao Qi <yao.qi@linaro.org>
13971
13972 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
13973 of CC. Pass "-x c++-header" instead of "-x c".
13974
13975 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13976
13977 * remote.c (remote_can_async_p): Update comment.
13978
13979 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13980
13981 * linux-nat.c (linux_nat_can_async_p): Update comment.
13982
13983 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13984
13985 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
13986
13987 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
13988
13989 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
13990
13991 2017-01-10 Tom Tromey <tom@tromey.com>
13992
13993 * python/py-type.c (typy_legacy_template_argument): Update.
13994 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
13995 ~demangle_parse_info): Declare new members.
13996 (cp_demangled_name_to_comp): Return unique_ptr.
13997 (cp_demangled_name_parse_free)
13998 (make_cleanup_cp_demangled_name_parse_free)
13999 (cp_new_demangle_parse_info): Remove.
14000 * cp-support.c (do_demangled_name_parse_free_cleanup)
14001 (make_cleanup_cp_demangled_name_parse_free): Remove.
14002 (inspect_type, cp_canonicalize_string_full)
14003 (cp_canonicalize_string): Update.
14004 (mangled_name_to_comp): Change return type.
14005 (cp_class_name_from_physname, method_name_from_physname)
14006 (cp_func_name, cp_remove_params): Update.
14007 * cp-name-parser.y (demangle_parse_info): New constructor, from
14008 cp_new_demangle_parse_info.
14009 (~demangle_parse_info): New destructor, from
14010 cp_demangled_name_parse_free.
14011 (cp_merge_demangle_parse_infos): Update.
14012 (cp_demangled_name_to_comp): Change return type.
14013
14014 2017-01-10 Tom Tromey <tom@tromey.com>
14015
14016 * top.c (prevent_dont_repeat): Change return type.
14017 * python/python.c (execute_gdb_command): Use std::string.
14018 Update.
14019 * guile/guile.c (gdbscm_execute_gdb_command): Update.
14020 * command.h (prevent_dont_repeat): Change return type.
14021 * breakpoint.c (bpstat_do_actions_1): Update.
14022
14023 2017-01-10 Tom Tromey <tom@tromey.com>
14024
14025 * value.h (scoped_value_mark::~scoped_value_mark): Call
14026 free_to_mark.
14027 (scoped_value_mark::free_to_mark): New method.
14028 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
14029 scoped_value_mark.
14030
14031 2017-01-10 Tom Tromey <tom@tromey.com>
14032
14033 * python/py-value.c (valpy_dereference, valpy_referenced_value)
14034 (valpy_reference_value, valpy_const_value, valpy_get_address)
14035 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
14036 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
14037 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
14038 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
14039 scoped_value_mark.
14040 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
14041 * value.h (scoped_value_mark): New class.
14042
14043 2017-01-10 Tom Tromey <tom@tromey.com>
14044
14045 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
14046 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
14047 * psymtab.c (discard_psymtabs_upto): Remove.
14048 (make_cleanup_discard_psymtabs): Remove.
14049 (struct psymtab_state): Remove.
14050
14051 2017-01-10 Tom Tromey <tom@tromey.com>
14052
14053 * record-full.c (record_full_save_cleanups): Remove.
14054 (record_full_save): Use gdb::unlinker.
14055 * gcore.c (do_bfd_delete_cleanup): Remove.
14056 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
14057 cleanups.
14058 * dwarf2read.c (unlink_if_set): Remove.
14059 (write_psymtabs_to_index): Use gdb::unlinker.
14060 * common/gdb_unlinker.h: New file.
14061
14062 2017-01-10 Tom Tromey <tom@tromey.com>
14063
14064 * windows-tdep.c (windows_xfer_shared_library): Update.
14065 * windows-nat.c (windows_make_so): Update.
14066 * utils.h (make_cleanup_bfd_unref): Remove.
14067 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
14068 * symfile.h (symfile_bfd_open)
14069 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
14070 * symfile.c (read_symbols, symbol_file_add)
14071 (separate_debug_file_exists): Update.
14072 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
14073 (generic_load, reread_symbols): Update.
14074 * symfile-mem.c (symbol_file_add_from_memory): Update.
14075 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
14076 (spu_symbol_file_add_from_memory): Update.
14077 * solist.h (struct target_so_ops) <bfd_open>: Return
14078 gdb_bfd_ref_ptr.
14079 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
14080 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
14081 gdb_bfd_ref_ptr.
14082 (solib_map_sections, reload_shared_libraries_1): Update.
14083 * solib-svr4.c (enable_break): Update.
14084 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
14085 * solib-frv.c (enable_break2): Update.
14086 * solib-dsbt.c (enable_break): Update.
14087 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
14088 gdb_bfd_ref_ptr.
14089 (darwin_solib_get_all_image_info_addr_at_init): Update.
14090 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
14091 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
14092 * record-full.c (record_full_save): Update.
14093 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
14094 * procfs.c (insert_dbx_link_bpt_in_file): Update.
14095 * minidebug.c (find_separate_debug_file_in_section): Return
14096 gdb_bfd_ref_ptr.
14097 * machoread.c (macho_add_oso_symfile): Change abfd to
14098 gdb_bfd_ref_ptr.
14099 (macho_symfile_read_all_oso): Update.
14100 (macho_check_dsym): Return gdb_bfd_ref_ptr.
14101 (macho_symfile_read): Update.
14102 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
14103 (jit_bfd_try_read_symtab): Update.
14104 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
14105 (gdb_bfd_openw, gdb_bfd_openr_iovec)
14106 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
14107 gdb_bfd_ref_ptr.
14108 (gdb_bfd_ref_policy): New struct.
14109 (gdb_bfd_ref_ptr): New typedef.
14110 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
14111 (gdb_bfd_openw, gdb_bfd_openr_iovec)
14112 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
14113 gdb_bfd_ref_ptr.
14114 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
14115 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
14116 (gcore_command): Update.
14117 * exec.c (exec_file_attach): Update.
14118 * elfread.c (elf_symfile_read): Update.
14119 * dwarf2read.c (dwarf2_get_dwz_file): Update.
14120 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
14121 (open_and_init_dwo_file): Update.
14122 (open_dwp_file): Return gdb_bfd_ref_ptr.
14123 (open_and_init_dwp_file): Update.
14124 * corelow.c (core_open): Update.
14125 * compile/compile-object-load.c (compile_object_load): Update.
14126 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
14127 * coffread.c (coff_symfile_read): Update.
14128 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
14129 gdb_bfd_ref_ptr. Rename.
14130 (dump_bfd_file, restore_command): Update.
14131 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
14132 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
14133 (find_separate_debug_file_by_buildid): Update.
14134
14135 2017-01-10 Tom Tromey <tom@tromey.com>
14136
14137 * common/gdb_ref_ptr.h: New file.
14138 * python/py-ref.h (struct gdbpy_ref_policy): New.
14139 (gdbpy_ref): Now a typedef.
14140
14141 2017-01-10 Tom Tromey <tom@tromey.com>
14142
14143 * utils.h (make_cleanup_htab_delete): Don't declare.
14144 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
14145 Remove.
14146 * linespec.c (decode_compound_collector): Add constructor,
14147 destructor.
14148 (lookup_prefix_sym): Remove cleanup.
14149 (symtab_collector): Add constructor, destructor.
14150 (collect_symtabs_from_filename): Remove cleanup.
14151 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
14152 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
14153 Use htab_up.
14154 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
14155 * dwarf2read.c (dw2_expand_symtabs_matching)
14156 (dw2_map_symbol_filenames, dwarf_decode_macros)
14157 (write_psymtabs_to_index): Use htab_up.
14158 * dwarf2loc.c (func_verify_no_selftailcall)
14159 (call_site_find_chain_1, func_verify_no_selftailcall)
14160 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
14161 std::vector, gdb::unique_xmalloc_ptr.
14162 (call_sitep): Remove typedef.
14163 (dwarf2_locexpr_baton_eval): Remove unused variable.
14164
14165 2017-01-10 Tom Tromey <tom@tromey.com>
14166
14167 * python/python-internal.h (make_cleanup_py_decref)
14168 (make_cleanup_py_xdecref): Don't declare.
14169 * python/py-utils.c (py_decref, make_cleanup_py_decref)
14170 (py_xdecref, make_cleanup_py_xdecref): Remove.
14171
14172 2017-01-10 Tom Tromey <tom@tromey.com>
14173
14174 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
14175 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
14176
14177 2017-01-10 Tom Tromey <tom@tromey.com>
14178
14179 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
14180
14181 2017-01-10 Tom Tromey <tom@tromey.com>
14182
14183 * python/py-utils.c (unicode_to_encoded_string)
14184 (python_string_to_target_string)
14185 (python_string_to_target_python_string)
14186 (python_string_to_host_string, gdbpy_obj_to_string)
14187 (get_addr_from_python): Use gdbpy_ref.
14188
14189 2017-01-10 Tom Tromey <tom@tromey.com>
14190
14191 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
14192 gdbpy_ref.
14193
14194 2017-01-10 Tom Tromey <tom@tromey.com>
14195
14196 * python/python.c (eval_python_command, gdbpy_decode_line)
14197 (gdbpy_run_events, gdbpy_start_type_printers)
14198 (gdbpy_apply_type_printers): Use gdbpy_ref.
14199
14200 2017-01-10 Tom Tromey <tom@tromey.com>
14201
14202 * python/py-param.c (get_doc_string, compute_enum_values): Use
14203 gdbpy_ref.
14204
14205 2017-01-10 Tom Tromey <tom@tromey.com>
14206
14207 * python/py-inferior.c (find_thread_object, build_inferior_list):
14208 Use gdbpy_ref.
14209
14210 2017-01-10 Tom Tromey <tom@tromey.com>
14211
14212 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14213
14214 2017-01-10 Tom Tromey <tom@tromey.com>
14215
14216 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
14217 gdbpy_ref.
14218
14219 2017-01-10 Tom Tromey <tom@tromey.com>
14220
14221 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
14222 extra incref.
14223 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
14224 Use gdbpy_ref.
14225
14226 2017-01-10 Tom Tromey <tom@tromey.com>
14227
14228 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14229 gdbpy_ref.
14230
14231 2017-01-10 Tom Tromey <tom@tromey.com>
14232
14233 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
14234 decref results of PyArg_ParseTupleAndKeywords.
14235
14236 2017-01-10 Tom Tromey <tom@tromey.com>
14237
14238 * python/python.c (python_run_simple_file): Use
14239 unique_xmalloc_ptr, gdbpy_ref.
14240
14241 2017-01-10 Tom Tromey <tom@tromey.com>
14242
14243 * python/py-prettyprint.c (print_stack_unless_memory_error)
14244 (print_string_repr, print_children): Use gdbpy_ref.
14245 (dummy_python_frame): New class.
14246 (dummy_python_frame::dummy_python_frame): Rename from
14247 push_dummy_python_frame.
14248 (py_restore_tstate): Remove.
14249
14250 2017-01-10 Tom Tromey <tom@tromey.com>
14251
14252 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14253
14254 2017-01-10 Tom Tromey <tom@tromey.com>
14255
14256 * python/python.c (ensure_python_env, restore_python_env):
14257 Remove.
14258 * python/python-internal.h (ensure_python_env): Don't declare.
14259 * varobj.h (varobj_ensure_python_env): Don't declare.
14260 * varobj.c (varobj_ensure_python_env): Remove.
14261
14262 2017-01-10 Tom Tromey <tom@tromey.com>
14263
14264 * varobj.c (varobj_value_get_print_value): Use
14265 gdbpy_enter_varobj.
14266
14267 2017-01-10 Tom Tromey <tom@tromey.com>
14268
14269 * python/py-prettyprint.c (print_string_repr, print_children):
14270 Update.
14271 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
14272 of "encoding".
14273 * varobj.c (varobj_value_get_print_value): Update.
14274 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
14275
14276 2017-01-10 Tom Tromey <tom@tromey.com>
14277
14278 * varobj.c (varobj_get_display_hint)
14279 (dynamic_varobj_has_child_method, install_new_value_visualizer)
14280 (varobj_set_visualizer, free_variable): Use
14281 gdbpy_enter_varobj.
14282
14283 2017-01-10 Tom Tromey <tom@tromey.com>
14284
14285 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
14286 (do_finish_initialization): New function. Use gdbpy_ref.
14287 (gdbpy_finish_initialization): Use gdbpy_enter. Call
14288 do_finish_initialization.
14289
14290 2017-01-10 Tom Tromey <tom@tromey.com>
14291
14292 * python/py-param.c (get_set_value, get_show_value): Use
14293 gdbpy_enter, gdbpy_ref.
14294
14295 2017-01-10 Tom Tromey <tom@tromey.com>
14296
14297 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
14298
14299 2017-01-10 Tom Tromey <tom@tromey.com>
14300
14301 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
14302
14303 2017-01-10 Tom Tromey <tom@tromey.com>
14304
14305 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
14306 Use gdbpy_enter_varobj.
14307
14308 2017-01-10 Tom Tromey <tom@tromey.com>
14309
14310 * varobj.c (gdbpy_enter_varobj): New constructor.
14311 * python/python-internal.h (gdbpy_enter_varobj): New class.
14312 * python/py-varobj.c (py_varobj_get_iterator): Use
14313 gdbpy_enter_varobj.
14314
14315 2017-01-10 Tom Tromey <tom@tromey.com>
14316
14317 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
14318 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14319 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
14320 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
14321 unique_xmalloc_ptr.
14322 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
14323
14324 2017-01-10 Tom Tromey <tom@tromey.com>
14325
14326 * python/py-xmethods.c (invoke_match_method): Use
14327 gdbpy_ref.
14328
14329 2017-01-10 Tom Tromey <tom@tromey.com>
14330
14331 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
14332 gdbpy_enter, gdbpy_ref.
14333
14334 2017-01-10 Tom Tromey <tom@tromey.com>
14335
14336 * python/python.c (python_interactive_command): Use gdbpy_enter.
14337
14338 2017-01-10 Tom Tromey <tom@tromey.com>
14339
14340 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
14341 gdbpy_ref.
14342
14343 2017-01-10 Tom Tromey <tom@tromey.com>
14344
14345 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
14346 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14347
14348 2017-01-10 Tom Tromey <tom@tromey.com>
14349
14350 * utils.h (htab_deleter): New struct.
14351 (htab_up): New typedef.
14352 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
14353 gdbpy_enter, gdbpy_ref, htab_up.
14354
14355 2017-01-10 Tom Tromey <tom@tromey.com>
14356
14357 * python/py-unwind.c (pending_frame_invalidate): Remove.
14358 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
14359
14360 2017-01-10 Tom Tromey <tom@tromey.com>
14361
14362 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
14363 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
14364
14365 2017-01-10 Tom Tromey <tom@tromey.com>
14366
14367 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
14368
14369 2017-01-10 Tom Tromey <tom@tromey.com>
14370
14371 * python/python.c (gdbpy_eval_from_control_command)
14372 (gdbpy_source_script, gdbpy_run_events)
14373 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
14374 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
14375 gdbpy_enter.
14376
14377 2017-01-10 Tom Tromey <tom@tromey.com>
14378
14379 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
14380
14381 2017-01-10 Tom Tromey <tom@tromey.com>
14382
14383 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
14384
14385 2017-01-10 Tom Tromey <tom@tromey.com>
14386
14387 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
14388 (python_on_inferior_call_pre, python_on_inferior_call_post)
14389 (python_on_memory_change, python_on_register_change)
14390 (python_inferior_exit, python_new_objfile, add_thread_object)
14391 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
14392
14393 2017-01-10 Tom Tromey <tom@tromey.com>
14394
14395 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
14396 (bpfinishpy_handle_exit): Use gdbpy_enter.
14397
14398 2017-01-10 Tom Tromey <tom@tromey.com>
14399
14400 * python/py-cmd.c (cmdpy_destroyer)
14401 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
14402 gdbpy_enter.
14403
14404 2017-01-10 Tom Tromey <tom@tromey.com>
14405
14406 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14407 gdbpy_enter.
14408 (gdbpy_breakpoint_has_cond): Likewise.
14409
14410 2017-01-10 Tom Tromey <tom@tromey.com>
14411
14412 * python/python.c (gdbpy_enter): New constructor.
14413 (~gdbpy_enter): New destructor.
14414 (restore_python_env, ensure_python_env): Rewrite.
14415 * python/python-internal.h (gdbpy_enter): New class.
14416
14417 2017-01-10 Tom Tromey <tom@tromey.com>
14418
14419 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
14420
14421 2017-01-10 Tom Tromey <tom@tromey.com>
14422
14423 * python/py-value.c (value_has_field, get_field_flag)
14424 (get_field_type, valpy_getitem, convert_value_from_python): Use
14425 gdbpy_ref.
14426
14427 2017-01-10 Tom Tromey <tom@tromey.com>
14428
14429 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
14430 gdbpy_ref.
14431
14432 2017-01-10 Tom Tromey <tom@tromey.com>
14433
14434 * python/py-prettyprint.c (search_pp_list)
14435 (find_pretty_printer_from_objfiles)
14436 (find_pretty_printer_from_progspace)
14437 (find_pretty_printer_from_gdb, find_pretty_printer)
14438 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
14439 gdbpy_ref.
14440
14441 2017-01-10 Tom Tromey <tom@tromey.com>
14442
14443 * python/py-param.c (call_doc_function): Use gdbpy_ref.
14444
14445 2017-01-10 Tom Tromey <tom@tromey.com>
14446
14447 * python/py-linetable.c (build_line_table_tuple_from_pcs)
14448 (ltpy_get_all_source_lines): Use gdbpy_ref.
14449
14450 2017-01-10 Tom Tromey <tom@tromey.com>
14451
14452 * python/py-framefilter.c (extract_sym, extract_value)
14453 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
14454 gdbpy_ref.
14455
14456 2017-01-10 Tom Tromey <tom@tromey.com>
14457
14458 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
14459
14460 2017-01-10 Tom Tromey <tom@tromey.com>
14461
14462 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
14463
14464 2017-01-10 Tom Tromey <tom@tromey.com>
14465
14466 * python/py-function.c (convert_values_to_python, fnpy_init): Use
14467 gdbpy_ref.
14468
14469 2017-01-10 Tom Tromey <tom@tromey.com>
14470
14471 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
14472
14473 2017-01-10 Tom Tromey <tom@tromey.com>
14474
14475 * python/py-type.c (convert_field, make_fielditem, typy_fields)
14476 (typy_range): Use gdbpy_ref.
14477
14478 2017-01-10 Tom Tromey <tom@tromey.com>
14479
14480 * python/py-threadevent.c (create_thread_event_object): Use
14481 gdbpy_ref.
14482 * python/py-stopevent.c (create_stop_event_object): Simplify.
14483 (emit_stop_event): Use gdbpy_ref.
14484 * python/py-signalevent.c (create_signal_event_object): Use
14485 gdbpy_ref.
14486 * python/py-newobjfileevent.c (create_new_objfile_event_object)
14487 (emit_new_objfile_event, create_clear_objfiles_event_object)
14488 (emit_clear_objfiles_event): Use gdbpy_ref.
14489 * python/py-infevents.c (create_inferior_call_event_object)
14490 (create_register_changed_event_object)
14491 (create_memory_changed_event_object, emit_inferior_call_event)
14492 (emit_memory_changed_event, emit_register_changed_event): Use
14493 gdbpy_ref.
14494 * python/py-exitedevent.c (create_exited_event_object)
14495 (emit_exited_event): Use gdbpy_ref.
14496 * python/py-event.h (evpy_emit_event): Remove
14497 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
14498 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
14499 * python/py-continueevent.c (emit_continue_event): Use
14500 gdbpy_ref.
14501 * python/py-breakpoint.c (gdbpy_breakpoint_created)
14502 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
14503 gdbpy_ref.
14504 * python/py-bpevent.c (create_breakpoint_event_object): Use
14505 gdbpy_ref.
14506
14507 2017-01-10 Tom Tromey <tom@tromey.com>
14508
14509 * python/py-ref.h: New file.
14510
14511 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14512
14513 * cli-out.c (cli_ui_out::do_redirect): Change return type to
14514 void.
14515 * cli-out.h (cli_ui_out::do_redirect): Likewise.
14516 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
14517 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
14518 * ui-out.c (ui_out::redirect): Likewise.
14519 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
14520 * cli/cli-logging.c (set_logging_redirect): Update call site of
14521 ui_out::redirect.
14522 (handle_redirections): Likewise.
14523 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
14524 * top.c (execute_command_to_string): Likewise.
14525 * utils.c (do_ui_out_redirect_pop): Likewise.
14526
14527 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14528
14529 * stack.c (_initialize_stack): Update "frame" command help message.
14530
14531 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
14532
14533 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14534
14535 2017-01-06 Yao Qi <yao.qi@linaro.org>
14536
14537 * x86-linux-nat.h: Include gdb_proc_service.h.
14538
14539 2017-01-06 Yao Qi <yao.qi@linaro.org>
14540
14541 * ser-base.h: Include serial.h.
14542
14543 2017-01-06 Yao Qi <yao.qi@linaro.org>
14544
14545 * ppc-linux-tdep.h: Include ppc-tdep.h.
14546
14547 2017-01-06 Yao Qi <yao.qi@linaro.org>
14548
14549 * nat/amd64-linux-siginfo.h: Include signal.h.
14550
14551 2017-01-06 Yao Qi <yao.qi@linaro.org>
14552
14553 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14554
14555 2017-01-06 Yao Qi <yao.qi@linaro.org>
14556
14557 * mi/mi-parse.h: Include mi-cmds.h.
14558
14559 2017-01-06 Yao Qi <yao.qi@linaro.org>
14560
14561 * inf-loop.c: Don't include "target.h".
14562 * inf-loop.h: Include it here.
14563
14564 2017-01-06 Yao Qi <yao.qi@linaro.org>
14565
14566 * dfp.h: Include "dboulest.h" and "expression.h".
14567
14568 2017-01-06 Yao Qi <yao.qi@linaro.org>
14569
14570 * ax-gdb.h: Include "ax.h".
14571
14572 2017-01-06 Yao Qi <yao.qi@linaro.org>
14573
14574 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14575 with nat/gdb_ptrace.h.
14576
14577 2017-01-05 Yao Qi <yao.qi@linaro.org>
14578
14579 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14580 new line.
14581 (mips64_fbsd_sigframe_init): Likewise.
14582
14583 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14584
14585 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14586 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14587
14588 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14589
14590 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14591 * NEWS: Mention new FreeBSD/mips native configuration.
14592 * config/mips/fbsd.mh: New file.
14593 * configure.host: Add mips*-*-freebsd*.
14594 * mips-fbsd-nat.c: New file.
14595
14596 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14597
14598 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14599 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14600 * NEWS: Mention new FreeBSD/mips target.
14601 * configure.tgt: Add mips*-*-freebsd*.
14602 * mips-fbsd-tdep.c: New file.
14603 * mips-fbsd-tdep.h: New file.
14604
14605 2017-01-04 Yao Qi <yao.qi@linaro.org>
14606
14607 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14608 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14609
14610 2017-01-01 Joel Brobecker <brobecker@adacore.com>
14611
14612 Update copyright year range in all GDB files.
14613
14614 2017-01-01 Joel Brobecker <brobecker@adacore.com>
14615
14616 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
14617
14618 For older changes see ChangeLog-2016.
14619 \f
14620 Local Variables:
14621 mode: change-log
14622 left-margin: 8
14623 fill-column: 74
14624 version-control: never
14625 coding: utf-8
14626 End:
This page took 0.327528 seconds and 4 git commands to generate.