Remove unused declarations
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
245ad7d3
TT
12017-10-03 Tom Tromey <tom@tromey.com>
2
3 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
4 declaration.
5 * printcmd.c (x_command): Remove unused declaration.
6 * symfile.c (symbol_file_command): Remove unused declaration.
7
e05550d7
TT
82017-10-03 Tom Tromey <tom@tromey.com>
9
10 * utils.c (internal_vproblem): Use std::string.
11 (defaulted_query): Likewise.
12
b95de2b7
TT
132017-10-03 Tom Tromey <tom@tromey.com>
14
15 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
16 * top.c (execute_command_to_string): Update.
17 * utils.c (make_cleanup_restore_page_info): Remove.
18 (do_restore_page_info_cleanup): Remove.
19 (set_batch_flag_and_restore_page_info):
20 New.
21 (make_cleanup_restore_page_info): Remove.
22 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
23 (~set_batch_flag_and_restore_page_info): New
24 (make_cleanup_restore_uinteger): Remove.
25 (make_cleanup_restore_integer): Remove.
26 (struct restore_integer_closure): Remove.
27 (restore_integer): Remove.
28 * utils.h (struct set_batch_flag_and_restore_page_info): New
29 class.
30 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
31 (make_cleanup_restore_page_info): Remove.
32 (make_cleanup_restore_uinteger) Remove.
33 (make_cleanup_restore_integer) Remove.
34
07036511
TT
352017-10-03 Tom Tromey <tom@tromey.com>
36
37 * record-full.h (record_full_gdb_operation_disable_set): Return
38 scoped_restore_tmpl<int>.
39 * infrun.c (adjust_pc_after_break): Update.
40 (handle_signal_stop): Update.
41 * record-full.c (record_full_gdb_operation_disable_set): Return
42 scoped_restore_tmpl<int>.
43 (record_full_wait_1, record_full_insert_breakpoint)
44 (record_full_remove_breakpoint, record_full_save)
45 (record_full_goto_insn): Update.
46
45320ffa
TT
472017-10-02 Tom Tromey <tom@tromey.com>
48
49 PR rust/22236:
50 * rust-lang.c (rust_val_print_str): New function.
51 (val_print_struct): Call it.
52 (rust_subscript): Preserve name of slice type.
53
b3e3859b
TT
542017-10-02 Tom Tromey <tom@tromey.com>
55
56 * rust-lang.c (rust_subscript): Handle slices in
57 EVAL_AVOID_SIDE_EFFECTS case.
58
01af5e0d
TT
592017-10-02 Tom Tromey <tom@tromey.com>
60
61 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
62
888e3ddb
TT
632017-10-02 Tom Tromey <tom@tromey.com>
64
65 * rust-lang.h (rust_slice_type): Add "extern".
66
cc536b21
PA
672017-10-02 Tom Tromey <tom@tromey.com>
68 Pedro Alves <palves@redhat.com>
69
70 * ada-lang.h (ada_exc_info::operator<): Make const.
71 (ada_exc_info::operator==): Make const.
72 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
73 Make const.
74
386c8614
TT
752017-09-29 Tom Tromey <tom@tromey.com>
76
77 * target.c (read_whatever_is_readable): Change type of "result".
78 Update.
79 (free_memory_read_result_vector): Remove.
80 (read_memory_robust): Change return type. Update.
81 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
82 bin2hex, std::string.
83 * target.h (memory_read_result_s): Remove typedef.
84 (free_memory_read_result_vector): Remove.
85 (read_memory_robust): Return std::vector.
86
789c4b5e
TT
872017-09-29 Tom Tromey <tom@tromey.com>
88
89 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
90
ab816a27
TT
912017-09-29 Tom Tromey <tom@tromey.com>
92
93 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
94 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
95 operator< and operator==.
96 (ada_exceptions_list): Return a std::vector.
97 * ada-lang.c (ada_exc_info::operator<): Rename from
98 compare_ada_exception_info.
99 (ada_exc_info::operator==): New.
100 (sort_remove_dups_ada_exceptions_list): Change type of
101 "exceptions".
102 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
103 (ada_add_global_exceptions): Likewise.
104 (ada_exceptions_list_1): Return a std::vector.
105 (ada_exceptions_list): Likewise.
106
52f9abe4
TT
1072017-09-29 Tom Tromey <tom@tromey.com>
108
109 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
110 'std::set *'.
111 (print_one_inferior): Update.
112 (free_vector_of_ints): Remove.
113 (list_available_thread_groups): Change "ids" to std::set.
114 (mi_cmd_list_thread_groups): Update.
115 (struct collect_cores_data) <core>: Now a std::set.
116 (collect_cores): Update.
117 (unique): Remove.
118 (print_one_inferior): Update.
119
dcd5ddcc
TT
1202017-09-29 Tom Tromey <tom@tromey.com>
121
122 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
123 (mi_execute_async_cli_command): Likewise.
124 (mi_cmd_trace_frame_collected): Use field_fmt.
125
45d288cc
TT
1262017-09-29 Tom Tromey <tom@tromey.com>
127
128 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
129 gdb::byte_vector.
130
6afe2f4a
TT
1312017-09-29 Tom Tromey <tom@tromey.com>
132
133 * mi/mi-parse.c (mi_parse): Remove unused declaration.
134
9813429a
TT
1352017-09-29 Tom Tromey <tom@tromey.com>
136
137 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
138
2d6960b4
TT
1392017-09-29 Tom Tromey <tom@tromey.com>
140
141 * varobj.h (varobj_gen_name): Return std::string.
142 * varobj.c (varobj_gen_name): Return std::string.
143 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
144 (mi_cmd_var_delete): Don't copy "name".
145
784c453a
TT
1462017-09-29 Tom Tromey <tom@tromey.com>
147
148 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
149 (mi_cmd_break_insert_1): Update.
150
a9bc57b9
TT
1512017-09-29 Tom Tromey <tom@tromey.com>
152
153 * target.h (make_scoped_defer_target_commit_resume): Update.
154 * target.c (make_scoped_defer_target_commit_resume): Rename from
155 make_cleanup_defer_target_commit_resume. Return a
156 scoped_restore.
157 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
158
9754d8c4
TT
1592017-09-29 Tom Tromey <tom@tromey.com>
160
161 * main.c (captured_main_1): Remove unused declaration.
162 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
163
99ef965c
TT
1642017-09-29 Tom Tromey <tom@tromey.com>
165
166 * symtab.c (search_symbols): Remove unused outer cleanup.
167 (make_source_files_completion_list): Remove unused declaration.
168
42518ba7
TT
1692017-09-29 Tom Tromey <tom@tromey.com>
170
171 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
172
726b2169
TT
1732017-09-29 Tom Tromey <tom@tromey.com>
174
175 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
176 gdb::byte_vector.
177
55b06432
TT
1782017-09-29 Tom Tromey <tom@tromey.com>
179
180 * complaints.c (vcomplaint): Use std::string.
181
8abcee91
TT
1822017-09-29 Tom Tromey <tom@tromey.com>
183
184 * tracepoint.c (trace_variable_command): Use std::string.
185 (encode_actions_1): Remove unused declarations.
186 (create_tsv_from_upload): Use std::string.
187
6ad94bc7
TT
1882017-09-29 Tom Tromey <tom@tromey.com>
189
190 * cp-support.c (gdb_demangle): Use std::string.
191
2003f3d8
TT
1922017-09-29 Tom Tromey <tom@tromey.com>
193
194 * stack.c (parse_frame_specification): Use std::string
195 (info_frame_command): Use gdb::unique_xmalloc_ptr.
196
8f8accb5
TT
1972017-09-29 Tom Tromey <tom@tromey.com>
198
199 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
200
200aa7b1
TT
2012017-09-29 Tom Tromey <tom@tromey.com>
202
203 * utils.c (vfprintf_maybe_filtered): Use std::string.
204 (vfprintf_unfiltered): Likewise.
205
606aae8a
TT
2062017-09-29 Tom Tromey <tom@tromey.com>
207
208 * event-top.c (top_level_prompt): Return std::string.
209 (display_gdb_prompt): Update.
210
bd413795
TT
2112017-09-29 Tom Tromey <tom@tromey.com>
212
213 * unittests/common-utils-selftests.c (format): New function.
214 (string_vprintf_tests): New function.
215 (_initialize_common_utils_selftests): Register new tests.
216 * common/common-utils.c (string_vprintf): New function.
217 * common/common-utils.h (string_vprintf): Declare.
218
256642e8
PA
2192017-09-29 Pedro Alves <palves@redhat.com>
220
221 * common/rsp-low.c (unpack_varlen_hex): Constify.
222 * common/rsp-low.h (unpack_varlen_hex): Constify.
223 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
224 Constify.
225 * remote.c (remote_set_permissions, read_ptid)
226 (remote_current_thread, remote_get_threads_with_qthreadinfo)
227 (remote_static_tracepoint_marker_at)
228 (remote_static_tracepoint_markers_by_strid)
229 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
230 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
231 (parse_tracepoint_definition, parse_tsv_definition)
232 (parse_static_tracepoint_marker_definition): Constify.
233 * tracepoint.h (parse_static_tracepoint_marker_definition)
234 (parse_trace_status, parse_tracepoint_status)
235 (parse_tracepoint_definition, parse_tsv_definition): Constify.
236
b6bb3468
PA
2372017-09-29 Pedro Alves <palves@redhat.com>
238
239 * remote.c (target_buf, target_buf_size): Delete.
240 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
241 Use the connection's packet buffer instead.
242 All callers adjusted.
243 (_initialize_remote): Remove references to target_buf and
244 target_buf_size.
245
b2f8eb7a
PA
2462017-09-28 Pedro Alves <palves@redhat.com>
247
248 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
249 unittests/common-utils-selftests.c.
250 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
251 (COMMON_OBS): Remove utils-selftests.o.
252 * utils-selftests.c: Move to ...
253 * unittests/common-utils-selftests.c: ... here and rename self
254 test to "string_printf".
255
08302ed2
DE
2562017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
257
258 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
259 having NULL cus or tus.
260
96a5a1d3
UW
2612017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
262
263 * arm-tdep.c: (convert_from_extended): Remove.
264 (convert_to_extended): Likewise.
265 (arm_extract_return_value): Use convert_typed_floating.
266 (arm_store_return_value): Likewise.
267
268 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
269 * sh-tdep.c: Do not include "floatformat.h".
270 (sh_littlebyte_bigword_type): New function.
271 (sh_register_convert_to_virtual): Use convert_typed_floating.
272 (sh_register_convert_to_raw): Likewise.
273 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
274 (sh64_littlebyte_bigword_type): New function.
275 (sh64_extract_return_value): Use convert_typed_floating.
276 (sh64_register_convert_to_virtual): Likewise.
277 (sh64_register_convert_to_raw): Likewise.
278
0db7851f
UW
2792017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
280
281 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
282 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
283
284 * gdbtypes.h (union type_specific): Make field floatformat hold
285 just a single struct floatformat, not an array.
286 (floatformat_from_type): Move here.
287 * gdbtypes.c (floatformat_from_type): Move here. Update to
288 changed TYPE_FLOATFORMAT definition.
289 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
290 (recursive_dump_type): Likewise.
291 (init_float_type): Install correct floatformat for byte order.
292 (arch_float_type): Likewise.
293
77b7c781
UW
2942017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
295
296 * gdbtypes.c (init_type): Change incoming argument from
297 length-in-bytes to length-in-bits. Assert length is a
298 multiple of TARGET_CHAR_BITS.
299 (arch_type, arch_flags_type): Likewise.
300 (init_integer_type): Update call to init_type.
301 (init_character_type): Likewise.
302 (init_boolean_type): Likewise.
303 (init_float_type): Likewise.
304 (init_decfloat_type): Likewise.
305 (init_complex_type): Likewise.
306 (init_pointer_type): Likewise.
307 (objfile_type): Likewise.
308 (arch_integer_type): Update call to arch_type.
309 (arch_character_type): Likewise.
310 (arch_boolean_type): Likewise.
311 (arch_float_type): Likewise.
312 (arch_decfloat_type): Likewise.
313 (arch_complex_type): Likewise.
314 (arch_pointer_type): Likewise.
315 (gdbtypes_post_init): Likewise.
316
317 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
318 (read_base_type): Likewise.
319 * mdebugread.c (basic_type): Likewise.
320 * stabsread.c (dbx_init_float_type): Likewise.
321 (rs6000_builtin_type): Likewise.
322 (read_range_type): Likewise. Also, fix call to init_integer_type
323 with erroneous length argument.
324
325 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
326 * d-lang.c (build_d_types): Likewise.
327 * f-lang.c (build_fortran_types): Likewise.
328 * go-lang.c (build_go_types): Likewise.
329 * opencl-lang.c (build_opencl_types): Likewise.
330 * jit.c (finalize_symtab): Likewise.
331 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
332 (build_std_type_info_type): Likewise.
333 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
334 update call to arch_flags_type.
335
336 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
337 arch_type.
338 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
339 * windows-tdep.c (windows_get_tlb_type): Likewise.
340
341 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
342 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
343 * m32c-tdep.c (make_types): Likewise.
344 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
345 (rl78_psw_type): Update call to arch_flags_type.
346 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
347 * rx-tdep.c (rx_psw_type): Likewise.
348 (rx_fpsw_type): Likewise.
349 * sparc-tdep.c (sparc_psr_type): Likewise.
350 (sparc_fsr_type): Likewise.
351 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
352 (sparc64_ccr_type): Likewise.
353 (sparc64_fsr_type): Likewise.
354 (sparc64_fprs_type): Likewise.
355
f21b4d5c
TT
3562017-09-27 Tom Tromey <tom@tromey.com>
357
358 * findcmd.c (find_command): Constify.
359
643c2ffa
TT
3602017-09-27 Tom Tromey <tom@tromey.com>
361
362 * ada-tasks.c (task_command_1, task_command): Constify.
363
510e5e56
TT
3642017-09-27 Tom Tromey <tom@tromey.com>
365
366 * symtab.c (maintenance_print_symbol_cache)
367 (maintenance_flush_symbol_cache)
368 (maintenance_print_symbol_cache_statistics): Constify.
369
e503b191
TT
3702017-09-27 Tom Tromey <tom@tromey.com>
371
372 * inferior.c (detach_inferior_command, kill_inferior_command)
373 (inferior_command): Constify.
374
4e001312
TT
3752017-09-27 Tom Tromey <tom@tromey.com>
376
377 * regcache.c (regcache_print, maintenance_print_registers)
378 (maintenance_print_raw_registers)
379 (maintenance_print_cooked_registers)
380 (maintenance_print_register_groups)
381 (maintenance_print_remote_registers): Constify.
382
77763700
TT
3832017-09-27 Tom Tromey <tom@tromey.com>
384
385 * printcmd.c (map_display_numbers, undisplay_command)
386 (enable_disable_display_command, enable_display_command)
387 (disable_display_command): Constify.
388
4495129a
TT
3892017-09-27 Tom Tromey <tom@tromey.com>
390
391 * breakpoint.h (delete_command): Don't declare.
392 * breakpoint.c (delete_command, enable_once_command)
393 (enable_count_command, enable_delete_command, breakpoint_1)
394 (maintenance_info_breakpoints, stopin_command, stopat_command)
395 (delete_command, delete_trace_command, save_breakpoints)
396 (save_breakpoints_command, save_tracepoints_command): Constify.
397
3088cf40
TT
3982017-09-27 Tom Tromey <tom@tromey.com>
399
400 * macrocmd.c (macro_expand_command, macro_expand_once_command)
401 (skip_ws, extract_identifier, macro_define_command)
402 (macro_undef_command, macro_list_command): Constify.
403
69f476a3
TT
4042017-09-27 Tom Tromey <tom@tromey.com>
405
406 * infcmd.c (environment_info, set_environment_command)
407 (unset_environment_command, path_info, info_proc_cmd_1)
408 (info_proc_cmd_mappings, info_proc_cmd_stat)
409 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
410 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
411
c4a3e68e
TT
4122017-09-27 Tom Tromey <tom@tromey.com>
413
414 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
415 Constify.
416
c9d31bd6
TT
4172017-09-27 Tom Tromey <tom@tromey.com>
418
419 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
420
1f3f85eb
TT
4212017-09-27 Tom Tromey <tom@tromey.com>
422
423 * demangle.c (demangle_command): Constify.
424
9c504b5d
TT
4252017-09-27 Tom Tromey <tom@tromey.com>
426
427 * progspace.c (maintenance_info_program_spaces_command):
428 Constify.
429
6663cf91
TT
4302017-09-27 Tom Tromey <tom@tromey.com>
431
432 * compile/compile.c (check_raw_argument, compile_file_command)
433 (compile_code_command, compile_print_command): Constify.
434
34e5fa26
TT
4352017-09-27 Tom Tromey <tom@tromey.com>
436
437 * reggroups.c (maintenance_print_reggroups): Constify.
438
8384c356
TT
4392017-09-27 Tom Tromey <tom@tromey.com>
440
441 * dwarf2read.c (save_gdb_index_command): Constify.
442
884beb0c
TT
4432017-09-27 Tom Tromey <tom@tromey.com>
444
445 * stap-probe.c (info_probes_stap_command): Constify.
446
e0b2930c
TT
4472017-09-27 Tom Tromey <tom@tromey.com>
448
449 * fork-child.c (unset_exec_wrapper_command): Constify.
450
f938677d
TT
4512017-09-27 Tom Tromey <tom@tromey.com>
452
453 * btrace.c (get_uint, get_context_size, no_chunk)
454 (maint_btrace_packet_history_cmd)
455 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
456 (maint_info_btrace_cmd): Constify.
457
8949cb87
TT
4582017-09-27 Tom Tromey <tom@tromey.com>
459
460 * reverse.c (delete_bookmark_command): Constify.
461
ac88e2de
TT
4622017-09-27 Tom Tromey <tom@tromey.com>
463
464 * remote.c (set_memory_packet_size)
465 (set_memory_write_packet_size, show_memory_write_packet_size)
466 (set_memory_read_packet_size, show_memory_read_packet_size)
467 (compare_sections_command, packet_command, remote_put_command)
468 (remote_get_command, remote_delete_command): Constify.
469
bd4c9dfe
TT
4702017-09-27 Tom Tromey <tom@tromey.com>
471
472 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
473 (set_mipsfpu_double_command, set_mipsfpu_none_command)
474 (set_mipsfpu_auto_command): Constify.
475
5e93d4c6
TT
4762017-09-27 Tom Tromey <tom@tromey.com>
477
478 * cli/cli-cmds.h (cd_command): Constify.
479 * cli/cli-cmds.c (cd_command): Constify.
480
fc41a75b
TT
4812017-09-27 Tom Tromey <tom@tromey.com>
482
483 * thread.c (thread_name_command, thread_find_command): Constify.
484
67810076
TT
4852017-09-27 Tom Tromey <tom@tromey.com>
486
487 * probe.c (enable_probes_command, disable_probes_command):
488 Constify.
489
1d8b34a7
TT
4902017-09-27 Tom Tromey <tom@tromey.com>
491
492 * symfile.c (symbol_file_command): Constify.
493 * gdbcore.h (deprecated_file_changed_hook): Constify.
494 * exec.c (deprecated_file_changed_hook, exec_file_command)
495 (file_command): Constify.
496 * defs.h (symbol_file_command): Constify.
497
442019e1
TT
4982017-09-27 Tom Tromey <tom@tromey.com>
499
500 * remote-fileio.c (set_system_call_allowed)
501 (show_system_call_allowed): Constify.
502
2983f7cb
TT
5032017-09-27 Tom Tromey <tom@tromey.com>
504
505 * tracepoint.c (delete_trace_variable_command)
506 (tfind_end_command, tfind_start_command, tfind_pc_command)
507 (tfind_tracepoint_command, tfind_line_command)
508 (tfind_range_command, tfind_outside_command): Constify.
509
4fd41b24
TT
5102017-09-27 Tom Tromey <tom@tromey.com>
511
512 * ax-gdb.c (maint_agent_printf_command, agent_command)
513 (agent_eval_command): Constify.
514
f2fc3015
TT
5152017-09-27 Tom Tromey <tom@tromey.com>
516
517 * tracepoint.c (info_scope_command): Constify.
518 * python/python.c (gdbpy_decode_line): Constify.
519 * python/py-breakpoint.c (bppy_init): Constify.
520 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
521 * location.h: (new_linespec_location)
522 (string_to_event_location_basic, string_to_event_location):
523 Constify.
524 * location.c (new_linespec_location)
525 (string_to_event_location_basic, string_to_event_location):
526 Constify.
527 * linespec.h (decode_line_with_current_source)
528 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
529 * linespec.c (linespec_lex_to_end)
530 (decode_line_with_current_source)
531 (decode_line_with_last_displayed): Constify.
532 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
533 Constify.
534 * cli/cli-cmds.c (edit_command, list_command): Constify.
535 * breakpoint.h (until_break_command, watch_command_wrapper)
536 (awatch_command_wrapper, rwatch_command_wrapper)
537 (init_ada_exception_breakpoint): Constify.
538 * breakpoint.c (break_command_1, dprintf_command)
539 (break_range_command, watch_command_wrapper)
540 (rwatch_command_wrapper, awatch_command_wrapper)
541 (until_break_command, init_ada_exception_breakpoint)
542 (strace_marker_create_sals_from_location, trace_command)
543 (ftrace_command, strace_command, struct tracepoint): Constify.
544 * ax-gdb.c (agent_command_1): Constify.
545 * ada-lang.c (ada_exception_sal): Constify.
546
8c2f95f4
TT
5472017-09-27 Tom Tromey <tom@tromey.com>
548
549 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
550 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
551 (get_context_size, no_chunk, get_insn_history_modifiers)
552 (cmd_record_insn_history, get_call_history_modifiers)
553 (cmd_record_call_history): Constify.
554
a0d65762
TT
5552017-09-27 Tom Tromey <tom@tromey.com>
556
557 * source.c (show_substitute_path_command)
558 (unset_substitute_path_command, set_substitute_path_command):
559 Constify.
560
58971144
TT
5612017-09-27 Tom Tromey <tom@tromey.com>
562
563 * typeprint.c (maintenance_print_type): Constify.
564 * maint.c (maintenance_dump_me, maintenance_demangle)
565 (maintenance_time_display, maintenance_info_sections)
566 (maintenance_print_statistics, maintenance_deprecate)
567 (maintenance_undeprecate): Constify.
568 (maintenance_do_deprecate): Constify. Use std::string.
569 (maintenance_selftest): Constify.
570 * gdbtypes.h (maintenance_print_type): Constify.
571
c482f52c
TT
5722017-09-27 Tom Tromey <tom@tromey.com>
573
574 * hppa-tdep.c (unwind_command): Constify.
575
e100df1a
TT
5762017-09-27 Tom Tromey <tom@tromey.com>
577
578 * target-descriptions.c (unset_tdesc_filename_cmd)
579 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
580 Constify.
581
31d56ade
TT
5822017-09-27 Tom Tromey <tom@tromey.com>
583
584 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
585
b961da0b
TT
5862017-09-27 Tom Tromey <tom@tromey.com>
587
588 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
589
e2d8ae16
TT
5902017-09-27 Tom Tromey <tom@tromey.com>
591
592 * tui/tui-regs.c (tui_reg_command): Constify.
593
863779b0
TT
5942017-09-27 Tom Tromey <tom@tromey.com>
595
596 * skip.c (skip_file_command, skip_function_command)
597 (skip_enable_command, skip_disable_command, skip_delete_command):
598 Constify.
599
cdb34d4a
TT
6002017-09-27 Tom Tromey <tom@tromey.com>
601
602 * record-btrace.c (cmd_record_btrace_bts_start)
603 (cmd_record_btrace_pt_start): Constify.
604
e99c83e7
TT
6052017-09-27 Tom Tromey <tom@tromey.com>
606
607 * symmisc.c (maintenance_print_symbols)
608 (maintenance_print_msymbols, maintenance_print_objfiles)
609 (maintenance_info_symtabs, maintenance_check_symtabs)
610 (maintenance_expand_symtabs, maintenance_info_line_tables):
611 Constify.
612
32faf971
TT
6132017-09-27 Tom Tromey <tom@tromey.com>
614
615 * top.c (new_ui_command): Constify.
616
2cf311eb
TT
6172017-09-27 Tom Tromey <tom@tromey.com>
618
619 * symfile.c (add_symbol_file_command)
620 (remove_symbol_file_command, list_overlays_command)
621 (map_overlay_command, unmap_overlay_command)
622 (overlay_auto_command, overlay_manual_command)
623 (overlay_off_command, overlay_load_command): Constify.
624
e6738699
TT
6252017-09-27 Tom Tromey <tom@tromey.com>
626
627 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
628 (info_spu_mailbox_command, info_spu_dma_command)
629 (info_spu_proxydma_command): Constify.
630
aa360cd5
TT
6312017-09-27 Tom Tromey <tom@tromey.com>
632
633 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
634
898241a5
TT
6352017-09-27 Tom Tromey <tom@tromey.com>
636
637 * cli/cli-script.c (user_defined_command): Constify.
638
2d0ac106
TT
6392017-09-27 Tom Tromey <tom@tromey.com>
640
641 * cli/cli-dump.c (dump_memory_command, dump_value_command)
642 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
643 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
644 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
645 (dump_binary_value, append_binary_memory, append_binary_value):
646 Constify.
647 (struct dump_context) <func>: Constify.
648 (add_dump_command): Update.
649
dede02ce
TT
6502017-09-27 Tom Tromey <tom@tromey.com>
651
652 * cli/cli-cmds.c (show_version, show_configuration)
653 (source_command, show_user): Constify.
654
d3cb6b99
TT
6552017-09-27 Tom Tromey <tom@tromey.com>
656
657 * target.c (maintenance_print_target_stack): Constify.
658
1970a12f
TT
6592017-09-27 Tom Tromey <tom@tromey.com>
660
661 * interps.c (interpreter_exec_cmd): Constify.
662
41243651
TT
6632017-09-27 Tom Tromey <tom@tromey.com>
664
665 * record-full.c (cmd_record_full_restore): Constify.
666
4465d9db
TT
6672017-09-27 Tom Tromey <tom@tromey.com>
668
669 * memattr.c (enable_mem_command, disable_mem_command)
670 (delete_mem_command): Constify.
671
ad25e423
TT
6722017-09-27 Tom Tromey <tom@tromey.com>
673
674 * value.c (show_convenience): Constify.
675
d64097b1
TT
6762017-09-27 Tom Tromey <tom@tromey.com>
677
678 * gdbcore.h (core_file_command): Update.
679 * corefile.c (core_file_command): Constify.
680
4d4589ef
TT
6812017-09-27 Tom Tromey <tom@tromey.com>
682
683 * user-regs.c (maintenance_print_user_registers): Constify.
684
32a7bf17
TT
6852017-09-27 Tom Tromey <tom@tromey.com>
686
687 * cp-namespace.c (maintenance_cplus_namespace): Constify.
688
4a475551
TT
6892017-09-27 Tom Tromey <tom@tromey.com>
690
691 * cp-support.c (first_component_command): Constify.
692
990b9f9f
TT
6932017-09-27 Tom Tromey <tom@tromey.com>
694
695 * psymtab.c (maintenance_print_psymbols)
696 (maintenance_info_psymtabs, maintenance_check_psymtabs):
697 Constify.
698
c281872e
TT
6992017-09-27 Tom Tromey <tom@tromey.com>
700
701 * windows-tdep.c (display_tib): Constify.
702
5b64bf74
TT
7032017-09-27 Tom Tromey <tom@tromey.com>
704
705 * linux-fork.c (delete_checkpoint_command)
706 (detach_checkpoint_command): Constify.
707
4ada038f
TT
7082017-09-27 Tom Tromey <tom@tromey.com>
709
710 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
711
57f5a81b
TT
7122017-09-27 Tom Tromey <tom@tromey.com>
713
714 * arc-tdep.c (dump_arc_instruction_command): Constify.
715
b0a8e6c4
TT
7162017-09-27 Tom Tromey <tom@tromey.com>
717
718 * valprint.c (set_radix, show_radix): Constify.
719
8d97dc1c
TT
7202017-09-27 Tom Tromey <tom@tromey.com>
721
722 * dtrace-probe.c (info_probes_dtrace_command): Constify.
723
eb7c454d
TT
7242017-09-27 Tom Tromey <tom@tromey.com>
725
726 * command.h (not_just_help_class_command): Update.
727 * cli/cli-decode.h (not_just_help_class_command): Update.
728 * cli/cli-decode.c (not_just_help_class_command): Constify.
729
e4e33335
TT
7302017-09-27 Tom Tromey <tom@tromey.com>
731
732 * gdb_bfd.c (maintenance_info_bfds): Constify.
733
0450cc4c
TT
7342017-09-27 Tom Tromey <tom@tromey.com>
735
736 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
737 overloads.
738 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
739 (do_const_cfunc): New function.
740 (cmd_cfunc_eq): New overload.
741 (cli_user_command_p): Check do_const_cfunc.
742 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
743 const_cfunc.
744 * command.h (add_cmd): Add const overload and no-function
745 overload.
746 (set_cmd_cfunc): Add const overload.
747 (cmd_const_cfunc_ftype): Declare.
748 (cmd_cfunc_eq): Add const overload.
749 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
750 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
751 overload.
752
a9bbfbd8
TT
7532017-09-27 Tom Tromey <tom@tromey.com>
754
755 * macroexp.c (get_next_token_for_substitution): New function.
756 (substitute_args): Call it. Check for __VA_OPT__.
757
5230b05a
WT
7582017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
759 Pedro Alves <palves@redhat.com>
760
761 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
762 producer_is_icc_lt_14.
763 (producer_is_icc_lt_14): New function.
764 (check_producer): Add code for checking version of ICC.
765 (producer_is_icc): Move to producer.c.
766 (read_structure_type): Restrict ICC workaround to ICC<14.
767 * producer.c: Include selftest.h.
768 (producer_is_icc, producer_parsing_tests, _initialize_producer):
769 New functions.
770 * producer.h (producer_is_icc): New declaration.
771
b32b108a
WT
7722017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
773
774 * Makefile.in (SFILES): Add producer.c.
775 (COMMON_OBS): Add producer.o
776 * amd64-tdep.c (producer.h): Add new include.
777 * dwarf2read.c (producer.h): Add new include.
778 * producer.c: New file.
779 * producer.h: New file.
780 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
781 producer.c.
782 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
783 producer.h.
784
5007d765
MK
7852017-09-26 Matthias Klose <doko@ubuntu.com>
786
787 * configure.ac: Search ncursesw before ncurses.
788 Check ncursesw/ncurses.h before ncurses/ncurses.h.
789 * gdb_curses.h: Include <ncursesw/ncurses.h>
790 * config.in, configure: Regenerate.
791
281c4447
RO
7922017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
793
794 PR gdb/22185
795 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
796 obsolete.
797 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
798 Remove i386sol2 support.
799 * configure.nat <i386sol2>: Remove.
800 <sol2-64>: Fold into ...
801 <sol2>: ... this.
802 Move common settings to default section.
803 Add sol-thread.o.
804 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
805 x86_64-*-solaris2.1[0-9]*>: Rename to ...
806 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
807 <i[34567]86-*-solaris*>: Remove.
808 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
809
810 * configure.ac: Remove wctype in libw check.
811 (_MSE_INT_H): Don't define on Solaris 7-9.
812 <solaris*>: Remove libthread_db.so.1 check.
813 * configure: Regenerate.
814 * config.in: Regenerate.
815
816 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
817 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
818 (gdb_ps_size_t): Remove.
819 Use base types in users.
820 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
821
822 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
823
39b06c20
RO
8242017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
825
826 PR build/22206
827 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
828 (adi_is_addr_mapped): Likewise.
829 (PSR_ICC): Don't redefine.
830 (PSR_IMPL): Likewise.
831
6c3e20f1
TT
8322017-09-25 Tom Tromey <tom@tromey.com>
833
834 * regcache.c (regcache::dump): Use string_printf.
835
b292235f
TT
8362017-09-25 Tom Tromey <tom@tromey.com>
837
838 * regcache.c (class regcache_invalidator): New.
839 (struct register_to_invalidate): Remove.
840 (make_cleanup_regcache_invalidate): Remove.
841 (regcache::raw_write): Use regcache_invalidator.
842
9ac86b52
TT
8432017-09-25 Tom Tromey <tom@tromey.com>
844
845 * spu-tdep.c (spu2ppu_sniffer): Update.
846 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
847 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
848 Remove.
849 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
850 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
851 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
852 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
853 (frame_pop): Update.
854
c0e383c6
TT
8552017-09-25 Tom Tromey <tom@tromey.com>
856
857 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
858 * regcache.h (regcache_xfree): Don't declare.
859 * regcache.c (regcache_xfree): Remove.
860 (do_regcache_xfree): Use delete.
861 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
862 * linux-fork.c (free_fork): Use delete.
863 (fork_save_infrun_state): Likewise.
864 * jit.c (jit_dealloc_cache): Use delete.
865 * infrun.c (discard_infcall_suspend_state): Use delete.
866
791199cc
TT
8672017-09-25 Tom Tromey <tom@tromey.com>
868
869 * regcache.h (regcache_xmalloc): Don't declare.
870 (regcache_raw_set_cached_value): Update comment.
871 * regcache.c (regcache_xmalloc): Remove.
872 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
873 * jit.c (jit_frame_sniffer): Use new.
874 * frame.c (frame_save_as_regcache): Use new.
875
289e23aa
AA
8762017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
877
878 * NEWS: Advertise support for guarded-storage registers on IBM z.
879
1b63490c
AA
8802017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
881
882 * s390-linux-nat.c (have_regset_gs): New static variable.
883 (s390_linux_fetch_inferior_registers): Handle guarded-storage
884 control block and guarded-storage broadcast control regsets.
885 (s390_read_description): Detect whether the target has
886 guarded-storage support, return appropriate tdesc.
887 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
888 (features/s390x-gs-linux64.c): Likewise.
889 (struct gdbarch_tdep) <have_gs>: New field.
890 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
891 (s390_gsbc_regset): New variables.
892 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
893 and s390_gsbc_regset, if applicable.
894 (s390_core_read_description): Check whether core file was from a
895 target with guarded-storage support; include appropriate regsets.
896 (s390_gdbarch_init): Add registers for guarded-storage support.
897 (_initialize_s390_tdep): Initialize new target descriptions that
898 include registers for guarded-storage support.
899 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
900 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
901 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
902 (S390_NUM_REGS): Adjust macro definition.
903 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
904 (tdesc_s390x_gs_linux64): New declarations.
905
96235dc1
AA
9062017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
907
908 * features/s390-gs-linux64.xml: New file.
909 * features/s390-gs.xml: New file.
910 * features/s390-gsbc.xml: New file.
911 * features/s390x-gs-linux64.xml: New file.
912 * features/Makefile (WHICH): Add s390-gs-linux64 and
913 s390x-gs-linux64.
914 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
915 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
916 * features/s390-gs-linux64.c: New generated file.
917 * features/s390x-gs-linux64.c: New file.
918 * regformats/s390-gs-linux64.dat: New file.
919 * regformats/s390x-gs-linux64.dat: New file.
920
b4a7c699
TT
9212017-09-23 Tom Tromey <tom@tromey.com>
922
923 * defs.h (make_cleanup_override_quit_handler): Don't declare.
924
c2f97536
TT
9252017-09-22 Tom Tromey <tom@tromey.com>
926
927 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
928 type to scoped_restore_tmpl.
929 <scoped_input_handler>: Initialize m_quit_handler directly.
930
43573013
SDJ
9312017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
932
933 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
934 (cd_command): Likewise. Free "current_directory" before
935 assigning to it.
936 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
937 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
938 * top.c (gdb_dirbuf): Remove global declaration.
939 * top.h (gdb_dirbuf): Likewise.
940
6ec2e0f5
SDJ
9412017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
942
943 * gnulib/aclocal.m4: Regenerate.
944 * gnulib/config.in: Regenerate.
945 * gnulib/configure: Regenerate.
946 * gnulib/import/Makefile.am: Regenerate.
947 * gnulib/import/Makefile.in: Regenerate.
948 * gnulib/import/assure.h: New file.
949 * gnulib/import/at-func.c: Likewise
950 * gnulib/import/chdir-long.c: New file.
951 * gnulib/import/chdir-long.h: New file.
952 * gnulib/import/cloexec.c: New file.
953 * gnulib/import/cloexec.h: New file.
954 * gnulib/import/close.c: New file.
955 * gnulib/import/closedir.c: New file.
956 * gnulib/import/dirent-private.h: New file.
957 * gnulib/import/dup-safer.c: New file.
958 * gnulib/import/dup.c: New file.
959 * gnulib/import/dup2.c: New file.
960 * gnulib/import/error.c: New file.
961 * gnulib/import/error.h: New file.
962 * gnulib/import/exitfail.c: New file.
963 * gnulib/import/exitfail.h: New file.
964 * gnulib/import/fchdir.c: New file.
965 * gnulib/import/fcntl.c: New file.
966 * gnulib/import/fcntl.in.h: New file.
967 * gnulib/import/fd-hook.c: New file.
968 * gnulib/import/fd-hook.h: New file.
969 * gnulib/import/fd-safer.c: New file.
970 * gnulib/import/fdopendir.c: New file.
971 * gnulib/import/filename.h: New file.
972 * gnulib/import/filenamecat-lgpl.c: New file.
973 * gnulib/import/filenamecat.h: New file.
974 * gnulib/import/fstat.c: New file.
975 * gnulib/import/fstatat.c: New file.
976 * gnulib/import/getcwd-lgpl.c: New file.
977 * gnulib/import/getcwd.c: New file.
978 * gnulib/import/getdtablesize.c: New file.
979 * gnulib/import/getlogin_r.c: New file.
980 * gnulib/import/getprogname.c: New file.
981 * gnulib/import/getprogname.h: New file.
982 * gnulib/import/gettext.h: New file.
983 * gnulib/import/glob-libc.h: New file.
984 * gnulib/import/glob.c: New file.
985 * gnulib/import/glob.in.h: New file.
986 * gnulib/import/intprops.h: New file.
987 * gnulib/import/m4/chdir-long.m4: New file.
988 * gnulib/import/m4/close.m4: New file.
989 * gnulib/import/m4/closedir.m4: New file.
990 * gnulib/import/m4/d-ino.m4: New file.
991 * gnulib/import/m4/d-type.m4: New file.
992 * gnulib/import/m4/dup.m4: New file.
993 * gnulib/import/m4/dup2.m4: New file.
994 * gnulib/import/m4/error.m4: New file.
995 * gnulib/import/m4/fchdir.m4: New file.
996 * gnulib/import/m4/fcntl.m4: New file.
997 * gnulib/import/m4/fcntl_h.m4: New file.
998 * gnulib/import/m4/fdopendir.m4: New file.
999 * gnulib/import/m4/filenamecat.m4: New file.
1000 * gnulib/import/m4/fstat.m4: New file.
1001 * gnulib/import/m4/fstatat.m4: New file.
1002 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
1003 * gnulib/import/m4/getcwd-path-max.m4: New file.
1004 * gnulib/import/m4/getcwd.m4: New file.
1005 * gnulib/import/m4/getdtablesize.m4: New file.
1006 * gnulib/import/m4/getlogin_r.m4: New file.
1007 * gnulib/import/m4/getprogname.m4: New file.
1008 * gnulib/import/m4/glob.m4: New file.
1009 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1010 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1011 * gnulib/import/m4/mempcpy.m4: New file.
1012 * gnulib/import/m4/memrchr.m4: New file.
1013 * gnulib/import/m4/mode_t.m4: New file.
1014 * gnulib/import/m4/msvc-inval.m4: New file.
1015 * gnulib/import/m4/msvc-nothrow.m4: New file.
1016 * gnulib/import/m4/open.m4: New file.
1017 * gnulib/import/m4/openat.m4: New file.
1018 * gnulib/import/m4/opendir.m4: New file.
1019 * gnulib/import/m4/readdir.m4: New file.
1020 * gnulib/import/m4/realloc.m4: New file.
1021 * gnulib/import/m4/rewinddir.m4: New file.
1022 * gnulib/import/m4/save-cwd.m4: New file.
1023 * gnulib/import/m4/strdup.m4: New file.
1024 * gnulib/import/m4/strerror.m4: New file.
1025 * gnulib/import/m4/unistd-safer.m4: New file.
1026 * gnulib/import/mempcpy.c: New file.
1027 * gnulib/import/memrchr.c: New file.
1028 * gnulib/import/msvc-inval.c: New file.
1029 * gnulib/import/msvc-inval.h: New file.
1030 * gnulib/import/msvc-nothrow.c: New file.
1031 * gnulib/import/msvc-nothrow.h: New file.
1032 * gnulib/import/open.c: New file.
1033 * gnulib/import/openat-die.c: New file.
1034 * gnulib/import/openat-priv.h: New file.
1035 * gnulib/import/openat-proc.c: New file.
1036 * gnulib/import/openat.c: New file.
1037 * gnulib/import/openat.h: New file.
1038 * gnulib/import/opendir.c: New file.
1039 * gnulib/import/pipe-safer.c: New file.
1040 * gnulib/import/readdir.c: New file.
1041 * gnulib/import/realloc.c: New file.
1042 * gnulib/import/rewinddir.c: New file.
1043 * gnulib/import/save-cwd.c: New file.
1044 * gnulib/import/save-cwd.h: New file.
1045 * gnulib/import/strdup.c: New file.
1046 * gnulib/import/strerror-override.c: New file.
1047 * gnulib/import/strerror-override.h: New file.
1048 * gnulib/import/strerror.c: New file.
1049 * gnulib/import/unistd--.h: New file.
1050 * gnulib/import/unistd-safer.h: New file.
1051 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1052 "getcwd" and "glob".
1053 * ser-tcp.c: Undefine "close" before redefining it.
1054
432ae719
SM
10552017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1056
1057 * guile/scm-value.c (gdbscm_value_address): Initialize address,
1058 get rid of res_val.
1059
4fa7574e
RO
10602017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1061
1062 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
1063 <sol2,sparc>: Likewise.
1064 <sol2-64,i386>: Likewise.
1065
1066 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
1067 -Wdeprecated-declarations on *-*-solaris*.
1068 * configure: Regenerate.
1069
1070 * procfs.c: Include "nat/inferior.h".
1071 (procfs_info_proc): Fix typo.
1072
f6327dcb
KB
10732017-09-21 Kevin Buettner <kevinb@redhat.com>
1074
1075 * remote.c (vector): Include.
1076 (struct private_thread_info): Add field, thread_handle.
1077 (free_private_thread_info): Deallocate storage associated with
1078 thread handle.
1079 (get_private_info_thread): Initialize `thread_handle' field.
1080 (struct thread_item): Add field, thread_handle.
1081 (clear_threads_listing_context): Deallocate storage associated
1082 with thread handle.
1083 (start_thread): Add support for "handle" attribute.
1084 (thread_attributes): Add "handle".
1085 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
1086 field.
1087 (remote_update_thread_list): Update thread_handle.
1088 (remote_thread_handle_to_thread_info): New function.
1089 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
1090
fbbe5337
KB
10912017-09-21 Kevin Buettner <kevinb@redhat.com>
1092
1093 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
1094 function.
1095 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
1096 * python/python-internal.h (thread_object_type): Declare.
1097
e04ee09e
KB
10982017-09-21 Kevin Buettner <kevinb@redhat.com>
1099
1100 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
1101 (target_thread_handle_to_thread_info): Declare.
1102 * target.c (target_thread_handle_to_thread_info): New function.
1103 * target-delegates.c: Regenerate.
1104 * gdbthread.h (find_thread_by_handle): Declare.
1105 * thread.c (find_thread_by_handle): New function.
1106 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
1107 function.
1108 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
1109
1e5b66ed
SM
11102017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1111
1112 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
1113
ebe48ba0
SM
11142017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1115
1116 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
1117
0a0bf5dc
YQ
11182017-09-21 Yao Qi <yao.qi@linaro.org>
1119
1120 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
1121 to gdb_target_obs.
1122
d1b0a7bf
TT
11232017-09-20 Tom Tromey <tom@tromey.com>
1124
1125 * breakpoint.c (struct counted_command_line): Remove.
1126 (breakpoint_commands): Update.
1127 (alloc_counted_command_line, incref_counted_command_line)
1128 (decref_counted_command_line, do_cleanup_counted_command_line)
1129 (make_cleanup_decref_counted_command_line): Remove.
1130 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
1131 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
1132 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
1133 (save_breakpoints): Update.
1134 * breakpoint.h (counted_command_line): Now a typedef to
1135 shared_ptr.
1136 (struct breakpoint) <commands>: Now a counted_command_line.
1137 (struct bpstats) <command>: Likewise.
1138
48649e1b
TT
11392017-09-20 Tom Tromey <tom@tromey.com>
1140
1141 * breakpoint.c (struct commands_info, do_map_commands_command):
1142 Remove.
1143 (commands_command_1): Update.
1144 (iterate_over_related_breakpoints): Take a function_view.
1145 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
1146 (delete_command): Update.
1147 (map_breakpoint_numbers): Take a function_view.
1148 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
1149 (disable_command): Update.
1150 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
1151 (enable_command): Update.
1152 (struct disp_data, do_enable_breakpoint_disp)
1153 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
1154 (do_map_enable_delete_breakpoint): Remove.
1155 (enable_once_command, enable_count_command, enable_delete_command)
1156 (delete_trace_variable_command): Update.
1157
04afa70c
TT
11582017-09-20 Tom Tromey <tom@tromey.com>
1159
1160 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
1161 (bpstat_clear): Use delete.
1162 (bpstats): New constructors.
1163 (bpstat_copy, bpstat_stop_status): Use new.
1164 (dprintf_after_condition_true): Update.
1165 * breakpoint.h (bpstats::bpstats): Add constructors.
1166 (bpstats::~bpstats): Add destructor.
1167
c83833f4
PA
11682017-09-20 Pedro Alves <palves@redhat.com>
1169
1170 * eval.c (make_params): Delete, refactored as ...
1171 (class fake_method): ... this new type's ctor.
1172 (fake_method::~fake_method): New.
1173 (evaluate_subexp_standard): Use 'fake_method'.
1174
223ffa71
TT
11752017-09-20 Tom Tromey <tom@tromey.com>
1176
1177 * windows-nat.c (get_windows_debug_event, windows_wait)
1178 (do_initial_windows_stuff, windows_attach): Update.
1179 * utils.c (vwarning, internal_vproblem): Update.
1180 (ui_unregister_input_event_handler_cleanup)
1181 (prepare_to_handle_input): Remove.
1182 (class scoped_input_handler): New.
1183 (defaulted_query, prompt_for_continue): Update.
1184 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1185 Update.
1186 * top.c (undo_terminal_modifications_before_exit): Update.
1187 * target/target.h (target_terminal_init, target_terminal_inferior)
1188 (target_terminal_ours): Don't declare.
1189 (class target_terminal): New.
1190 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
1191 (target_terminal_ours_for_output)
1192 (make_cleanup_restore_target_terminal): Don't declare.
1193 (target_terminal_info): Remove.
1194 * target.c (enum terminal_state, terminal_state): Remove.
1195 (target_terminal::terminal_state): Define.
1196 (target_terminal::init): Rename from target_terminal_init.
1197 (target_terminal::inferior): Rename from
1198 target_terminal_inferior.
1199 (target_terminal::ours): Rename from target_terminal_ours.
1200 (target_terminal::ours_for_output): Rename from
1201 target_terminal_ours_for_output.
1202 (target_terminal::info): New method.
1203 (cleanup_restore_target_terminal)
1204 (make_cleanup_restore_target_terminal): Remove.
1205 * solib.c (handle_solib_event): Update.
1206 * remote.c (remote_serial_quit_handler): Update.
1207 (remote_terminal_inferior, remote_wait_as): Update.
1208 * record-full.c (record_full_wait_1): Update.
1209 * nto-procfs.c (procfs_create_inferior): Update.
1210 * nat/fork-inferior.c (startup_inferior): Update.
1211 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1212 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1213 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1214 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1215 (mi_breakpoint_created, mi_breakpoint_deleted)
1216 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
1217 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
1218 (mi_user_selected_context_changed, report_initial_inferior):
1219 Update.
1220 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
1221 (linux_nat_terminal_inferior): Update.
1222 * infrun.c (follow_fork_inferior)
1223 (handle_vfork_child_exec_or_exit, do_target_resume)
1224 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
1225 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
1226 Update.
1227 * inflow.c (child_terminal_init, info_terminal_command): Update.
1228 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
1229 (attach_command): Update.
1230 * infcall.c (call_thread_fsm_should_stop): Update.
1231 * gnu-nat.c (gnu_attach): Update.
1232 * extension.c (struct active_ext_lang_state)
1233 (restore_active_ext_lang): Update.
1234 * exceptions.c (print_flush): Update.
1235 * event-top.c (async_enable_stdin, default_quit_handler): Update.
1236 (struct quit_handler_cleanup_data, restore_quit_handler)
1237 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
1238 Remove.
1239 * cp-support.c (gdb_demangle): Update.
1240 * breakpoint.c (update_inserted_breakpoint_locations)
1241 (insert_breakpoint_locations, handle_jit_event)
1242 (disable_breakpoints_in_unloaded_shlib): Update.
1243 * annotate.c (annotate_breakpoints_invalid)
1244 (annotate_frames_invalid): Update.
1245
013af3fc
TT
12462017-09-20 Tom Tromey <tom@tromey.com>
1247
1248 * main.c (catch_command_errors): Rename from
1249 catch_command_errors_const.
1250 (captured_main_1): Update.
1251
06871ae8
PA
12522017-09-20 Pedro Alves <palves@redhat.com>
1253
1254 * cli/cli-cmds.c (list_command): Use print_sal_location.
1255 (print_sal_location): New function.
1256 (ambiguous_line_spec): Use print_sal_location.
1257 * linespec.c (symbol_to_sal): Record the symbol in the sal.
1258 * symtab.c (find_function_start_sal): Likewise.
1259 * symtab.h (symtab_and_line::symbol): New field.
1260
e5f25bc5
PA
12612017-09-20 Pedro Alves <palves@redhat.com>
1262
1263 * linespec.c (minsym_found): Handle non-text minsyms.
1264 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
1265
1b7fa39e
WT
12662017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1267
1268 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
1269 backslash.
1270
37dd0825
WT
12712017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1272
1273 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
1274 vmovups instead vmovaps.
1275 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
1276
4e5a4f58
JB
12772017-09-19 John Baldwin <jhb@FreeBSD.org>
1278
1279 * NEWS (Changes since GDB 8.0): Add starti.
1280 * infcmd.c (enum run_break): New.
1281 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
1282 case.
1283 (run_command): Use enum run_how.
1284 (start_command): Likewise.
1285 (starti_command): New function.
1286 (RUN_ARGS_HELP): New macro.
1287 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
1288 commands. Add starti command.
1289
aa70c9f1
YQ
12902017-09-19 Yao Qi <yao.qi@linaro.org>
1291
1292 * Makefile.in (monitor.o): Remove the rule.
1293
d6541620
YQ
12942017-09-19 Yao Qi <yao.qi@linaro.org>
1295
1296 * annotate.h (struct annotate_arg_emitter): Use
1297 DISABLE_COPY_AND_ASSIGN.
1298 * common/refcounted-object.h (refcounted_object): Likewise.
1299 * completer.h (struct completion_result): Likewise.
1300 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
1301 * filename-seen-cache.h (filename_seen_cache): Likewise.
1302 * gdbcore.h (thread_section_name): Likewise.
1303 * gdb_regex.h (compiled_regex): Likewise.
1304 * gdbthread.h (scoped_restore_current_thread): Likewise.
1305 * inferior.h (scoped_restore_current_inferior): Likewise.
1306 * jit.c (jit_reader): Likewise.
1307 * linespec.h (struct linespec_result): Likewise.
1308 * mi/mi-parse.h (struct mi_parse): Likewise.
1309 * nat/fork-inferior.c (execv_argv): Likewise.
1310 * progspace.h (scoped_restore_current_program_space): Likewise.
1311 * python/python-internal.h (class gdbpy_enter): Likewise.
1312 * regcache.h (regcache): Likewise.
1313 * target-descriptions.c (struct tdesc_reg): Likewise.
1314 (struct tdesc_type): Likewise.
1315 (struct tdesc_feature): Likewise.
1316 * ui-out.h (ui_out_emit_type): Likewise.
1317
0615127c
SM
13182017-09-18 Simon Marchi <simon.marchi@ericsson.com>
1319
1320 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
1321 label abort_expression.
1322
5e187554
SM
13232017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1324
1325 * common/buffer.c (buffer_xml_printf): Adjust.
1326 * common/xml-utils.c (xml_escape_text): Change return type to
1327 std::string, update code accordingly.
1328 * common/xml-utils.h (xml_escape_text): Change return type to
1329 std::string.
1330 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
1331 * windows-tdep.c (windows_xfer_shared_library): Adjust.
1332 * unittests/xml-utils-selftests.c (test_xml_escape_text):
1333 Adjust.
1334
c3d7b541
SM
13352017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1336
1337 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
1338 (SUBDIR_UNITTESTS_OBS): Add new object file.
1339 * unittests/xml-utils-selftests.c: New file.
1340
1526853e
SM
13412017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1342
1343 * common/selftest.h (selftest): New struct/interface.
1344 (register_test): Add name parameter, add new overload.
1345 (run_tests): Add filter parameter.
1346 (for_each_selftest_ftype): New typedef.
1347 (for_each_selftest): New declaration.
1348 * common/selftest.c (tests): Change type to
1349 map<string, unique_ptr<selftest>>.
1350 (simple_selftest): New struct.
1351 (register_test): New function.
1352 (register_test): Add name parameter and use it.
1353 (run_tests): Add filter parameter and use it. Add prints.
1354 Adjust to vector -> map change.
1355 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
1356 registering selftests.
1357 * arm-tdep.c (_initialize_arm_tdep): Likewise.
1358 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
1359 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
1360 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
1361 * findvar.c (_initialize_findvar): Likewise.
1362 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
1363 * maint.c (maintenance_selftest): Update call to run_tests.
1364 (maintenance_info_selftests): New function.
1365 (_initialize_maint_cmds): Register "maintenance info selftests"
1366 command. Update "maintenance selftest" doc.
1367 * regcache.c (_initialize_regcache): Add names when registering
1368 selftests.
1369 * rust-exp.y (_initialize_rust_exp): Likewise.
1370 * selftest-arch.c (gdbarch_selftest): New struct.
1371 (gdbarch_tests): Remove.
1372 (register_test_foreach_arch): Add name parameter. Call
1373 register_test.
1374 (tests_with_arch): Remove, move most content to
1375 gdbarch_selftest::operator().
1376 (_initialize_selftests_foreach_arch): Remove.
1377 * selftest-arch.h (register_test_foreach_arch): Add name
1378 parameter.
1379 (run_tests_with_arch): New declaration.
1380 * utils-selftests.c (_initialize_utils_selftests): Add names
1381 when registering selftests.
1382 * utils.c (_initialize_utils): Likewise.
1383 * unittests/array-view-selftests.c
1384 (_initialize_array_view_selftests): Likewise.
1385 * unittests/environ-selftests.c (_initialize_environ_selftests):
1386 Likewise.
1387 * unittests/function-view-selftests.c
1388 (_initialize_function_view_selftests): Likewise.
1389 * unittests/offset-type-selftests.c
1390 (_initialize_offset_type_selftests): Likewise.
1391 * unittests/optional-selftests.c
1392 (_initialize_optional_selftests): Likewise.
1393 * unittests/scoped_restore-selftests.c
1394 (_initialize_scoped_restore_selftests): Likewise.
1395 * NEWS: Document "maintenance selftest" and "maint info
1396 selftests".
1397
5846367a
SM
13982017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1399
1400 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
1401 scoped_restore.
1402
bd77e8ff
SM
14032017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1404
1405 * mi/mi-main.c (mi_load_progress): Make uiout variable
1406 a unique_ptr.
1407
26a67918
PA
14082017-09-15 Pedro Alves <palves@redhat.com>
1409
1410 * compile/compile-c-types.c (convert_enum, convert_int)
1411 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
1412
3f8a7804
SM
14132017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1414
1415 * dwarf2read.c (copy_string): Remove.
1416 (parse_macro_definition): Replace copy_string with savestring.
1417
8d200706
YQ
14182017-09-15 Yao Qi <yao.qi@linaro.org>
1419
1420 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
1421 gdb_target_obs.
1422 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
1423 Likewise.
1424 (i[34567]86-*-linux*): Likewise.
1425
d185219d
SM
14262017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1427
1428 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1429 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1430 <stack>: Change type to std::vector.
1431 <stack_len, stack_allocated>: Remove.
1432 <grow_stack>: Remove.
1433 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1434 (dwarf_expr_context::~dwarf_expr_context): Remove.
1435 (dwarf_expr_context::grow_stack): Remove.
1436 (dwarf_expr_context::push): Adjust.
1437 (dwarf_expr_context::pop): Adjust.
1438 (dwarf_expr_context::fetch): Adjust.
1439 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1440 (dwarf_expr_context::stack_empty_p): Adjust.
1441 (dwarf_expr_context::execute_stack_op): Adjust.
1442
eccd80d6
SM
14432017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1444
1445 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1446 return type to bool.
1447 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1448
69009882
SM
14492017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1450
1451 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1452 Change type to bool.
1453 (dwarf_stack_value) <in_stack_memory>: Likewise.
1454 (dwarf_expr_context) <push_address>: Change parameter type to
1455 bool.
1456 <fetch_in_stack_memory>: Change return type to bool.
1457 <push>: Change parameter type to bool.
1458 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1459 to bool.
1460 (dwarf_expr_context::push_address): Likewise.
1461 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1462 to bool.
1463 (dwarf_expr_context::execute_stack_op): Adjust.
1464 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1465
1e467161
SM
14662017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1467
1468 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1469 (struct dwarf_expr_context) <n_pieces>: Remove.
1470 <pieces>: Change type to std::vector.
1471 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1472 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1473 pieces.
1474 (dwarf_expr_context::add_piece): Adjust.
1475 * dwarf2loc.c (struct piece_closure): Initialize fields.
1476 <n_pieces>: Remove.
1477 <pieces>: Change type to std::vector.
1478 (allocate_piece_closure): Adjust, change parameter to
1479 std::vector rvalue and std::move it to piece_closure.
1480 (rw_pieced_value): Adjust.
1481 (check_pieced_synthetic_pointer): Adjust.
1482 (indirect_synthetic_pointer): Adjust.
1483 (coerce_pieced_ref): Adjust.
1484 (free_pieced_value_closure): Adjust. Use delete to free
1485 piece_closure.
1486 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1487 to allocate_piece_closure.
1488 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1489
0782db84
SM
14902017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1491
1492 * probe.h (probe_ops_cp): Remove typedef.
1493 (DEF_VEC_P (probe_ops_cp)): Remove.
1494 (all_probe_ops): Change type to std::vector.
1495 * probe.c (info_probes_for_ops): Adjust to vector change.
1496 (probe_linespec_to_ops): Likewise.
1497 (all_probe_ops): Change type to std::vector.
1498 (_initialize_probe): Adjust to vector change.
1499 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1500 * elfread.c (elf_get_probes): Likewise.
1501 * stap-probe.c (_initialize_stap_probe): Likewise.
1502
1eac6bea
SM
15032017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1504
1505 * probe.h (struct bound_probe): Define constructors.
1506 * probe.c (bound_probe_s): Remove typedef.
1507 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1508 (collect_probes): Change return type to std::vector, remove
1509 cleanup.
1510 (compare_probes): Return bool, change parameter type. Change
1511 semantic to "less than".
1512 (gen_ui_out_table_header_info): Change parameter to std::vector
1513 and update.
1514 (exists_probe_with_pops): Likewise.
1515 (info_probes_for_ops): Update to std::vector change.
1516 (enable_probes_command): Likewise.
1517 (disable_probes_command): Likewise.
1518
aaa63a31
SM
15192017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1520
1521 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1522 vec to std::vector.
1523 * probe.c (parse_probes_in_pspace): Update.
1524 (find_probes_in_objfile): Update.
1525 (find_probe_by_pc): Update.
1526 (collect_probes): Update.
1527 (probe_any_get_probes): Update.
1528 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1529 return type to reference to std::vector.
1530 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1531 std::vector and update.
1532 (dtrace_process_dof): Likewise.
1533 (dtrace_get_probes): Likewise.
1534 * elfread.c (elf_get_probes): Change return type to std::vector,
1535 store an std::vector in bfd_data.
1536 (probe_key_free): Update to std::vector.
1537 * stap-probe.c (handle_stap_probe): Change parameter to
1538 std::vector and update.
1539 (stap_get_probes): Likewise.
1540 * symfile-debug.c (debug_sym_get_probes): Change return type to
1541 std::vector and update.
1542
cb85b21b
TT
15432017-09-11 Tom Tromey <tom@tromey.com>
1544
1545 * breakpoint.c (program_breakpoint_here_p): Update.
1546 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1547 from make_show_memory_breakpoints_cleanup. Return a
1548 scoped_restore_tmpl<int>.
1549 (restore_show_memory_breakpoints): Remove.
1550 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1551 * mem-break.c (memory_validate_breakpoint): Update.
1552 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1553 (ia64_memory_remove_breakpoint): Update.
1554 (ia64_breakpoint_from_pc): Update.
1555 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1556 from make_show_memory_breakpoints_cleanup.
1557
8fbc99ef
TT
15582017-09-11 Tom Tromey <tom@tromey.com>
1559
1560 * d-namespace.c (d_lookup_symbol): Use std::string.
1561 (find_symbol_in_baseclass): Likewise.
1562
50feb4bd
TT
15632017-09-11 Tom Tromey <tom@tromey.com>
1564
1565 * ctf.c (ctf_start): Use std::string.
1566
c6dc63a1
TT
15672017-09-11 Tom Tromey <tom@tromey.com>
1568
1569 * ada-lang.c (is_known_support_routine): Update.
1570 (ada_unhandled_exception_name_addr_from_raise): Update.
1571 * guile/scm-frame.c (gdbscm_frame_name): Update.
1572 * python/py-frame.c (frapy_name): Update.
1573 (frapy_function): Update.
1574 * stack.h (find_frame_funname): Update.
1575 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1576 (print_frame): Update.
1577
d6b9b80f
TT
15782017-09-11 Tom Tromey <tom@tromey.com>
1579
1580 * findcmd.c (put_bits): Take a gdb::byte_vector.
1581 (parse_find_args): Return gdb::byte_vector. "args" now const.
1582 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1583 cleanups.
1584 (find_command): Update.
1585
a9921622
TT
15862017-09-11 Tom Tromey <tom@tromey.com>
1587
1588 * cli/cli-script.c (class scoped_restore_hook_in): New.
1589 (clear_hook_in_cleanup): Remove.
1590 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1591 scoped_restore_hook_in.
1592
be0d7abb
TT
15932017-09-11 Tom Tromey <tom@tromey.com>
1594
1595 * cli/cli-script.c (restore_interp): Remove.
1596 (read_command_lines): Use scoped_restore_interp.
1597 * interps.c (scoped_restore_interp::set_temp): Rename from
1598 interp_set_temp.
1599 * interps.h (class scoped_restore_interp): New.
1600 (interp_set_temp): Remove.
1601
00f675ff
TT
16022017-09-11 Tom Tromey <tom@tromey.com>
1603
1604 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1605 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1606 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1607 scoped_restore.
1608 (mi_cmd_break_insert_1): Update.
1609 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1610 scoped_restore.
1611
cb791d59
TT
16122017-09-11 Tom Tromey <tom@tromey.com>
1613
1614 * demangle.c (demangle_command): Update.
1615 * breakpoint.c (disable_command): Update.
1616 (enable_command): Update.
1617 (find_location_by_number): Make "number" const. Use
1618 get_number_trailer.
1619 * cli/cli-utils.c (extract_arg): Return std::string.
1620 * probe.c (parse_probe_linespec): Update. Change types.
1621 (collect_probes): Take string arguments.
1622 (parse_probe_linespec): Likewise.
1623 (info_probes_for_ops): Update.
1624 (enable_probes_command): Update.
1625 (disable_probes_command): Update.
1626 * break-catch-sig.c (catch_signal_split_args): Update.
1627 * mi/mi-parse.c (mi_parse): Update.
1628
2039bd9f
TT
16292017-09-11 Tom Tromey <tom@tromey.com>
1630
1631 * language.h (language_enum): Make argument const.
1632 * language.c (language_enum): Make argument const.
1633
f1735a53
TT
16342017-09-11 Tom Tromey <tom@tromey.com>
1635
1636 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1637 as function.
1638 (skip_to_space): Rename from skip_to_space_const.
1639 * common/common-utils.c (skip_to_space): New function.
1640 (skip_to_space): Rename from skip_to_space_const.
1641 * cli/cli-utils.h (get_number): Rename from get_number_const.
1642 (extract_arg): Rename from extract_arg_const.
1643 * cli/cli-utils.c (get_number): Rename from get_number_const.
1644 (extract_arg): Rename from extract_arg_const.
1645 (number_or_range_parser::get_number): Use ::get_number.
1646 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1647 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1648 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1649 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1650 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1651 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1652 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1653 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1654
7d221d74
TT
16552017-09-11 Tom Tromey <tom@tromey.com>
1656
1657 * python/python.c (do_start_initialization): Use
1658 py-event-types.def to initialize types.
1659 Define all object type structures.
1660 * python/python-internal.h: Don't declare event initialization
1661 functions.
1662 * python/py-threadevent.c (thread_event_object_type): Don't
1663 define.
1664 * python/py-stopevent.c (stop_event_object_type): Don't define.
1665 * python/py-signalevent.c (signal_event_object_type): Don't
1666 declare or define.
1667 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1668 (clear_objfiles_event_object_type): Don't declare or define.
1669 * python/py-infevents.c (inferior_call_pre_event_object_type)
1670 (inferior_call_post_event_object_type)
1671 (register_changed_event_object_type)
1672 (memory_changed_event_object_type): Don't declare or define.
1673 * python/py-inferior.c (new_thread_event_object_type)
1674 (new_inferior_event_object_type)
1675 (inferior_deleted_event_object_type): Don't declare or define.
1676 * python/py-exitedevent.c (exited_event_object_type): Don't
1677 declare or define.
1678 * python/py-evts.c (gdbpy_initialize_py_events): Use
1679 py-all-events.def.
1680 * python/py-events.h (thread_event_object_type): Don't declare.
1681 (events_object): Use py-all-events.def.
1682 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1683 py-event-types.def.
1684 * python/py-event-types.def: New file.
1685 * python/py-continueevent.c (create_continue_event_object): Don't
1686 declare or define.
1687 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1688 declare or define.
1689 * python/py-all-events.def: New file.
1690
35c61a1d
TT
16912017-09-11 Tom Tromey <tom@tromey.com>
1692
1693 * python/py-threadevent.c (create_thread_event_object): Return
1694 gdbpy_ref.
1695 * python/py-stopevent.h (create_stop_event_object)
1696 (create_breakpoint_event_object, create_signal_event_object):
1697 Update.
1698 * python/py-stopevent.c (create_stop_event_object): Return
1699 gdbpy_ref.
1700 (emit_stop_event): Update.
1701 * python/py-signalevent.c (create_signal_event_object): Return
1702 gdbpy_ref.
1703 * python/py-infevents.c (create_inferior_call_event_object):
1704 Update.
1705 * python/py-event.h (create_event_object)
1706 (create_thread_event_object): Update.
1707 * python/py-event.c (create_event_object): Return gdbpy_ref.
1708 * python/py-continueevent.c: Return gdbpy_ref.
1709 * python/py-bpevent.c (create_breakpoint_event_object): Return
1710 gdbpy_ref.
1711
7c96f8c1
TT
17122017-09-11 Tom Tromey <tom@tromey.com>
1713
1714 PR python/15622:
1715 * NEWS: Add entry.
1716 * python/python.c (do_start_initialization): Initialize new event
1717 types.
1718 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1719 (gdbpy_initialize_inferior_deleted_event)
1720 (gdbpy_initialize_new_thread_event): Declare.
1721 * python/py-threadevent.c (create_thread_event_object): Add option
1722 "thread" parameter.
1723 * python/py-inferior.c (new_thread_event_object_type)
1724 (new_inferior_event_object_type)
1725 (inferior_deleted_event_object_type): Declare.
1726 (python_new_inferior, python_inferior_deleted): New functions.
1727 (add_thread_object): Emit new_thread event.
1728 (gdbpy_initialize_inferior): Attach new functions to corresponding
1729 observers.
1730 (new_thread, new_inferior, inferior_deleted): Define new event
1731 types.
1732 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1733 registries.
1734 * python/py-events.h (events_object) <new_inferior,
1735 inferior_deleted, new_thread>: New fields.
1736 * python/py-event.h (create_thread_event_breakpoint): Add optional
1737 "thread" parameter.
1738
72542b8e
AB
17392017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1740
1741 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1742 check current_ui instead.
1743 (internal_vproblem): Likewise.
1744
0d64823e
SM
17452017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1746
1747 * thread.c (print_thread_info_1): Remove unnecessary calls to
1748 uiout->is_mi_like_p.
1749
eb1e02fd
TT
17502017-09-09 Tom Tromey <tom@tromey.com>
1751
1752 * namespace.h (add_using_directive): Update.
1753 * namespace.c (add_using_directive): Change type of excludes to
1754 std::vector.
1755 * dwarf2read.c (read_import_statement): Use std::vector.
1756 (read_namespace): Update.
1757 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1758
0fc21fd8
TT
17592017-09-09 Tom Tromey <tom@tromey.com>
1760
1761 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1762
49663d05
TT
17632017-09-09 Tom Tromey <tom@tromey.com>
1764
1765 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1766
0b868b60
TT
17672017-09-09 Tom Tromey <tom@tromey.com>
1768
1769 * stack.c (func_command): Use gdb::def_vector.
1770
c0470d48
TT
17712017-09-09 Tom Tromey <tom@tromey.com>
1772
1773 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1774 ui_out_emit_list, ui_out_emit_tuple.
1775 (mi_cmd_var_update): Likewise.
1776
ca5909c7
TT
17772017-09-09 Tom Tromey <tom@tromey.com>
1778
1779 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1780 ui_out_redirect_pop.
1781 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1782 ui_out_redirect_pop.
1783 * utils.c (do_ui_out_redirect_pop)
1784 (make_cleanup_ui_out_redirect_pop): Remove.
1785 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1786 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1787 * ui-out.h (ui_out_redirect_pop): New class.
1788
e6a2252a
TT
17892017-09-09 Tom Tromey <tom@tromey.com>
1790
1791 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1792 (list_available_thread_groups, mi_cmd_list_thread_groups)
1793 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1794 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1795 Likewise.
1796
393702cd
TT
17972017-09-09 Tom Tromey <tom@tromey.com>
1798
1799 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1800 ui_out_emit_tuple.
1801
76f9c9cf
TT
18022017-09-09 Tom Tromey <tom@tromey.com>
1803
1804 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1805 * stack.c (print_frame): Use ui_out_emit_tuple.
1806 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1807 (info_spu_mailbox_command, info_spu_dma_command)
1808 (info_spu_proxydma_command): Likewise.
1809 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1810 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1811 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1812 ui_out_emit_tuple.
1813 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1814
dc9fe180
TT
18152017-09-09 Tom Tromey <tom@tromey.com>
1816
1817 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1818 (class ui_out_emit_table): Update comment.
1819 * ui-out.c (do_cleanup_table_end)
1820 (make_cleanup_ui_out_table_begin_end): Remove.
1821 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1822 (info_spu_dma_cmdlist): Likewise.
1823 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1824 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1825 ui_out_emit_table.
1826
f8cc3da6
TT
18272017-09-09 Tom Tromey <tom@tromey.com>
1828
1829 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1830 ui_out_emit_list, gdb::optional.
1831
481695ed
JB
18322017-09-09 John Baldwin <jhb@FreeBSD.org>
1833
1834 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1835 prototype.
1836 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1837 prototype.
1838 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1839 prototype.
1840 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1841 * ada-exp.y: Remove _initialize_ada_exp prototype.
1842 * ada-lang.c: Remove _initialize_ada_language prototype.
1843 * ada-tasks.c: Remove _initialize_tasks prototype.
1844 * addrmap.c: Remove _initialize_addrmap prototype.
1845 * agent.c: Remove _initialize_agent prototype.
1846 * aix-thread.c: Remove _initialize_aix_thread prototype.
1847 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1848 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1849 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1850 prototype.
1851 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1852 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1853 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1854 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1855 prototype.
1856 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1857 prototype.
1858 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1859 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1860 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1861 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1862 prototype.
1863 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1864 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1865 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1866 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1867 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1868 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1869 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1870 prototype.
1871 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1872 prototype.
1873 * annotate.c: Remove _initialize_annotate prototype.
1874 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1875 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1876 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1877 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1878 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1879 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1880 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1881 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1882 prototype.
1883 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1884 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1885 * auto-load.c: Remove _initialize_auto_load prototype.
1886 * auxv.c: Remove _initialize_auxv prototype.
1887 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1888 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1889 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1890 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1891 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1892 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1893 prototype.
1894 * break-catch-throw.c: Remove _initialize_break_catch_throw
1895 prototype.
1896 * breakpoint.c: Remove _initialize_breakpoint prototype.
1897 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1898 * btrace.c: Remove _initialize_btrace prototype.
1899 * charset.c: Remove _initialize_charset prototype.
1900 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1901 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1902 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1903 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1904 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1905 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1906 * coffread.c: Remove _initialize_coffread prototype.
1907 * compile/compile.c: Remove _initialize_compile prototype.
1908 * complaints.c: Remove _initialize_complaints prototype.
1909 * completer.c: Remove _initialize_completer prototype.
1910 * copying.awk: Remove _initialize_copying prototype.
1911 * copying.c: Regenerate.
1912 * core-regset.c: Remove _initialize_core_regset prototype.
1913 * corefile.c: Remove _initialize_core prototype.
1914 * corelow.c: Remove _initialize_corelow prototype.
1915 * cp-abi.c: Remove _initialize_cp_abi prototype.
1916 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1917 * cp-support.c: Remove _initialize_cp_support prototype.
1918 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1919 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1920 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1921 * ctf.c: Remove _initialize_ctf prototype.
1922 * d-lang.c: Remove _initialize_d_language prototype.
1923 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1924 prototype.
1925 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1926 * dbxread.c: Remove _initialize_dbxread prototype.
1927 * dcache.c: Remove _initialize_dcache prototype.
1928 * demangle.c: Remove _initialize_demangler prototype.
1929 * disasm-selftests.c: Remove _initialize_disasm_selftests
1930 prototype.
1931 * disasm.c: Remove _initialize_disasm prototype.
1932 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1933 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1934 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1935 prototype.
1936 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1937 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1938 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1939 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1940 * elfread.c: Remove _initialize_elfread prototype.
1941 * exec.c: Remove _initialize_exec prototype.
1942 * extension.c: Remove _initialize_extension prototype.
1943 * f-lang.c: Remove _initialize_f_language prototype.
1944 * f-valprint.c: Remove _initialize_f_valprint prototype.
1945 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1946 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1947 * filesystem.c: Remove _initialize_filesystem prototype.
1948 * findcmd.c: Remove _initialize_mem_search prototype.
1949 * fork-child.c: Remove _initialize_fork_child prototype.
1950 * frame-base.c: Remove _initialize_frame_base prototype.
1951 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1952 * frame.c: Remove _initialize_frame prototype.
1953 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1954 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1955 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1956 * gcore.c: Remove _initialize_gcore prototype.
1957 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1958 * gdbarch.c: Regenerate.
1959 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1960 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1961 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1962 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1963 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1964 * go-lang.c: Remove _initialize_go_language prototype.
1965 * go32-nat.c: Remove _initialize_go32_nat prototype.
1966 * guile/guile.c: Remove _initialize_guile prototype.
1967 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1968 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1969 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1970 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1971 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1972 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1973 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1974 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1975 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1976 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1977 prototype.
1978 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1979 prototype.
1980 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1981 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1982 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1983 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1984 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1985 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1986 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1987 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1988 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1989 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1990 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1991 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1992 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1993 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1994 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1995 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1996 prototype.
1997 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1998 prototype.
1999 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
2000 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
2001 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
2002 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
2003 * infcall.c: Remove _initialize_infcall prototype.
2004 * infcmd.c: Remove _initialize_infcmd prototype.
2005 * inferior.c: Remove _initialize_inferiors prototype.
2006 * inflow.c: Remove _initialize_inflow prototype.
2007 * infrun.c: Remove _initialize_infrun prototype.
2008 * interps.c: Remove _initialize_interpreter prototype.
2009 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
2010 * jit.c: Remove _initialize_jit prototype.
2011 * language.c: Remove _initialize_language prototype.
2012 * linux-fork.c: Remove _initialize_linux_fork prototype.
2013 * linux-nat.c: Remove _initialize_linux_nat prototype.
2014 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
2015 * linux-thread-db.c: Remove _initialize_thread_db prototype.
2016 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
2017 * m2-lang.c: Remove _initialize_m2_language prototype.
2018 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
2019 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
2020 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
2021 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
2022 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
2023 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2024 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2025 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
2026 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
2027 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
2028 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2029 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2030 * machoread.c: Remove _initialize_machoread prototype.
2031 * macrocmd.c: Remove _initialize_macrocmd prototype.
2032 * macroscope.c: Remove _initialize_macroscope prototype.
2033 * maint.c: Remove _initialize_maint_cmds prototype.
2034 * mdebugread.c: Remove _initialize_mdebugread prototype.
2035 * memattr.c: Remove _initialize_mem prototype.
2036 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
2037 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
2038 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
2039 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
2040 * mi/mi-main.c: Remove _initialize_mi_main prototype.
2041 * microblaze-linux-tdep.c: Remove
2042 _initialize_microblaze_linux_tdep prototype.
2043 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
2044 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
2045 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
2046 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
2047 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
2048 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
2049 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
2050 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
2051 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
2052 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
2053 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
2054 prototype.
2055 * mipsread.c: Remove _initialize_mipsread prototype.
2056 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
2057 prototype.
2058 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
2059 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
2060 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
2061 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
2062 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
2063 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
2064 prototype.
2065 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
2066 * nto-procfs.c: Remove _initialize_procfs prototype.
2067 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
2068 * objc-lang.c: Remove _initialize_objc_language prototype.
2069 * objfiles.c: Remove _initialize_objfiles prototype.
2070 * observer.c: Remove observer_test_first_notification_function,
2071 observer_test_second_notification_function,
2072 observer_test_third_notification_function, and
2073 _initialize_observer prototypes.
2074 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
2075 * osabi.c: Remove _initialize_gdb_osabi prototype.
2076 * osdata.c: Remove _initialize_osdata prototype.
2077 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
2078 * parse.c: Remove _initialize_parse prototype.
2079 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
2080 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
2081 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
2082 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
2083 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
2084 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
2085 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
2086 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
2087 * printcmd.c: Remove _initialize_printcmd prototype.
2088 * probe.c: Remove _initialize_probe prototype.
2089 * proc-api.c: Remove _initialize_proc_api prototype.
2090 * proc-events.c: Remove _initialize_proc_events prototype.
2091 * proc-service.c: Remove _initialize_proc_service prototype.
2092 * procfs.c: Remove _initialize_procfs prototype.
2093 * psymtab.c: Remove _initialize_psymtab prototype.
2094 * python/python.c: Remove _initialize_python prototype.
2095 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
2096 * record-btrace.c: Remove _initialize_record_btrace prototype.
2097 * record-full.c: Remove _initialize_record_full prototype.
2098 * record.c: Remove _initialize_record prototype.
2099 * regcache.c: Remove _initialize_regcache prototype.
2100 * reggroups.c: Remove _initialize_reggroup prototype.
2101 * remote-notif.c: Remove _initialize_notif prototype.
2102 * remote-sim.c: Remove _initialize_remote_sim prototype.
2103 * remote.c: Remove _initialize_remote prototype.
2104 * reverse.c: Remove _initialize_reverse prototype.
2105 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
2106 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
2107 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
2108 prototype.
2109 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
2110 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
2111 * rust-exp.y: Remove _initialize_rust_exp prototype.
2112 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
2113 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
2114 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
2115 * score-tdep.c: Remove _initialize_score_tdep prototype.
2116 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
2117 prototype.
2118 * ser-go32.c: Remove _initialize_ser_dos prototype.
2119 * ser-mingw.c: Remove _initialize_ser_windows prototype.
2120 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
2121 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
2122 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
2123 * serial.c: Remove _initialize_serial prototype.
2124 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
2125 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
2126 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
2127 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
2128 * skip.c: Remove _initialize_step_skip prototype.
2129 * sol-thread.c: Remove _initialize_sol_thread prototype.
2130 * solib-aix.c: Remove _initialize_solib_aix prototype.
2131 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
2132 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
2133 * solib-frv.c: Remove _initialize_frv_solib prototype.
2134 * solib-spu.c: Remove _initialize_spu_solib prototype.
2135 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
2136 * solib-target.c: Remove _initialize_solib_target prototype.
2137 * solib.c: Remove _initialize_solib prototype.
2138 * source.c: Remove _initialize_source prototype.
2139 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
2140 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
2141 prototype.
2142 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
2143 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
2144 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
2145 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
2146 prototype.
2147 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
2148 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
2149 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
2150 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
2151 prototype.
2152 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
2153 prototype.
2154 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
2155 prototype.
2156 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
2157 prototype.
2158 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
2159 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
2160 prototype.
2161 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
2162 prototype.
2163 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
2164 prototype.
2165 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
2166 prototype.
2167 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
2168 prototype.
2169 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
2170 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
2171 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
2172 * stabsread.c: Remove _initialize_stabsread prototype.
2173 * stack.c: Remove _initialize_stack prototype.
2174 * stap-probe.c: Remove _initialize_stap_probe prototype.
2175 * std-regs.c: Remove _initialize_frame_reg prototype.
2176 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
2177 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
2178 * symfile.c: Remove _initialize_symfile prototype.
2179 * symmisc.c: Remove _initialize_symmisc prototype.
2180 * symtab.c: Remove _initialize_symtab prototype.
2181 * target-dcache.c: Remove _initialize_target_dcache prototype.
2182 * target-descriptions.c: Remove _initialize_target_descriptions
2183 prototype.
2184 * thread.c: Remove _initialize_thread prototype.
2185 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
2186 prototype.
2187 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
2188 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
2189 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
2190 prototype.
2191 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
2192 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
2193 * tracefile.c: Remove _initialize_tracefile prototype.
2194 * tracepoint.c: Remove _initialize_tracepoint prototype.
2195 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
2196 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
2197 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
2198 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
2199 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
2200 * tui/tui-win.c: Remove _initialize_tui_win prototype.
2201 * tui/tui.c: Remove _initialize_tui prototype.
2202 * typeprint.c: Remove _initialize_typeprint prototype.
2203 * user-regs.c: Remove _initialize_user_regs prototype.
2204 * utils.c: Remove _initialize_utils prototype.
2205 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
2206 * valarith.c: Remove _initialize_valarith prototype.
2207 * valops.c: Remove _initialize_valops prototype.
2208 * valprint.c: Remove _initialize_valprint prototype.
2209 * value.c: Remove _initialize_values prototype.
2210 * varobj.c: Remove _initialize_varobj prototype.
2211 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
2212 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
2213 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
2214 * windows-nat.c: Remove _initialize_windows_nat,
2215 _initialize_check_for_gdb_ini, and _initialize_loadable
2216 prototypes.
2217 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
2218 * xcoffread.c: Remove _initialize_xcoffread prototype.
2219 * xml-support.c: Remove _initialize_xml_support prototype.
2220 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
2221 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
2222 prototype.
2223 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
2224 prototype.
2225 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
2226
a611b5cb
KS
22272017-09-08 Keith Seitz <keiths@redhat.com>
2228
2229 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
2230 field.
2231
469412dd
CW
22322017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
2233
2234 * f-valprint.c (f_val_print): Remove check for one byte
2235 sized integers. Remove printing of character type.
2236
a5ad232b
FP
22372017-09-08 Frank Penczek <frank.penczek@intel.com>
2238 Christoph Weinmann <christoph.t.weinmann@intel.com>
2239 Bernhard Heckel <bernhard.heckel@intel.com>
2240
2241 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
2242 to maintain proper indentation when printing pointers/refs.
2243
e5014227
JB
22442017-09-07 Joel Brobecker <brobecker@adacore.com>
2245
2246 GDB 8.0.1 released.
2247
63c99141
JB
22482017-09-07 Joel Brobecker <brobecker@adacore.com>
2249
2250 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
2251
69c1e056
TT
22522017-09-05 Tom Tromey <tom@tromey.com>
2253
2254 * parse.c (funcall_chain): Now a std::vector.
2255 (start_arglist, end_arglist): Simplify.
2256 (free_funcalls): Remove.
2257 (parse_exp_in_context_1): Remove cleanup.
2258
fef704bf
TT
22592017-09-05 Tom Tromey <tom@tromey.com>
2260
2261 * go-exp.y (go_parse): Don't create a cleanup.
2262
5613c585
TT
22632017-09-05 Tom Tromey <tom@tromey.com>
2264
2265 * d-exp.y (PrimaryExpression): Use std::string.
2266 (d_parse): Don't create a cleanup.
2267
eae49211
TT
22682017-09-05 Tom Tromey <tom@tromey.com>
2269
2270 * utils.c (do_clear_parser_state): Remove.
2271 (make_cleanup_clear_parser_state): Remove.
2272 * p-exp.y (pascal_parse): Use scoped_restore.
2273 * m2-exp.y (m2_parse): Use scoped_restore.
2274 * f-exp.y (f_parse): Use scoped_restore.
2275 * d-exp.y (d_parse): Use scoped_restore.
2276 * c-exp.y (c_parse): Use scoped_restore.
2277 * ada-exp.y (ada_parse): Use scoped_restore.
2278 * utils.h (make_cleanup_clear_parser_state): Remove.
2279
73b9be8b
KS
22802017-09-06 Keith Seitz <keiths@redhat.com>
2281
2282 * dwarf2read.c (dw2_linkage_name_attr): New function.
2283 (dw2_linkage_name): New function.
2284 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
2285 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
2286 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
2287
a102602b
KR
22882017-09-06 Kamil Rytarowski <n54@gmx.com>
2289
2290 * config/djgpp/djconfig.sh: Correct shell portability issue.
2291
28ad437d
KR
22922017-09-06 Kamil Rytarowski <n54@gmx.com>
2293
2294 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
2295
351787dd
JB
22962017-09-06 John Baldwin <jhb@FreeBSD.org>
2297
2298 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2299 * NEWS: Mention new FreeBSD/mips native configuration.
2300 * configure.host: Add aarch64*-*-freebsd*.
2301 * configure.nat: Likewise.
2302 * aarch64-fbsd-nat.c: New file.
2303
c0f84956
JB
23042017-09-06 John Baldwin <jhb@FreeBSD.org>
2305
2306 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
2307 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
2308 * NEWS: Mention new FreeBSD/aarch64 target.
2309 * configure.tgt: Add aarch64*-*-freebsd*.
2310 * aarch64-fbsd-tdep.c: New file.
2311 * aarch64-fbsd-tdep.h: New file.
2312
7610297a
KR
23132017-09-06 Kamil Rytarowski <n54@gmx.com>
2314
2315 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
2316
fbd1b771
JK
23172017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2318
2319 * parse.c (find_minsym_type_and_address): Don't relocate addresses
2320 of TLS symbols.
2321
5ca79eae
PW
23222017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2323
2324 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
2325 call.
2326
bf93d7ba
SM
23272017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2328
2329 * infrun.c (follow_exec): Call add_thread after
2330 target_find_description.
2331
1bb7c059
SM
23322017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2333
2334 * infrun.c (handle_inferior_event_1): When exec'ing, read
2335 stop_pc after follow_exec.
2336
fc809827
SM
23372017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2338
2339 * remote.c (process_g_packet): Update error message.
2340
d2fcdd85
YQ
23412017-09-05 Yao Qi <yao.qi@linaro.org>
2342
2343 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
2344 targets.
2345
e69570ee
PA
23462017-09-05 Pedro Alves <palves@redhat.com>
2347
2348 * eval.c (eval_call, evaluate_funcall): New functions, factored
2349 out from ...
2350 (evaluate_subexp_standard): ... this.
2351
22916b07
YQ
23522017-09-05 Yao Qi <yao.qi@linaro.org>
2353
2354 * amd64-tdep.c (amd64_target_description): Create target
2355 descriptions.
2356 (_initialize_amd64_tdep): Don't call functions
2357 initialize_tdesc_amd64_*. Add self tests.
2358 * arch/amd64.c (amd64_create_target_description): Add parameter
2359 is_linux. Call set_tdesc_osabi if is_linux is true.
2360 * arch/amd64.h (amd64_create_target_description): Update the
2361 declaration.
2362 * arch/i386.c (i386_create_target_description): Add parameter
2363 is_linux. Call set_tdesc_osabi if is_linux is true.
2364 * arch/i386.h (i386_create_target_description): Update
2365 declaration.
2366 * configure.tgt: Add i386.o to gdb_target_obs.
2367 * features/Makefile (XMLTOC): Remove i386/*.xml.
2368 * features/i386/amd64-avx-avx512.c: Remove.
2369 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
2370 * features/i386/amd64-avx-mpx.c: Remove.
2371 * features/i386/amd64-avx.c: Remove.
2372 * features/i386/amd64-mpx.c: Remove.
2373 * features/i386/amd64.c: Remove.
2374 * features/i386/i386-avx-avx512.c: Remove.
2375 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
2376 * features/i386/i386-avx-mpx.c: Remove.
2377 * features/i386/i386-avx.c: Remove.
2378 * features/i386/i386-mmx.c: Remove.
2379 * features/i386/i386-mpx.c: Remove.
2380 * features/i386/i386.c: Remove.
2381 * i386-tdep.c: Don't include features/i386/i386*.c., include
2382 target-descriptions.h and arch/i386.h.
2383 (i386_target_description): Create target descriptions.
2384 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
2385 functions. Do self tests.
2386
0854b7b1
YQ
23872017-09-05 Yao Qi <yao.qi@linaro.org>
2388
2389 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
2390 * features/i386/amd64-avx-avx512-linux.c: Removed.
2391 * features/i386/amd64-avx-linux.c: Removed.
2392 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
2393 * features/i386/amd64-avx-mpx-linux.c: Removed.
2394 * features/i386/amd64-linux.c: Removed.
2395 * features/i386/amd64-mpx-linux.c: Removed.
2396 * features/i386/x32-avx-avx512-linux.c: Removed.
2397 * features/i386/x32-avx-linux.c: Removed.
2398 * features/i386/x32-linux.c: Removed.
2399
b4570e4b
YQ
24002017-09-05 Yao Qi <yao.qi@linaro.org>
2401
2402 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
2403 features/i386/*.c.
2404 (amd64_linux_read_description): Call
2405 amd64_create_target_description.
2406 * arch/amd64.c: New file.
2407 * arch/amd64.h: New file.
2408 * configure.tgt (x86_64-*-linux*): Append amd64.o.
2409 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
2410
6c73f67f
YQ
24112017-09-05 Yao Qi <yao.qi@linaro.org>
2412
2413 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
2414 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
2415 (amd64_linux_read_description): Create target descriptions.
2416 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
2417 functions. Add unit tests.
2418 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
2419 x32-core.xml.
2420 * features/i386/64bit-avx.c: Generated.
2421 * features/i386/64bit-avx512.c: Generated.
2422 * features/i386/64bit-core.c: Generated.
2423 * features/i386/64bit-linux.c: Generated.
2424 * features/i386/64bit-mpx.c: Generated.
2425 * features/i386/64bit-pkeys.c: Generated.
2426 * features/i386/64bit-segments.c: Generated.
2427 * features/i386/64bit-sse.c: Generated.
2428 * features/i386/x32-core.c: Generated.
2429 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2430 c files for amd64-linux and x32-linux.
2431
9d3d478b
YQ
24322017-09-05 Yao Qi <yao.qi@linaro.org>
2433
2434 * amd64-linux-tdep.c (amd64_linux_read_description): New
2435 function.
2436 (amd64_linux_core_read_description): Call
2437 amd64_linux_read_description.
2438 (amd64_linux_init_abi): Likewise.
2439 (amd64_x32_linux_init_abi): Likewise.
2440 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2441 * x86-linux-nat.c (x86_linux_read_description): Call
2442 amd64_linux_read_description.
2443
b9f1d50f
YQ
24442017-09-05 Yao Qi <yao.qi@linaro.org>
2445
2446 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2447 comments.
2448
188c9e6d
YQ
24492017-09-05 Yao Qi <yao.qi@linaro.org>
2450
2451 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2452 * features/i386/i386-avx-avx512-linux.c: Remove.
2453 * features/i386/i386-avx-linux.c: Remove.
2454 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2455 * features/i386/i386-avx-mpx-linux.c: Remove.
2456 * features/i386/i386-linux.c: Remove.
2457 * features/i386/i386-mmx-linux.c: Remove.
2458 * features/i386/i386-mpx-linux.c: Remove.
2459
5f035c07
YQ
24602017-09-05 Yao Qi <yao.qi@linaro.org>
2461
2462 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2463 (SFILES): Add arch/i386.c.
2464 (HFILES_NO_SRCDIR): Add arch/i386.h.
2465 * arch/i386.c: New file.
2466 * arch/i386.h: New file.
2467 * arch/tdesc.h (allocate_target_description): Declare.
2468 (set_tdesc_architecture): Declare.
2469 (set_tdesc_osabi): Declare.
2470 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2471 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2472 include arch/i386.h.
2473 (i386_linux_read_description): Remove code and call
2474 i386_create_target_description.
2475 (set_tdesc_architecture): New function.
2476 (set_tdesc_osabi): New function.
2477 * target-descriptions.h (allocate_target_description): Remove.
2478
0abe8a89
YQ
24792017-09-05 Yao Qi <yao.qi@linaro.org>
2480
2481 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2482 * target-descriptions.c (tdesc_create_feature): Likewise, and
2483 adjust code.
2484 * features/i386/32bit-avx.c: Re-generated.
2485 * features/i386/32bit-avx512.c: Re-generated.
2486 * features/i386/32bit-core.c: Re-generated.
2487 * features/i386/32bit-linux.c: Re-generated.
2488 * features/i386/32bit-mpx.c: Re-generated.
2489 * features/i386/32bit-pkeys.c: Re-generated.
2490 * features/i386/32bit-sse.c: Re-generated.
2491
0a188386
YQ
24922017-09-05 Yao Qi <yao.qi@linaro.org>
2493
2494 * regformats/regdef.h (struct reg): Override operator == and !=.
2495
f49ff000
YQ
24962017-09-05 Yao Qi <yao.qi@linaro.org>
2497
2498 * arch/tdesc.h: New file.
2499 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2500 * target-descriptions.c: Update comments.
2501 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2502 declarations.
2503 * features/i386/32bit-avx.c: Re-generated.
2504 * features/i386/32bit-avx512.c: Re-generated.
2505 * features/i386/32bit-core.c: Re-generated.
2506 * features/i386/32bit-linux.c: Re-generated.
2507 * features/i386/32bit-mpx.c: Re-generated.
2508 * features/i386/32bit-pkeys.c: Re-generated.
2509 * features/i386/32bit-sse.c: Re-generated.
2510
f7000548
YQ
25112017-09-05 Yao Qi <yao.qi@linaro.org>
2512
2513 * regformats/regdat.sh: Update generated code.
2514
c9a5e2a5
YQ
25152017-09-05 Yao Qi <yao.qi@linaro.org>
2516
2517 * regformats/regdat.sh: Adjust code order.
2518
d6b687ac
SM
25192017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2520
2521 * expprint.c (dump_subexp_body_standard): Use constant format
2522 string in fprintf_filtered call.
2523
a379bfd0
JB
25242017-09-04 John Baldwin <jhb@FreeBSD.org>
2525
2526 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2527 NetBSD/i386.
2528 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2529
f7efc967
JB
25302017-09-04 John Baldwin <jhb@FreeBSD.org>
2531
2532 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2533
c49fbc6c
JB
25342017-09-04 John Baldwin <jhb@FreeBSD.org>
2535
2536 * bsd-kvm.o: Define _KMEMUSER.
2537 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2538 * configure: Regenerate.
2539
26562e73
JB
25402017-09-04 John Baldwin <jhb@FreeBSD.org>
2541
2542 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2543 * i386-fbsd-nat.c: Likewise.
2544
31cf1487
JB
25452017-09-04 John Baldwin <jhb@FreeBSD.org>
2546
2547 * unittests/array-view-selftests.c: Add include of <array>.
2548
5b9f8a7c
JB
25492017-09-04 John Baldwin <jhb@FreeBSD.org>
2550
2551 * spu-tdep.c (flush_ea_cache): Add missing argument to
2552 call_function_by_hand.
2553
d69cf9b2
PA
25542017-09-04 Pedro Alves <palves@redhat.com>
2555
2556 * NEWS (Safer support for debugging with no debug info): New.
2557
3693fdb3
PA
25582017-09-04 Pedro Alves <palves@redhat.com>
2559
2560 * c-exp.y (function_method, function_method_void): Add current
2561 instance flags to TYPE_INSTANCE.
2562 * dwarf2read.c (check_modifier): New.
2563 (compute_delayed_physnames): Assert that only C++ adds delayed
2564 physnames. Mark fn_fields as const/volatile depending on
2565 physname.
2566 * eval.c (make_params): New type_instance_flags parameter. Use
2567 it as the new type's instance flags.
2568 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2569 flags element and pass it to make_params.
2570 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2571 instance flags element.
2572 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2573 * gdbtypes.h: Include "enum-flags.h".
2574 (type_instance_flags): New enum-flags type.
2575 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2576 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2577 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2578 (follow_type_instance_flags): New function.
2579 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2580 * parser-defs.h (follow_type_instance_flags): Declare.
2581 * valops.c (value_struct_elt_for_reference): const/volatile must
2582 match too.
2583
e68cb8e0
PA
25842017-09-04 Pedro Alves <palves@redhat.com>
2585
2586 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2587 function/method scopes; lookup the nested name as a function local
2588 static variable.
2589
858be34c
PA
25902017-09-04 Pedro Alves <palves@redhat.com>
2591
2592 (%type <voidval>): Add function_method.
2593 * c-exp.y (exp): New production for calls with no arguments.
2594 (function_method, function_method_void_or_typelist): New
2595 productions.
2596 (exp): New production for "method()::static_var".
2597 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2598 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2599 Handle OP_FUNC_STATIC_VAR.
2600 * parse.c (operator_length_standard):
2601 Handle OP_FUNC_STATIC_VAR.
2602
dd5901a6
PA
26032017-09-04 Pedro Alves <palves@redhat.com>
2604
2605 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2606 handling.
2607 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2608 Ditto.
2609 * parse.c (operator_length_standard, operator_check_standard):
2610 Ditto.
2611 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2612
46a4882b
PA
26132017-09-04 Pedro Alves <palves@redhat.com>
2614
2615 * ax-gdb.c: Include "typeprint.h".
2616 (gen_expr_for_cast): New function.
2617 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2618 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2619 type is unknown.
2620 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2621 nodebug_data_symbol.
2622 * eval.c: Include "typeprint.h".
2623 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2624 Error out if symbol has unknown type.
2625 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2626 evaluate_subexp_for_cast.
2627 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2628 OP_VAR_MSYM_VALUE.
2629 (evaluate_subexp_for_cast): New function.
2630 * gdbtypes.c (init_nodebug_var_type): New function.
2631 (objfile_type): Use it to initialize types of variables with no
2632 debug info.
2633 * typeprint.c (error_unknown_type): New.
2634 * typeprint.h (error_unknown_type): New declaration.
2635 * compile/compile-c-types.c (convert_type_basic): Handle
2636 TYPE_CODE_ERROR; warn and fallback to int for variables with
2637 unknown type.
2638
fe13dfec
PA
26392017-09-04 Pedro Alves <palves@redhat.com>
2640
2641 * eval.c (evaluate_var_value): New function, factored out from ...
2642 (evaluate_subexp_standard): ... here.
2643
d008ee21
PA
26442017-09-04 Pedro Alves <palves@redhat.com>
2645
2646 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2647 Remove useless assignments to 'op'.
2648
827d0c51
PA
26492017-09-04 Pedro Alves <palves@redhat.com>
2650
2651 * eval.c (eval_skip_value): New function.
2652 (evaluate_subexp_standard): Use it.
2653
2c5a2be1
PA
26542017-09-04 Pedro Alves <palves@redhat.com>
2655
2656 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2657 function name from symbol/minsym and pass it to
2658 error_call_unknown_return_type.
2659
74ea4be4
PA
26602017-09-04 Pedro Alves <palves@redhat.com>
2661
2662 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2663 * ax-gdb.c (gen_msym_var_ref): New function.
2664 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2665 * eval.c (evaluate_var_msym_value): New function.
2666 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2667 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2668 to call_function_by_hand.
2669 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2670 Handle OP_VAR_MSYM_VALUE.
2671 (union exp_element) <msymbol>: New field.
2672 * minsyms.h (struct type): Forward declare.
2673 (find_minsym_type_and_address): Declare.
2674 * parse.c (write_exp_elt_msym): New function.
2675 (write_exp_msymbol): Delete, refactored as ...
2676 (find_minsym_type_and_address): ... this new function.
2677 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2678 (operator_length_standard, operator_check_standard): Handle
2679 OP_VAR_MSYM_VALUE.
2680 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2681
7022349d
PA
26822017-09-04 Pedro Alves <palves@redhat.com>
2683
2684 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2685 TYPE_GNU_IFUNC specially here. Throw error if return type is
2686 unknown.
2687 * ada-typeprint.c (print_func_type): Handle functions with unknown
2688 return type.
2689 * c-typeprint.c (c_type_print_base): Handle functions and methods
2690 with unknown return type.
2691 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2692 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2693 * compile/compile-c-types.c: Include "objfiles.h".
2694 (convert_func): For functions with unknown return type, warn and
2695 default to int.
2696 * compile/compile-object-run.c (compile_object_run): Adjust call
2697 to call_function_by_hand_dummy.
2698 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2699 call_function_by_hand.
2700 * eval.c (evaluate_subexp_standard): Adjust calls to
2701 call_function_by_hand. Handle functions and methods with unknown
2702 return type. Pass expect_type to call_function_by_hand.
2703 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2704 return type.
2705 * gcore.c (call_target_sbrk): Adjust call to
2706 call_function_by_hand.
2707 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2708 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2709 an integer address type instead of nodebug.
2710 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2711 call_function_by_hand.
2712 * infcall.c (error_call_unknown_return_type): New function.
2713 (call_function_by_hand): New "default_return_type" parameter.
2714 Pass it down.
2715 (call_function_by_hand_dummy): New "default_return_type"
2716 parameter. Use it instead of defaulting to int. If there's no
2717 default and the return type is unknown, throw an error. If
2718 there's a default return type, and the called function has no
2719 debug info, then assume the function is prototyped.
2720 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2721 New "default_return_type" parameter.
2722 (error_call_unknown_return_type): New declaration.
2723 * linux-fork.c (call_lseek): Cast return type of lseek.
2724 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2725 call_function_by_hand.
2726 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2727 calls to call_function_by_hand.
2728 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2729 return type.
2730 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2731 (value_nsstring, print_object_command): Adjust calls to
2732 call_function_by_hand.
2733 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2734 functions with unknown return type.
2735 (pascal_type_print_func_varspec_suffix): New function.
2736 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2737 TYPE_CODE_METHOD>: Use it.
2738 * python/py-value.c (valpy_call): Adjust call to
2739 call_function_by_hand.
2740 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2741 call_function_by_hand.
2742 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2743 call_function_by_hand.
2744 * valops.c (value_allocate_space_in_inferior): Adjust call to
2745 call_function_by_hand.
2746 * typeprint.c (type_print_unknown_return_type): New function.
2747 * typeprint.h (type_print_unknown_return_type): New declaration.
2748
54990598
PA
27492017-09-04 Pedro Alves <palves@redhat.com>
2750
2751 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2752 types with more than one parameter as prototyped.
2753
9a24775b
PA
27542017-09-04 Pedro Alves <palves@redhat.com>
2755
2756 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2757 (disassemble_command): Use gdb_disassembly_flags instead of bare
2758 int.
2759 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2760 (dump_insns, do_mixed_source_and_assembly_deprecated)
2761 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2762 Use gdb_disassembly_flags instead of bare int.
2763 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2764 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2765 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2766 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2767 (enum gdb_disassembly_flag): ... values of this new enumeration.
2768 (gdb_disassembly_flags): Define.
2769 (gdb_disassembly)
2770 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2771 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2772 gdb_disassembly_flags instead of bare int.
2773 * record-btrace.c (btrace_insn_history)
2774 (record_btrace_insn_history, record_btrace_insn_history_range)
2775 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2776 instead of bare int.
2777 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2778 Use gdb_disassembly_flags instead of bare int.
2779 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2780 Define.
2781 * target-delegates.c: Regenerate.
2782 * target.c (target_insn_history, target_insn_history_from)
2783 (target_insn_history_range): Use gdb_disassembly_flags instead of
2784 bare int.
2785 * target.h: Include "disasm.h".
2786 (struct target_ops) <to_insn_history, to_insn_history_from,
2787 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2788 int.
2789 (target_insn_history, target_insn_history_from)
2790 (target_insn_history_range): Use gdb_disassembly_flags instead of
2791 bare int.
2792
80a65e9b
SM
27932017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2794
2795 * cli/cli-script.c (build_command_line): For if/while commands,
2796 check whether args is empty.
2797
6b66338c
SM
27982017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2799
2800 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2801 (enum command_control_type): Likewise.
2802 (struct command_line): Likewise.
2803 (free_command_lines): Likewise.
2804 (struct command_lines_deleter): Likewise.
2805 (command_line_up): Likewise.
2806 (read_command_lines): Likewise.
2807 (read_command_lines_1): Likewise.
2808 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2809 (enum command_control_type): Likewise.
2810 (struct command_line): Likewise.
2811 (free_command_lines): Likewise.
2812 (struct command_lines_deleter): Likewise.
2813 (command_line_up): Likewise.
2814 (read_command_lines): Likewise.
2815 (read_command_lines_1): Likewise.
2816 * breakpoint.h: Include cli/cli-script.h.
2817 * extension-priv.h: Likewise.
2818 * gdbcmd.h: Likewise.
2819
51abb421
PA
28202017-09-04 Pedro Alves <palves@redhat.com>
2821
2822 * ada-lang.c (is_known_support_routine): Move sal declaration to
2823 where it is initialized.
2824 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2825 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2826 (clear_command, update_static_tracepoint): Remove init_sal
2827 references. Move declarations closer to initializations.
2828 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2829 initializations.
2830 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2831 references. Move sal declarations closer to initializations.
2832 * frame.c (find_frame_sal): Return a symtab_and_line via function
2833 return instead of output parameter. Remove init_sal references.
2834 * frame.h (find_frame_sal): Return a symtab_and_line via function
2835 return instead of output parameter.
2836 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2837 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2838 instead of memset.
2839 (gdbscm_find_pc_line): Remove init_sal reference.
2840 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2841 references. Move declarations closer to initializations.
2842 * infcmd.c (set_step_frame): Update. Move declarations closer to
2843 initializations.
2844 (finish_backward): Remove init_sal references. Move declarations
2845 closer to initializations.
2846 * infrun.c (process_event_stop_test, handle_step_into_function)
2847 (insert_hp_step_resume_breakpoint_at_frame)
2848 (insert_step_resume_breakpoint_at_caller): Likewise.
2849 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2850 (symbol_to_sal): Likewise.
2851 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2852 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2853 to its initialization.
2854 * reverse.c (save_bookmark_command): Use new/delete. Remove
2855 init_sal references. Move declarations closer to initializations.
2856 * source.c (get_current_source_symtab_and_line): Remove brace
2857 initialization.
2858 (set_current_source_symtab_and_line): Now takes the sal by const
2859 reference. Remove brace initialization.
2860 (line_info): Remove init_sal reference.
2861 * source.h (set_current_source_symtab_and_line): Now takes a
2862 symtab_and_line via const reference.
2863 * stack.c (set_current_sal_from_frame): Adjust.
2864 (print_frame_info): Adjust.
2865 (get_last_displayed_sal): Return the sal via function return
2866 instead of via output parameter. Simplify.
2867 (frame_info): Adjust.
2868 * stack.h (get_last_displayed_sal): Return the sal via function
2869 return instead of via output parameter.
2870 * symtab.c (init_sal): Delete.
2871 (find_pc_sect_line): Remove init_sal references. Move
2872 declarations closer to initializations.
2873 (find_function_start_sal): Remove init_sal references. Move
2874 declarations closer to initializations.
2875 * symtab.h (struct symtab_and_line): In-class initialize all
2876 fields.
2877 * tracepoint.c (set_traceframe_context)
2878 (print_one_static_tracepoint_marker): Remove init_sal references.
2879 Move declarations closer to initializations.
2880 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2881 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2882 declarations closer to initializations.
2883 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2884 init_sal references. Adjust.
2885
6c5b2ebe
PA
28862017-09-04 Pedro Alves <palves@redhat.com>
2887
2888 * ax-gdb.c (agent_command_1): Use range-for.
2889 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2890 * breakpoint.c: Include "common/array-view.h".
2891 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2892 parameter from struct symtabs_and_lines to
2893 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2894 (breakpoint_sals_to_pc): Change sals parameter from struct
2895 symtabs_and_lines to std::vector reference.
2896 (check_fast_tracepoint_sals): Change sals parameter from struct
2897 symtabs_and_lines to std::array_view. Use range-for.
2898 (decode_static_tracepoint_spec): Return a std::vector instead of
2899 symtabs_and_lines. Update.
2900 (create_breakpoint): Update.
2901 (break_range_command, until_break_command, clear_command): Update.
2902 (base_breakpoint_decode_location, bkpt_decode_location)
2903 (bkpt_probe_create_sals_from_location)
2904 (bkpt_probe_decode_location, tracepoint_decode_location)
2905 (tracepoint_probe_decode_location)
2906 (strace_marker_create_sals_from_location): Return a std::vector
2907 instead of symtabs_and_lines.
2908 (strace_marker_create_breakpoints_sal): Update.
2909 (strace_marker_decode_location): Return a std::vector instead of
2910 symtabs_and_lines. Update.
2911 (update_breakpoint_locations): Change struct symtabs_and_lines
2912 parameters to gdb::array_view. Adjust.
2913 (location_to_sals): Return a std::vector instead of
2914 symtabs_and_lines. Update.
2915 (breakpoint_re_set_default): Use std::vector instead of struct
2916 symtabs_and_lines.
2917 (decode_location_default): Return a std::vector instead of
2918 symtabs_and_lines. Update.
2919 * breakpoint.h: Include "common/array-view.h".
2920 (struct breakpoint_ops) <decode_location>: Now returns a
2921 std::vector instead of returning a symtabs_and_lines via output
2922 parameter.
2923 (update_breakpoint_locations): Change sals parameters to use
2924 gdb::array_view.
2925 * cli/cli-cmds.c (edit_command, list_command): Update to use
2926 std::vector and gdb::array_view.
2927 (ambiguous_line_spec): Adjust to use gdb::array_view and
2928 range-for.
2929 (compare_symtabs): Rename to ...
2930 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2931 const reference and adjust.
2932 (filter_sals): Rewrite using std::vector and standard algorithms.
2933 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2934 (jump_command): Update to use std::vector.
2935 * linespec.c (struct linespec_state) <canonical_names>: Update
2936 comment.
2937 (add_sal_to_sals_basic): Delete.
2938 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2939 (decode_line_2, create_sals_line_offset)
2940 (convert_address_location_to_sals, convert_linespec_to_sals)
2941 (convert_explicit_location_to_sals, parse_linespec)
2942 (event_location_to_sals, decode_line_full, decode_line_1)
2943 (decode_line_with_current_source)
2944 (decode_line_with_last_displayed, decode_objc)
2945 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2946 (linespec_result::~linespec_result): Adjust to use std::vector
2947 instead of symtabs_and_lines.
2948 * linespec.h (linespec_sals::sals): Now a std::vector.
2949 (struct linespec_result): Use std::vector, bool, and in-class
2950 initialization.
2951 (decode_line_1, decode_line_with_current_source)
2952 (decode_line_with_last_displayed): Return std::vector.
2953 * macrocmd.c (info_macros_command): Use std::vector.
2954 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2955 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2956 std::vector.
2957 * probe.h (parse_probes): Return a std::vector.
2958 * python/python.c (gdbpy_decode_line): Use std::vector and
2959 gdb::array_view.
2960 * source.c (select_source_symtab, line_info): Use std::vector.
2961 * stack.c (func_command): Use std::vector.
2962 * symtab.h (struct symtabs_and_lines): Delete.
2963 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2964
7c44b49c
PA
29652017-09-04 Pedro Alves <palves@redhat.com>
2966
2967 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2968 unittests/array-view-selftests.c.
2969 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2970 * common/array-view.h: New file.
2971 * unittests/array-view-selftests.c: New file.
2972
e439fa14
PA
29732017-09-04 Pedro Alves <palves@redhat.com>
2974
2975 * cli/cli-cmds.c (edit_command): Pass message to
2976 ambiguous_line_spec.
2977 (list_command): Pass message to ambiguous_line_spec. Say
2978 "first"/"last" instead of "start" and "end" to be consistent with
2979 the manual.
2980 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2981 them to print formatted message.
2982
7525b645
PA
29832017-09-04 Pedro Alves <palves@redhat.com>
2984
2985 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2986 ftrace_update_insns by reference instead of pointer.
2987
badc0020
YQ
29882017-09-04 Yao Qi <yao.qi@linaro.org>
2989
2990 * i386-go32-tdep.c: Include x86-xstate.h.
2991 (i386_go32_init_abi): Call i386_target_description.
2992 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2993 if xcr0 is X86_XSTATE_X87_MASK.
2994 * i386-tdep.h (tdesc_i386): Remove the declaration.
2995 (tdesc_i386_mmx): Likewise.
2996
d78bdb54
YQ
29972017-09-04 Yao Qi <yao.qi@linaro.org>
2998
2999 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
3000 X86_XSTATE_SSE_MASK instead of 0.
3001
ca1fa5ee
YQ
30022017-09-04 Yao Qi <yao.qi@linaro.org>
3003
3004 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
3005 i386_target_description.
3006 * i386-fbsd-nat.c (i386fbsd_read_description): Call
3007 i386_target_description.
3008 * i386-tdep.c (i386_gdbarch_init): Likewise.
3009
2434b019
YQ
30102017-09-04 Yao Qi <yao.qi@linaro.org>
3011
3012 * amd64-darwin-tdep.c: Include "x86-xstate.h".
3013 (x86_darwin_init_abi_64): Call amd64_target_description.
3014 * amd64-dicos-tdep.c: Likewise.
3015 * amd64-fbsd-nat.c: Likewise.
3016 * amd64-fbsd-tdep.c: Likewise.
3017 * amd64-nbsd-tdep.c: Likewise.
3018 * amd64-obsd-tdep.c: Likewise.
3019 * amd64-sol2-tdep.c: Likewise.
3020 * amd64-windows-tdep.c: Likewise.
3021 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
3022
0860c437
SM
30232017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3024
3025 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
3026 (btrace_function) <insn>: Change type to use std::vector.
3027 * btrace.c (ftrace_debug, ftrace_call_num_insn,
3028 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
3029 ftrace_update_insns, ftrace_compute_global_level_offset,
3030 btrace_stitch_bts, btrace_clear, btrace_insn_get,
3031 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
3032 change to std::vector.
3033 (ftrace_update_insns): Adjust to change to std::vector, change
3034 type of INSN parameter.
3035 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
3036 * record-btrace.c (btrace_call_history_insn_range,
3037 btrace_compute_src_line_range,
3038 record_btrace_frame_prev_register): Adjust to change to
3039 std::vector.
3040 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
3041 to change to std::vector.
3042
0638b7f9
TT
30432017-09-03 Tom Tromey <tom@tromey.com>
3044
3045 * corefile.c (reopen_exec_file): Use std::string.
3046
8f84fb0e
TT
30472017-09-03 Tom Tromey <tom@tromey.com>
3048
3049 * compile/compile.c (compile_register_name_mangled): Return
3050 std::string.
3051 * compile/compile-loc2c.c (pushf_register_address): Update.
3052 (pushf_register): Update.
3053 * compile/compile-c-types.c (convert_array): Update.
3054 * compile/compile-c-symbols.c (generate_vla_size): Update.
3055 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
3056 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
3057 (convert_one_symbol): Update.
3058 (generate_c_for_for_one_variable): Update.
3059 * compile/compile-c-support.c (c_get_range_decl_name): Return a
3060 std::string.
3061 (generate_register_struct): Update.
3062 * compile/compile-internal.h (c_get_range_decl_name): Return a
3063 std::string.
3064 (compile_register_name_mangled): Return std::string.
3065
18e9961f
TT
30662017-09-03 Tom Tromey <tom@tromey.com>
3067
3068 * utils.c (perror_string): Return a std::string.
3069 (throw_perror_with_name, perror_warning_with_name): Update.
3070
45343786
TT
30712017-09-03 Tom Tromey <tom@tromey.com>
3072
3073 * demangle.c (demangle_command): Use std::string,
3074 unique_xmalloc_ptr.
3075
b57af503
TT
30762017-09-03 Tom Tromey <tom@tromey.com>
3077
3078 * cli/cli-setshow.c (do_set_command): Use std::string.
3079
6eecf35f
TT
30802017-09-03 Tom Tromey <tom@tromey.com>
3081
3082 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
3083
56496dd4
TT
30842017-09-03 Tom Tromey <tom@tromey.com>
3085
3086 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
3087
e91a1fa7
TT
30882017-09-03 Tom Tromey <tom@tromey.com>
3089
3090 * mi/mi-cmd-env.c (env_execute_cli_command): Use
3091 gdb::unique_xmalloc_ptr.
3092
7ffd83d7
TT
30932017-09-03 Tom Tromey <tom@tromey.com>
3094
3095 * thread.c (print_thread_info_1): Use string_printf.
3096 (thread_apply_command, thread_apply_all_command): Use
3097 std::string.
3098
1ccbe998
TT
30992017-09-03 Tom Tromey <tom@tromey.com>
3100
3101 * valprint.c (val_print_string): Update.
3102 * gdbcore.h (memory_error_message): Return std::string.
3103 * corefile.c (memory_error_message): Return std::string.
3104 (memory_error): Update.
3105 * breakpoint.c (insert_bp_location): Update.
3106
23fdd69e
SM
31072017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3108
3109 * target/waitstatus.h (target_waitstatus_to_string): Change
3110 return type to std::string.
3111 * target/waitstatus.c (target_waitstatus_to_string): Return
3112 std::string.
3113 * target.h (target_waitstatus_to_string): Remove declaration.
3114 * infrun.c (resume, clear_proceed_status_thread,
3115 print_target_wait_results, do_target_wait, save_waitstatus,
3116 stop_all_threads): Adjust.
3117 * record-btrace.c (record_btrace_wait): Adjust.
3118 * target-debug.h
3119 (target_debug_print_struct_target_waitstatus_p): Adjust.
3120
5c811d30
JK
31212017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3122
3123 PR gdb/22046
3124 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
3125 detection.
3126
0a2dde4a
SDJ
31272017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3128
3129 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
3130 for setting/unsetting environment variables on the remote target.
3131 (New remote packets): Add entries for QEnvironmentHexEncoded,
3132 QEnvironmentUnset and QEnvironmentReset.
3133 * common/environ.c (gdb_environ::operator=): Extend method to
3134 handle m_user_set_env_list and m_user_unset_env_list.
3135 (gdb_environ::clear): Likewise.
3136 (match_var_in_string): Change type of first parameter from 'char
3137 *' to 'const char *'.
3138 (gdb_environ::set): Extend method to handle
3139 m_user_set_env_list and m_user_unset_env_list.
3140 (gdb_environ::unset): Likewise.
3141 (gdb_environ::clear_user_set_env): New method.
3142 (gdb_environ::user_set_envp): Likewise.
3143 (gdb_environ::user_unset_envp): Likewise.
3144 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
3145 m_user_unset_env_list on move constructor/assignment.
3146 (unset): Add new default parameter 'update_unset_list = true'.
3147 (clear_user_set_env): New method.
3148 (user_set_envp): Likewise.
3149 (user_unset_envp): Likewise.
3150 (m_user_set_env_list): New std::set.
3151 (m_user_unset_env_list): Likewise.
3152 * common/rsp-low.c (hex2str): New function.
3153 (bin2hex): New overload for bin2hex function.
3154 * common/rsp-low.c (hex2str): New prototype.
3155 (str2hex): New overload prototype.
3156 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
3157 QEnvironmentUnset and QEnvironmentReset.
3158 (remote_protocol_features): Add QEnvironmentHexEncoded,
3159 QEnvironmentUnset and QEnvironmentReset packets.
3160 (send_environment_packet): New function.
3161 (extended_remote_environment_support): Likewise.
3162 (extended_remote_create_inferior): Call
3163 extended_remote_environment_support.
3164 (_initialize_remote): Add QEnvironmentHexEncoded,
3165 QEnvironmentUnset and QEnvironmentReset packet configs.
3166 * unittests/environ-selftests.c (gdb_selftest_env_var):
3167 New variable.
3168 (test_vector_initialization): New function.
3169 (test_init_from_host_environ): Likewise.
3170 (test_reinit_from_host_environ): Likewise.
3171 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
3172 Likewise.
3173 (test_unset_set_empty_vector): Likewise.
3174 (test_vector_clear): Likewise.
3175 (test_std_move): Likewise.
3176 (test_move_constructor):
3177 (test_self_move): Likewise.
3178 (test_set_unset_reset): Likewise.
3179 (run_tests): Rewrite in terms of the functions above.
3180
654670a4
WP
31812017-08-31 Weimin Pan <weimin.pan@oracle.com>
3182
3183 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
3184 (adi_available): Use a temp variable of type CORE_ADDR as argument
3185 3 when calling target_auxv_search.
3186 (adi_normalize_address): Use masks and xor operators to calculate
3187 normalized address.
3188 (adi_read_versions, adi_write_versions, adi_print_versions)
3189 (do_examine, do_assign): Use paddress.
3190
7755ddb7
JB
31912017-08-29 John Baldwin <jhb@FreeBSD.org>
3192
3193 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
3194 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
3195 out of loop and add supply of FIR.
3196 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
3197 add collect of FIR.
3198
fd437cbc
SM
31992017-08-28 Simon Marchi <simon.marchi@ericsson.com>
3200
3804a343 3201 PR gdb/21827
fd437cbc
SM
3202 * cli/cli-script.c (define_command): Don't convert command name
3203 to lower case.
3204
988f6b3d
JB
32052017-08-25 Joel Brobecker <brobecker@adacore.com>
3206
3207 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
3208 Update all callers accordingly. Remove all code blocks handling
3209 the case where DISPP is not NULL.
3210
663c44ac
JK
32112017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3212
3213 PR symtab/22003
3214 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
3215 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3216 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
3217
f1902523
JK
32182017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3219
3220 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
3221 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
3222 (read_comp_units_from_section): New parameter abbrev_section, use
3223 read_and_check_comp_unit_head, allocate signatured_type if needed.
3224 (create_all_comp_units): Update read_comp_units_from_section caller.
3225
87215ad1
SDJ
32262017-08-23 Pedro Alves <palves@redhat.com>
3227
3228 PR remote/21852
3229 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
3230 to null_ptid and switch to thread without reading the registers
3231 after adding the inferior.
3232
6e41ddec
JK
32332017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3234
3235 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
3236 compile-gcc.
3237 * compile/compile.c (compile_gcc, show_compile_gcc): New.
3238 (compile_to_object): Implement compile_gcc.
3239 (_initialize_compile): Install "set compile-gcc". Initialize
3240 compile_gcc.
3241
e68c32d5
JK
32422017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3243
3244 * compile/compile.c (compile_to_object): Conditionally call
3245 set_verbose. Conditionally call compile or compile_v0.
3246
58afddc6
WP
32472017-08-07 Weimin Pan <weimin.pan@oracle.com>
3248
3249 * sparc64-tdep.h: (adi_normalize_address): New export.
3250 * sparc-nat.h: (open_adi_tag_fd): New export.
3251 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
3252 * sparc64-linux-tdep.c:
3253 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
3254 (sparc64_linux_handle_segmentation_fault): New function.
3255 (sparc64_linux_init_abi): Register
3256 sparc64_linux_handle_segmentation_fault
3257 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
3258 (sparc64_addr_bits_remove): New function.
3259 (sparc64_init_abi): Register sparc64_addr_bits_remove.
3260 (MAX_PROC_NAME_SIZE): New macro.
3261 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
3262 (sparc64adilist): New variable.
3263 (adi_proc_list): New variable.
3264 (find_adi_info): New function.
3265 (add_adi_info): New function.
3266 (get_adi_info_proc): New function.
3267 (get_adi_info): New function.
3268 (info_adi_command): New function.
3269 (read_maps_entry): New function.
3270 (adi_available): New function.
3271 (adi_normalize_address): New function.
3272 (adi_align_address): New function.
3273 (adi_convert_byte_count): New function.
3274 (adi_tag_fd): New function.
3275 (adi_is_addr_mapped): New function.
3276 (adi_read_versions): New function.
3277 (adi_write_versions): New function.
3278 (adi_print_versions): New function.
3279 (do_examine): New function.
3280 (do_assign): New function.
3281 (adi_examine_command): New function.
3282 (adi_assign_command): New function.
3283 (_initialize_sparc64_adi_tdep): New function.
3284
11db9430
SM
32852017-08-22 Simon Marchi <simon.marchi@ericsson.com>
3286
3287 * breakpoint.c (breakpoints_info): Rename to ...
3288 (info_breakpoints_command): ... this.
3289 (watchpoints_info): Rename to ...
3290 (info_watchpoints_command): ... this.
3291 (tracepoints_info): Rename to ...
3292 (info_tracepoints_command): ... this.
3293 (_initialize_breakpoint): Adjust.
3294 * dcache.c (dcache_info): Rename to ...
3295 (info_display_command): ... this.
3296 (_initialize_dcache): Adjust.
3297 * frame.h (args_info): Rename to ...
3298 (info_args_command): ... this.
3299 (locals_info): Rename to ...
3300 (info_locals_command): ... this.
3301 * infcmd.c (nofp_registers_info): Rename to ...
3302 (info_registers_command): ... this.
3303 (float_info): Rename to ...
3304 (info_float_command): ... this.
3305 (program_info): Rename to ...
3306 (info_program_command): ... this.
3307 (all_registers_info): Rename to ...
3308 (info_all_registers_command): ... this.
3309 (vector_info): Rename to ...
3310 (info_vector_command): ... this.
3311 (float_info): Rename to ...
3312 (info_float_command): ... this.
3313 (_initialize_infcmd): Adjust.
3314 * inferior.h (term_info): Rename to ...
3315 (info_terminal_command): ... this.
3316 * inflow.c (term_info): Rename to ...
3317 (info_terminal_command): ... this.
3318 (_initialize_inflow): Adjust.
3319 * infrun.c (signals_info): Rename to ...
3320 (info_signals_command): ... this.
3321 (_initialize_infrun): Adjust.
3322 * objc-lang.c (classes_info): Rename to ...
3323 (info_classes_command): ... this.
3324 (selectors_info): Rename to ...
3325 (info_selectors_command): ... this.
3326 (_initialize_objc_language): Adjust.
3327 * printcmd.c (sym_info): Rename to ...
3328 (info_symbol_command): ... this.
3329 (address_info): Rename to ...
3330 (info_address_command): ... this.
3331 (display_info): Rename to ...
3332 (info_display_command): ... this.
3333 (_initialize_printcmd): Adjust.
3334 * reverse.c (bookmarks_info): Rename to ...
3335 (info_breakpoints_command): ... this.
3336 (_initialize_reverse): Adjust.
3337 * ser-go32.c (dos_info): Rename to ...
3338 (info_serial_command): ... this.
3339 (_initialize_ser_dos): Adjust.
3340 * skip.c (skip_info): Rename to ...
3341 (info_skip_command): ... this.
3342 (_initialize_step_skip): Adjust.
3343 * source.c (line_info): Rename to ...
3344 (info_line_command): ... this.
3345 (source_info): Rename to ...
3346 (info_source_command)
3347 * stack.c (frame_info): Rename to ...
3348 (info_frame_command): ... this.
3349 (locals_info): Rename to ...
3350 (info_locals_command): ... this.
3351 (args_info): Rename to ...
3352 (info_args_command): ... this.
3353 (_initialize_stack): Adjust.
3354 * symtab.c (sources_info): Rename to ...
3355 (info_sources_command): ... this.
3356 (variables_info): Rename to ...
3357 (info_variables_command): ... this.
3358 (functions_info): Rename to ...
3359 (info_functions_command): ... this.
3360 (types_info): Rename to ...
3361 (info_types_command): ... this.
3362 (_initialize_symtab): Adjust.
3363 * target.c (target_info): Rename to ...
3364 (info_target_command): ... this.
3365 (initialize_targets): Adjust.
3366 * tracepoint.c (tvariables_info): Rename to ...
3367 (info_tvariables_command): ... this.
3368 (scope_info): Rename to ...
3369 (info_scope_command): ... this.
3370 (trace_dump_actions): Adjust.
3371 (_initialize_tracepoint): Adjust.
3372
b270e6f9
TT
33732017-08-22 Tom Tromey <tom@tromey.com>
3374
3375 * breakpoint.h (install_breakpoint): Update.
3376 * breakpoint.c (add_solib_catchpoint): Update.
3377 (install_breakpoint): Change argument to a std::unique_ptr.
3378 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
3379 (create_breakpoint_sal, create_breakpoint): Update.
3380 (watch_command_1, catch_exec_command_1)
3381 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
3382 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
3383 Return the breakpoint.
3384 (set_raw_breakpoint_without_location, set_raw_breakpoint)
3385 (new_single_step_breakpoint): Update.
3386 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
3387 std::unique_ptr.
3388 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3389 std::unique_ptr.
3390 * break-catch-sig.c (create_signal_catchpoint): Use
3391 std::unique_ptr.
3392 * ada-lang.c (create_ada_exception_catchpoint): Use
3393 std::unique_ptr.
3394
36bd8eaa
TT
33952017-08-22 Tom Tromey <tom@tromey.com>
3396
3397 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
3398
56f37645
TT
33992017-08-22 Tom Tromey <tom@tromey.com>
3400
3401 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
3402 (lookup_partial_symbol): Update.
3403
0b581c69
TT
34042017-08-22 Tom Tromey <tom@tromey.com>
3405
3406 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
3407 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
3408 (find_and_open_source, symtab_to_fullname): Update.
3409 * psymtab.c (psymtab_to_fullname): Update.
3410
14278e1f
TT
34112017-08-22 Tom Tromey <tom@tromey.com>
3412
3413 * exec.c (exec_file_attach): Update.
3414 * linux-thread-db.c (try_thread_db_load): Update.
3415 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
3416 * utils.c (gdb_realpath): Change return type.
3417 (gdb_realpath_keepfile): Update.
3418 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
3419 (_initialize_utils): Register the new self test.
3420 * source.c (openp): Update.
3421 (find_and_open_source): Update.
3422 * nto-tdep.c (nto_find_and_open_solib): Update.
3423 * main.c (set_gdb_data_directory): Update.
3424 (captured_main_1): Update.
3425 * dwarf2read.c (dwarf2_get_dwz_file): Update
3426 (dw2_map_symbol_filenames): Update.
3427 * auto-load.c (auto_load_safe_path_vec_update): Update.
3428 (filename_is_in_auto_load_safe_path_vec): Change type of
3429 "filename_realp".
3430 (auto_load_objfile_script): Update.
3431 (file_is_auto_load_safe): Update. Use std::string.
3432 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3433
4971c9a7
TT
34342017-08-22 Tom Tromey <tom@tromey.com>
3435
3436 * utils.c (gdb_realpath_keepfile): Return a
3437 gdb::unique_xmalloc_ptr.
3438 * exec.c (exec_file_attach): Update.
3439 * utils.h (gdb_realpath_keepfile): Return a
3440 gdb::unique_xmalloc_ptr.
3441
e3e41d58
TT
34422017-08-22 Tom Tromey <tom@tromey.com>
3443
3444 * compile/compile.c (compile_file_command): Use
3445 gdb::unique_xmalloc_ptr, std::string.
3446 * utils.c (gdb_abspath): Change return type.
3447 * source.c (openp): Update.
3448 * objfiles.c (allocate_objfile): Update.
3449 * main.c (set_gdb_data_directory): Update.
3450 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3451
0d999a6e
ZZ
34522017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3453
3454 * cli-cmds.c (list_commands): List actual code around more than
3455 one location.
3456
329d5e7e
JB
34572017-08-21 John Baldwin <jhb@FreeBSD.org>
3458
3459 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3460
bf223d3e
PA
34612017-08-21 Pedro Alves <palves@redhat.com>
3462
3463 PR gdb/19487
3464 * c-exp.y (variable production): Handle function aliases.
3465 * minsyms.c (msymbol_is_text): New function.
3466 * minsyms.h (msymbol_is_text): Declare.
3467 * symtab.c (find_function_alias_target): New function.
3468 * symtab.h (find_function_alias_target): Declare.
3469
c973d0aa
PA
34702017-08-21 Pedro Alves <palves@redhat.com>
3471
3472 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3473 typedefs.
3474 * typeprint.c (whatis_exp): If handling "whatis", and expression
3475 is OP_TYPE, strip one typedef level. Otherwise don't strip
3476 typedefs here.
3477 * valops.c (value_cast): Save "to" type before resolving
3478 stubs/typedefs. Use that type as resulting value's type.
3479
2989a365
TT
34802017-08-18 Tom Tromey <tom@tromey.com>
3481 Pedro Alves <palves@redhat.com>
3482
3483 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3484 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3485 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3486 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3487 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3488 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3489 (linux_get_siginfo_data): Add "thread" argument. Use
3490 scoped_restore.
3491 * linux-nat.c (linux_child_follow_fork)
3492 (check_stopped_by_watchpoint): Use scoped_restore.
3493 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3494 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3495 (restore_inferior_ptid, save_inferior_ptid): Remove.
3496 * btrace.c (btrace_fetch): Use scoped_restore.
3497 * bsd-uthread.c (bsd_uthread_fetch_registers)
3498 (bsd_uthread_store_registers): Use scoped_restore.
3499 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3500 scoped_restore.
3501 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3502 (aix_thread_xfer_partial): Use scoped_restore.
3503 * inferior.h (save_inferior_ptid): Remove.
3504
e60eb288
YQ
35052017-08-18 Yao Qi <yao.qi@linaro.org>
3506
3507 PR tdep/21818
3508 * arm-tdep.c (gdb_print_insn_arm): Mark
3509 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3510
6d580b63
YQ
35112017-08-18 Yao Qi <yao.qi@linaro.org>
3512
3513 * NEWS: Mention GDBserver's new option "--selftest".
3514 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3515 * selftest.c: Move it to common/selftest.c.
3516 * selftest.h: Move it to common/selftest.h.
3517 * selftest-arch.c (reset): New function.
3518 (tests_with_arch): Call reset.
3519
86dcbf50
YQ
35202017-08-18 Yao Qi <yao.qi@linaro.org>
3521
3522 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3523 instead of exception_fprintf and printf_filtered.
3524
7649770c
YQ
35252017-08-18 Yao Qi <yao.qi@linaro.org>
3526
3527 * selftest.c (register_self_test): Rename it to
3528 selftests::register_test.
3529 (run_self_tests): selftest::run_tests.
3530 * selftest.h: Update declarations.
3531 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3532 selftests::register_test_foreach_arch.
3533 * selftest-arch.h: Update declaration.
3534 * aarch64-tdep.c: Update.
3535 * arm-tdep.c: Likewise.
3536 * disasm-selftests.c: Likewise.
3537 * dwarf2loc.c: Likewise.
3538 * dwarf2-frame.c: Likewise.
3539 * findvar.c: Likewise.
3540 * gdbarch-selftests.c: Likewise.
3541 * maint.c (maintenance_selftest): Likewise.
3542 * regcache.c: Likewise.
3543 * rust-exp.y: Likewise.
3544 * selftest-arch.c: Likewise.
3545 * unittests/environ-selftests.c: Likewise.
3546 * unittests/function-view-selftests.c: Likewise.
3547 * unittests/offset-type-selftests.c: Likewise.
3548 * unittests/optional-selftests.c: Likewise.
3549 * unittests/scoped_restore-selftests.c: Likewise.
3550 * utils-selftests.c: Likewise.
3551
b0cba12e
PA
35522017-08-17 Pedro Alves <palves@redhat.com>
3553
3554 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3555 local.
3556
4c8aa72d
PA
35572017-08-17 Pedro Alves <palves@redhat.com>
3558
3559 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3560 field.
3561 (reset_die_in_process): Delete, replaced by ...
3562 (process_die_scope): ... this new class. Make it responsible for
3563 freeing cu->line_header too.
3564 (process_die): Use process_die_scope.
3565 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3566 cu->line_header_die_owner. Don't release the line header if it's
3567 owned by the CU.
3568 (setup_type_unit_groups): Make the CU/DIE own the line header.
3569 Don't release the line header here.
3570
ba713918
AL
35712017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3572
3573 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3574
44d0fb3a
RK
35752017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3576
3577 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3578 Single-Key mode
3579
a5afdb16
RK
35802017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3581
3582 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3583 mode command list.
3584
47613aeb
SH
35852017-08-15 Stafford Horne <shorne@gmail.com>
3586
3587 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3588
9c3cc999
SH
35892017-08-15 Stafford Horne <shorne@gmail.com>
3590
3591 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3592
206726fb
SDJ
35932017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3594
3595 PR gdb/21954
3596 * infcmd.c (unset_environment_command): Use the 'clear' method on
3597 the environment instead of resetting it.
3598
0335ac6d
JB
35992017-08-15 John Baldwin <jhb@FreeBSD.org>
3600
3601 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3602 platforms.
3603
d3abe1c8
TT
36042017-08-14 Tom Tromey <tom@tromey.com>
3605
3606 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3607 (print_binary_chars): Likewise.
3608 (BITS_IN_BYTES): Remove.
3609
d6382fff
TT
36102017-08-14 Tom Tromey <tom@tromey.com>
3611
3612 PR gdb/21675
3613 * valprint.c (LOW_ZERO): Change value to 034.
3614 (print_octal_chars): Add static_asserts for octal constants.
3615 * printcmd.c (print_scalar_formatted): Add 'd' case.
3616
f978cb06
TT
36172017-08-11 Tom Tromey <tom@tromey.com>
3618
3619 * symfile.c (add_symbol_file_command): Use std::vector.
3620
2f5404b3
TT
36212017-08-14 Tom Tromey <tom@tromey.com>
3622
3623 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3624 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3625 std::move.
3626 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3627
de7985c3
PA
36282017-08-11 Pedro Alves <palves@redhat.com>
3629
3630 * infrun.c (process_event_stop_test): Adjust
3631 function_name_is_marked_for_skip call.
3632 * skip.c: Include <list>.
3633 (skiplist_entry): Make it a class with private fields, and
3634 getters/setters.
3635 (skiplist_entry_chain): Delete.
3636 (skiplist_entries): New.
3637 (skiplist_entry_count): Delete.
3638 (highest_skiplist_entry_num): New.
3639 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3640 (add_skiplist_entry): Delete.
3641 (skiplist_entry::skiplist_entry): New.
3642 (skiplist_entry::add_entry): New.
3643 (skip_file_command, skip_function): Adjust.
3644 (compile_skip_regexp): Delete.
3645 (skip_command): Don't compile regexp here. Adjust to use
3646 skiplist_entry::add_entry.
3647 (skip_info): Adjust to use range-for and getters.
3648 (skip_enable_command, skip_disable_command): Adjust to use
3649 range-for and setters.
3650 (skip_delete_command): Adjust to use std::list.
3651 (add_skiplist_entry): Delete.
3652 (skip_file_p): Delete, refactored as ...
3653 (skiplist_entry::do_skip_file_p): ... this new method.
3654 (skip_gfile_p): Delete, refactored as ...
3655 (skiplist_entry::do_gskip_file_p): ... this new method.
3656 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3657 (skiplist_entry::skip_function_p): ... this new method.
3658 (function_name_is_marked_for_skip): Now returns bool, and takes
3659 the function sal by const reference. Adjust to use range-for and
3660 skiplist_entry methods.
3661 (_initialize_step_skip): Remove references to
3662 skiplist_entry_chain, skiplist_entry_count.
3663 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3664 takes the function sal by const reference.
3665
be7d3cd5
YQ
36662017-08-11 Yao Qi <yao.qi@linaro.org>
3667
3668 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3669 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3670 (dwarf2_frame_cache):
3671 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3672 RETURN_MASK_ALL and set *this_case to NULL.
3673 * frame-unwind.h: Update comments.
3674
1c90d9f0
YQ
36752017-08-11 Yao Qi <yao.qi@linaro.org>
3676
3677 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3678 (dwarf2_frame_state_copy_regs): Remove.
3679 (dwarf2_frame_state_free_regs): Remove.
3680 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3681 (dwarf2_restore_rule): Call method .alloc_regs instead of
3682 dwarf2_frame_state_alloc_regs.
3683 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3684 constructor. Call std::move.
3685 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3686 (dwarf2_frame_cache): Likewise.
3687
3688 [GDB_SELF_TEST]: Include selftest.h and
3689 selftest-arch.h.
3690 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3691 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3692 execute_cfa_program_test.
3693
3694 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3695 copy ctor, assignment operator, move assignment.
3696 <alloc_regs>: New method.
3697 <swap>: New method.
3698 (struct dwarf2_frame_state): Delete dtor.
3699 (dwarf2_frame_state_alloc_regs): Remove declaration.
3700 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3701 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3702
afe37d6b
YQ
37032017-08-11 Yao Qi <yao.qi@linaro.org>
3704
3705 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3706 (dwarf2_frame_state::dwarf2_frame_state): New.
3707 (dwarf2_frame_state::~dwarf2_frame_state): New.
3708 (dwarf2_fetch_cfa_info): Update.
3709 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3710 rather than a pointer. Update code.
3711 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3712 dtor.
3713 <data_align, code_align, retaddr_column>: Change them to const.
3714 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3715 to bool.
3716
b348037f
YQ
37172017-08-11 Yao Qi <yao.qi@linaro.org>
3718
3719 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3720 <loc.exp>: New field.
3721 * dwarf2-frame.c (execute_cfa_program): Update.
3722 (dwarf2_frame_prev_register): Update.
3723
e7c9de26
PA
37242017-08-10 Pedro Alves <palves@redhat.com>
3725
3726 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3727
e8c6b620
JB
37282017-08-09 John Baldwin <jhb@FreeBSD.org>
3729
3730 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3731 (fbsd_pending_children): Use std::list.
3732 (fbsd_remember_child): Likewise.
3733 (fbsd_is_child_pending): Likewise.
3734 (fbsd_pending_vfork_done): Use std::forward_list.
3735 (fbsd_add_vfork_done): Likewise.
3736 (fbsd_is_vfork_done_pending): Likewise.
3737 (fbsd_next_vfork_done): Likewise.
3738
e4a26669
JB
37392017-08-09 John Baldwin <jhb@FreeBSD.org>
3740
3741 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3742 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3743 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3744 for `mapfilename'.
3745 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 3746 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 3747
142311d3
JB
37482017-08-09 John Baldwin <jhb@FreeBSD.org>
3749
3750 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3751 "filestuff.h".
3752 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3753
42fa2e0e
TT
37542017-08-09 Tom Tromey <tom@tromey.com>
3755
3756 * skip.c (skiplist_entry): New constructor.
3757 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3758 (skiplist_entry::file_is_glob): Now bool.
3759 (skiplist_entry::file, skiplist_entry::function): Now
3760 std::string.
3761 (make_skip_entry): Return a unique_ptr. Use new.
3762 (free_skiplist_entry, free_skiplist_entry_cleanup)
3763 (make_free_skiplist_entry_cleanup): Remove.
3764 (skip_command, skip_disable_command, add_skiplist_entry)
3765 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3766 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3767 (function_name_is_marked_for_skip): Update.
3768 (skip_delete_command): Update. Use delete.
3769
cd3af38d
JW
37702017-08-09 Jiong Wang <jiong.wang@arm.com>
3771
3772 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3773 (aarch64_linux_core_read_description): New function.
3774 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3775
29592bde
PA
37762017-08-09 Pedro Alves <palves@redhat.com>
3777
3778 * cp-name-parser.y (cp_comp_to_string): Return a
3779 gdb::unique_xmalloc_ptr<char>.
3780 * cp-support.c (replace_typedefs_qualified_name)
3781 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3782 (cp_canonicalize_string_full): Use op= instead of explicit
3783 convertion.
3784 (cp_class_name_from_physname, method_name_from_physname)
3785 (cp_func_name, cp_remove_params): Adjust to use
3786 gdb::unique_xmalloc_ptr<char>.
3787 * cp-support.h (cp_comp_to_string): Return a
3788 gdb::unique_xmalloc_ptr<char>.
3789 * python/py-type.c (typy_lookup_type): Adjust to use
3790 gdb::unique_xmalloc_ptr<char>.
3791
b3340438
L
37922017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3793
3794 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3795
e88e8651
YQ
37962017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3797 Yao Qi <yao.qi@linaro.org>
3798
3799 * cp-support.c (cp_canonicalize_string_full): Use
3800 gdb::unique_xmalloc_ptr<char>.
3801 (cp_canonicalize_string): Likewise.
3802
f5a29eb0
YQ
38032017-08-09 Yao Qi <yao.qi@linaro.org>
3804
3805 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3806 * regformats/i386/amd64-avx-avx512.dat: Remove.
3807 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3808 * regformats/i386/amd64-avx-mpx.dat:Remove.
3809 * regformats/i386/amd64-avx.dat: Remove.
3810 * regformats/i386/amd64-mpx.dat: Remove.
3811 * regformats/i386/i386-avx-avx512.dat: Remove.
3812 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3813 * regformats/i386/i386-avx-mpx.dat: Remove.
3814 * regformats/i386/i386-mmx.dat: Remove.
3815 * regformats/i386/i386-mpx.dat: Remove.
3816
57757c2f
YQ
38172017-08-09 Yao Qi <yao.qi@linaro.org>
3818
3819 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3820 * amd64-tdep.c: Don't include features/i386/x32*.c.
3821 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3822 functions.
3823 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3824 and i386/x32-avx-avx512.
3825 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3826 and i386/x32.xml.
3827 * features/i386/x32-avx-avx512.c: Removed.
3828 * features/i386/x32-avx-avx512.xml: Removed.
3829 * features/i386/x32-avx.c: Removed.
3830 * features/i386/x32-avx.xml: Removed.
3831 * features/i386/x32.c: Removed.
3832 * features/i386/x32.xml: Removed.
3833 * regformats/i386/x32-avx-avx512.dat: Removed.
3834 * regformats/i386/x32-avx.dat: Removed.
3835 * regformats/i386/x32.dat: Removed.
3836
ba7b109b
MR
38372017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3838
3839 PR breakpoints/21886
3840 * mem-break.c (default_memory_insert_breakpoint): Use
3841 `->placed_address' rather than `->reqstd_address' for the
3842 breakpoint location.
3843
e347efc3
MR
38442017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3845
3846 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3847 assertions.
3848
0dba2a6c
MR
38492017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3850
3851 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3852 a union of `tdep_info', `tdesc_data' and `id'.
3853 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3854 rather than `info.tdep_info'.
3855 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3856 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3857 * i386-tdep.c (i386_gdbarch_init): Likewise.
3858 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3859 * mips-tdep.c (mips_gdbarch_init): Likewise.
3860 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3861 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3862 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3863 `info.tdep_info'.
3864 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3865 `info.tdep_info'.
3866 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3867 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3868 `info.tdep_info'.
3869 * spu-tdep.c (spu_gdbarch_init): Likewise.
3870 * gdbarch.h: Regenerate.
3871
16eb6b2d
LS
38722017-08-07 Leszek Swirski <leszeks@google.com>
3873
7b005726 3874 PR symtab/20899
16eb6b2d
LS
3875 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3876
74cbb09e
SM
38772017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3878
3879 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3880 (gdbsim_open): Rename gdb_argv args object to argv.
3881
ee0c3293
TT
38822017-08-05 Tom Tromey <tom@tromey.com>
3883
3884 * compile/compile-object-load.c (compile_object_load): Use
3885 gdb::unique_xmalloc_ptr.
3886 * cli/cli-dump.c (scan_filename): Rename from
3887 scan_filename_with_cleanup. Change return type.
3888 (scan_expression): Rename from scan_expression_with_cleanup.
3889 Change return type.
3890 (dump_memory_to_file, dump_value_to_file, restore_command):
3891 Use gdb::unique_xmalloc_ptr. Update.
3892 * cli/cli-cmds.c (find_and_open_script): Use
3893 gdb::unique_xmalloc_ptr.
3894 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3895 * symmisc.c (maintenance_print_symbols)
3896 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3897 * symfile.c (symfile_bfd_open, generic_load)
3898 (add_symbol_file_command, remove_symbol_file_command): Use
3899 gdb::unique_xmalloc_ptr.
3900 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3901 * psymtab.c (maintenance_print_psymbols): Use
3902 gdb::unique_xmalloc_ptr.
3903 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3904 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3905 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3906 (reload_shared_libraries_1): Likewise.
3907
3232fabd
TT
39082017-08-05 Tom Tromey <tom@tromey.com>
3909
3910 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3911 (rust_op_vector, rust_set_vector): New typedefs.
3912 (current_parser): New global.
3913 (work_obstack): Change to pointer type. Update all users.
3914 (rust_ast, pstate): Remove globals.
3915 (struct rust_parser): New.
3916 (%union) <params, field_inits>: Change type.
3917 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3918 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3919 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3920 (convert_params_to_types, convert_params_to_expression): Change
3921 type of "params".
3922 (ast_string): Change type of "fields".
3923 (rust_parse): Make a rust_parser. Remove cleanups.
3924 (rust_lex_tests): Make and install an auto_obstack.
3925
f02fd774
YQ
39262017-08-04 Yao Qi <yao.qi@linaro.org>
3927
3928 * configure.srv (ipa_x32_linux_regobj): New.
3929 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3930 instead of X86_TDESC_AVX512.
3931 (initialize_low_tracepoint): Call
3932 init_registers_x32_avx_avx512_linux.
3933
91975afd
YQ
39342017-08-04 Yao Qi <yao.qi@linaro.org>
3935
3936 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3937
2331fa3a
RK
39382017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3939
3940 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3941
744e4fe1
TT
39422017-08-03 Tom Tromey <tom@tromey.com>
3943
3944 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3945 Remove.
3946 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3947
1c034b67
TT
39482017-08-03 Tom Tromey <tom@tromey.com>
3949
3950 * python/py-param.c (compute_enum_values): Use gdb_argv.
3951
773a1edc
TT
39522017-08-03 Tom Tromey <tom@tromey.com>
3953
3954 * utils.h (struct gdb_argv_deleter): New.
3955 (gdb_argv): New class.
3956 * utils.c (gdb_argv::reset): New method.
3957 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3958 * tracefile.c (tsave_command): Use gdb_argv.
3959 * top.c (new_ui_command): Use gdb_argv.
3960 * symmisc.c (maintenance_print_symbols)
3961 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3962 * symfile.c (symbol_file_command, generic_load)
3963 (remove_symbol_file_command): Use gdb_argv.
3964 * stack.c (backtrace_command): Use gdb_argv.
3965 * source.c (add_path, show_substitute_path_command)
3966 (unset_substitute_path_command, set_substitute_path_command):
3967 Use gdb_argv.
3968 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3969 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3970 * remote.c (extended_remote_run, remote_put_command)
3971 (remote_get_command, remote_delete_command): Use gdb_argv.
3972 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3973 (gdbsim_open): Use gdb_argv.
3974 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3975 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3976 * procfs.c (procfs_info_proc): Use gdb_argv.
3977 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3978 * infrun.c (handle_command): Use gdb_argv.
3979 * inferior.c (add_inferior_command, clone_inferior_command):
3980 Use gdb_argv.
3981 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3982 * exec.c (exec_file_command): Use gdb_argv.
3983 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3984 * compile/compile.c (build_argc_argv): Use gdb_argv.
3985
0d50bde3
TT
39862017-08-03 Tom Tromey <tom@tromey.com>
3987
3988 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3989
7f968c89
TT
39902017-08-03 Tom Tromey <tom@tromey.com>
3991
3992 * python/python.c (compute_python_string): Return std::string.
3993 (gdbpy_eval_from_control_command): Update.
3994 (do_start_initialization): Use std::string.
3995 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3996 xstrprintf.
3997 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3998 xstrprintf.
3999
3c9ebddd
TT
40002017-08-03 Tom Tromey <tom@tromey.com>
4001
4002 * top.h (do_restore_instream_cleanup): Remove.
4003 * top.c (do_restore_instream_cleanup): Remove.
4004 (read_command_file): Use scoped_restore.
4005 * cli/cli-script.c (execute_user_command): Use scoped_restore.
4006
b51b225e
TT
40072017-08-03 Tom Tromey <tom@tromey.com>
4008
4009 * cli/cli-script.c (execute_user_command)
4010 (execute_control_command): Use scoped_restore.
4011
ac991630
TT
40122017-08-03 Tom Tromey <tom@tromey.com>
4013
4014 * cli/cli-script.c (do_restore_user_call_depth): Remove.
4015 (execute_user_command): Remove user_call_depth; use
4016 user_args_stack's size instead.
4017
898e0c8e
TT
40182017-08-03 Tom Tromey <tom@tromey.com>
4019
4020 * top.h (in_user_command): Remove.
4021 * top.c (in_user_command): Remove.
4022 * cli/cli-script.c (do_restore_user_call_depth)
4023 (execute_user_command): Update.
4024
26fcd5d7
TT
40252017-08-03 Tom Tromey <tom@tromey.com>
4026
4027 * valops.c (search_struct_method): Use gdb::byte_vector.
4028 * valarith.c (value_concat): Use std::vector.
4029 * target.c (memory_xfer_partial): Use gdb::byte_vector.
4030 (simple_search_memory): Likewise.
4031 * printcmd.c (find_string_backward): Use gdb::byte_vector.
4032 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
4033 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
4034 * elfread.c (elf_rel_plt_read): Use std::string.
4035 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
4036 * cli/cli-dump.c (restore_section_callback): Use
4037 gdb::byte_vector.
4038
7c218e6c
TT
40392017-08-03 Tom Tromey <tom@tromey.com>
4040
4041 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
4042
31b68d4a
TT
40432017-08-03 Tom Tromey <tom@tromey.com>
4044
4045 * tui/tui-regs.c (tui_restore_gdbout): Remove.
4046 (tui_register_format): Use scoped_restore.
4047
2ec845e7
TT
40482017-08-03 Tom Tromey <tom@tromey.com>
4049
4050 * reverse.c (exec_direction_default): Remove.
4051 (exec_reverse_once): Use scoped_restore.
4052 * remote.c (restore_remote_timeout): Remove.
4053 (remote_flash_erase, remote_flash_write, remote_flash_done)
4054 (readchar, remote_serial_write): Use scoped_restore.
4055 * cli/cli-script.c (struct source_cleanup_lines_args)
4056 (source_cleanup_lines): Remove.
4057 (script_from_file): Use scoped_restore.
4058 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
4059 (source_command): Use scoped_restore.
4060
b3bc8453
TT
40612017-08-03 Tom Tromey <tom@tromey.com>
4062
4063 * utils.h (make_cleanup_free_so): Remove.
4064 * utils.c (do_free_so, make_cleanup_free_so): Remove.
4065 * solist.h (struct so_deleter): New.
4066 (so_list_up): New typedef.
4067 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
4068
e3ad2841
TT
40692017-08-03 Tom Tromey <tom@tromey.com>
4070
4071 * utils.h (make_cleanup_restore_current_language): Remove.
4072 * utils.c (do_restore_current_language)
4073 (make_cleanup_restore_current_language): Remove.
4074 * parse.c (parse_exp_in_context_1)
4075 (parse_expression_with_language): Use
4076 scoped_restore_current_language.
4077 * mi/mi-main.c (mi_cmd_execute): Use
4078 scoped_restore_current_language.
4079 * language.h (scoped_restore_current_language): New class.
4080
b80cf838
TT
40812017-08-03 Tom Tromey <tom@tromey.com>
4082
4083 * compile/compile.c (cleanup_unlink_file): Remove.
4084 (compile_to_object): Use gdb::unlinker.
4085 (eval_compile_command): Likewise.
4086
fad0444a
TT
40872017-08-03 Tom Tromey <tom@tromey.com>
4088
4089 * utils.h (make_cleanup_fclose): Remove.
4090 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
4091
6e7bc05c
TT
40922017-08-03 Tom Tromey <tom@tromey.com>
4093
4094 * top.c (open_terminal_stream): Return gdb_file_up.
4095 (new_ui_command): Update.
4096
4a45905b
TT
40972017-08-03 Tom Tromey <tom@tromey.com>
4098
4099 * source.c (print_source_lines_base, forward_search_command)
4100 (reverse_search_command): Use gdb_file_up.
4101
7cd06d6e
TT
41022017-08-03 Tom Tromey <tom@tromey.com>
4103
4104 * fbsd-nat.c (fbsd_find_memory_regions): Update.
4105
ed166945
TT
41062017-08-03 Tom Tromey <tom@tromey.com>
4107
4108 * cli/cli-cmds.c (find_and_open_script): Change return type.
4109 Remove "streamp" and "full_path" parameters.
4110 (source_script_with_search): Update.
4111 * auto-load.c (source_script_file): Update.
4112 * cli/cli-cmds.h (find_and_open_script): Change type.
4113 (open_script): New struct.
4114
d419f42d
TT
41152017-08-03 Tom Tromey <tom@tromey.com>
4116
4117 * xml-support.c (xml_fetch_content_from_file): Update.
4118 * ui-file.c (stdio_file::open): Update.
4119 * tracefile-tfile.c (tfile_start): Update.
4120 * remote.c (remote_file_put, remote_file_get): Update.
4121 * nat/linux-procfs.c (linux_proc_get_int)
4122 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
4123 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
4124 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
4125 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4126 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
4127 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
4128 * linux-nat.c (linux_proc_pending_signals): Update.
4129 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
4130 (file_closer): Remove.
4131 * compile/compile.c (compile_to_object): Update.
4132 * common/filestuff.h (struct gdb_file_deleter): New.
4133 (gdb_file_up): New typedef.
4134 (gdb_fopen_cloexec): Change return type.
4135 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
4136 * cli/cli-dump.c (fopen_with_cleanup): Remove.
4137 (dump_binary_file, restore_binary_file): Update.
4138 * auto-load.c (auto_load_objfile_script_1): Update.
4139
4a2b031d
TT
41402017-08-03 Tom Tromey <tom@tromey.com>
4141
4142 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
4143 (info_static_tracepoint_markers_command): Likewise.
4144 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
4145 * skip.c (skip_info): Use ui_out_emit_table.
4146 * progspace.c (print_program_space): Use ui_out_emit_table.
4147 * osdata.c (info_osdata): Use ui_out_emit_table.
4148 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
4149 ui_out_emit_table.
4150 * linux-thread-db.c (info_auto_load_libthread_db): Use
4151 ui_out_emit_table.
4152 * inferior.c (print_inferior): Use ui_out_emit_table.
4153 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
4154 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
4155 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
4156 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
4157 * ui-out.h (class ui_out_emit_table): New.
4158
a4f320fd
MR
41592017-08-02 Maciej W. Rozycki <macro@imgtec.com>
4160
4161 * mips-tdep.c (mips_fpu_type_str): New function.
4162 (mips_dump_tdep): Call it.
4163
a2f1f308
MR
41642017-08-01 Maciej W. Rozycki <macro@imgtec.com>
4165
4166 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
4167 `->mips_fpu_type'.
4168
7e5ed83b
XR
41692017-07-31 Xavier Roirand <roirand@adacore.com>
4170
4171 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4172
4c9dc811
XR
41732017-07-27 Xavier Roirand <roirand@adacore.com>
4174
4175 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
4176
27d41eac
YQ
41772017-07-26 Yao Qi <yao.qi@linaro.org>
4178
4179 * cli/cli-cmds.c (maintenancechecklist): New variable.
4180 * gdbcmd.h (maintenancechecklist): Declare it.
4181 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
4182 Call i386_linux_read_description with different masks.
4183 * maint.c (maintenance_check_command): New function.
4184 (_initialize_maint_cmds): Call add_prefix_cmd.
4185 * target-descriptions.c (tdesc_reg): override operator != and ==.
4186 (tdesc_type): Likewise.
4187 (tdesc_feature): Likewise.
4188 (target_desc): Likewise.
4189 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
4190 (maintenance_check_xml_descriptions): New function.
4191 (_initialize_target_descriptions) Add command "xml-descriptions".
4192 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
4193
ea03d0d3
YQ
41942017-07-26 Yao Qi <yao.qi@linaro.org>
4195
4196 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
4197 Include features/i386/32bit-*.c.
4198 (i386_linux_read_description): Generate target description if it
4199 doesn't exist.
4200 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
4201 functions.
4202 * features/i386/32bit-linux.c: Re-generated.
4203 * features/i386/32bit-sse.c: Likewise.
4204 * target-descriptions.c (print_c_feature::visit): Print code to
4205 set register number if needed.
4206 (print_c_feature) <m_next_regnum>: New field.
4207
25aa13e5
YQ
42082017-07-26 Yao Qi <yao.qi@linaro.org>
4209
4210 * features/Makefile (CFILES): Rename with TDESC_CFILES.
4211 (FEATURE_XMLFILES): New.
4212 (FEATURE_CFILES): New.
4213 New rules.
4214 (clean-cfiles): Remove generated c files.
4215 * features/i386/32bit-avx.c: Generated.
4216 * features/i386/32bit-avx512.c: Generated.
4217 * features/i386/32bit-core.c: Generated.
4218 * features/i386/32bit-linux.c: Generated.
4219 * features/i386/32bit-mpx.c: Generated.
4220 * features/i386/32bit-pkeys.c: Generated.
4221 * features/i386/32bit-sse.c: Generated.
4222 * target-descriptions.c: Include algorithm.
4223 (tdesc_element_visitor): Add method visit_end.
4224 (print_c_tdesc): Implement visit_end.
4225 (print_c_tdesc:: m_filename_after_features): Move it to
4226 protected.
4227 (print_c_feature): New class.
4228 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
4229 name starts with "i386/32bit-".
4230
6eb1e6a8
YQ
42312017-07-26 Yao Qi <yao.qi@linaro.org>
4232
4233 * target-descriptions.c (tdesc_element_visitor): New class.
4234 (tdesc_element): New class.
4235 (tdesc_reg): Inherit from tdesc_element.
4236 (tdesc_reg::accept): New function.
4237 (tdesc_type): Inherit from tdesc_element.
4238 (tdesc_type::accept): New function.
4239 (tdesc_feature): Inherit from tdesc_element.
4240 (tdesc_feature::accept): New function.
4241 (target_desc): Inherit from tdesc_element.
4242 (target_desc::target_desc): New.
4243 (target_desc::~target_desc): New.
4244 (target_desc::accept): New.
4245 (allocate_target_description): Use new.
4246 (free_target_description): Use delete.
4247 (print_c_tdesc): New class.
4248 (maint_print_c_tdesc_cmd): Adjust.
4249
4250 * features/aarch64.c: Re-generated.
4251 * features/arc-arcompact.c: Re-generated.
4252 * features/arc-v2.c: Re-generated.
4253 * features/arm/arm-with-iwmmxt.c: Re-generated.
4254 * features/arm/arm-with-m.c: Re-generated.
4255 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
4256 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
4257 * features/arm/arm-with-neon.c: Re-generated.
4258 * features/arm/arm-with-vfpv2.c: Re-generated.
4259 * features/arm/arm-with-vfpv3.c: Re-generated.
4260 * features/i386/amd64-avx-avx512.c: Re-generated.
4261 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4262 * features/i386/amd64-avx.c: Re-generated.
4263 * features/i386/amd64-avx-linux.c: Re-generated.
4264 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
4265 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4266 * features/i386/amd64-avx-mpx.c: Re-generated.
4267 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
4268 * features/i386/amd64.c: Re-generated.
4269 * features/i386/amd64-linux.c: Re-generated.
4270 * features/i386/amd64-mpx.c: Re-generated.
4271 * features/i386/amd64-mpx-linux.c: Re-generated.
4272 * features/i386/i386-avx-avx512.c: Re-generated.
4273 * features/i386/i386-avx-avx512-linux.c: Re-generated.
4274 * features/i386/i386-avx.c: Re-generated.
4275 * features/i386/i386-avx-linux.c: Re-generated.
4276 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
4277 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
4278 * features/i386/i386-avx-mpx.c: Re-generated.
4279 * features/i386/i386-avx-mpx-linux.c: Re-generated.
4280 * features/i386/i386.c: Re-generated.
4281 * features/i386/i386-linux.c: Re-generated.
4282 * features/i386/i386-mmx.c: Re-generated.
4283 * features/i386/i386-mmx-linux.c: Re-generated.
4284 * features/i386/i386-mpx.c: Re-generated.
4285 * features/i386/i386-mpx-linux.c: Re-generated.
4286 * features/i386/x32-avx-avx512.c: Re-generated.
4287 * features/i386/x32-avx-avx512-linux.c: Re-generated.
4288 * features/i386/x32-avx.c: Re-generated.
4289 * features/i386/x32-avx-linux.c: Re-generated.
4290 * features/i386/x32.c: Re-generated.
4291 * features/i386/x32-linux.c: Re-generated.
4292 * features/microblaze.c: Re-generated.
4293 * features/microblaze-with-stack-protect.c: Re-generated.
4294 * features/mips64-dsp-linux.c: Re-generated.
4295 * features/mips64-linux.c: Re-generated.
4296 * features/mips-dsp-linux.c: Re-generated.
4297 * features/mips-linux.c: Re-generated.
4298 * features/nds32.c: Re-generated.
4299 * features/nios2.c: Re-generated.
4300 * features/nios2-linux.c: Re-generated.
4301 * features/rs6000/powerpc-32.c: Re-generated.
4302 * features/rs6000/powerpc-32l.c: Re-generated.
4303 * features/rs6000/powerpc-403.c: Re-generated.
4304 * features/rs6000/powerpc-403gc.c : Re-generated.
4305 * features/rs6000/powerpc-405.c: Re-generated.
4306 * features/rs6000/powerpc-505.c: Re-generated.
4307 * features/rs6000/powerpc-601.c: Re-generated.
4308 * features/rs6000/powerpc-602.c: Re-generated.
4309 * features/rs6000/powerpc-603.c: Re-generated.
4310 * features/rs6000/powerpc-604.c: Re-generated.
4311 * features/rs6000/powerpc-64.c: Re-generated.
4312 * features/rs6000/powerpc-64l.c: Re-generated.
4313 * features/rs6000/powerpc-7400.c: Re-generated.
4314 * features/rs6000/powerpc-750.c: Re-generated.
4315 * features/rs6000/powerpc-860.c: Re-generated.
4316 * features/rs6000/powerpc-altivec32.c: Re-generated.
4317 * features/rs6000/powerpc-altivec32l.c: Re-generated.
4318 * features/rs6000/powerpc-altivec64.c: Re-generated.
4319 * features/rs6000/powerpc-altivec64l.c: Re-generated.
4320 * features/rs6000/powerpc-cell32l.c: Re-generated.
4321 * features/rs6000/powerpc-cell64l.c: Re-generated.
4322 * features/rs6000/powerpc-e500.c: Re-generated.
4323 * features/rs6000/powerpc-e500l.c: Re-generated.
4324 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
4325 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
4326 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
4327 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
4328 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
4329 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
4330 * features/rs6000/powerpc-vsx32.c: Re-generated.
4331 * features/rs6000/powerpc-vsx32l.c: Re-generated.
4332 * features/rs6000/powerpc-vsx64.c: Re-generated.
4333 * features/rs6000/powerpc-vsx64l.c: Re-generated.
4334 * features/rs6000/rs6000.c: Re-generated.
4335 * features/s390-linux32.c: Re-generated.
4336 * features/s390-linux32v1.c: Re-generated.
4337 * features/s390-linux32v2.c: Re-generated.
4338 * features/s390-linux64.c: Re-generated.
4339 * features/s390-linux64v1.c: Re-generated.
4340 * features/s390-linux64v2.c: Re-generated.
4341 * features/s390-te-linux64.c: Re-generated.
4342 * features/s390-tevx-linux64.c: Re-generated.
4343 * features/s390-vx-linux64.c: Re-generated.
4344 * features/s390x-linux64.c: Re-generated.
4345 * features/s390x-linux64v1.c: Re-generated.
4346 * features/s390x-linux64v2.c: Re-generated.
4347 * features/s390x-te-linux64.c: Re-generated.
4348 * features/s390x-tevx-linux64.c: Re-generated.
4349 * features/s390x-vx-linux64.c: Re-generated.
4350 * features/sparc/sparc32-solaris.c: Re-generated.
4351 * features/sparc/sparc64-solaris.c: Re-generated.
4352 * features/tic6x-c62x.c: Re-generated.
4353 * features/tic6x-c62x-linux.c: Re-generated.
4354 * features/tic6x-c64x.c: Re-generated.
4355 * features/tic6x-c64x-linux.c: Re-generated.
4356 * features/tic6x-c64xp.c: Re-generated.
4357 * features/tic6x-c64xp-linux.c: Re-generated.
4358
35b4818d
YQ
43592017-07-26 Yao Qi <yao.qi@linaro.org>
4360
4361 * i386-linux-tdep.c (i386_linux_read_description): New function.
4362 (i386_linux_core_read_description): Call
4363 i386_linux_read_description.
4364 * i386-linux-tdep.h (i386_linux_read_description): Declare.
4365 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
4366 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
4367 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
4368 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
4369 * x86-linux-nat.c (x86_linux_read_description): Call
4370 i386_linux_read_description.
4371
8e2141c6
YQ
43722017-07-26 Yao Qi <yao.qi@linaro.org>
4373
4374 * NEWS: Mention it.
4375 * features/Makefile (%.c: %.xml): Pass the xml file name to
4376 command "maint print c-tdesc".
4377 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
4378 name from 'arg'.
4379
b468ff4c
YQ
43802017-07-26 Yao Qi <yao.qi@linaro.org>
4381
4382 * target-descriptions.c (target_desc): Add ctor and dtor. Do
4383 in-class initialization.
4384 (tdesc_create_feature): Call new instead of XCNEW.
4385 (free_target_description): Ue delete.
4386
b9c0e1b4
JB
43872017-07-25 John Baldwin <jhb@FreeBSD.org>
4388
4389 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
4390
a04b5337
YQ
43912017-07-25 Yao Qi <yao.qi@linaro.org>
4392
4393 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
4394 constant.
4395 (amd64_x32_init_abi): Likewise.
4396 * amd64-tdep.h (amd64_init_abi): Update declaration.
4397 (amd64_x32_init_abi): Likewise.
4398
02ad7fc2
YQ
43992017-07-25 Yao Qi <yao.qi@linaro.org>
4400
4401 PR tdep/21717
4402 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
4403 condition for FPSCR.
4404 (arm_linux_store_inferior_registers): Likewise.
4405
b6f48cb0
TT
44062017-07-22 Tom Tromey <tom@tromey.com>
4407
4408 * break-catch-syscall.c (struct catch_syscall_inferior_data)
4409 <syscalls_counts>: Now a std::vector.
4410 (get_catch_syscall_inferior_data): Use "new".
4411 (catch_syscall_inferior_data_cleanup): Use "delete".
4412 (insert_catch_syscall, remove_catch_syscall)
4413 (clear_syscall_counts): Update.
4414
e12c9b7a
TT
44152017-07-22 Tom Tromey <tom@tromey.com>
4416
4417 * break-catch-syscall.c (syscall_catchpoint)
4418 <syscalls_to_be_caught>: Now a std::vector<int>
4419 (~syscall_catchpoint): Remove.
4420 (insert_catch_syscall, remove_catch_syscall)
4421 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4422 (print_mention_catch_syscall, print_recreate_catch_syscall):
4423 Update.
4424 (create_syscall_event_catchpoint): Change type of "filter"
4425 parameter.
4426 (catch_syscall_split_args): Return a std::vector.
4427 (catch_syscall_command_1, catching_syscall_number_1): Update.
4428
4fa8aeac
TT
44292017-07-22 Tom Tromey <tom@tromey.com>
4430
4431 * break-catch-throw.c (struct exception_catchpoint)
4432 <exception_rx>: Now a std::string.
4433 (~exception_catchpoint): Remove.
4434 (print_one_detail_exception_catchpoint): Update.
4435 (handle_gnu_v3_exceptions): Change type of except_rx.
4436 (extract_exception_regexp): Return a std::string.
4437 (catch_exception_command_1): Update.
4438
f746a154
TT
44392017-07-22 Tom Tromey <tom@tromey.com>
4440
4441 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4442 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4443 std::vector.
4444 <catch_all>: Now a bool.
4445 (~signal_catchpoint): Remove.
4446 (signal_catchpoint_insert_location)
4447 (signal_catchpoint_remove_location)
4448 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4449 (signal_catchpoint_print_mention)
4450 (signal_catchpoint_print_recreate)
4451 (signal_catchpoint_explains_signal): Update.
4452 (create_signal_catchpoint): Change type of "filter" and
4453 "catch_all".
4454 (catch_signal_split_args): Return a std::vector. Change type of
4455 "catch_all".
4456 (catch_signal_command): Update.
4457
47e77640
PA
44582017-07-20 Pedro Alves <palves@redhat.com>
4459
4460 * ada-lang.c (ada_language_defn): Make extern.
4461 (_initialize_ada_language): Remove add_language call.
4462 * c-lang.c (c_language_defn, cplus_language_defn)
4463 (asm_language_defn, minimal_language_defn): Make extern.
4464 (_initialize_c_language): Delete.
4465 * completer.c (compare_cstrings): Delete, moved to utils.h.
4466 * d-lang.c (d_language_defn): Make extern.
4467 (_initialize_d_language): Remove add_language calls.
4468 * defs.h (enum language): Add comment.
4469 * f-lang.c (f_language_defn): Make extern.
4470 (_initialize_f_language): Remove add_language call.
4471 * go-lang.c (go_language_defn): Make extern.
4472 (_initialize_go_language): Remove add_language call.
4473 * language.c: Include <algorithm>.
4474 (languages): Redefine as const array.
4475 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4476 (set_language_command): Handle "local". Use for-range loop.
4477 (set_language): Remove loop.
4478 (language_enum): Rewrite.
4479 (language_def, language_str): Remove loops.
4480 (add_language): Delete.
4481 (add_set_language_command): New, based on add_languages.
4482 (skip_language_trampoline): Adjust.
4483 (local_language_defn): Delete.
4484 (language_gdbarch_post_init): Adjust.
4485 (_initialize_language): Remove add_language calls. Call
4486 add_set_language_command.
4487 * language.h (add_language): Delete.
4488 (auto_language_defn)
4489 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4490 (asm_language_defn, c_language_defn, cplus_language_defn)
4491 (d_language_defn, f_language_defn, go_language_defn)
4492 (m2_language_defn, objc_language_defn, opencl_language_defn)
4493 (pascal_language_defn, rust_language_defn): Declare.
4494 * m2-lang.c (m2_language_defn): Make extern.
4495 (_initialize_m2_language): Remove add_language call.
4496 * objc-lang.c (objc_language_defn): Make extern.
4497 (_initialize_objc_language): Remove add_language call.
4498 * opencl-lang.c (opencl_language_defn): Make extern.
4499 (_initialize_opencl_language): Remove add_language call.
4500 * p-lang.c (pascal_language_defn): Make extern.
4501 (_initialize_pascal_language): Delete.
4502 * rust-lang.c (rust_language_defn): Make extern.
4503 (_initialize_rust_language): Delete.
4504 * utils.h (compare_cstrings): New static inline function.
4505
edb0c9cb
PA
45062017-07-20 Pedro Alves <palves@redhat.com>
4507
4508 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4509 (get_var_value): Constify parameters.
4510 (get_int_var_value): Change prototype.
4511 (to_fixed_range_type): Adjust.
4512 * ada-lang.h (get_int_var_value): Change prototype.
4513
a778f165
PA
45142017-07-20 Pedro Alves <palves@redhat.com>
4515
4516 * dwarf2read.c (dw2_lookup_symbol): Use
4517 SYMBOL_MATCHES_SEARCH_NAME.
4518 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4519
42edd901
PA
45202017-07-20 Pedro Alves <palves@redhat.com>
4521
4522 * block.c (block_iter_name_step, block_iter_name_first)
4523 (block_iter_name_next): Delete.
4524 (block_lookup_symbol_primary): Adjust to use
4525 dict_iter_match_first/dict_iter_match_next.
4526 * block.h (block_iter_name_first, block_iter_name_next): Delete
4527 declarations.
4528 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4529 dict_iter_match_first/dict_iter_match_next.
4530
cf325299
PA
45312017-07-20 Pedro Alves <palves@redhat.com>
4532
4533 * cp-support.c (cp_find_first_component_aux): Add missing case for
4534 end of string.
4535
c5ed0576
DB
45362017-07-18 David Blaikie <dblaikie@gmail.com>
4537
4538 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4539 of dwo_cu's dwo_file.
4540
27841e76
YQ
45412017-07-18 Yao Qi <yao.qi@linaro.org>
4542
4543 * remote.c (store_registers_using_G): Remove one line comment.
4544
cfb7e58b
YQ
45452017-07-18 Yao Qi <yao.qi@linaro.org>
4546
4547 * regcache.c (regcache_cpy): Simplify it.
4548 (regcache::cpy_no_passthrough): Remove it.
4549 * regcache.h (cpy_no_passthrough): Remove it.
4550 (regcache_dup, regcache_cpy): Update comments.
4551
386535dd
PA
45522017-07-18 Pedro Alves <palves@redhat.com>
4553
4554 * remote-sim.c (sim_command_completer): Adjust to work with a
4555 completion_tracker instead of a VEC.
4556
c45ec17c
PA
45572017-07-17 Pedro Alves <palves@redhat.com>
4558
4559 * completer.c (complete_source_filenames): New function.
4560 (complete_address_and_linespec_locations): New function.
4561 (location_completer): Use complete_address_and_linespec_locations.
4562 (completion_tracker::build_completion_result): Honor the tracker's
4563 request to suppress append.
4564 * completer.h (completion_tracker::suppress_append_ws)
4565 (completion_tracker::set_suppress_append_ws): New methods.
4566 (completion_tracker::m_suppress_append_ws): New field.
4567 (complete_source_filenames): New declaration.
4568 * linespec.c (linespec_complete_what): New.
4569 (struct ls_parser) <complete_what, completion_word,
4570 completion_quote_char, completion_quote_end, completion_tracker>:
4571 New fields.
4572 (string_find_incomplete_keyword_at_end): New.
4573 (linespec_lexer_lex_string): Record quote char. If in completion
4574 mode, don't throw.
4575 (linespec_lexer_consume_token): Advance the completion word point.
4576 (linespec_lexer_peek_token): Save/restore completion info.
4577 (save_stream_and_consume_token): New.
4578 (set_completion_after_number): New.
4579 (linespec_parse_basic): Set what to complete next depending on
4580 token. Handle function and label completions specially.
4581 (parse_linespec): Disable objc shortcut in completion mode. Set
4582 what to complete next depending on token type. Skip keyword if in
4583 completion mode.
4584 (complete_linespec_component, linespec_complete): New.
4585 * linespec.h (linespec_complete): Declare.
4586
be966d42
PA
45872017-07-17 Pedro Alves <palves@redhat.com>
4588
4589 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4590 Handle 'operator<' / 'operator<<'.
4591
a2459270
PA
45922017-07-17 Pedro Alves <palves@redhat.com>
4593
4594 * completer.c (collect_explicit_location_matches): Handle
4595 MATCH_LABEL.
4596 (convert_explicit_location_to_linespec): New, factored out from
4597 ...
4598 (convert_explicit_location_to_sals): ... this.
4599 (complete_label): New.
4600 (linespec_complete_label, find_label_symbols_in_block): New.
4601 (find_label_symbols): Add completion_mode parameter and adjust to
4602 call find_label_symbols_in_block.
4603 * linespec.h (linespec_complete_label): Declare.
4604
c6756f62
PA
46052017-07-17 Pedro Alves <palves@redhat.com>
4606
4607 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4608 complete_symbol_mode parameter.
4609 * cli/cli-cmds.c (complete_command): Get the completion result out
4610 of the handle_brkchars tracker if used a custom word point.
4611 * completer.c: Include "linespec.h".
4612 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4613 (advance_to_expression_complete_word_point): New.
4614 (completion_tracker::completes_to_completion_word): New.
4615 (complete_files_symbols): Pass down
4616 complete_symbol_mode::EXPRESSION.
4617 (explicit_options, probe_options): New.
4618 (collect_explicit_location_matches): Complete on the
4619 explictit_loc->foo instead of word. Use
4620 linespec_complete_function. Handle MATCH_LINE. Handle offering
4621 keyword and options completions.
4622 (backup_text_ptr): Delete.
4623 (skip_keyword): New.
4624 (complete_explicit_location): Remove 'word' parameter. Add
4625 language, quoted_arg_start and quoted_arg_end parameters.
4626 Rewrite, parsing left to right.
4627 (location_completer): Rewrite.
4628 (location_completer_handle_brkchars): New function.
4629 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4630 (enum complete_line_internal_reason): Adjust comments.
4631 (completion_tracker::discard_completions): New.
4632 (completer_handle_brkchars_func_for_completer): Handle
4633 location_completer.
4634 (gdb_custom_word_point_brkchars)
4635 (gdb_org_rl_basic_quote_characters): New.
4636 (gdb_completion_word_break_characters_throw)
4637 (completion_find_completion_word): Handle trackers that use a
4638 custom word point.
4639 (completion_tracker::advance_custom_word_point_by): New.
4640 (completion_tracker::build_completion_result): Don't rely on
4641 readline appending the quote char.
4642 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4643 use a custom word point.
4644 (gdb_rl_attempted_completion_function): Restore
4645 rl_basic_quote_characters.
4646 * completer.h (class completion_tracker): Extend intro comment.
4647 (completion_tracker::set_quote_char)
4648 (completion_tracker::quote_char)
4649 (completion_tracker::set_use_custom_word_point)
4650 (completion_tracker::use_custom_word_point)
4651 (completion_tracker::custom_word_point)
4652 (completion_tracker::set_custom_word_point)
4653 (completion_tracker::advance_custom_word_point_by)
4654 (completion_tracker::completes_to_completion_word)
4655 (completion_tracker::discard_completions): New methods.
4656 (completion_tracker::m_quote_char)
4657 (completion_tracker::m_use_custom_word_point)
4658 (completion_tracker::m_custom_word_point): New fields.
4659 (advance_to_expression_complete_word_point): Declare.
4660 * f-lang.c (f_collect_symbol_completion_matches): Add
4661 complete_symbol_mode parameter.
4662 * language.h (struct language_defn)
4663 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4664 parameter.
4665 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4666 (linespec_complete_function): New function.
4667 (linespec_lexer_lex_keyword): Adjust.
4668 * linespec.h (linespec_keywords, linespec_complete_function): New
4669 declarations.
4670 * location.c (find_end_quote): New function.
4671 (explicit_location_lex_one): Add explicit_completion_info
4672 parameter. Save quoting info. Don't throw if being called for
4673 completion. Don't handle Ada operators here.
4674 (is_cp_operator, skip_op_false_positives, first_of)
4675 (explicit_location_lex_one_function): New function.
4676 (string_to_explicit_location): Replace 'dont_throw' parameter with
4677 an explicit_completion_info pointer parameter. Handle it. Don't
4678 use explicit_location_lex_one to lex function names. Use
4679 explicit_location_lex_one_function instead.
4680 * location.h (struct explicit_completion_info): New.
4681 (string_to_explicit_location): Replace 'dont_throw' parameter with
4682 an explicit_completion_info pointer parameter.
4683 * symtab.c (default_collect_symbol_completion_matches_break_on):
4684 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4685 (default_collect_symbol_completion_matches)
4686 (collect_symbol_completion_matches): Add complete_symbol_mode
4687 parameter.
4688 (collect_symbol_completion_matches_type): Pass down
4689 complete_symbol_mode::EXPRESSION.
4690 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4691 parameter. Handle LINESPEC mode.
4692 * symtab.h (complete_symbol_mode): New.
4693 (default_collect_symbol_completion_matches_break_on)
4694 (default_collect_symbol_completion_matches)
4695 (collect_symbol_completion_matches)
4696 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4697 parameter.
4698
1d550c82
PA
46992017-07-17 Pedro Alves <palves@redhat.com>
4700
4701 * utils.c (enum class strncmp_iw_mode): New.
4702 (strcmp_iw): Rename to ...
4703 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4704 parameters. Handle them.
4705 (strncmp_iw): New.
4706 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4707 * utils.h (strncmp_iw): Declare.
4708 (strcmp_iw): Move describing comments here.
4709
8090b426
PA
47102017-07-17 Pedro Alves <palves@redhat.com>
4711
4712 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4713 CP_OPERATOR_STR.
4714 * c-typeprint.c (is_type_conversion_operator): Use
4715 CP_OPERATOR_STR.
4716 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4717 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4718 CP_OPERATOR_LEN.
4719 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4720 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4721 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4722 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4723 CP_OPERATOR_STR.
4724 * location.c: Include "cp-support.h".
4725 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4726 CP_OPERATOR_STR.
4727 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4728 CP_OPERATOR_LEN.
4729
6a2c1b87
PA
47302017-07-17 Pedro Alves <palves@redhat.com>
4731
4732 * cli/cli-cmds.c (complete_command): Use a completion tracker
4733 along with completion_find_completion_word for handle_brkchars
4734 phase.
4735 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4736 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4737 (struct gdb_rl_completion_word_info): New.
4738 (gdb_rl_find_completion_word): New.
4739 (completion_find_completion_word): New.
4740 * completer.h (completion_find_completion_word): Declare.
4741
eb3ff9a5
PA
47422017-07-17 Pedro Alves <palves@redhat.com>
4743
4744 * ada-lang.c (symbol_completion_match): Adjust comments.
4745 (symbol_completion_add): Replace vector parameter with
4746 completion_tracker parameter. Use it.
4747 (ada_make_symbol_completion_list): Rename to...
4748 (ada_collect_symbol_completion_matches): ... this. Add
4749 completion_tracker parameter and use it.
4750 (ada_language_defn): Adjust.
4751 * break-catch-syscall.c (catch_syscall_completer): Adjust
4752 prototype and work with completion_tracker instead of VEC.
4753 * breakpoint.c (condition_completer): Adjust prototype and work
4754 with completion_tracker instead of VEC.
4755 * c-lang.c (c_language_defn, cplus_language_defn)
4756 (asm_language_defn, minimal_language_defn): Adjust to renames.
4757 * cli/cli-cmds.c (complete_command): Rework using
4758 completion_tracker. Catch exceptions when completing.
4759 * cli/cli-decode.c (integer_unlimited_completer)
4760 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4761 with completion_tracker instead of VEC.
4762 * command.h (struct completion_tracker): Forward declare.
4763 (completer_ftype, completer_handle_brkchars_ftype): Change
4764 types.
4765 (complete_on_cmdlist, complete_on_enum): Adjust.
4766 * completer.c: Include <algorithm>.
4767 (struct gdb_completer_state): New.
4768 (current_completion): New global.
4769 (readline_line_completion_function): Delete.
4770 (noop_completer, filename_completer)
4771 (filename_completer_handle_brkchars, complete_files_symbols)
4772 (linespec_location_completer): Adjust to work with a
4773 completion_tracker instead of a VEC.
4774 (string_or_empty): New.
4775 (collect_explicit_location_matches): Adjust to work with a
4776 completion_tracker instead of a VEC.
4777 (explicit_location_completer): Rename to ...
4778 (complete_explicit_location): ... this and adjust to work with a
4779 completion_tracker instead of a VEC.
4780 (location_completer): Adjust to work with a completion_tracker
4781 instead of a VEC.
4782 (add_struct_fields): Adjust to work with a completion_list instead
4783 of VEC.
4784 (expression_completer): Rename to ...
4785 (complete_expression): ... this and adjust to work with a
4786 completion_tracker instead of a VEC. Use complete_files_symbols.
4787 (expression_completer): Reimplement on top of complete_expression.
4788 (symbol_completer): Adjust to work with a completion_tracker
4789 instead of a VEC.
4790 (enum complete_line_internal_reason): Add describing comments.
4791 (complete_line_internal_normal_command): Adjust to work with a
4792 completion_tracker instead of a VEC.
4793 (complete_line_internal): Rename to ...
4794 (complete_line_internal_1): ... this and adjust to work with a
4795 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4796 handle_brkchars phase.
4797 (new_completion_tracker): Delete.
4798 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4799 complete_line_internal_1.
4800 (free_completion_tracker): Delete.
4801 (INITIAL_COMPLETION_HTAB_SIZE): New.
4802 (completion_tracker::completion_tracker)
4803 (completion_tracker::~completion_tracker): New.
4804 (maybe_add_completion): Delete.
4805 (completion_tracker::maybe_add_completion)
4806 (completion_tracker::add_completion)
4807 (completion_tracker::add_completions): New.
4808 (throw_max_completions_reached_error): Delete.
4809 (complete_line): Adjust to work with a completion_tracker instead
4810 of a VEC. Don't create a completion_tracker_t or check for max
4811 completions here.
4812 (command_completer, command_completer_handle_brkchars)
4813 (signal_completer, reg_or_group_completer_1)
4814 (reg_or_group_completer, default_completer_handle_brkchars):
4815 Adjust to work with a completion_tracker.
4816 (gdb_completion_word_break_characters_throw): New.
4817 (gdb_completion_word_break_characters): Reimplement.
4818 (line_completion_function): Delete.
4819 (completion_tracker::recompute_lowest_common_denominator)
4820 (expand_preserving_ws)
4821 (completion_tracker::build_completion_result)
4822 (completion_result::completion_result)
4823 (completion_result::completion_result)
4824 (completion_result::~completion_result)
4825 (completion_result::completion_result)
4826 (completion_result::release_match_list, compare_cstrings)
4827 (completion_result::sort_match_list)
4828 (completion_result::reset_match_list)
4829 (gdb_rl_attempted_completion_function_throw)
4830 (gdb_rl_attempted_completion_function): New.
4831 * completer.h (completion_list, struct completion_result)
4832 (class completion_tracker): New.
4833 (complete_line): Add completion_tracker parameter.
4834 (readline_line_completion_function): Delete.
4835 (gdb_rl_attempted_completion_function): New.
4836 (noop_completer, filename_completer, expression_completer)
4837 (location_completer, symbol_completer, command_completer)
4838 (signal_completer, reg_or_group_completer): Update prototypes.
4839 (completion_tracker_t, new_completion_tracker)
4840 (make_cleanup_free_completion_tracker): Delete.
4841 (enum maybe_add_completion_enum): Delete.
4842 (maybe_add_completion): Delete.
4843 (throw_max_completions_reached_error): Delete.
4844 * corefile.c (complete_set_gnutarget): Adjust to work with a
4845 completion_tracker instead of a VEC.
4846 * cp-abi.c (cp_abi_completer): Adjust to work with a
4847 completion_tracker instead of a VEC.
4848 * d-lang.c (d_language_defn): Adjust.
4849 * disasm.c (disassembler_options_completer): Adjust to work with a
4850 completion_tracker instead of a VEC.
4851 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4852 (f_collect_symbol_completion_matches): ... this. Adjust to work
4853 with a completion_tracker instead of a VEC.
4854 (f_language_defn): Adjust.
4855 * go-lang.c (go_language_defn): Adjust.
4856 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4857 Adjust to work with a completion_tracker instead of a VEC.
4858 * infrun.c (handle_completer): Likewise.
4859 * interps.c (interpreter_completer): Likewise.
4860 * interps.h (interpreter_completer): Likewise.
4861 * language.c (unknown_language_defn, auto_language_defn)
4862 (local_language_defn): Adjust.
4863 * language.h (language_defn::la_make_symbol_completion_list):
4864 Rename to ...
4865 (language_defn::la_collect_symbol_completion_matches): ... this
4866 and adjust to work with a completion_tracker instead of a VEC.
4867 * m2-lang.c (m2_language_defn): Adjust.
4868 * objc-lang.c (objc_language_defn): Adjust.
4869 * opencl-lang.c (opencl_language_defn): Adjust.
4870 * p-lang.c (pascal_language_defn): Adjust.
4871 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4872 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4873 with a completion_tracker.
4874 * rust-lang.c (rust_language_defn): Adjust.
4875 * symtab.c (free_completion_list, do_free_completion_list)
4876 (return_val, completion_tracker): Delete.
4877 (completion_list_add_name, completion_list_add_symbol)
4878 (completion_list_add_msymbol, completion_list_objc_symbol)
4879 (completion_list_add_fields, add_symtab_completions): Add
4880 completion_tracker parameter and use it.
4881 (default_make_symbol_completion_list_break_on_1): Rename to...
4882 (default_collect_symbol_completion_matches_break_on): ... this.
4883 Add completion_tracker parameter and use it instead of allocating
4884 a completion tracker here.
4885 (default_make_symbol_completion_list_break_on): Delete old
4886 implementation.
4887 (default_make_symbol_completion_list): Delete.
4888 (default_collect_symbol_completion_matches): New.
4889 (make_symbol_completion_list): Delete.
4890 (collect_symbol_completion_matches): New.
4891 (make_symbol_completion_type): Rename to ...
4892 (collect_symbol_completion_matches_type): ... this. Add
4893 completion_tracker parameter and use it instead of VEC.
4894 (make_file_symbol_completion_list_1): Rename to...
4895 (collect_file_symbol_completion_matches): ... this. Add
4896 completion_tracker parameter and use it instead of VEC.
4897 (make_file_symbol_completion_list): Delete.
4898 (add_filename_to_list): Use completion_list instead of a VEC.
4899 (add_partial_filename_data::list): Now a completion_list.
4900 (make_source_files_completion_list): Work with a completion_list
4901 instead of a VEC.
4902 * symtab.h: Include "completer.h".
4903 (default_make_symbol_completion_list_break_on)
4904 (default_make_symbol_completion_list, make_symbol_completion_list)
4905 (make_symbol_completion_type, make_file_symbol_completion_list)
4906 (make_source_files_completion_list): Delete.
4907 (default_collect_symbol_completion_matches_break_on)
4908 (default_collect_symbol_completion_matches)
4909 (collect_symbol_completion_matches)
4910 (collect_symbol_completion_matches_type)
4911 (collect_file_symbol_completion_matches)
4912 (make_source_files_completion_list): New.
4913 * top.c (init_main): Don't install a rl_completion_entry_function
4914 hook. Install a rl_attempted_completion_function hook instead.
4915 * tui/tui-layout.c (layout_completer): Adjust to work with a
4916 completion_tracker.
4917 * tui/tui-regs.c (tui_reggroup_completer):
4918 * tui/tui-win.c (window_name_completer, focus_completer)
4919 (winheight_completer): Adjust to work with a completion_tracker.
4920 * value.c: Include "completer.h".
4921 (complete_internalvar): Adjust to work with a completion_tracker.
4922 * value.h (complete_internalvar): Likewise.
4923
6e1dbf8c
PA
49242017-07-17 Pedro Alves <palves@redhat.com>
4925
4926 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4927 renames.
4928 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4929 comments to completer_ftype's declaration.
4930 <completer_handle_brkchars>: Change type to
4931 completer_handle_brkchars_ftype.
4932 * command.h (completer_ftype): Add describing comment and give
4933 names to parameters.
4934 (completer_ftype_void): Rename to ...
4935 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4936 (set_cmd_completer_handle_brkchars): Adjust.
4937 * completer.c (filename_completer_handle_brkchars): New function.
4938 (complete_line_internal_normal_command): New function, factored
4939 out from ...
4940 (complete_line_internal): ... here.
4941 (command_completer_handle_brkchars)
4942 (default_completer_handle_brkchars)
4943 (completer_handle_brkchars_func_for_completer): New functions.
4944 * completer.h (set_gdb_completion_word_break_characters): Delete
4945 declaration.
4946 (completer_handle_brkchars_func_for_completer): New declaration.
4947 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4948 completer_handle_brkchars_func_for_completer.
4949
78b13106
PA
49502017-07-17 Pedro Alves <palves@redhat.com>
4951
4952 * completer.c (symbol_completer): New function, based on
4953 make_symbol_completion_list_fn.
4954 * completer.h (symbol_completer): New declaration.
4955 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4956 * python/py-cmd.c (completers): Adjust.
4957 * symtab.c (make_symbol_completion_list_fn): Delete.
4958 * symtab.h (make_symbol_completion_list_fn): Delete.
4959 * cli/cli-decode.c (add_cmd): Adjust.
4960
bbf2f4df
PA
49612017-07-17 Pedro Alves <palves@redhat.com>
4962
4963 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4964 * dwarf2read.c: Include "filename-seen-cache.h".
4965 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4966 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4967 * filename-seen-cache.c: New file.
4968 * filename-seen-cache.h: New file.
4969 * symtab.c: Include "filename-seen-cache.h".
4970 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4971 (create_filename_seen_cache, clear_filename_seen_cache)
4972 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4973 to filename-seen-cache.h/filename-seen-cache.c.
4974 (output_source_filename, sources_info)
4975 (maybe_add_partial_symtab_filename)
4976 (make_source_files_completion_list): Adjust to use
4977 filename_seen_cache.
4978
330cdd98
PA
49792017-07-17 Pedro Alves <palves@redhat.com>
4980
4981 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4982 fields.
4983 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4984 dwarf2_debug_sections*)): New.
4985 (dwarf2_per_objfile::dwarf2_per_objfile(const
4986 dwarf2_per_objfile&)): Declare as deleted.
4987 (dwarf2_per_objfile::operator=): Declare as deleted.
4988 (dwarf2_per_objfile::dwarf2_per_objfile)
4989 (dwarf2_per_objfile::~dwarf2_per_objfile)
4990 (dwarf2_per_objfile::free_cached_comp_units): New.
4991 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4992 ctor. Call dwarf2_per_objfile's ctor manually.
4993 (dwarf2_locate_sections): Deleted/refactored as ...
4994 (dwarf2_per_objfile::locate_sections): ... this new method.
4995 (free_cached_comp_units): Defer to
4996 dwarf2_per_objfile::free_cached_comp_units.
4997 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4998
8880f2a9
TT
49992017-07-14 Tom Tromey <tom@tromey.com>
5000
5001 PR rust/21764:
5002 * rust-exp.y (convert_ast_to_expression): Add "want_type"
5003 parameter.
5004 <UNOP_SIZEOF>: Split into separate case.
5005 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
5006
65547233
TT
50072017-07-14 Tom Tromey <tom@tromey.com>
5008
5009 PR rust/21763:
5010 * symtab.c (symbol_matches_domain): Add language_rust to special
5011 case.
5012 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
5013 treat LOC_TYPEDEF symbols as variables.
5014
8f14146e
PA
50152017-07-14 Pedro Alves <palves@redhat.com>
5016
5017 * symtab.c (make_file_symbol_completion_list_1): Iterate over
5018 symtabs matching all symtabs with SRCFILE as file name instead of
5019 only considering the first hit, with lookup_symtab.
5020
2347965c
SM
50212017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5022
5023 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
5024 operator_name parameters.
5025 (gen_expr): Update function call.
5026
40f4af28
SM
50272017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5028
5029 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
5030 parameter.
5031 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
5032 Likewise.
5033 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
5034 parameter, use agent_expr::gdbarch instead, update function
5035 calls.
5036 (locexpr_tracepoint_var_ref): Likewise.
5037 (loclist_tracepoint_var_ref): Likewise.
5038 * ax-gdb.c (gen_trace_static_fields): Likewise.
5039 (gen_traced_pop): Likewise.
5040 (gen_frame_args_address): Likewise.
5041 (gen_frame_locals_address): Likewise.
5042 (gen_var_ref): Likewise.
5043 (gen_struct_ref_recursive): Likewise.
5044 (gen_static_field): Likewise.
5045 (gen_maybe_namespace_elt): Likewise.
5046 (gen_expr): Likewise.
5047 (gen_trace_for_var): Likewise.
5048 (gen_trace_for_expr): Likewise.
5049 (gen_trace_for_return_address): Likewise.
5050
053f8057
SM
50512017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5052
5053 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
5054 parameter.
5055 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
5056
6661ad48
SM
50572017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5058
5059 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
5060 from ax, update calls.
5061 (gen_usual_arithmetic): Likewise.
5062 (gen_integral_promotions): Likewise.
5063 (gen_bitfield_ref): Likewise.
5064 (gen_primitive_field): Likewise.
5065 (gen_struct_ref_recursive): Likewise.
5066 (gen_struct_ref): Likewise.
5067 (gen_maybe_namespace_elt): Likewise.
5068 (gen_struct_elt_for_reference): Likewise.
5069 (gen_namespace_elt): Likewise.
5070 (gen_aggregate_elt_ref): Likewise.
5071 (gen_expr): Get gdbarch from ax, update calls.
5072 (gen_expr_binop_rest): Likewise.
5073
c55a47e7
PA
50742017-07-13 Pedro Alves <palves@redhat.com>
5075
5076 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
5077 as default tdesc.
5078 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
5079 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
5080 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
5081 tdesc_amd64_linux as default tdesc. Get final tdesc from the
5082 tdep.
5083 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
5084 Get final tdesc from the tdep.
5085 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
5086 default tdesc.
5087 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5088 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5089 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
5090 Use it as default tdesc.
5091 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
5092 down to amd_init_abi. No longer handle fallback tdesc here.
5093 * amd64-tdep.h (tdesc_x32): Declare.
5094 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
5095 parameter.
5096 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
5097 as default tdesc.
5098
55efceab
AA
50992017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5100
5101 * s390-linux-tdep.c (s390_process_record): Add support for
5102 instructions new in arch12.
5103
0aa37b65
JB
51042017-07-11 John Baldwin <jhb@FreeBSD.org>
5105
5106 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5107 PT_GETFSBASE and PT_GETGSBASE.
5108 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
5109 PT_SETGSBASE.
5110
48aeef91
JB
51112017-07-11 John Baldwin <jhb@FreeBSD.org>
5112
5113 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
5114 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
5115 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
5116 those rules.
5117 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
5118 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
5119 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
5120 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
5121 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
5122 * features/i386/amd64.xml: Add 64bit-segments.xml.
5123 * features/i386/amd64-avx-avx512.c: Regenerated.
5124 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
5125 * features/i386/amd64-avx-mpx.c: Regenerated.
5126 * features/i386/amd64-avx.c: Regenerated.
5127 * features/i386/amd64-mpx.c: Regenerated.
5128 * features/i386/amd64.c: Regenerated.
5129 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
5130 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5131 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
5132 * regformats/i386/amd64-avx.dat: Regenerated.
5133 * regformats/i386/amd64-mpx.dat: Regenerated.
5134 * regformats/i386/amd64.dat: Regenerated.
5135
77c501bc
YQ
51362017-07-10 Yao Qi <yao.qi@linaro.org>
5137
5138 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
5139 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
5140
6dc8d757
AK
51412017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
5142
5143 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
5144 unsetenv.
5145 * gnulib/aclocal.m4: Regenerate.
5146 * gnulib/config.in: Regenerate.
5147 * gnulib/configure: Regenerate.
5148 * gnulib/import/Makefile.am: Regenerate.
5149 * gnulib/import/Makefile.in: Regenerate.
5150 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5151 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5152 * gnulib/import/m4/environ.m4: New file.
5153 * gnulib/import/m4/setenv.m4: New file.
5154 * gnulib/import/setenv.c: New file.
5155 * gnulib/import/unsetenv.c: New file.
5156
266934d1
SM
51572017-07-09 Simon Marchi <simon.marchi@ericsson.com>
5158
5159 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
5160 address when op is DW_OP_addr.
5161
03278692
TT
51622017-07-09 Tom Tromey <tom@tromey.com>
5163
5164 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
5165 check and apply to outer type.
5166
4b654465
JB
51672017-07-07 John Baldwin <jhb@FreeBSD.org>
5168
5169 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
5170 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
5171 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
5172 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
5173
2af9fc44
JB
51742017-07-07 John Baldwin <jhb@FreeBSD.org>
5175
5176 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
5177
382b69bb
JB
51782017-07-07 John Baldwin <jhb@FreeBSD.org>
5179
5180 * corelow.c (get_core_siginfo): Remove.
5181 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
5182 instead of get_core_siginfo.
5183 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
5184 * gdbarch.h: Re-generate.
5185 * gdbarch.c: Re-generate.
5186 * linux-tdep.c (linux_core_xfer_siginfo): New.
5187 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
5188
6e5eab33
JB
51892017-07-07 John Baldwin <jhb@FreeBSD.org>
5190
5191 * corelow.c (thread_section_name): Move to ...
5192 * gdbcore.h (thread_section_name): ... here.
5193
929edea9
JB
51942017-07-07 John Baldwin <jhb@FreeBSD.org>
5195
5196 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
5197 (struct siginfo32): New.
5198 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
5199 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
5200 via ptrace(PT_LWPINFO).
5201
762c974a
JB
52022017-07-07 John Baldwin <jhb@FreeBSD.org>
5203
5204 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
5205 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
5206 (fbsd_get_siginfo_type): New.
5207 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5208 (_initialize_fbsd_tdep): New.
5209
33c5cd75
DB
52102017-07-06 David Blaikie <dblaikie@gmail.com>
5211
5212 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
5213 a singular dwo_unit*) to support multiple CUs in the same way that
5214 multiple TUs are supported.
5215 (create_cus_hash_table): Replace create_dwo_cu with a function for
5216 parsing multiple CUs from a DWO file.
5217 (open_and_init_dwo_file): Use create_cus_hash_table rather than
5218 create_dwo_cu.
5219 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
5220 htab_find, rather than comparing the signature to a singleton CU in
5221 the dwo_file.
5222
8455d262
PA
52232017-07-06 Pedro Alves <palves@redhat.com>
5224
5225 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
5226
4da3eb35
PA
52272017-07-04 Pedro Alves <palves@redhat.com>
5228
5229 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
5230 * gdbtypes.h (TYPE_STATIC): Delete.
5231 (struct fn_field) <is_public, is_abstract, is_static, is_final,
5232 is_synchronized, is_native>: Delete.
5233 <dummy>: Bump.
5234 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
5235 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
5236 (TYPE_FN_FIELD_ABSTRACT): Delete.
5237
5bfd255c
SM
52382017-07-03 Simon Marchi <simon.marchi@ericsson.com>
5239
5240 * buffer.h (buffer_finish): Fix spelling mistakes.
5241
25c54127
EZ
52422017-07-01 Eli Zaretskii <eliz@gnu.org>
5243
5244 * .dir-locals.el: Automatically switch to C-style comments in
5245 versions of Emacs that support the feature.
5246
dc4bde35
SDJ
52472017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5248 Pedro Alves <palves@redhat.com>
5249
5250 PR cli/21688
5251 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
5252 (process_next_line): New variable 'inline_cmd'.
5253 Adjust 'if' clauses for "python", "compile" and "guile" to use
5254 'command_name_equals' and check for '!inline_cmd'.
5255
51ed89aa
SDJ
52562017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5257
5258 PR cli/21688
5259 * cli/cli-script.c (command_name_equals_not_inline): New function.
5260 (process_next_line): Adjust 'if' clauses for "python", "compile"
5261 and "guile" to use command_name_equals_not_inline.
5262
eb17d413
PA
52632017-06-29 Pedro Alves <palves@redhat.com>
5264
5265 * completer.c (expression_completer): Call
5266 linespec_location_completer instead of location_completer.
5267
195bcdd5
PA
52682017-06-29 Pedro Alves <palves@redhat.com>
5269
5270 * completer.c (expression_completer): Remove code that recomputes
5271 'text' from 'word'.
5272
adc764e7
YQ
52732017-06-29 Yao Qi <yao.qi@linaro.org>
5274
5275 * regformats/regdat.sh: Generate code with
5276 "ifndef IN_PROCESS_AGENT".
5277
6e75794e
PA
52782017-06-28 Pedro Alves <palves@redhat.com>
5279
5280 * command.h: Include "common/scoped_restore.h".
5281
bc491f2e
YQ
52822017-06-28 Yao Qi <yao.qi@linaro.org>
5283
5284 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
5285 instead of obstack_grow.
5286
41664b45
DG
52872017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
5288
5289 PR gdb/21337
5290 * symfile.c (reread_symbols): Call objfiles_changed just before
5291 read_symbols.
5292
6da67eb1
PA
52932017-06-27 Pedro Alves <palves@redhat.com>
5294
5295 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
5296 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
5297 (completion_list_add_symbol, completion_list_add_msymbol):
5298 ... these new functions.
5299 (add_symtab_completions)
5300 (default_make_symbol_completion_list_break_on_1): Adjust.
5301
23732b1e
PA
53022017-06-27 Pedro Alves <palves@redhat.com>
5303
5304 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
5305 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
5306 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
5307 dtor.
5308 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
5309 'storage_obstack' field an auto_obstack. In-class initialize all
5310 non-bitfield fields. Make minsyms_read bool.
5311 * symfile.c (read_symbols): Adjust.
5312
a4d1e79a
AH
53132017-06-27 Alan Hayward <alan.hayward@arm.com>
5314
5315 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
5316 (gdbsim_store_register): Likewise.
5317
8268c778
PA
53182017-06-27 Pedro Alves <palves@redhat.com>
5319
5320 * c-exp.y (name_obstack): Now an auto_obstack.
5321 (yylex): Use auto_obstack::clear.
5322 (c_parse): Use auto_obstack::clear instead of reinitializing and
5323 freeing the obstack.
5324 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
5325 * d-exp.y (name_obstack): Now an auto_obstack.
5326 (yylex): Use auto_obstack::clear.
5327 (d_parse): Use auto_obstack::clear instead of reinitializing and
5328 freeing the obstack.
5329 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
5330 auto_obstack.
5331 * dwarf2read.c (create_addrmap_from_index)
5332 (dwarf2_build_psymtabs_hard)
5333 (update_enumeration_type_from_children): Likewise.
5334 * gdb_obstack.h (auto_obstack): New type.
5335 * go-exp.y (name_obstack): Now an auto_obstack.
5336 (build_packaged_name): Use auto_obstack::clear.
5337 (go_parse): Use auto_obstack::clear instead of reinitializing and
5338 freeing the obstack.
5339 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
5340 auto_obstack.
5341 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
5342 * rust-exp.y (work_obstack): Now an auto_obstack.
5343 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
5344 reinitializing and freeing the obstack.
5345 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
5346 (host_char_to_target): Use auto_obstack.
5347 * utils.h (make_cleanup_obstack_free): Delete declaration.
5348 * valprint.c (generic_emit_char, generic_printstr): Use
5349 auto_obstack.
5350
db665f42
SM
53512017-06-27 Simon Marchi <simon.marchi@ericsson.com>
5352
5353 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
5354 thread.
5355 (darwin_init_thread_list): Don't update dummy thread.
5356 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
5357
873c0814
SM
53582017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5359
5360 * record-full.c (netorder16): Remove.
5361
8b5a7a6e
SM
53622017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5363
5364 * common/diagnostics.h: Define macros for GCC.
5365 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
5366 * common/vec.h: Include diagnostics.h.
5367 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
5368 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
5369 warning.
5370
d1435379
SM
53712017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5372
5373 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
5374 New macro.
5375 * ada-lex.l: Ignore deprecated register warnings.
5376
cc75e0fd
SM
53772017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5378
5379 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
5380 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
5381
07809eaf
SM
53822017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5383
5384 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
5385 its own line.
5386
f076f034
SM
53872017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5388
5389 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
5390
0dd5cbc5
AH
53912017-06-23 Alan Hayward <alan.hayward@arm.com>
5392
5393 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
5394 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
5395 (xtensa_register_read_masked): Likewise.
5396
d4c6ce5b
SDJ
53972017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
5398
5399 * common/environ.c (gdb_environ::unset): Update comment.
5400
16892a03
AH
54012017-06-22 Alan Hayward <alan.hayward@arm.com>
5402
5403 * python/py-unwind.c (pyuw_sniffer): Allocate space for
5404 registers.
5405
d7dcbefc
AH
54062017-06-22 Alan Hayward <alan.hayward@arm.com>
5407
5408 * record-full.c (record_full_exec_insn): Use byte_vector.
5409
b30ff123
YQ
54102017-06-22 Yao Qi <yao.qi@linaro.org>
5411
5412 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
5413 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5414
4fa847d7
AH
54152017-06-22 Alan Hayward <alan.hayward@arm.com>
5416
5417 * remote.c (cached_reg): Move from here...
5418 * regcache.h (cached_reg): ...to here.
5419 * python/py-unwind.c (struct reg_info): Remove.
5420 (cached_frame_info): Use cached_reg_t.
5421 (pyuw_prev_register): Likewise.
5422 (pyuw_sniffer): Use cached_reg_t and allocate registers.
5423 (pyuw_dealloc_cache): Free all registers.
5424
f4906a9a
PA
54252017-06-22 Pedro Alves <palves@redhat.com>
5426 Simon Marchi <simon.marchi@ericsson.com>
5427
5428 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5429 warning.
5430 * common/diagnostics.h: New file.
5431
b45a1208
PA
54322017-06-22 Pedro Alves <palves@redhat.com>
5433
5434 * common/agent.h: Add include guards.
5435
e4da2c61
SM
54362017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5437
5438 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5439 talk about addressable units instead of bytes.
5440
96160d60
SDJ
54412017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5442
5443 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5444 of '::const_iterator'.
5445
9a6c7d9c
SDJ
54462017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5447
5448 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5449 'unittests/environ-selftests.c'.
5450 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5451 * charset.c (find_charset_names): Declare object 'iconv_env'.
5452 Update code to use 'iconv_env' object. Remove call to
5453 'free_environ'.
5454 * common/environ.c: Include <utility>.
5455 (make_environ): Delete function.
5456 (free_environ): Delete function.
5457 (gdb_environ::clear): New function.
5458 (gdb_environ::operator=): New function.
5459 (gdb_environ::get): Likewise.
5460 (environ_vector): Delete function.
5461 (set_in_environ): Delete function.
5462 (gdb_environ::set): New function.
5463 (unset_in_environ): Delete function.
5464 (gdb_environ::unset): New function.
5465 (gdb_environ::envp): Likewise.
5466 * common/environ.h: Include <vector>.
5467 (struct gdb_environ): Delete; transform into...
5468 (class gdb_environ): ... this class.
5469 (free_environ): Delete prototype.
5470 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5471 environ_vector): Likewise.
5472 * infcmd.c (run_command_1): Update code to call
5473 'envp' from 'gdb_environ' class.
5474 (environment_info): Update code to call methods from 'gdb_environ'
5475 class.
5476 (unset_environment_command): Likewise.
5477 (path_info): Likewise.
5478 (path_command): Likewise.
5479 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5480 (inferior::inferior): Initialize 'environment' using the host's
5481 information.
5482 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5483 Include "environ.h".
5484 (class inferior) <environment>: Change type from 'struct
5485 gdb_environ' to 'gdb_environ'.
5486 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5487 methods from 'gdb_environ' class.
5488 * solib.c (solib_find_1): Likewise
5489 * unittests/environ-selftests.c: New file.
5490
75c554cf
YQ
54912017-06-20 Yao Qi <yao.qi@linaro.org>
5492
5493 * features/i386/i386-linux.xml: Exchange the order of including
5494 32bit-linux.xml and 32bit-sse.xml.
5495 * features/i386/i386-linux.c: Regenerated.
5496
72ddacb7
YQ
54972017-06-20 Yao Qi <yao.qi@linaro.org>
5498
5499 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5500 Delete copy ctor and assignment operator.
5501 (tdesc_type): Likewise.
5502 (tdesc_feature): Likewise.
5503 (tdesc_free_reg): Remove.
5504 (tdesc_create_reg): Use new.
5505 (tdesc_free_type): Remove.
5506 (tdesc_create_vector): Use new.
5507 (tdesc_create_union): Likewise.
5508 (tdesc_create_flags): Likewise.
5509 (tdesc_create_enum): Likewise.
5510 (tdesc_free_feature): Delete.
5511 (free_target_description): Use delete.
5512
325c9fd4
JB
55132017-06-19 John Baldwin <jhb@FreeBSD.org>
5514
5515 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5516 registers.
5517
16b7a719
PA
55182017-06-19 Pedro Alves <palves@redhat.com>
5519
5520 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5521 after gdb::unlinker.
5522
1c8e01c9
SDJ
55232017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5524
5525 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5526 gdb_environ to access an environment variable.
5527
ffce45d2
TP
55282017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5529
5530 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5531 gdb_byte*.
5532
1d4fbac9
SM
55332017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5534
5535 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5536
8465943a
SM
55372017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5538
5539 * configure: Re-generate.
5540 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5541
3e019bdc
SM
55422017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5543
5544 * configure: Re-generate.
5545 * warning.m4: Pass -Werror to compiler when checking for
5546 supported warning flags.
5547
cf0dd6f0
SM
55482017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5549
5550 * Makefile.in (COMPILE.pre): Add "-x c++".
5551
6f98355c
YQ
55522017-06-16 Alan Hayward <alan.hayward@arm.com>
5553 Pedro Alves <palves@redhat.com>
5554 Yao Qi <yao.qi@linaro.org>
5555
5556 * defs.h (RequireLongest): New.
5557 (extract_integer): Declare function template.
5558 (extract_signed_integer): Remove the declaration, but define it
5559 static inline.
5560 (extract_unsigned_integer): Likewise.
5561 (store_integer): Declare function template.
5562 (store_signed_integer): Remove the declaration, but define it
5563 static inline.
5564 (store_unsigned_integer): Likewise.
5565 * findvar.c (extract_integer): New function template.
5566 (extract_signed_integer): Remove.
5567 (extract_unsigned_integer): Remove.
5568 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5569 instantiations.
5570 (store_integer): New function template.
5571 (store_signed_integer): Remove.
5572 (store_unsigned_integer): Remove.
5573 (store_integer): Explicit instantiations.
5574 * regcache.c (regcache_raw_read_signed): Update.
5575 (regcache::raw_read): New function.
5576 (regcache::raw_read_signed): Remove.
5577 (regcache::raw_read_unsigned): Remove.
5578 (regcache_raw_read_unsigned): Update.
5579 (regcache_raw_write_unsigned): Update.
5580 (regcache::raw_write_signed): Remove.
5581 (regcache::raw_write): New function.
5582 (regcache_cooked_read_signed): Update.
5583 (regcache::raw_write_unsigned): Remove.
5584 (regcache::cooked_read_signed): Remove.
5585 (regcache_cooked_read_unsigned): Update.
5586 (regcache::cooked_read_unsigned): Remove.
5587 (regcache_cooked_write_signed): Update.
5588 (regcache_cooked_write_unsigned): Update.
5589 * regcache.h (regcache) <raw_read_signed>: Remove.
5590 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5591 <raw_read, raw_write>: New.
5592 <cooked_read_signed, cooked_write_signed>: Remove.
5593 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5594 <cooked_read, cooked_write>: New.
5595 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5596 (sh64_pseudo_register_write): Update.
5597
a87dc45a
AK
55982017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5599
5600 * arc-tdep.c (arc_disassembler_options): New variable.
5601 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5602 of default_print_insn.
5603 (arc_delayed_print_insn): Set info->section when needed,
5604 use default_print_insn to retrieve a disassembler.
5605
45159d6a
SDJ
56062017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5607
5608 PR gdb/21574
5609 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5610 to mention $SHELL and startup-with-shell.
5611
b46c4cf0
MF
56122017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5613
5614 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5615
6394c606
YQ
56162017-06-14 Yao Qi <yao.qi@linaro.org>
5617
5618 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5619 default_print_insn instead of print_insn_aarch64.
5620 * arm-tdep.c (gdb_print_insn_arm): Call
5621 default_print_insn instead of print_insn_big_arm
5622 and print_insn_little_arm.
5623 * i386-tdep.c (i386_print_insn): Call default_print_insn
5624 instead of print_insn_i386.
5625 * ia64-tdep.c (ia64_print_insn): Call
5626 default_print_insn instead of print_insn_ia64.
5627 * mips-tdep.c (gdb_print_insn_mips): Call
5628 default_print_insn instead of print_insn_big_mips
5629 and print_insn_little_mips.
5630 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5631 instead of print_insn_spu.
5632
d5722aa2
PA
56332017-06-14 Pedro Alves <palves@redhat.com>
5634
5635 * ada-lang.c: Include "common/byte-vector.h".
5636 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5637 * charset.c (wchar_iterator::iterate): Resize the vector instead
5638 of reserving it.
5639 * common/byte-vector.h: Include "common/def-vector.h".
5640 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5641 * cli/cli-dump.c: Include "common/byte-vector.h".
5642 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5643 * common/byte-vector.h: New file.
5644 * common/def-vector.h: New file.
5645 * common/default-init-alloc.h: New file.
5646 * dwarf2loc.c: Include "common/byte-vector.h".
5647 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5648 instead of reserving it.
5649 * dwarf2read.c: Include "common/byte-vector.h".
5650 (data_buf::m_vec): Now a gdb::byte_vector.
5651 * gdb_regex.c: Include "common/def-vector.h".
5652 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5653 * mi/mi-main.c: Include "common/byte-vector.h".
5654 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5655 * printcmd.c: Include "common/byte-vector.h".
5656 (print_scalar_formatted): Use gdb::byte_vector.
5657 * valprint.c: Include "common/byte-vector.h".
5658 (maybe_negate_by_bytes, print_decimal_chars): Use
5659 gdb::byte_vector.
5660
01ec7a27
SM
56612017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5662
5663 * darwin-nat.c: Include "nat/fork-inferior.h".
5664
848d9074
SM
56652017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5666
5667 * configure.nat: Factor out Darwin bits that are not
5668 architecture-specific. Add fork-inferior.o.
5669
3b912944
SM
56702017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5671
5672 * configure.nat: Factor out AIX bits that are not
5673 architecture-specific. Add fork-inferior.o.
5674
55acdf22
AA
56752017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5676
5677 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5678 (read_pieced_value, write_pieced_value): ...here. Reduce to
5679 wrappers that just call rw_pieced_value.
5680
f65e2044
AA
56812017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5682
5683 * dwarf2loc.c (write_pieced_value): When writing the data for a
5684 memory piece, use write_memory_with_notification instead of
5685 write_memory.
5686
23f945bf
AA
56872017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5688
5689 * valops.c (read_value_memory): Change embedded_offset to
5690 represent a bit offset instead of a byte offset.
5691 * value.h (read_value_memory): Adjust comment.
5692
f236533e
AA
56932017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5694
5695 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5696 dest_offset_bits and source_offset_bits.
5697 (write_pieced_value): Likewise.
5698
65d84b76
AA
56992017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5700
5701 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5702 given by DW_OP_bit_piece.
5703 (write_pieced_value): Likewise.
5704
242d31ab
AA
57052017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5706
5707 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5708 some other preparations to the places where sufficient information
5709 is available.
5710 (write_pieced_value): Likewise.
5711
03c8af18
AA
57122017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5713
5714 * dwarf2loc.c (bits_to_bytes): New function.
5715 (read_pieced_value): Fix offset calculations for register pieces
5716 on big-endian targets.
5717 (write_pieced_value): Likewise.
5718
840989c1
AA
57192017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5720
5721 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5722 (write_pieced_value): Likewise.
5723
359b19bb
AA
57242017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5725
5726 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5727 transfer the source value's least significant bits, instead of its
5728 lowest-addressed ones. Rename type_len to max_offset.
5729 (read_pieced_value): Mirror above changes to write_pieced_value as
5730 applicable.
5731
07c9ca3b
AA
57322017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5733
5734 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5735 truncate full bytes from dest_offset_bits before using it as an
5736 offset into the buffer.
5737
f1cc9874
AA
57382017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5739
5740 * dwarf2loc.c (write_pieced_value): Include transfer size in
5741 byte-wise check.
5742
cdaac320
AA
57432017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5744
5745 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5746 calculation of this_size.
5747
af547a96
AA
57482017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5749
5750 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5751 when targeting a bit-field.
5752 (write_pieced_value): Likewise.
5753
ddd7882a
AA
57542017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5755
5756 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5757 (allocate_piece_closure): Drop addr_size parameter.
5758 (dwarf2_evaluate_loc_desc_full): Adjust call to
5759 allocate_piece_closure.
5760
e9352324
AA
57612017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5762
5763 PR gdb/21226
5764 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5765 the LSB end, independent of endianness.
5766
d5d1163e
AA
57672017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5768
5769 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5770 size capping.
5771
032bb6ea
YQ
57722017-06-13 Yao Qi <yao.qi@linaro.org>
5773
5774 * mips-linux-nat.c: Move include features/mips*-linux.c to
5775 mips-linux-tdep.c.
5776 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5777 to mips-linux-tdep.c.
5778 * mips-linux-tdep.c: Include features/mips*-linux.c
5779 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5780 functions.
5781 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5782 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5783 (tdesc_mips64_dsp_linux): Declare.
5784
f12f6bad
TT
57852017-06-12 Tom Tromey <tom@tromey.com>
5786
5787 * valprint.h (val_print_type_code_int): Remove.
5788 * valprint.c (generic_val_print_int): Always call
5789 val_print_scalar_formatted.
5790 (val_print_type_code_int): Remove.
5791 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5792 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5793 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5794 * ada-valprint.c (ada_val_print_num): Use
5795 val_print_scalar_formatted.
5796
d9109c80
TT
57972017-06-12 Tom Tromey <tom@tromey.com>
5798
5799 * printcmd.c (print_scalar_formatted): Unify the two switches.
5800 Don't convert scalars to LONGEST.
5801
4ac0cb1c
TT
58022017-06-12 Tom Tromey <tom@tromey.com>
5803
5804 PR exp/16225:
5805 * valprint.h (print_decimal_chars): Update.
5806 * valprint.c (maybe_negate_by_bytes): New function.
5807 (print_decimal_chars): Add "is_signed" argument.
5808 * printcmd.c (print_scalar_formatted): Update.
5809
30a25466
TT
58102017-06-12 Tom Tromey <tom@tromey.com>
5811
5812 PR exp/16225:
5813 * valprint.h (print_binary_chars, print_hex_chars): Update.
5814 * valprint.c (val_print_type_code_int): Update.
5815 (print_binary_chars): Add "zero_pad" argument.
5816 (emit_octal_digit): New function.
5817 (print_octal_chars): Don't zero-pad.
5818 (print_decimal_chars): Likewise.
5819 (print_hex_chars): Add "zero_pad" argument.
5820 * sh64-tdep.c (sh64_do_fp_register): Update.
5821 * regcache.c (regcache::dump): Update.
5822 * printcmd.c (print_scalar_formatted): Update.
5823 * infcmd.c (default_print_one_register_info): Update.
5824
b3464d03
PA
58252017-06-12 Pedro Alves <palves@redhat.com>
5826 Alan Hayward <alan.hayward@arm.com>
5827
5828 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5829 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5830 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5831 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5832 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5833
4b76cda9
PA
58342017-06-12 Pedro Alves <palves@redhat.com>
5835
5836 * dwarf2read.c (mapped_symtab::data): Now a vector of
5837 symtab_index_entry instead of vector of
5838 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5839 whether an element's name is NULL instead of checking whether the
5840 element itself is NULL.
5841 (find_slot): Change return type. Adjust.
5842 (hash_expand, , add_index_entry, uniquify_cu_indices)
5843 (write_hash_table): Adjust.
5844
e8f8bcb3
PA
58452017-06-12 Pedro Alves <palves@redhat.com>
5846
5847 * dwarf2read.c (recursively_count_psymbols): New function.
5848 (write_psymtabs_to_index): Call it to compute number of psyms and
5849 pass estimate size of psyms_seen to unordered_set's ctor.
5850
70a1152b
PA
58512017-06-12 Pedro Alves <palves@redhat.com>
5852
5853 * dwarf2read.c (write_hash_table): Check if key already exists
5854 before emplacing.
5855
c2f134ac
PA
58562017-06-12 Pedro Alves <palves@redhat.com>
5857
5858 * dwarf2read.c (data_buf::append_space): Rename to...
5859 (data_buf::grow): ... this, and make private. Adjust all callers.
5860 (data_buf::append_uint): New method.
5861 (add_address_entry, write_one_signatured_type)
5862 (write_psymtabs_to_index): Use it.
5863
a81e6d4d
PA
58642017-06-12 Pedro Alves <palves@redhat.com>
5865
5866 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5867 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5868 (data_buf::file_write): Call ::fwrite directly.
5869
6fd931f2
PA
58702017-06-12 Pedro Alves <palves@redhat.com>
5871
5872 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5873 std::vector::erase.
5874
bc8f2430
JK
58752017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5876
5877 Code cleanup: C++ify .gdb_index producer.
5878 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5879 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5880 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5881 (create_strtab, add_string): Remove.
5882 (file_write, data_buf): New.
5883 (struct symtab_index_entry): Use std::vector for cu_indices.
5884 (struct mapped_symtab): Use std::vector for data.
5885 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5886 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5887 Remove.
5888 (find_slot): Change return type. Update it to the new data structures.
5889 (hash_expand, add_index_entry): Update it to the new data structures.
5890 (offset_type_compare): Remove.
5891 (uniquify_cu_indices): Update it to the new data structures.
5892 (c_str_view, c_str_view_hasher, vector_hasher): New.
5893 (add_indices_to_cpool): Remove.
5894 (write_hash_table): Update it to the new data structures.
5895 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5896 (eq_psymtab_cu_index): Remove.
5897 (psym_index_map): New typedef.
5898 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5899 reference and std::unordered_map for cu_index_htab.
5900 (add_address_entry, add_address_entry_worker, write_address_map)
5901 (write_psymbols): Update it to the new data structures.
5902 (write_obstack): Remove.
5903 (struct signatured_type_index_data): Change types_list to a data_buf
5904 reference and psyms_seen to a std::unordered_set reference.
5905 (write_one_signatured_type, recursively_write_psymbols)
5906 (write_psymtabs_to_index): Update it to the new data structures.
5907
c4dcb155
SM
59082017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5909
5910 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5911 separate-debug-file commands.
5912 * symfile.h (separate_debug_file_debug): New global.
5913 * symfile.c (separate_debug_file_debug): New global.
5914 (separate_debug_file_exists, find_separate_debug_file): Add
5915 debug output.
5916 (_initialize_symfile): Add "set debug separate-debug-file"
5917 command.
5918 * build-id.c (build_id_to_debug_bfd,
5919 find_separate_debug_file_by_buildid): Add debug output.
5920
6d45d4b4
SM
59212017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5922
5923 * gdbarch.sh (displaced_step_free_closure): Remove.
5924 * gdbarch.h, gdbarch.c: Re-generate.
5925 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5926 displaced_step_free_closure.
5927 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5928 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5929 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5930 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5931 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5932 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5933 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5934 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5935 * infrun.c (displaced_step_clear): Call xfree instead of
5936 gdbarch_displaced_step_free_closure.
5937
2f91880f
SDJ
59382017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5939
5940 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5941 NULL".
5942
b8b6e72f
AH
59432017-06-08 Alan Hayward <alan.hayward@arm.com>
5944
5945 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5946 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5947 (mn10300_push_dummy_call): Likewise.
5948
5369082e
AH
59492017-06-08 Alan Hayward <alan.hayward@arm.com>
5950
5951 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5952
ff4ca5ac
AH
59532017-06-08 Alan Hayward <alan.hayward@arm.com>
5954
5955 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5956
aefd8b33
SDJ
59572017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5958
5959 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5960 able to start inferiors using a shell.
5961 (New remote packets): Announce new packet "QStartupWithShell".
5962 * remote.c: Add PACKET_QStartupWithShell.
5963 (extended_remote_create_inferior): Handle new
5964 PACKET_QStartupWithShell.
5965 (remote_protocol_features) <QStartupWithShell>: New entry for
5966 PACKET_QStartupWithShell.
5967 (_initialize_remote): Call "add_packet_config_cmd" for
5968 QStartupShell.
5969
2090129c
SDJ
59702017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5971 Pedro Alves <palves@redhat.com>
5972
5973 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5974 and "nat/fork-inferior.h".
5975 * common/common-inferior.h: New file, with contents from
5976 "gdb/inferior.h".
5977 * commom/common-utils.c: Include "common-utils.h".
5978 (stringify_argv): New function.
5979 * common/common-utils.h (stringify_argv): New prototype.
5980 * configure.nat: Add "fork-inferior.o" as a dependency for
5981 "*linux*", "fbsd*" and "nbsd*" hosts.
5982 * corefile.c (get_exec_file): Update comment.
5983 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5984 instead of "startup_inferior".
5985 (darwin_create_inferior): Call "add_thread_silent" after
5986 "fork_inferior".
5987 * fork-child.c: Cleanup unnecessary includes.
5988 (SHELL_FILE): Move to "common/common-fork-child.c".
5989 (environ): Likewise.
5990 (exec_wrapper): Initialize.
5991 (get_exec_wrapper): New function.
5992 (breakup_args): Move to "common/common-fork-child.c"; rename to
5993 "breakup_args_for_exec".
5994 (escape_bang_in_quoted_argument): Move to
5995 "common/common-fork-child.c".
5996 (saved_ui): New variable.
5997 (prefork_hook): New function.
5998 (postfork_hook): Likewise.
5999 (postfork_child_hook): Likewise.
6000 (gdb_startup_inferior): Likewise.
6001 (fork_inferior): Move to "common/common-fork-child.c". Update
6002 function to support gdbserver.
6003 (startup_inferior): Likewise.
6004 * gdbcore.h (get_exec_file): Remove declaration.
6005 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
6006 instead of "startup_inferior". Call "add_thread_silent" after
6007 "fork_inferior".
6008 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
6009 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
6010 instead of "startup_inferior". Call "add_thread_silent" after
6011 "fork_inferior".
6012 * inferior.h: Include "common-inferior.h".
6013 (trace_start_error): Move to "common/common-utils.h".
6014 (trace_start_error_with_name): Likewise.
6015 (fork_inferior): Move prototype to "nat/fork-inferior.h".
6016 (startup_inferior): Likewise.
6017 (gdb_startup_inferior): New prototype.
6018 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
6019 * nat/fork-inferior.h: New file.
6020 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
6021 instead of "startup_inferior". Call "add_thread_silent" after
6022 "fork_inferior".
6023 * target.h (target_terminal_init): Move prototype to
6024 "target/target.h".
6025 (target_terminal_inferior): Likewise.
6026 (target_terminal_ours): Likewise.
6027 * target/target.h (target_terminal_init): New prototype, moved
6028 from "target.h".
6029 (target_terminal_inferior): Likewise.
6030 (target_terminal_ours): Likewise.
6031 * utils.c (gdb_flush_out_err): New function.
6032
043a4934
SDJ
60332017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6034
6035 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
6036 * common/common-gdbthread.h: New file, with parts from
6037 "gdb/gdbthread.h".
6038 * gdbthread.h: Include "common-gdbthread.h".
6039 (switch_to_thread): Moved to "common/common-gdbthread.h".
6040
15652511
SDJ
60412017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6042
6043 * Makefile.in (SFILES): Add "common/job-control.c".
6044 (HFILES_NO_SRCDIR): Add "common/job-control.h".
6045 (COMMON_OBS): Add "job-control.o".
6046 * common/job-control.c: New file, with contents from
6047 "gdb/inflow.c".
6048 * common/job-control.h: New file, with contents from "terminal.h".
6049 * fork-child.c: Include "job-control.h".
6050 * inflow.c: Include "job-control.h".
6051 (gdb_setpgid): Move to "common/common-inflow.c".
6052 (_initialize_inflow): Move setting of "job_control" to
6053 "handle_job_control".
6054 * terminal.h (job_control): Moved to "common/common-terminal.h".
6055 (gdb_setpgid): Likewise.
6056 * top.c: Include "job_control.h".
6057 * utils.c: Likewise.
6058 (job_control): Moved to "job-control.c".
6059
2d7cc5c7
PA
60602017-06-07 Pedro Alves <palves@redhat.com>
6061
6062 * Makefile.in (SFILES): Add gdb_regex.c.
6063 (COMMON_OBS): Add gdb_regex.o.
6064 * ada-lang.c (ada_add_standard_exceptions)
6065 (ada_add_exceptions_from_frame, name_matches_regex)
6066 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
6067 parameter type to compiled_regex. Adjust.
6068 (ada_exceptions_list): Use compiled_regex.
6069 * break-catch-throw.c (exception_catchpoint::pattern): Now a
6070 std::unique_ptr<compiled_regex>.
6071 (exception_catchpoint::~exception_catchpoint): Remove regfree
6072 call.
6073 (check_status_exception_catchpoint): Adjust to use compiled_regex.
6074 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
6075 * breakpoint.c (solib_catchpoint::compiled): Now a
6076 std::unique_ptr<compiled_regex>.
6077 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
6078 (check_status_catch_solib): Adjust to use compiled_regex.
6079 (add_solib_catchpoint): Adjust to use compiled_regex.
6080 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
6081 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
6082 compiled_regex reference. Adjust to use it.
6083 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
6084 declaration. Include "gdb_regex.h".
6085 (apropos_cmd): Change regex parameter to compiled_regex reference.
6086 * gdb_regex.c: New file.
6087 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
6088 declarations.
6089 (class compiled_regex): New.
6090 * linux-tdep.c: Include "common/gdb_optional.h".
6091 (struct mapping_regexes): New, factored out from
6092 mapping_is_anonymous_p, and adjusted to use compiled_regex.
6093 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
6094 gdb::optional and remove cleanups. Adjust to compiled_regex.
6095 * probe.c: Include "common/gdb_optional.h".
6096 (collect_probes): Use compiled_regex and gdb::optional and remove
6097 cleanups.
6098 * skip.c: Include "common/gdb_optional.h".
6099 (skiplist_entry::compiled_function_regexp): Now a
6100 gdb::optional<compiled_regex>.
6101 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
6102 (free_skiplist_entry): Remove regfree call.
6103 (compile_skip_regexp, skip_rfunction_p): Adjust to use
6104 compiled_regex and gdb::optional.
6105 * symtab.c: Include "common/gdb_optional.h".
6106 (search_symbols): Use compiled_regex and gdb::optional.
6107 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
6108 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
6109 to gdb_regex.c.
6110
50d6adef
AH
61112017-06-07 Alan Hayward <alan.hayward@arm.com>
6112
6113 * regcache.c (regcache::save): Avoid buffer use.
6114 (regcache::dump): Likewise.
6115
4a8a33c8
AH
61162017-06-07 Alan Hayward <alan.hayward@arm.com>
6117
6118 * sh-tdep.c (sh_pseudo_register_read): Remove
6119 MAX_REGISTER_SIZE.
6120 (sh_pseudo_register_write): Likewise.
6121 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
6122 (sh64_pseudo_register_write): Likewise
6123
d1be909e
AH
61242017-06-07 Alan Hayward <alan.hayward@arm.com>
6125
6126 * aarch64-tdep.c (aarch64_store_return_value): Use
6127 V_REGISTER_SIZE.
6128 (aarch64_pseudo_read_value): Likewise.
6129 (aarch64_pseudo_write): Likewise.
6130
f4a65042
YQ
61312017-06-06 Yao Qi <yao.qi@linaro.org>
6132
6133 * regformats/regdef.h (set_register_cache): Remove the
6134 declaration.
6135
9f7fb0aa
AH
61362017-06-06 Alan Hayward <alan.hayward@arm.com>
6137
6138 * frame.c (frame_unwind_register_signed): Use
6139 frame_unwind_register_value.
6140
e1e01040
PA
61412017-06-06 Pedro Alves <palves@redhat.com>
6142
6143 PR breakpoints/21553
6144 * breakpoint.c (create_breakpoints_sal_default)
6145 (init_breakpoint_sal, create_breakpoint_sal): Use
6146 gdb::unique_xmalloc_ptr for string parameters.
6147 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6148 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
6149 (base_breakpoint_create_breakpoints_sal)
6150 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
6151 (strace_marker_create_breakpoints_sal)
6152 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
6153 string parameters.
6154 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
6155 gdb::unique_xmalloc_ptr for string parameters.
6156 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6157 parameters.
6158
fbe654c8
AH
61592017-06-06 Alan Hayward <alan.hayward@arm.com>
6160
6161 * alpha-tdep.c (alpha_register_to_value): Use
6162 get_frame_register_value.
6163 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
6164
ae0d01d6
AH
61652017-06-06 Alan Hayward <alan.hayward@arm.com>
6166
6167 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
6168 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
6169 (ia64_value_to_register): Likewise.
6170 (ia64_extract_return_value): Likewise.
6171 (ia64_store_return_value): Likewise.
6172 (ia64_push_dummy_call): Likewise.
6173
49cf576c
JB
61742017-06-04 Joel Brobecker <brobecker@adacore.com>
6175
6176 GDB 8.0 released.
6177
26b6a6ab
SM
61782017-06-03 Simon Marchi <simon.marchi@ericsson.com>
6179
6180 * x86-linux-nat.c (struct arch_lwp_info): Remove.
6181
22827c51
SM
61822017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
6183
6184 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
6185 parameter.
6186 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
6187
0e05cf3a
SM
61882017-06-02 Simon Marchi <simon.marchi@ericsson.com>
6189
6190 * event-loop.c (poll_timers): Unallocate timer using delete
6191 instead of xfree.
6192
c1fc2657
SM
61932017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6194
6195 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
6196 (struct breakpoint) <~breakpoint>: New.
6197 (struct watchpoint): Inherit from breakpoint.
6198 <~watchpoint>: New.
6199 <base>: Remove.
6200 (struct tracepoint): Inherit from breakpoint.
6201 <base>: Remove.
6202 * breakpoint.c (longjmp_breakpoint_ops): Remove.
6203 (struct longjmp_breakpoint): Inherit from breakpoint.
6204 <~longjmp_breakpoint>: New.
6205 <base>: Remove.
6206 (new_breakpoint_from_type): Remove casts.
6207 (watchpoint_in_thread_scope): Remove reference to base field.
6208 (watchpoint_del_at_next_stop): Likewise.
6209 (update_watchpoint): Likewise.
6210 (watchpoint_check): Likewise.
6211 (bpstat_check_watchpoint): Likewise.
6212 (set_longjmp_breakpoint): Likewise.
6213 (struct fork_catchpoint): Inherit from breakpoint.
6214 <base>: Remove.
6215 (struct solib_catchpoint): Inherit from breakpoint.
6216 <~solib_catchpoint>: New.
6217 <base>: Remove.
6218 (dtor_catch_solib): Change to ...
6219 (solib_catchpoint::~solib_catchpoint): ... this.
6220 (breakpoint_hit_catch_solib): Remove reference to base field.
6221 (add_solib_catchpoint): Likewise.
6222 (create_fork_vfork_event_catchpoint): Likewise.
6223 (struct exec_catchpoint): Inherit from breakpoint.
6224 <~exec_catchpoint>: New.
6225 <base>: Remove.
6226 (dtor_catch_exec): Change to ...
6227 (exec_catchpoint::~exec_catchpoint): ... this.
6228 (dtor_watchpoint): Change to ...
6229 (watchpoint::~watchpoint): ... this.
6230 (watch_command_1): Remove reference to base field.
6231 (catch_exec_command_1): Likewise.
6232 (base_breakpoint_dtor): Change to ...
6233 (breakpoint::~breakpoint): ... this.
6234 (base_breakpoint_ops): Remove dtor field value.
6235 (longjmp_bkpt_dtor): Change to ...
6236 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
6237 (strace_marker_create_breakpoints_sal): Remove reference to base
6238 field.
6239 (delete_breakpoint): Don't manually call breakpoint destructor.
6240 (create_tracepoint_from_upload): Remove reference to base field.
6241 (trace_pass_set_count): Likewise.
6242 (initialize_breakpoint_ops): Don't initialize
6243 momentary_breakpoint_ops, don't set dtors.
6244 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
6245 <~ada_catchpoint>: New.
6246 <base>: Remove.
6247 (create_excep_cond_exprs): Remove reference to base field.
6248 (dtor_exception): Change to ...
6249 (ada_catchpoint::~ada_catchpoint): ... this.
6250 (dtor_catch_exception): Remove.
6251 (dtor_catch_exception_unhandled): Remove.
6252 (dtor_catch_assert): Remove.
6253 (create_ada_exception_catchpoint): Remove reference to base
6254 field.
6255 (initialize_ada_catchpoint_ops): Don't set dtors.
6256 * break-catch-sig.c (struct signal_catchpoint): Inherit from
6257 breakpoint.
6258 <~signal_catchpoint>: New.
6259 <base>: Remove.
6260 (signal_catchpoint_dtor): Change to ...
6261 (signal_catchpoint::~signal_catchpoint): ... this.
6262 (create_signal_catchpoint): Remove reference to base field.
6263 (initialize_signal_catchpoint_ops): Don't set dtor.
6264 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
6265 from breakpoint.
6266 <~syscall_catchpoint>: New.
6267 <base>: Remove.
6268 (dtor_catch_syscall): Change to ...
6269 (syscall_catchpoint::~syscall_catchpoint): ... this.
6270 (create_syscall_event_catchpoint): Remove reference to base
6271 field.
6272 (initialize_syscall_catchpoint_ops): Don't set dtor.
6273 * break-catch-throw.c (struct exception_catchpoint): Inherit
6274 from breakpoint.
6275 <~exception_catchpoint>: New.
6276 <base>: Remove.
6277 (dtor_exception_catchpoint): Change to ...
6278 (exception_catchpoint::~exception_catchpoint): ... this.
6279 (handle_gnu_v3_exceptions): Remove reference to base field.
6280 (initialize_throw_catchpoint_ops): Don't set dtor.
6281 * ctf.c (ctf_get_traceframe_address): Remove reference to base
6282 field.
6283 * remote.c (remote_get_tracepoint_status): Likewise.
6284 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
6285 * tracefile.c (tracefile_fetch_registers): Likewise.
6286 * tracepoint.c (actions_command): Likewise.
6287 (validate_actionline): Likewise.
6288 (tfind_1): Likewise.
6289 (get_traceframe_location): Likewise.
6290 (find_matching_tracepoint_location): Likewise.
6291 (parse_tracepoint_status): Likewise.
6292 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
6293
3b0871f4
SM
62942017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6295
6296 * breakpoint.c (struct longjmp_breakpoint): New struct.
6297 (is_tracepoint_type): Change return type to bool.
6298 (is_longjmp_type): New function.
6299 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
6300 (set_raw_breakpoint_without_location): Use
6301 new_breakpoint_from_type.
6302 (set_raw_breakpoint): Likewise.
6303
a5e364af
SM
63042017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6305
6306 * breakpoint.c (new_breakpoint_from_type): New function.
6307 (create_breakpoint_sal): Use new_breakpoint_from_type and
6308 unique_ptr.
6309 (create_breakpoint): Likewise.
6310
ae3b3f34
SM
63112017-05-31 Simon Marchi <simon.marchi@ericsson.com>
6312
6313 * memattr.c (mem_info_command): Rename to ...
6314 (info_mem_command): ... this.
6315 (mem_enable_command): Rename to ...
6316 (enable_mem_command): ... this.
6317 (mem_disable_command): Rename to ...
6318 (disable_mem_command): ... this.
6319 (mem_delete_command): Rename to ...
6320 (delete_mem_command): ... this.
6321 (_initialize_mem): Adjust function names.
6322
13ace077
MM
63232017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6324
6325 * btrace.c (handle_pt_insn_events): New.
6326 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
6327 STATUS. Split into this and ...
6328 (handle_pt_insn_event_flags): ... this.
6329
c56ccc05
MM
63302017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6331
6332 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
6333 and struct pt_insn.resynced.
6334 * configure: Regenerated.
6335 * config.in: Regenerated.
6336
08c3f6d2
TW
63372017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6338
6339 * btrace.c (ftrace_find_call_by_number): New function.
6340 (ftrace_new_function): Store objects, not pointers.
6341 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
6342 ftrace_new_gap, ftrace_update_function,
6343 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
6344 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
6345 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
6346 btrace_ends_with_single_insn, btrace_call_get): Account for
6347 btrace_thread_info::functions now storing objects.
6348 * btrace.h (struct btrace_thread_info): Add constructor.
6349 (struct btrace_thread_info) <functions>: Make std::vector.
6350 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
6351 Initialize with default values.
6352 * record-btrace.c (record_btrace_frame_sniffer): Account for
6353 btrace_thread_info::functions now storing objects.
6354
8ffd39f2
TW
63552017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6356
6357 * btrace.c: Remove typedef bfun_s.
6358 (ftrace_new_gap): Directly add gaps to the list of gaps.
6359 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
6360 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
6361 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
6362 instead of gdb VEC.
6363
4aeb0dfc
TW
63642017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6365
6366 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
6367 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
6368 with btrace_thread_info::next_segment and
6369 btrace_thread_info::prev_segment.
6370 * btrace.h: Remove struct btrace_func_link.
6371 (struct btrace_function): Replace pair of function segment pointers
6372 with pair of indices.
6373 * python/py-record-btrace.c (btpy_call_prev_sibling,
6374 btpy_call_next_sibling): Replace references to
6375 btrace_thread_info::segment with btrace_thread_info::next_segment and
6376 btrace_thread_info::prev_segment.
6377 * record-btrace.c (record_btrace_frame_this_id): Use
6378 btrace_find_call_by_number.
6379
eb8f2b9c
TW
63802017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6381
6382 * btrace.c (ftrace_new_function, ftrace_fixup_level,
6383 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
6384 btrace_insn_next, btrace_insn_prev): Remove references to
6385 btrace_thread_info::flow.
6386 * btrace.h (struct btrace_function): Remove FLOW.
6387
42bfe59e
TW
63882017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6389
6390 * btrace.c (ftrace_find_call_by_number): New function.
6391 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
6392 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
6393 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
6394 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
6395 index.
6396 * btrace.h (struct btrace_function): Turn UP into an index.
6397 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
6398 as an index.
6399 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
6400 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
6401 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
6402
b54b03bd
TW
64032017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6404
6405 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6406 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6407 ftrace_update_function, ftrace_compute_global_level_offset,
6408 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
6409 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
6410 btrace_insn_end, btrace_is_empty): Remove references to
6411 btrace_thread_info::begin and btrace_thread_info::end.
6412 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
6413 (struct btrace_thread_info) <functions>: Adjust comment.
6414 * record-btrace.c (record_btrace_start_replaying): Remove reference to
6415 btrace_thread_info::begin.
6416
8286623c
TW
64172017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6418
6419 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6420 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6421 ftrace_update_function): Remove arguments that implicitly were always
6422 BTINFO->END.
6423 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6424 Don't pass BTINFO->END.
6425
a0f1b963
TW
64262017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6427
6428 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6429 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6430 btrace_find_insn_by_number): Replace function segment pointer with
6431 index.
6432 (btrace_insn_cmp): Simplify.
6433 * btrace.h: (struct btrace_insn_iterator) Rename index to
6434 insn_index. Replace function segment pointer with index into function
6435 segment vector.
6436 * record-btrace.c (record_btrace_call_history): Replace function
6437 segment pointer use with index.
6438 (record_btrace_frame_sniffer): Retrieve function call segment through
6439 vector.
6440 (record_btrace_set_replay): Remove defunc't safety check.
6441
f158f208
TW
64422017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6443
6444 * btrace.c (btrace_ends_with_single_insn): New function.
6445 (btrace_call_get, btrace_call_number, btrace_call_begin,
6446 btrace_call_end, btrace_call_next, btrace_call_prev,
6447 btrace_find_call_by_number): Use index into call segment vector
6448 instead of pointer.
6449 (btrace_call_cmp): Simplify.
6450 * btrace.h (struct btrace_call_iterator): Replace function call segment
6451 pointer with index into vector.
6452 * record-btrace.c (record_btrace_call_history): Use index instead of
6453 pointer.
6454
521103fd
TW
64552017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6456
6457 * btrace.c (btrace_insn_begin, btrace_insn_end,
6458 btrace_find_insn_by_number): Add btinfo to iterator.
6459 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6460
17b89b34
TW
64612017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6462
6463 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6464 and save pointers directly.
6465 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6466 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6467 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6468 changed signature of functions.
6469 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6470 (btrace_fetch): Remove code that adds btrace_function pointers to
6471 vector of btrace_functions.
6472 (btrace_clear): Simplify freeing vector of btrace_functions.
6473
2b51eddc
TW
64742017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6475
6476 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6477 Replace VEC_* with std::vector functions.
6478 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6479 (struct btrace_thread_info)<functions>: Change type to std::vector.
6480
db6be0d5
SM
64812017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6482
6483 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6484 "Removed targets and native configurations" up. Merge duplicate
6485 "New commands" sub-sections. Add "New options" sub-sections.
6486
b057297a
AH
64872017-05-26 Alan Hayward <alan.hayward@arm.com>
6488
6489 * defs.h (copy_integer_to_size): New declaration.
6490 * findvar.c (copy_integer_to_size): New function.
6491 (do_cint_test): New selftest function.
6492 (copy_integer_to_size_test): Likewise.
6493 (_initialize_findvar): Likewise.
6494 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6495 (mips_fbsd_collect_reg): Use raw_collect_integer.
6496 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6497 (mips64_fill_gregset): Use raw_collect_integer
6498 (mips64_fill_fpregset): Use raw_supply_integer.
6499 * regcache.c (regcache::raw_supply_integer): New function.
6500 (regcache::raw_collect_integer): Likewise.
6501 * regcache.h: (regcache::raw_supply_integer): New declaration.
6502 (regcache::raw_collect_integer): Likewise.
6503
b77b02a5
YQ
65042017-05-24 Yao Qi <yao.qi@linaro.org>
6505
6506 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6507 (COMMON_OBS): Add gdbarch-selftests.o.
6508 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6509 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6510 * gdbarch-selftests.c: New file.
6511 * regcache.h (regcache) <~regcache>: Mark it virtual if
6512 GDB_SELF_TEST.
6513 <raw_write>: Likewise.
6514
e521e87e
YQ
65152017-05-24 Yao Qi <yao.qi@linaro.org>
6516
6517 * regcache.c (current_regcache): Change it to
6518 regcache::current_regcache.
6519 (regcache_observer_target_changed): Update.
6520 (regcache_thread_ptid_changed): Make it a regcache static
6521 method.
6522 (regcache_thread_ptid_changed): Update.
6523 (class regcache_access): New.
6524 (current_regcache_test): Update.
6525 (_initialize_regcache): Update.
6526 * regcache.h: Include forward_list.
6527 (regcache): Declare regcache_thread_ptid_changed and declare
6528 registers_changed_ptid as friend.
6529
d8e07dda
YQ
65302017-05-24 Yao Qi <yao.qi@linaro.org>
6531
6532 * i387-tdep.c (i387_register_to_value): Use register_size
6533 instead of TYPE_LENGTH.
6534 * m68k-tdep.c (m68k_register_to_value): Likewise.
6535
8c8f9122
YQ
65362017-05-24 Yao Qi <yao.qi@linaro.org>
6537
6538 * i387-tdep.c (i387_convert_register_p): Return false if type
6539 code isn't TYPE_CODE_FLT.
6540
68fce50f
YQ
65412017-05-24 Yao Qi <yao.qi@linaro.org>
6542
6543 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6544 length is 4.
6545 (alpha_register_to_value): Remove type length check.
6546 (alpha_value_to_register): Likewise.
6547
88954b49
YQ
65482017-05-24 Yao Qi <yao.qi@linaro.org>
6549
6550 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6551 TYPE_CODE_FLT.
6552
e3ec9b69
YQ
65532017-05-24 Yao Qi <yao.qi@linaro.org>
6554
6555 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6556 TYPE_CODE_FLT or not.
6557
cdd238da
YQ
65582017-05-24 Yao Qi <yao.qi@linaro.org>
6559
6560 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6561 * avr-tdep.c (avr_gdbarch_init): Likewise.
6562 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6563 * cris-tdep.c (cris_gdbarch_init): Likewise.
6564 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6565 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6566 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6567 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6568 * mep-tdep.c (mep_gdbarch_init): Likewise.
6569 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6570 * mips-tdep.c (mips_gdbarch_init): Likewise.
6571 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6572 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6573 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6574 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6575 * v850-tdep.c (v850_gdbarch_init): Likewise.
6576
7a3929c4
YQ
65772017-05-24 Yao Qi <yao.qi@linaro.org>
6578
6579 * selftest-arch.c (tests_with_arch): Call registers_changed
6580 and reinit_frame_cache.
6581 * selftest.c (run_self_tests): Likewise.
6582
f4985dba
YQ
65832017-05-24 Yao Qi <yao.qi@linaro.org>
6584
6585 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6586 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6587
ab20fa4a
YQ
65882017-05-24 Yao Qi <yao.qi@linaro.org>
6589
6590 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6591 set_gdbarch_print_insn.
6592
f532ab94
YQ
65932017-05-24 Yao Qi <yao.qi@linaro.org>
6594
6595 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6596 set_gdbarch_print_insn.
6597
39503f82
YQ
65982017-05-24 Yao Qi <yao.qi@linaro.org>
6599
6600 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6601 set_gdbarch_print_insn.
6602 * arc-tdep.c (arc_gdbarch_init): Likewise.
6603 * arch-utils.c: include dis-asm.h.
6604 (default_print_insn): New function.
6605 * arch-utils.h (default_print_insn): Declare.
6606 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6607 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6608 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6609 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6610 * frv-tdep.c (frv_gdbarch_init): Likewise.
6611 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6612 * gdbarch.sh (print_insn): Use default_print_insn.
6613 * gdbarch.c: Regenerated.
6614 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6615 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6616 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6617 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6618 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6619 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6620 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6621 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6622 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6623 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6624 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6625 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6626 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6627 * mt-tdep.c (mt_gdbarch_init): Likewise.
6628 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6629 * nios2-tdep.c (nios2_print_insn): Remove.
6630 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6631 * rx-tdep.c (rx_gdbarch_init): Likewise.
6632 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6633 * score-tdep.c (score_print_insn): Remove.
6634 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6635 * sh-tdep.c (sh_gdbarch_init): Likewise.
6636 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6637 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6638 * tic6x-tdep.c (tic6x_print_insn): Remove.
6639 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6640 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6641 * v850-tdep.c (v850_gdbarch_init): Likewise.
6642 * vax-tdep.c (vax_gdbarch_init): Likewise.
6643 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6644 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6645
f7241d4f
JB
66462017-05-23 John Baldwin <jhb@FreeBSD.org>
6647
6648 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6649 (MIPS_FP0_REGNUM): Remove.
6650 (MIPS_FSR_REGNUM): Remove.
6651 (mips_fbsd_supply_fpregs): Use mips_regnum.
6652 (mips_fbsd_supply_gregs): Likewise.
6653 (mips_fbsd_collect_fpregs): Likewise.
6654 (mips_fbsd_collect_gregs): Likewise.
6655
d489d81d
JB
66562017-05-23 John Baldwin <jhb@FreeBSD.org>
6657
6658 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6659 (getpfpregs_supplies): New function.
6660 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6661 getfpregs_supplies.
6662 (mips_fbsd_store_inferior_registers): Likewise.
6663
e11b3cdc
PA
66642017-05-22 Pedro Alves <palves@redhat.com>
6665
6666 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6667 maintainer.
6668
0f068fb5
AH
66692017-05-22 Alan Hayward <alan.hayward@arm.com>
6670
6671 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6672 (store_register): Likewise.
6673 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6674 (get_decimal_float_return_value): Likewise.
6675 (do_ppc_sysv_return_value): Likewise.
6676 (ppc64_sysv_abi_push_integer): Likewise.
6677 (ppc64_sysv_abi_push_freg): Likewise.
6678 (ppc64_sysv_abi_return_value_base): Likewise.
6679 (ppc64_sysv_abi_return_value): Likewise.
6680 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6681 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6682 * rs6000-nat.c: Likewise.
6683 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6684 (rs6000_value_to_register): Likewise.
6685 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6686
e6cf65f2
TT
66872017-05-21 Tom Tromey <tom@tromey.com>
6688
6689 PR rust/21466:
6690 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6691 arrays as "[T]", not "[T; ]".
6692
43cc5389
TT
66932017-05-19 Tom Tromey <tom@tromey.com>
6694
6695 PR rust/21484:
6696 * rust-lang.c (exp_descriptor_rust): New function.
6697 (rust_language_defn): Use it.
6698 * p-lang.c (pascal_language_defn): Update.
6699 * opencl-lang.c (opencl_language_defn): Update.
6700 * objc-lang.c (objc_language_defn): Update.
6701 * m2-lang.c (m2_language_defn): Update.
6702 * language.h (struct language_defn)
6703 <la_watch_location_expression>: New member.
6704 * language.c (unknown_language_defn, auto_language_defn)
6705 (local_language_defn): Update.
6706 * go-lang.c (go_language_defn): Update.
6707 * f-lang.c (f_language_defn): Update.
6708 * d-lang.c (d_language_defn): Update.
6709 * c-lang.h (c_watch_location_expression): Declare.
6710 * c-lang.c (c_watch_location_expression): New function.
6711 (c_language_defn, cplus_language_defn, asm_language_defn)
6712 (minimal_language_defn): Use it.
6713 * breakpoint.c (watch_command_1): Call
6714 la_watch_location_expression.
6715 * ada-lang.c (ada_language_defn): Update.
6716
7a6e7fcc
RO
67172017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6718
6e7e1744
RO
6719 PR tui/21482
6720 * gdb_curses.h (NOMACROS): Define.
6721 (NCURSES_NOMACROS): Define.
6722
67232017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6724
6725 PR tui/21482
7a6e7fcc
RO
6726 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6727 arg to char *.
6728 * tui/tui-wingeneral.c (box_win): Likewise.
6729 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6730 (tui_show_source_line): Likewise.
6731 (tui_show_exec_info_content): Likewise.
6732
1933fd8e
VM
67332017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6734
6735 * sparc-tdep.c (sparc_structure_return_p)
6736 (sparc_arg_on_registers_p): New functions.
6737 (sparc32_store_arguments): Use them.
6738 * sparc64-tdep.c (sparc64_16_byte_align_p)
6739 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6740 Handle TYPE_CODE_ARRAY.
6741
21873064
YQ
67422017-05-17 Yao Qi <yao.qi@linaro.org>
6743
6744 * cli/cli-decode.c (add_alias_cmd): New function.
6745 * command.h (add_alias_cmd): Declare.
6746 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6747 instead call add_alias_cmd.
6748
2b351b19
PA
67492017-05-17 Pedro Alves <palves@redhat.com>
6750
6751 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6752 (nat_makefile_frag): ... this. All references updated.
6753 * configure.ac: Likewise.
6754 * configure.nat: Likewise. Enhance comments.
6755 * configure: Regenerate.
6756
5f2ad7a3
RO
67572017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6758
6759 * procfs.c (procfs_create_inferior): Change prototype to match
6760 definition.
6761
adf3dde5
EZ
67622017-05-13 Eli Zaretskii <eliz@gnu.org>
6763
6764 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6765 C++ compiler warning.
6766
6830f270
TT
67672017-05-12 Tom Tromey <tom@tromey.com>
6768
6769 PR rust/21483:
6770 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6771 recurse, just call value_struct_elt directly.
6772
68f2f2e3
TT
67732017-05-12 Tom Tromey <tom@tromey.com>
6774
6775 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6776 OP_RUST_ARRAY>: Fix.
6777
256afbc2
TT
67782017-05-12 Tom Tromey <tom@tromey.com>
6779
6780 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6781
94bb8dfe
YQ
67822017-05-09 Yao Qi <yao.qi@linaro.org>
6783
6784 * regcache.c: Include <forward_list>.
6785 (struct regcache_list): Remove.
6786 (current_regcache): Update.
6787 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6788 (regcache_thread_ptid_changed): Likewise.
6789 (registers_changed_ptid): Likewise.
6790 (current_regcache_size): Likewise.
6791
8248946c
YQ
67922017-05-09 Yao Qi <yao.qi@linaro.org>
6793
6794 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6795 (current_regcache_size): New function.
6796 (current_regcache_test): New function.
6797 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6798
313c5961
AH
67992017-05-08 Alan Hayward <alan.hayward@arm.com>
6800
6801 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6802 (print_gp_register_row): Use get_frame_register_value.
6803
27bfc1d1
AH
68042017-05-08 Alan Hayward <alan.hayward@arm.com>
6805
6806 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6807 (mips_supply_fpregset): Likewise.
6808 (mips64_supply_gregset): Likewise.
6809
146e6c5c
AH
68102017-05-08 Alan Hayward <alan.hayward@arm.com>
6811
6812 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6813 regcache->raw_supply_zeroed.
6814
e50f25ec
SDJ
68152017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6816
6817 * configure.nat: Rearrange 'case' statements to match
6818 host before cpu.
6819
21ea5acd
SDJ
68202017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6821
6822 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6823 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6824 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6825 "@nat_extra_makefile_frag@".
6826 (Makefile): Remove dependency on "@frags@".
6827 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6828 (data-directory/Makefile): Likewise.
6829 * config/aarch64/linux.mh: Deleted; moved contents to
6830 "gdb/configure.nat".
6831 * config/alpha/alpha-linux.mh: Likewise.
6832 * config/alpha/nbsd.mh: Likewise.
6833 * config/arm/linux.mh: Likewise.
6834 * config/arm/nbsdelf.mh: Likewise.
6835 * config/i386/cygwin.mh: Likewise.
6836 * config/i386/cygwin64.mh: Likewise.
6837 * config/i386/darwin.mh: Likewise.
6838 * config/i386/fbsd.mh: Likewise.
6839 * config/i386/fbsd64.mh: Likewise.
6840 * config/i386/go32.mh: Likewise.
6841 * config/i386/i386gnu.mh: Likewise.
6842 * config/i386/i386sol2.mh: Likewise.
6843 * config/i386/linux.mh: Likewise.
6844 * config/i386/linux64.mh: Likewise.
6845 * config/i386/mingw.mh: Likewise.
6846 * config/i386/mingw64.mh: Likewise.
6847 * config/i386/nbsd64.mh: Likewise.
6848 * config/i386/nbsdelf.mh: Likewise.
6849 * config/i386/nto.mh: Likewise.
6850 * config/i386/obsd.mh: Likewise.
6851 * config/i386/obsd64.mh: Likewise.
6852 * config/i386/sol2-64.mh: Likewise.
6853 * config/ia64/linux.mh: Likewise.
6854 * config/m32r/linux.mh: Likewise.
6855 * config/m68k/linux.mh: Likewise.
6856 * config/m68k/nbsdelf.mh: Likewise.
6857 * config/m68k/obsd.mh: Likewise.
6858 * config/m88k/obsd.mh: Likewise.
6859 * config/mips/fbsd.mh: Likewise.
6860 * config/mips/linux.mh: Likewise.
6861 * config/mips/nbsd.mh: Likewise.
6862 * config/mips/obsd64.mh: Likewise.
6863 * config/pa/linux.mh: Likewise.
6864 * config/pa/nbsd.mh: Likewise.
6865 * config/pa/obsd.mh: Likewise.
6866 * config/powerpc/aix.mh: Likewise.
6867 * config/powerpc/fbsd.mh: Likewise.
6868 * config/powerpc/linux.mh: Likewise.
6869 * config/powerpc/nbsd.mh: Likewise.
6870 * config/powerpc/obsd.mh: Likewise.
6871 * config/powerpc/ppc64-linux.mh: Likewise.
6872 * config/powerpc/spu-linux.mh: Likewise.
6873 * config/s390/linux.mh: Likewise.
6874 * config/sh/nbsd.mh: Likewise.
6875 * config/sparc/fbsd.mh: Likewise.
6876 * config/sparc/linux.mh: Likewise.
6877 * config/sparc/linux64.mh: Likewise.
6878 * config/sparc/nbsd64.mh: Likewise.
6879 * config/sparc/nbsdelf.mh: Likewise.
6880 * config/sparc/obsd64.mh: Likewise.
6881 * config/sparc/sol2.mh: Likewise.
6882 * config/tilegx/linux.mh: Likewise.
6883 * config/vax/nbsdelf.mh: Likewise.
6884 * config/vax/obsd.mh: Likewise.
6885 * config/xtensa/linux.mh: Likewise.
6886 * config/i386/i386gnu.mn: New file, with excerpts from
6887 "config/i386/i386gnu.mh".
6888 * configure: Regenerate.
6889 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6890 *.mh files under "gdb/config".
6891 * configure.nat: New file, with contents from the
6892 "gdb/config/*/*.mh" files.
6893
7ed1acaf
TW
68942017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6895
6896 * btrace.c (btrace_clear): Free insn vector.
6897
e13cb306
PA
68982017-05-05 Pedro Alves <palves@redhat.com>
6899
6900 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6901 * configure: Regenerate.
6902
5ed8105e
PA
69032017-05-04 Pedro Alves <palves@redhat.com>
6904
6905 * Makefile.in (SFILES): Add progspace-and-thread.c.
6906 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6907 (COMMON_OBS): Add progspace-and-thread.o.
6908 * breakpoint.c: Include "progspace-and-thread.h".
6909 (update_inserted_breakpoint_locations)
6910 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6911 Use scoped_restore_current_pspace_and_thread.
6912 (create_std_terminate_master_breakpoint): Use
6913 scoped_restore_current_program_space.
6914 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6915 (print_breakpoint_location): Use
6916 scoped_restore_current_program_space.
6917 (bp_loc_is_permanent): Use
6918 scoped_restore_current_pspace_and_thread.
6919 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6920 (download_tracepoint_locations): Use
6921 scoped_restore_current_pspace_and_thread.
6922 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6923 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6924 (enum step_over_calls_kind): Moved from inferior.h.
6925 (class scoped_restore_current_thread): New class.
6926 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6927 declaration.
6928 (scoped_restore_current_thread): New class.
6929 * infcmd.c: Include "common/gdb_optional.h".
6930 (continue_1, proceed_after_attach): Use
6931 scoped_restore_current_thread.
6932 (notice_new_inferior): Use scoped_restore_current_thread.
6933 * inferior.c: Include "progspace-and-thread.h".
6934 (restore_inferior, save_current_inferior): Delete.
6935 (add_inferior_command, clone_inferior_command): Use
6936 scoped_restore_current_pspace_and_thread.
6937 * inferior.h (scoped_restore_current_inferior): New class.
6938 * infrun.c: Include "progspace-and-thread.h" and
6939 "common/gdb_optional.h".
6940 (follow_fork_inferior): Use
6941 scoped_restore_current_pspace_and_thread.
6942 (scoped_restore_exited_inferior): New class.
6943 (handle_vfork_child_exec_or_exit): Use
6944 scoped_restore_exited_inferior,
6945 scoped_restore_current_pspace_and_thread,
6946 scoped_restore_current_thread and scoped_restore.
6947 (fetch_inferior_event): Use scoped_restore_current_thread.
6948 * linespec.c (decode_line_full, decode_line_1): Use
6949 scoped_restore_current_program_space.
6950 * mi/mi-main.c: Include "progspace-and-thread.h".
6951 (exec_continue): Use scoped_restore_current_thread.
6952 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6953 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6954 * proc-service.c (ps_pglobal_lookup): Use
6955 scoped_restore_current_program_space.
6956 * progspace-and-thread.c: New file.
6957 * progspace-and-thread.h: New file.
6958 * progspace.c (release_program_space, clone_program_space): Use
6959 scoped_restore_current_program_space.
6960 (restore_program_space, save_current_program_space)
6961 (save_current_space_and_thread): Delete.
6962 (switch_to_program_space_and_thread): Moved to
6963 progspace-and-thread.c.
6964 * progspace.h (save_current_program_space)
6965 (save_current_space_and_thread): Delete declarations.
6966 (scoped_restore_current_program_space): New class.
6967 * remote.c (remote_btrace_maybe_reopen): Use
6968 scoped_restore_current_thread.
6969 * symtab.c: Include "progspace-and-thread.h".
6970 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6971 * thread.c (print_thread_info_1): Use
6972 scoped_restore_current_thread.
6973 (struct current_thread_cleanup): Delete.
6974 (do_restore_current_thread_cleanup)
6975 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6976 (scoped_restore_current_thread::~scoped_restore_current_thread):
6977 ... this new dtor.
6978 (make_cleanup_restore_current_thread): Rename/convert to ...
6979 (scoped_restore_current_thread::scoped_restore_current_thread):
6980 ... this new ctor.
6981 (thread_apply_all_command): Use scoped_restore_current_thread.
6982 (thread_apply_command): Use scoped_restore_current_thread.
6983 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6984 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6985
f6223dbb
PA
69862017-05-04 Pedro Alves <palves@redhat.com>
6987
6988 * thread.c (make_cleanup_restore_current_thread): Move
6989 find_thread_ptid call before the is_stopped call. Assert that the
6990 thread is found. Replace is_stopped call by checking the thread's
6991 state directly. Remove unnecessary NULL-thread check.
6992
3c3ae77e
PA
69932017-05-04 Pedro Alves <palves@redhat.com>
6994
6995 * corelow.c (thread_section_name): New class.
6996 (get_core_register_section, get_core_siginfo): Use it.
6997
45eba0ab
AA
69982017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6999
7000 * corelow.c (sniff_core_bfd): Remove extra semicolon.
7001 (get_core_register_section): Remove xfree of NULL pointer.
7002
f81fdd35
AH
70032017-05-03 Alan Hayward <alan.hayward@arm.com>
7004
7005 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
7006 * regcache.c (regcache::raw_supply_zeroed): New function.
7007 * regcache.h (regcache::raw_supply_zeroed): New declaration.
7008
35837774
SM
70092017-05-03 Simon Marchi <simon.marchi@ericsson.com>
7010
7011 * gdbarch.sh: Remove commented out definition of
7012 TARGET_CHAR_BIT.
7013 * gdbarch.h: Re-generate.
7014
c94fee56
SDJ
70152017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7016
7017 * configure: Regenerate.
7018
d17f7b36
SM
70192017-05-02 Simon Marchi <simon.marchi@ericsson.com>
7020
7021 * solib-target.c (solib_target_relocate_section_addresses):
7022 Remove num_section_bases, num_bases, segment_bases variables.
7023
b560ebd6
SM
70242017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7025
7026 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
7027
f2f46dfc
SM
70282017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7029
7030 * solib-target.c: Include <vector>
7031 (struct lm_info_target) <~lm_info_target>: Remove.
7032 <segment_bases, section_bases>: Change type to
7033 std::vector<CORE_ADDR>.
7034 (library_list_start_segment, library_list_start_section,
7035 library_list_end_library,
7036 solib_target_relocate_section_addresses): Adjust.
7037
a0ff9e1a
SM
70382017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7039
7040 * gdbarch.sh (software_single_step): Change return type to
7041 std::vector<CORE_ADDR>.
7042 * gdbarch.c, gdbarch.h: Re-generate.
7043 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
7044 Adjust.
7045 (arm_deal_with_atomic_sequence_raw): Adjust.
7046 (thumb_get_next_pcs_raw): Adjust.
7047 (arm_get_next_pcs_raw): Adjust.
7048 (arm_get_next_pcs): Adjust.
7049 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
7050 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
7051 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
7052 (alpha_software_single_step): Adjust.
7053 * alpha-tdep.h (alpha_software_single_step): Adjust.
7054 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
7055 * arm-tdep.c (arm_software_single_step): Adjust.
7056 (arm_breakpoint_kind_from_current_state): Adjust.
7057 * arm-tdep.h (arm_software_single_step): Adjust.
7058 * breakpoint.c (insert_single_step_breakpoint): Adjust.
7059 * cris-tdep.c (cris_software_single_step): Adjust.
7060 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
7061 (micromips_deal_with_atomic_sequence): Adjust.
7062 (deal_with_atomic_sequence): Adjust.
7063 (mips_software_single_step): Adjust.
7064 * mips-tdep.h (mips_software_single_step): Adjust.
7065 * moxie-tdep.c (moxie_software_single_step): Adjust.
7066 * nios2-tdep.c (nios2_software_single_step): Adjust.
7067 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
7068 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
7069 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
7070 * s390-linux-tdep.c (s390_software_single_step): Adjust.
7071 * sparc-tdep.c (sparc_software_single_step): Adjust.
7072 * spu-tdep.c (spu_software_single_step): Adjust.
7073 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
7074
ea480a30
SM
70752017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7076
7077 * gdbarch.sh: Use semi-colon as field separator instead of colon.
7078 * gdbarch.h: Re-generate.
7079
d050f7d7
TW
70802017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7081
7082 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
7083 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
7084 * python/py-instruction.c, python/py-instruction.h: New file.
7085 * python/py-record.c: Add py-instruction.h include.
7086 (gdbpy_initialize_record): Make gdb.Instruction a super class of
7087 gdb.RecordInstruction.
7088 * python/python-internal.h: Add gdbpy_initialize_instruction
7089 declaration.
7090 * python/python.c (do_start_initialization): Add
7091 gdbpy_initialize_instruction.
7092
14f819c8
TW
70932017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7094
7095 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
7096 Remove.
7097 (btrace_func_from_recpy_func): New function.
7098 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
7099 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
7100 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
7101 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
7102 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
7103 Also, use new helper functions.
7104 (btpy_list_item): Use new helper functions.
7105 (recpy_bt_function_call_history): Use new type name.
7106 (btpy_call_getset): Remove.
7107 (gdbpy_initialize_btrace): Remove code to initialize
7108 gdb.BtraceFunctionCall.
7109 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
7110 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
7111 recpy_bt_func_prev, recpy_bt_func_next): New export.
7112 * python/py-record.c (recpy_func_type): New static object.
7113 (recpy_func_new, recpy_func_level, recpy_func_symbol,
7114 recpy_func_instructions, recpy_func_up, recpy_func_prev,
7115 recpy_func_next): New function.
7116 (recpy_element_hash, recpy_element_richcompare): Updated comment.
7117 (recpy_func_getset): New static object.
7118 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
7119 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
7120
0ed5da75
TW
71212017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7122
7123 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
7124 (btpy_object, btpy_insn_type, btpy_new): Remove.
7125 (btpy_list_object): Use gdb.RecordInstruction type instead of
7126 gdb.BtraceInstruction type.
7127 (btrace_insn_from_recpy_insn): New function.
7128 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
7129 btpy_new.
7130 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
7131 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
7132 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
7133 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
7134 instead of btpy_object.
7135 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7136 btpy_insn_data, btpy_insn_decode): Rename to ...
7137 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
7138 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
7139 recpy_bt_insn_decode): This. Also, use new helper functions.
7140 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
7141 recpy_insn_type.
7142 (btpy_insn_getset): Remove.
7143 (gdbpy_initialize_btrace): Remove code to initialize
7144 gdb.BtraceInstruction. Use recpy_element_object.
7145 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
7146 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
7147 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
7148 * python/py-record.c (recpy_insn_type): New static object.
7149 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
7150 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
7151 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
7152 New function.
7153 (recpy_insn_getset): New static object.
7154 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
7155 * python/py-record.h (recpy_element_object): New typedef.
7156 (recpy_insn_type, recpy_insn_new): New export.
7157
913aeadd
TW
71582017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7159
7160 * py-record-btrace.c (btpy_insn_new): Removed.
7161 (btpy_insn_or_gap_new): New function.
7162 (btpy_insn_error): Removed.
7163 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7164 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
7165 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
7166 btpy_insn_or_gap_new instead of btpy_insn_new.
7167 (btpy_insn_getset): Remove btpy_insn_error.
7168 * py-record.c (recpy_gap_type): New static object.
7169 (recpy_gap_object): New typedef.
7170 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
7171 recpy_gap_reason_string): New function.
7172 (recpy_gap_getset): New static object.
7173 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
7174 * py-record.h (recpy_gap_new): New export.
7175
a3be24ad
TW
71762017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7177
7178 * python/py-record.c (recpy_ptid): Remove.
7179 (recpy_record_getset): Remove recpy_ptid.
7180
ae20e79a
TW
71812017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7182
7183 * btrace.c (btrace_fetch): Set inferior_ptid.
7184 * python/py-record-btrace.c: Add "py-record.h" include.
7185 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
7186 recpy_bt_end, recpy_bt_instruction_history,
7187 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
7188 in gdb.Record object instead of current ptid.
7189 * python/py-record.c: Include new "py-record.h" file.
7190 (recpy_record_object): Moved to py-record.h.
7191 * python/py-record.h: New file.
7192
8d0050ea
TW
71932017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7194
7195 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
7196 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
7197 indentation.
7198
3f380b50
JB
71992017-05-01 Joel Brobecker <brobecker@adacore.com>
7200
7201 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
7202 the past maintainers section.
7203
07495424
YQ
72042017-04-28 Yao Qi <yao.qi@linaro.org>
7205
7206 * infcmd.c (get_return_value): Use regcache ctor, and remove
7207 cleanup.
7208
deb1fa3e
YQ
72092017-04-28 Yao Qi <yao.qi@linaro.org>
7210 Pedro Alves <palves@redhat.com>
7211
7212 * regcache.c (regcache::regcache): New tag dispatch ctor.
7213 (do_cooked_read): Moved above.
7214 (regcache_dup): Use the tag dispatch ctor..
7215 * regcache.h (regcache): Declare ctor, delete copy ctor and
7216 assignment operator, remove friend regcache_dup.
7217
b421c83c
YQ
72182017-04-28 Yao Qi <yao.qi@linaro.org>
7219
7220 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
7221 call method save instead of regcache_cpy.
7222 * regcache.h (struct regcache): Make regcache_dup a friend.
7223
ef79d9a3
YQ
72242017-04-28 Yao Qi <yao.qi@linaro.org>
7225
7226 * regcache.c (struct regcache): Move to regcache.h
7227 (regcache::arch): New method.
7228 (regcache_get_ptid): Update.
7229 (get_regcache_arch): Call arch method.
7230 (get_regcache_aspace): Call method aspace.
7231 (register_buffer): Change it to method.
7232 (regcache_save): Change it to regcache::save.
7233 (regcache_restore): Likewise.
7234 (regcache_cpy_no_passthrough): Remove the declaration.
7235 (regcache_cpy): Call methods restore and cpy_no_passthrough.
7236 (regcache_cpy_no_passthrough): Change it to method
7237 cpy_no_passthrough.
7238 (regcache_register_status): Change it to method
7239 get_register_status.
7240 (regcache_invalidate): Change it to method invalidate.
7241 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
7242 (regcache_raw_update): Change it to method raw_update.
7243 (regcache_raw_read): Likewise.
7244 (regcache_raw_read_signed): Likewise.
7245 (regcache_raw_read_unsigned): Likewise.
7246 (regcache_raw_write_signed): Likewise.
7247 (regcache_raw_write_unsigned): Likewise.
7248 (regcache_cooked_read): Likewise.
7249 (regcache_cooked_read_value): Likewise.
7250 (regcache_cooked_read_signed): Likewise.
7251 (regcache_cooked_read_unsigned): Likewise.
7252 (regcache_cooked_write_signed): Likewise.
7253 (regcache_cooked_write_unsigned): Likewise.
7254 (regcache_raw_set_cached_value): Likewise.
7255 (regcache_raw_write): Likewise.
7256 (regcache_cooked_write): Likewise.
7257 (regcache_xfer_part): Likewise.
7258 (regcache_raw_read_part): Likewise.
7259 (regcache_raw_write_part): Likewise.
7260 (regcache_cooked_read_part): Likewise.
7261 (regcache_cooked_write_part): Likewise.
7262 (regcache_raw_supply): Likewise.
7263 (regcache_raw_collect): Likewise.
7264 (regcache_transfer_regset): Likewise.
7265 (regcache_supply_regset): Likewise.
7266 (regcache_collect_regset): Likewise.
7267 (regcache_debug_print_register): Likewise.
7268 (enum regcache_dump_what): Move it to regcache.h.
7269 (regcache_dump): Change it to method dump.
7270 * regcache.h (enum regcache_dump_what): New.
7271 (class regcache): New.
7272 * target.c (target_fetch_registers): Call method
7273 debug_print_register.
7274 (target_store_registers): Likewise.
7275
f8fdb78e
SM
72762017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7277
7278 * windows-nat.c (struct lm_info_windows): Initialize field.
7279 (windows_make_so): Allocate lm_info_windows with new.
7280 (windows_free_so): Free lm_info_windows with delete.
7281
9ccbfd7b
SM
72822017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7283
7284 * solib-darwin.c (struct lm_info_darwin): Initialize field.
7285 (darwin_current_sos): Allocate lm_info_darwin with new, remove
7286 cleanup.
7287 (darwin_free_so): Free lm_info_darwin with delete.
7288
76e75227
SM
72892017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7290
7291 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
7292 <l_addr_p>: Change type to bool.
7293 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
7294 (svr4_free_so): Free lm_info_svr4 with delete.
7295 (svr4_copy_library_list): Replace memcpy with call to copy
7296 constructor.
7297 (library_list_start_library, svr4_default_sos): Allocate
7298 lm_info_svr4 with new.
7299
51046d9e
SM
73002017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7301
7302 * solib-target.c (struct lm_info_target): Add destructor,
7303 initialize fields.
7304 <name>: Change type to std::string.
7305 (library_list_start_library): Allocate lm_info_target with new.
7306 (solib_target_free_library_list): Free lm_info_target with
7307 delete.
7308 (solib_target_current_sos): Adapt to std::string.
7309 (solib_target_free_so): Free lm_info_target with delete.
7310
4023ae76
SM
73112017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7312
7313 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
7314 fields.
7315 (frv_current_sos): Allocate lm_info_frv with new.
7316 (frv_relocate_main_executable): Free lm_info_frv with delete,
7317 allocate with new.
7318 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
7319
af43057b
SM
73202017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7321
7322 * solib-frv.c (struct lm_info_frv): Fix indentation.
7323
b0911207
SM
73242017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7325
7326 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
7327 map field.
7328 (dsbt_current_sos): Allocate lm_info_dsbt with new.
7329 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
7330 and allocate with new.
7331 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
7332
6c401f72
SM
73332017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7334
7335 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
7336 <filename, member_name>: Change type to std::string.
7337 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
7338 (library_list_start_library): Allocate lm_info_aix with new.
7339 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
7340 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
7341 with copy constructor.
7342
d0e449a1
SM
73432017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7344
7345 * solist.h (struct lm_info): Remove.
7346 (struct lm_info_base): New class.
7347 (struct so_list) <lm_info>: Change type to lm_info_base *.
7348 * nto-tdep.c (struct lm_info): Remove.
7349 (lm_addr): Adjust.
7350 * solib-aix.c (struct lm_info): Rename to ...
7351 (struct lm_info_aix): ... this. Extend lm_info_base.
7352 (lm_info_p): Rename to ...
7353 (lm_info_aix_p): ... this, and adjust.
7354 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
7355 solib_aix_parse_libraries, library_list_start_library,
7356 solib_aix_free_library_list, solib_aix_parse_libraries,
7357 solib_aix_get_library_list,
7358 solib_aix_relocate_section_addresses, solib_aix_free_so,
7359 solib_aix_get_section_offsets,
7360 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
7361 Adjust.
7362 (struct solib_aix_inferior_data) <library_list>: Adjust.
7363 * solib-darwin.c (struct lm_info): Rename to ...
7364 (struct lm_info_darwin): ... this. Extend lm_info_base.
7365 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
7366 * solib-dsbt.c (struct lm_info): Rename to ...
7367 (struct lm_info_dsbt): ... this. Extend lm_info_base.
7368 (struct dsbt_info) <main_executable_lm_info): Adjust.
7369 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
7370 dsbt_relocate_section_addresses): Adjust.
7371 * solib-frv.c (struct lm_info): Rename to ...
7372 (struct lm_info_frv): ... this. Extend lm_info_base.
7373 (main_executable_lm_info): Adjust.
7374 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
7375 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
7376 find_canonical_descriptor_in_load_object,
7377 frv_fdpic_find_canonical_descriptor): Adjust.
7378 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
7379 to lm_info_svr4.
7380 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
7381 svr4_clear_so, svr4_copy_library_list,
7382 library_list_start_library, svr4_default_sos, svr4_read_so_list,
7383 svr4_current_sos, svr4_fetch_objfile_link_map,
7384 solist_update_incremental): Adjust.
7385 * solib-svr4.h (struct lm_info_svr4): Move here from
7386 solib-svr4.c.
7387 * solib-target.c (struct lm_info): Rename to ...
7388 (struct lm_info_target): ... this. Extend lm_info_base.
7389 (lm_info_p): Rename to ...
7390 (lm_info_target_p): ... this.
7391 (solib_target_parse_libraries, library_list_start_segment,
7392 library_list_start_section, library_list_start_library,
7393 library_list_end_library, solib_target_free_library_list,
7394 solib_target_current_sos, solib_target_free_so,
7395 solib_target_relocate_section_addresses): Adjust.
7396 * windows-nat.c (struct lm_info): Rename to ...
7397 (struct lm_info_windows): ... this. Extend lm_info_base.
7398 (windows_make_so, handle_load_dll, handle_unload_dll,
7399 windows_xfer_shared_libraries): Adjust.
7400
434a4023
SM
74012017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7402
7403 * solib-darwin.c (struct darwin_so_list): Remove.
7404 (darwin_current_sos): Allocate an so_list object instead of a
7405 darwin_so_list, separately allocate an lm_info object.
7406 (darwin_free_so): Free lm_info.
7407
428544e8
JB
74082017-04-28 John Baldwin <jhb@FreeBSD.org>
7409
7410 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
7411 with fprintf_filtered.
7412
4621115f
YQ
74132017-04-28 Yao Qi <yao.qi@linaro.org>
7414
7415 * regcache.c (regcache::regcache): New function.
7416 (regcache::~regcache): New function.
7417 (regcache_xmalloc_1): Remove.
7418 (regcache_xmalloc): Call new regcache.
7419 (regcache_xfree): Call delete regcache.
7420 (get_thread_arch_aspace_regcache): Call new regcache.
7421
339053c2
YQ
74222017-04-28 Yao Qi <yao.qi@linaro.org>
7423
7424 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7425 lwp instead of ptid_get_lwp.
7426
7974a605
YQ
74272017-04-28 Yao Qi <yao.qi@linaro.org>
7428
7429 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7430 lwp_info instead of getting from inferior_ptid.
7431
e15c3eb4
KS
74322017-04-27 Keith Seitz <keiths@redhat.com>
7433
7434 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7435 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7436 (CV_CONVERSION_BADNESS): Define.
7437 (rank_one_type): Remove overly restrictive rvalue reference
7438 rank checks.
7439 Add cv-qualifier checks and subranks for type equality.
7440 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7441 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7442 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7443
72bc1d24
SM
74442017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7445
7446 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7447 count when creating the object.
7448
55bcecda
UW
74492017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7450 Ulrich Weigand <uweigand@de.ibm.com>
7451
7452 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7453 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7454 is used in AIX.
7455 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7456 (process_xcoff_symbol): Likewise.
7457 (scan_xcoff_symtab): Likewise.
7458
5c99fcf8
AH
74592017-04-26 Alan Hayward <alan.hayward@arm.com>
7460
7461 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7462 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7463 (ia64_access_reg): Use get_frame_register_unsigned.
7464 (ia64_access_rse_reg): Likewise.
7465 (ia64_libunwind_frame_prev_register): Likewise.
7466
b41c5a85
JW
74672017-04-26 Jiong Wang <jiong.wang@arm.com>
7468
7469 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7470 * gdbarch.c: Regenerated.
7471 * gdbarch.h: Regenerated.
7472 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7473 visibility external.
7474 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7475 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7476 (enum cfa_how_kind): Move to ...
7477 (struct dwarf2_frame_state_reg_info): Likewise.
7478 (struct dwarf2_frame_state): Likewise.
7479 * dwarf2-frame.h: ... here.
7480 (dwarf2_frame_state_alloc_regs): New declaration.
7481 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7482 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7483
c185f580
AH
74842017-04-26 Alan Hayward <alan.hayward@arm.com>
7485
7486 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7487 regcache_raw_read_unsigned.
7488 (xtensa_pseudo_register_write): Likewise.
7489
19c45594
AH
74902017-04-26 Alan Hayward <alan.hayward@arm.com>
7491
7492 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7493 (nds32_pseudo_register_write): Likewise.
7494
4658f12e
YQ
74952017-04-25 Yao Qi <yao.qi@linaro.org>
7496
7497 * regcache.c (struct regcache) <readonly_p>: Change its type
7498 to bool.
7499 (regcache_xmalloc_1): Update parameter type and callers update.
7500
d581dda8
YQ
75012017-04-25 Yao Qi <yao.qi@linaro.org>
7502
7503 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7504 set_gdbarch_wchar_bit.
7505 * arm-tdep.c (arm_gdbarch_init): Likewise.
7506
debed3db
PA
75072017-04-25 Pedro Alves <palves@redhat.com>
7508
7509 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7510 (BothAreRelocatable, memcopy, memmove): Don't define.
7511 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7512 macros.
7513
b0b92aeb
PA
75142017-04-25 Pedro Alves <palves@redhat.com>
7515
7516 * common/common-defs.h: Include "common/poison.h".
7517 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7518 and adjust.
7519 * common/poison.h: New file.
7520 * common/traits.h: Include <type_traits>.
7521 (Not, Or, Requires): New, moved from common/function-view.h.
7522
16c4d54a
PA
75232017-04-25 Pedro Alves <palves@redhat.com>
7524
7525 * breakpoint.h (struct breakpoint): In-class initialize all
7526 fields. Make boolean fields "bool".
7527 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7528 memset call and initializations no longer necessary.
7529
b5c36682
PA
75302017-04-25 Pedro Alves <palves@redhat.com>
7531
7532 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7533 reference.
7534 (pt_btrace_insn): New function.
7535 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7536
5625a286
PA
75372017-04-25 Pedro Alves <palves@redhat.com>
7538
7539 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7540 "base" field and inherit from "bp_location" instead. Add
7541 non-default ctor.
7542 (allocate_location_exception): Use new non-default ctor.
7543 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7544 (init_bp_location): Convert to ...
7545 (bp_location::bp_location): ... this new ctor, and remove memset
7546 call.
7547 (base_breakpoint_allocate_location): Use the new non-default ctor.
7548 * breakpoint.h (bp_location): Now a class. Declare default and
7549 non-default ctors. In-class initialize all members.
7550 (init_bp_location): Remove declaration.
7551
23bcc18f
PA
75522017-04-25 Pedro Alves <palves@redhat.com>
7553
7554 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7555 assignment operator.
7556
e1ba3053
YQ
75572017-04-24 Yao Qi <yao.qi@linaro.org>
7558
7559 * doublest.c (convert_doublest_to_floatformat): Call
7560 floatformat_totalsize_bytes.
7561
10f489e5
TT
75622017-04-22 Tom Tromey <tom@tromey.com>
7563
7564 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7565 ui_out_emit_list.
7566 * stack.c (print_frame): Use ui_out_emit_list.
7567 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7568 ui_out_emit_list.
7569 * mi/mi-main.c (print_one_inferior)
7570 (mi_cmd_data_list_register_names)
7571 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7572 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7573 ui_out_emit_list.
7574 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7575 (mi_output_solib_attribs): Use ui_out_emit_list,
7576 ui_out_emit_tuple.
7577 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7578 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7579 (mi_cmd_stack_list_args, list_args_or_locals): Use
7580 ui_out_emit_list.
7581 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7582 * breakpoint.c (print_solib_event, output_thread_groups): Use
7583 ui_out_emit_list.
7584
0092b74d
TT
75852017-04-22 Tom Tromey <tom@tromey.com>
7586
7587 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7588 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7589 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7590
a14a62dd
TT
75912017-04-22 Tom Tromey <tom@tromey.com>
7592
7593 * tracepoint.c (tvariables_info_1)
7594 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7595
46b9c129
TT
75962017-04-22 Tom Tromey <tom@tromey.com>
7597
7598 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7599 annotate_arg_emitter.
7600 * breakpoint.c (print_mention_watchpoint)
7601 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7602 * annotate.h (struct annotate_arg_emitter): New.
7603
2e783024
TT
76042017-04-22 Tom Tromey <tom@tromey.com>
7605
7606 * record-btrace.c (record_btrace_insn_history)
7607 (record_btrace_insn_history_range, record_btrace_call_history)
7608 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7609 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7610 ui_out_emit_tuple.
7611 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7612 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7613 * skip.c (skip_info): Use ui_out_emit_tuple.
7614 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7615 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7616 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7617 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7618 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7619 ui_out_emit_tuple.
7620 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7621 (output_register, mi_cmd_data_read_memory)
7622 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7623 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7624 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7625 Use ui_out_emit_tuple.
7626 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7627 ui_out_emit_tuple.
7628 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7629 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7630 * linux-thread-db.c (info_auto_load_libthread_db): Use
7631 ui_out_emit_tuple.
7632 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7633 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7634 * disasm.c (do_mixed_source_and_assembly_deprecated)
7635 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7636 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7637 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7638 * breakpoint.c (print_one_breakpoint_location)
7639 (print_one_breakpoint): Use ui_out_emit_tuple.
7640 * auto-load.c (print_script, info_auto_load_cmd): Use
7641 ui_out_emit_tuple.
7642 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7643
9be21bb4
SM
76442017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7645
7646 * thread.c (print_thread_info_1): Remove dead code.
7647
0d4c07af
JK
76482017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7649
7650 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7651 GDB_SELF_TEST.
7652 * arm-tdep.c (selftests::arm_record_test): Likewise.
7653
4daf993d
YQ
76542017-04-21 Yao Qi <yao.qi@linaro.org>
7655
7656 * regcache.c (regcache_restore): Remove argument 2. Replace
7657 argument 3 with regcache. Get register status from
7658 src->register_status and get register contents from
7659 register_buffer (src, regnum).
7660 (regcache_cpy): Update.
7661
a6c21d4a
PA
76622017-04-19 Pedro Alves <palves@redhat.com>
7663
7664 * gdbthread.h (thread): Add missing closing parenthesis in
7665 comment.
7666
3a3fd0fd
PA
76672017-04-19 Pedro Alves <palves@redhat.com>
7668
7669 * common/refcounted-object.h: New file.
7670 * gdbthread.h: Include "common/refcounted-object.h".
7671 (thread_info): Inherit from refcounted_object and add comments.
7672 (thread_info::incref, thread_info::decref)
7673 (thread_info::m_refcount): Delete.
7674 (thread_info::deletable): Use the refcounted_object::refcount()
7675 method.
7676 * inferior.c (current_inferior_): Add comment.
7677 (set_current_inferior): Increment/decrement refcounts.
7678 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7679 not-deletable instead of comparing with the current inferior.
7680 (initialize_inferiors): Increment the initial inferior's refcount.
7681 * inferior.h (struct inferior): Forward declare.
7682 Include "common/refcounted-object.h".
7683 (current_inferior, set_current_inferior): Move declaration to
7684 before struct inferior's definition, and fix comment.
7685 (inferior): Inherit from refcounted_object. Add comments.
7686 * thread.c (switch_to_thread_no_regs): Reference the thread's
7687 inferior pointer directly instead of doing a ptid lookup.
7688 (switch_to_no_thread): New function.
7689 (switch_to_thread(thread_info *)): New function, factored out
7690 from ...
7691 (switch_to_thread(ptid_t)): ... this.
7692 (restore_current_thread): Delete.
7693 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7694 fields, and add 'inf' field.
7695 (do_restore_current_thread_cleanup): Check whether old->inf is
7696 alive instead of looking up an inferior by ptid. Use
7697 switch_to_thread and switch_to_no_thread.
7698 (restore_current_thread_cleanup_dtor): Use old->inf directly
7699 instead of lookup up an inferior by id. Decref the inferior.
7700 Don't restore 'removable'.
7701 (make_cleanup_restore_current_thread): Same the inferior pointer
7702 in old, instead of the inferior number. Incref the inferior.
7703 Don't save/clear 'removable'.
7704
9bcb1f16
PA
77052017-04-19 Pedro Alves <palves@redhat.com>
7706
7707 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7708 unittests/scoped_restore-selftests.c.
7709 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7710 * common/scoped_restore.h (scoped_restore_base): Make "class".
7711 (scoped_restore_base::release): New public method.
7712 (scoped_restore_base::scoped_restore_base): New protected ctor.
7713 (scoped_restore_base::m_saved_var): New protected field.
7714 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7715 scoped_restore_base base class instead of m_saved_var directly.
7716 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7717 (scoped_restore_tmpl::scoped_restore_tmpl(const
7718 scoped_restore_tmpl<T>&)): Likewise.
7719 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7720 method.
7721 (scoped_restore_tmpl::saved_var): New method.
7722 (scoped_restore_tmpl::m_saved_var): Delete.
7723 * inferior.h (inferior::detaching): Now a bool.
7724 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7725 cleanup.
7726 * unittests/scoped_restore-selftests.c: New file.
7727
26fcd539
PA
77282017-04-19 Pedro Alves <palves@redhat.com>
7729
7730 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7731 Re-sort in alphabetic order.
7732
fdd243b0
PA
77332017-04-18 Pedro Alves <palves@redhat.com>
7734
7735 * xml-support.c (obstack_xml_printf): Delete.
7736 * xml-support.h (obstack_xml_printf): Delete.
7737
4895cde2
PA
77382017-04-18 Pedro Alves <palves@redhat.com>
7739
7740 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7741 vdebug, verror, body_text, start_element, end_element, name,
7742 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7743 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7744 is_xinclude>: Make private and add m_ prefix.
7745 (gdb_xml_parser::body_text): New method, based on ...
7746 (gdb_xml_body_text): ... this. Adjust.
7747 (gdb_xml_parser::vdebug): New method, based on ...
7748 (gdb_xml_debug): ... this. Adjust.
7749 (gdb_xml_parser::verror): New method, based on ...
7750 (gdb_xml_error): ... this. Adjust.
7751 (gdb_xml_parser::start_element): New method, based on ...
7752 (gdb_xml_start_element): ... this. Adjust.
7753 (gdb_xml_start_element_wrapper): Defer to
7754 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7755 (gdb_xml_parser::end_element): New method, based on ...
7756 (gdb_xml_end_element_wrapper): ... this. Adjust.
7757 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7758 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7759 (gdb_xml_parser::use_dtd): New method, based on ...
7760 (gdb_xml_use_dtd): ... this. Adjust.
7761 (gdb_xml_parser::parse): New method, based on ...
7762 (gdb_xml_parse): ... this. Adjust.
7763 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7764 (xinclude_start_include): Adjust to call the parser's name method.
7765 (xml_xinclude_default, xml_xinclude_start_doctype)
7766 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7767 method.
7768 (xml_process_xincludes): Adjust to call parser methods.
7769 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7770 declarations.
7771
bd8a901f
PA
77722017-04-18 Pedro Alves <palves@redhat.com>
7773
7774 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7775 gdb::optional<std::string>.
7776 * xml-support.c: Include <string>.
7777 (scope_level::scope_level(scope_level &&))
7778 (scope_level::~scope_level): Delete.
7779 (scope_level::body): Now a std::string.
7780 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7781 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7782 parameter.
7783 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7784 (xinclude_parsing_data::output): Now a std::string reference.
7785 (xinclude_start_include): Adjust.
7786 (xml_xinclude_default): Adjust.
7787 (xml_process_xincludes): Add 'output' parameter, and return bool.
7788 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7789 and return bool.
7790 * xml-tdesc.c: Include <unordered_map> and <string>.
7791 (tdesc_xml_cache): Delete.
7792 (tdesc_xml_cache_s): Delete.
7793 (xml_cache): Now an std::unordered_map.
7794 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7795 (target_fetch_description_xml): Change return type to
7796 gdb::optional<std::string>, and adjust.
7797 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7798 (target_fetch_description_xml): Change return type to
7799 gdb::optional<std::string>.
7800
d35d1958
PA
78012017-04-18 Pedro Alves <palves@redhat.com>
7802
7803 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7804 unittests/optional-selftests.c.
7805 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7806 * unittests/optional-selftests.c: New file.
7807 * unittests/optional/assignment/1.cc: New file.
7808 * unittests/optional/assignment/2.cc: New file.
7809 * unittests/optional/assignment/3.cc: New file.
7810 * unittests/optional/assignment/4.cc: New file.
7811 * unittests/optional/assignment/5.cc: New file.
7812 * unittests/optional/assignment/6.cc: New file.
7813 * unittests/optional/assignment/7.cc: New file.
7814 * unittests/optional/cons/copy.cc: New file.
7815 * unittests/optional/cons/default.cc: New file.
7816 * unittests/optional/cons/move.cc: New file.
7817 * unittests/optional/cons/value.cc: New file.
7818 * unittests/optional/in_place.cc: New file.
7819 * unittests/optional/observers/1.cc: New file.
7820 * unittests/optional/observers/2.cc: New file.
7821
22796e97
PA
78222017-04-18 Pedro Alves <palves@redhat.com>
7823
7824 * common/gdb_optional.h: Include common/traits.h.
7825 (in_place_t): New type.
7826 (in_place): New constexpr variable.
7827 (optional::optional): Remove member initialization of
7828 m_instantiated.
7829 (optional::optional(in_place_t...)): New constructor.
7830 (optional::~optional): Use reset.
7831 (optional::optional(const optional&)): New.
7832 (optional::optional(const optional&&)): New.
7833 (optional::optional(T &)): New.
7834 (optional::optional(T &&)): New.
7835 (operator::operator=(const optional &)): New.
7836 (operator::operator=(optional &&)): New.
7837 (operator::operator= (const T &))
7838 (operator::operator= (T &&))
7839 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7840 (operator::reset): New.
7841 (operator::m_instantiated):: Add in-class initializer.
7842 * common/traits.h: Include <type_traits>.
7843 (struct And): New types.
7844
a7fc9b61
PA
78452017-04-18 Pedro Alves <palves@redhat.com>
7846
7847 * xml-support.c: Include <vector>.
7848 (scope_level::scope_level(const gdb_xml_element *))
7849 (scope_level::scope_level(scope_level&&)): New.
7850 (scope_level::~scope_level): New.
7851 (scope_level_s): Delete.
7852 (gdb_xml_parser::scopes): Now a std::vector.
7853 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7854 Use std::vector.
7855 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7856 scope cleanup code.
7857 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7858 of the scopes member. Use std::vector::emplace_back.
7859
010151c9
PA
78602017-04-18 Pedro Alves <palves@redhat.com>
7861
7862 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7863 a bool.
7864 (gdb_xml_end_element): Change type of first parameter.
7865 (gdb_xml_cleanup): Rename to ...
7866 (gdb_xml_parser::~gdb_xml_parser): ... this.
7867 (gdb_xml_create_parser_and_cleanup): Delete with ...
7868 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7869 to this new ctor.
7870 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7871 using gdb_xml_create_parser_and_cleanup.
7872 (xinclude_parsing_data): Add ctor/dtor.
7873 (xml_xinclude_cleanup): Delete.
7874 (xml_process_xincludes): Create a local xinclude_parsing_data
7875 instead of heap-allocating one. Create a local gdb_xml_parser
7876 instead of heap-allocating one with
7877 gdb_xml_create_parser_and_cleanup.
7878
d56060f0
JB
78792017-04-18 John Baldwin <jhb@FreeBSD.org>
7880
7881 PR threads/20743
7882 * fbsd-nat.c (resume_one_thread_cb): Remove.
7883 (resume_all_threads_cb): Remove.
7884 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7885 iterate_over_threads.
7886
305d16a9
JB
78872017-04-17 Joel Brobecker <brobecker@adacore.com>
7888
7889 * NEWS: Create a new section for the next release branch.
7890 Rename the section of the current branch, now that it has
7891 been cut.
7892
8bb57231
JB
78932017-04-17 Joel Brobecker <brobecker@adacore.com>
7894
7895 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7896 * version.in: Bump version to 8.0.50.DATE-git.
7897
096c92dd
SDJ
78982017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7899
7900 PR gdb/21385
7901 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7902 independently of the host, and fix build breakage on Cygwin.
7903
0550c955
PA
79042017-04-13 Pedro Alves <palves@redhat.com>
7905
7906 * inferior.c (free_inferior): Convert to ...
7907 (inferior::~inferior): ... this dtor.
7908 (inferior::inferior): New ctor, factored out from ...
7909 (add_inferior_silent): ... here. Allocate the inferior with a new
7910 expression.
7911 (delete_inferior): Call delete instead of free_inferior.
7912 * inferior.h (gdb_environ, continuation): Forward declare.
7913 (inferior): Now a class. Add in-class initialization to all
7914 members. Make boolean fields bool, except 'detaching'.
7915 (inferior::inferior): New explicit ctor.
7916 (inferior::~inferior): New.
7917
e3d60dfc
PA
79182017-04-13 Pedro Alves <palves@redhat.com>
7919
7920 * inferior.c (init_inferior_list): Delete.
7921 * inferior.h (init_inferior_list): Delete.
7922
5fd69d0a
PA
79232017-04-13 Pedro Alves <palves@redhat.com>
7924
7925 PR threads/13217
7926 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7927 (top level): Call it twice, with different thread sets.
7928
c6609450
PA
79292017-04-13 Pedro Alves <palves@redhat.com>
7930
7931 * thread.c: Include <algorithm>.
7932 (thread_array_cleanup): Delete.
7933 (scoped_inc_dec_ref): New class.
7934 (live_threads_count): New function.
7935 (set_thread_refcount): Delete.
7936 (tp_array_compar_ascending): Now a bool.
7937 (tp_array_compar): Convert to a std::sort comparison function.
7938 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7939 and live_threads_count.
7940
2a00d7ce
PA
79412017-04-13 Pedro Alves <palves@redhat.com>
7942
7943 * infrun.c (follow_fork_inferior): Also switch the current
7944 inferior.
7945
441d7c93
PA
79462017-04-13 Pedro Alves <palves@redhat.com>
7947
7948 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7949 before calling create_internal_breakpoint.
7950
808480f6
PA
79512017-04-13 Pedro Alves <palves@redhat.com>
7952
7953 * fork-child.c (execv_argv): New class.
7954 (breakup_args): Refactored as ...
7955 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7956 Copy arguments to storage and replace separators with NULL
7957 terminators in place.
7958 (escape_bang_in_quoted_argument): Adjust to return bool.
7959 (execv_argv::execv_argv): New ctor.
7960 (execv_argv::init_for_shell): New method, factored out from
7961 fork_inferior. Don't strdup strings into the vector.
7962 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7963 Remove free_vector_argv call.
7964
ad3d022a
YQ
79652017-04-13 Yao Qi <yao.qi@linaro.org>
7966
7967 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7968 tdep->rx_psw_type.
7969
e6ddc3bf
YQ
79702017-04-13 Yao Qi <yao.qi@linaro.org>
7971
7972 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7973 * rx-tdep.c (rx_gdbarch_init): Likewise.
7974
bfb8cf90
PA
79752017-04-13 Pedro Alves <palves@redhat.com>
7976
7977 * breakpoint.h (struct breakpoint): Reindent.
7978
f5336ca5
PA
79792017-04-13 Pedro Alves <palves@redhat.com>
7980
7981 * breakpoint.c (bp_location): Rename to ...
7982 (bp_locations): ... this. All references updated.
7983 (bp_location_count): Rename to ...
7984 (bp_locations_count): ... this. All references updated.
7985 (bp_location_placed_address_before_address_max): Rename to ...
7986 (bp_locations_placed_address_before_address_max): ... this. All
7987 references updated.
7988 (bp_location_shadow_len_after_address_max): Rename to ...
7989 (bp_locations_shadow_len_after_address_max): ... this. All
7990 references updated.
7991 (bp_location_compare_addrs): Rename to ...
7992 (bp_locations_compare_addrs): ... this. All references updated.
7993 (bp_location_compare):Rename to ...
7994 (bp_locations_compare): ... this. All references updated.
7995 (bp_location_target_extensions_update): Rename to ...
7996 (bp_locations_target_extensions_update): ... this. All references
7997 updated.
7998
be628ab8
SDJ
79992017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8000
8001 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
8002 * common/common.m4: Check headers 'termios.h', 'termio.h' and
8003 'sgtty.h'.
8004 * common/gdb_termios.h: New file, with parts of "terminal.h".
8005 * inflow.c: Include "gdb_termios.h".
8006 * ser-unix.c: Include "gdb_termios.h".
8007 * terminal.h: Move terminal-related defines to
8008 "common/gdb_termios.h".
8009
8e9e35b1
TT
80102017-04-12 Tom Tromey <tom@tromey.com>
8011
8012 * probe.c (parse_probes): Update.
8013 * location.h (delete_event_location): Don't declare.
8014 (event_location_deleter::operator()): Update.
8015 * location.c (event_location_deleter::operator()): Rename from
8016 delete_event_location.
8017 * linespec.h (linespec_result) <location>: Change type to
8018 event_location_up.
8019 * linespec.c (canonicalize_linespec, event_location_to_sals)
8020 (decode_objc): Update.
8021 (linespec_result): Don't call delete_event_location.
8022 * breakpoint.c (create_breakpoints_sal)
8023 (bkpt_probe_create_sals_from_location)
8024 (strace_marker_create_sals_from_location): Update.
8025
16e802b9
TT
80262017-04-12 Tom Tromey <tom@tromey.com>
8027
8028 * linespec.h (struct linespec_result): Add constructor and
8029 destructor.
8030 (init_linespec_result, destroy_linespec_result)
8031 (make_cleanup_destroy_linespec_result): Don't declare.
8032 * linespec.c (init_linespec_result): Remove.
8033 (linespec_result::~linespec_result): Rename from
8034 destroy_linespec_result. Update.
8035 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
8036 Remove.
8037 * breakpoint.c (create_breakpoint, break_range_command)
8038 (decode_location_default): Update.
8039 * ax-gdb.c (agent_command_1): Update.
8040
d28cd78a
TT
80412017-04-12 Tom Tromey <tom@tromey.com>
8042
8043 * remote.c (remote_download_tracepoint): Update.
8044 * python/py-breakpoint.c (bppy_get_location): Update.
8045 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
8046 (gdbscm_breakpoint_location): Update.
8047 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
8048 * breakpoint.h (struct breakpoint) <location, location_range_end>:
8049 Change type to event_location_up.
8050 * breakpoint.c (create_overlay_event_breakpoint)
8051 (create_longjmp_master_breakpoint)
8052 (create_std_terminate_master_breakpoint)
8053 (create_exception_master_breakpoint)
8054 (breakpoint_event_location_empty_p, print_breakpoint_location)
8055 (print_one_breakpoint_location, create_thread_event_breakpoint)
8056 (init_breakpoint_sal, create_breakpoint)
8057 (print_recreate_ranged_breakpoint, break_range_command)
8058 (init_ada_exception_breakpoint, say_where): Update.
8059 (base_breakpoint_dtor): Don't call delete_event_location.
8060 (bkpt_print_recreate, tracepoint_print_recreate)
8061 (dprintf_print_recreate, update_static_tracepoint)
8062 (breakpoint_re_set_default): Update.
8063
711799d5
TT
80642017-04-12 Tom Tromey <tom@tromey.com>
8065
8066 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
8067 type of "to_do". Update.
8068 (compute_stack_depth): Use std::vector.
8069
52d214d3
TT
80702017-04-12 Tom Tromey <tom@tromey.com>
8071
8072 * printcmd.c (find_instruction_backward): Use std::vector.
8073
4c404b8b
TT
80742017-04-12 Tom Tromey <tom@tromey.com>
8075
8076 * symfile.c (objfilep): Remove typedef.
8077 (reread_symbols): Use a std::vector.
8078
156d9eab
TT
80792017-04-12 Tom Tromey <tom@tromey.com>
8080
8081 * mi/mi-main.c (exec_direction_forward): Remove.
8082 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
8083 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
8084 scoped_restore.
8085 * guile/guile.c (guile_repl_command, guile_command)
8086 (gdbscm_execute_gdb_command): Use scoped_restore.
8087 * go-exp.y (go_parse): Use scoped_restore.
8088 * d-exp.y (d_parse): Use scoped_restore.
8089 * cli/cli-decode.c (cmd_func): Use scoped_restore.
8090 * c-exp.y (c_parse): Use scoped_restore.
8091
4d89769a
TT
80922017-04-12 Tom Tromey <tom@tromey.com>
8093
8094 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
8095 (mi_parse): Update return type.
8096 (mi_parse_free): Remove.
8097 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
8098 (mi_parse::~mi_parse): Rename from mi_parse_free.
8099 (mi_parse_cleanup): Remove.
8100 (mi_parse): Return a unique_ptr. Use new.
8101 * mi/mi-main.c (mi_execute_command): Update.
8102
4b217cc7
TT
81032017-04-12 Tom Tromey <tom@tromey.com>
8104
8105 * location.c (explicit_location_lex_one): Return a
8106 unique_xmalloc_ptr.
8107 (string_to_explicit_location): Update. Remove cleanups.
8108
59d3651b
TT
81092017-04-12 Tom Tromey <tom@tromey.com>
8110
8111 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
8112 (compare_value_and_voffset): Change type. Update.
8113 (compute_vtable_size): Change type of "offset_vec".
8114 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
8115 (gnuv3_get_typeid): Remove extraneous declaration.
8116
b24b0d6c
TT
81172017-04-12 Tom Tromey <tom@tromey.com>
8118
8119 * charset.h (wchar_iterator): Fix comment.
8120
80a3b8c5
TT
81212017-04-12 Tom Tromey <tom@tromey.com>
8122
8123 * charset.c (iconv_wrapper): New class.
8124 (cleanup_iconv): Remove.
8125 (convert_between_encodings): Use it.
8126
c83dd867
TT
81272017-04-12 Tom Tromey <tom@tromey.com>
8128
8129 * symfile.h (increment_reading_symtab): Update type.
8130 * symfile.c (decrement_reading_symtab): Remove.
8131 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
8132 * psymtab.c (psymtab_to_symtab): Update.
8133 * dwarf2read.c (dw2_instantiate_symtab): Update.
8134
0e8621a0
TT
81352017-04-12 Tom Tromey <tom@tromey.com>
8136
8137 * jit.c (struct jit_reader): Declare separately. Add constructor
8138 and destructor. Change type of "handle".
8139 (loaded_jit_reader): Define separately.
8140 (jit_reader_load): Update. New "new".
8141 (jit_reader_unload_command): Use "delete".
8142 * gdb-dlfcn.h (struct dlclose_deleter): New.
8143 (gdb_dlhandle_up): New typedef.
8144 (gdb_dlopen, gdb_dlsym): Update types.
8145 (gdb_dlclose): Remove.
8146 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
8147 (gdb_dlsym): Change type of "handle".
8148 (make_cleanup_dlclose): Remove.
8149 (dlclose_deleter::operator()): Rename from gdb_dlclose.
8150 * compile/compile-c-support.c (load_libcc): Update.
8151
67d89901
TT
81522017-04-12 Tom Tromey <tom@tromey.com>
8153
8154 * symtab.h (find_pcs_for_symtab_line): Change return type.
8155 * symtab.c (find_pcs_for_symtab_line): Change return type.
8156 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
8157 type of "vec". Update.
8158 (ltpy_get_pcs_for_line): Update.
8159 * linespec.c (decode_digits_ordinary): Update.
8160
93921405
TT
81612017-04-12 Tom Tromey <tom@tromey.com>
8162
8163 * tracepoint.c (actions_command): Update.
8164 * python/python.c (python_command, python_interactive_command):
8165 Update.
8166 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8167 * guile/guile.c (guile_command): Update.
8168 * defs.h (read_command_lines, read_command_lines_1): Return
8169 command_line_up.
8170 (command_lines_deleter): New struct.
8171 (command_line_up): New typedef.
8172 * compile/compile.c (compile_code_command)
8173 (compile_print_command): Update.
8174 * cli/cli-script.h (get_command_line, copy_command_lines): Return
8175 command_line_up.
8176 (make_cleanup_free_command_lines): Remove.
8177 * cli/cli-script.c (get_command_line, read_command_lines_1)
8178 (copy_command_lines): Return command_line_up.
8179 (while_command, if_command, read_command_lines, define_command)
8180 (document_command): Update.
8181 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
8182 Remove.
8183 * breakpoint.h (breakpoint_set_commands): Change type of
8184 "commands".
8185 * breakpoint.c (breakpoint_set_commands): Change type of
8186 "commands". Update.
8187 (do_map_commands_command, update_dprintf_command_list)
8188 (create_tracepoint_from_upload): Update.
8189
ffc2605c
TT
81902017-04-12 Tom Tromey <tom@tromey.com>
8191
8192 * tracepoint.c (scope_info): Update.
8193 * spu-tdep.c (spu_catch_start): Update.
8194 * python/python.c (gdbpy_decode_line): Update.
8195 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
8196 * python/py-breakpoint.c (bppy_init): Update.
8197 * probe.c (parse_probes): Update.
8198 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
8199 * location.h (event_location_deleter): New struct.
8200 (event_location_up): New typedef.
8201 (new_linespec_location, new_address_location, new_probe_location)
8202 (new_explicit_location, copy_event_location)
8203 (string_to_event_location, string_to_event_location_basic)
8204 (string_to_explicit_location): Update return type.
8205 (make_cleanup_delete_event_location): Remove.
8206 * location.c (new_linespec_location, new_address_location)
8207 (new_probe_location, new_explicit_location, copy_event_location):
8208 Return event_location_up.
8209 (delete_event_location_cleanup)
8210 (make_cleanup_delete_event_location): Remove.
8211 (string_to_explicit_location, string_to_event_location_basic)
8212 (string_to_event_location): Return event_location_up.
8213 * linespec.c (canonicalize_linespec, event_location_to_sals)
8214 (decode_line_with_current_source)
8215 (decode_line_with_last_displayed, decode_objc): Update.
8216 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8217 * completer.c (location_completer): Update.
8218 * cli/cli-cmds.c (edit_command, list_command): Update.
8219 * breakpoint.c (create_overlay_event_breakpoint)
8220 (create_longjmp_master_breakpoint)
8221 (create_std_terminate_master_breakpoint)
8222 (create_exception_master_breakpoint)
8223 (create_thread_event_breakpoint): Update.
8224 (init_breakpoint_sal): Update. Remove some dead code.
8225 (create_breakpoint_sal): Change type of "location". Update.
8226 (create_breakpoints_sal, create_breakpoint, break_command_1)
8227 (dprintf_command, break_range_command, until_break_command)
8228 (init_ada_exception_breakpoint)
8229 (strace_marker_create_sals_from_location)
8230 (update_static_tracepoint, trace_command, ftrace_command)
8231 (strace_command, create_tracepoint_from_upload): Update.
8232 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8233 * ax-gdb.c (agent_command_1): Update.
8234
8f10c932
PA
82352017-04-12 Pedro Alves <palves@redhat.com>
8236
8237 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
8238 * configure.tgt: Handle i[34567]86-*-go32* and
8239 i[34567]86-*-msdosdjgpp*.
8240 * i386-tdep.c (i386_svr4_reg_to_regnum):
8241 Make extern.
8242 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
8243 i386-go32-tdep.c.
8244 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
8245 * i386-go32-tdep.c: New file.
8246 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
8247 declarations.
8248
0a31ccfb
SM
82492017-04-12 Simon Marchi <simon.marchi@ericsson.com>
8250
8251 * aix-thread.c (pd_status2str): Change return type to const char *.
8252
e9bb3fbb
PA
82532017-04-12 Pedro Alves <palves@redhat.com>
8254
8255 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
8256 calls to set_gdbarch_gnu_triplet_regexp.
8257
53375380
PA
82582017-04-12 Pedro Alves <palves@redhat.com>
8259
8260 PR gdb/21323
8261 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
8262 New enum value.
8263 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
8264 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
8265 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
8266 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
8267 * gdbarch.h, gdbarch.c: Regenerate.
8268 * aarch64-tdep.c (aarch64_gdbarch_init): Override
8269 gdbarch_wchar_bit and gdbarch_wchar_signed.
8270 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
8271 * arm-tdep.c (arm_gdbarch_init): Likewise.
8272 * avr-tdep.c (avr_gdbarch_init): Likewise.
8273 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8274 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
8275 * i386-tdep.c (i386_go32_init_abi): Likewise.
8276 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8277 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8278 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8279 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8280 * sh-tdep.c (sh_gdbarch_init): Likewise.
8281 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8282 * sparc64-tdep.c (sparc64_init_abi): Likewise.
8283 * windows-tdep.c (windows_init_abi): Likewise.
8284 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8285
53e710ac
PA
82862017-04-12 Pedro Alves <palves@redhat.com>
8287
8288 PR c++/21323
8289 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
8290 cplus_primitive_type_char32_t>: New enum values.
8291 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
8292 and cplus_primitive_type_char32_t.
8293 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
8294 32, use the archtecture's built-in type for char16_t and char32_t,
8295 respectively. Otherwise, fallback to init_integer_type as before,
8296 but make the type unsigned, and issue a complaint.
8297 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
8298
ab0538b8
AH
82992017-04-12 Alan Hayward <alan.hayward@arm.com>
8300
5e0e0422 8301 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
8302 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
8303
5430098f
SDJ
83042017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8305
8306 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
8307 'const char *'.
8308
7c5ded6a
SDJ
83092017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8310
8311 * common/common-utils.c (free_vector_argv): New function.
8312 * common/common-utils.h: Include <vector>.
8313 (free_vector_argv): New prototype.
8314 * darwin-nat.c (darwin_create_inferior): Rewrite function
8315 prototype in order to constify "exec_file" and accept a
8316 "std::string" for "allargs".
8317 * fork-child.c: Include <vector>.
8318 (breakup_args): Rewrite function, using C++.
8319 (fork_inferior): Rewrite function header, constify "exec_file_arg"
8320 and accept "std::string" for "allargs". Update the code to
8321 calculate "argv" based on "allargs". Update calls to "exec_fun"
8322 and "execvp".
8323 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
8324 order to constify "exec_file" and accept a "std::string" for
8325 "allargs".
8326 * go32-nat.c (go32_create_inferior): Likewise.
8327 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
8328 * infcmd.c (run_command_1): Constify "exec_file". Use
8329 "std::string" for inferior arguments.
8330 * inferior.h (fork_inferior): Update prototype.
8331 * linux-nat.c (linux_nat_create_inferior): Rewrite function
8332 prototype in order to constify "exec_file" and accept a
8333 "std::string" for "allargs".
8334 * nto-procfs.c (procfs_create_inferior): Likewise.
8335 * procfs.c (procfs_create_inferior): Likewise.
8336 * remote-sim.c (gdbsim_create_inferior): Likewise.
8337 * remote.c (extended_remote_run): Update code to accept
8338 "std::string" as argument.
8339 (extended_remote_create_inferior): Rewrite function prototype in
8340 order to constify "exec_file" and accept a "std::string" for
8341 "allargs".
8342 * rs6000-nat.c (super_create_inferior): Likewise.
8343 (rs6000_create_inferior): Likewise.
8344 * target.h (struct target_ops) <to_create_inferior>: Likewise.
8345 * windows-nat.c (windows_create_inferior): Likewise.
8346
ae0eee42
PA
83472017-04-11 Pedro Alves <palves@redhat.com>
8348
8349 * thread.c: Fix whitespace throughout.
8350
a6acac06
PR
83512017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
8352
8353 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
8354
64403bd1
AH
83552017-04-11 Alan Hayward <alan.hayward@arm.com>
8356
8357 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
8358
a5bef50f
SDJ
83592017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
8360
8361 PR gdb/21364
8362 * osdata.c (info_osdata): Check if 'type' is an empty string
8363 instead of NULL.
8364
9295a5a9
PA
83652017-04-10 Pedro Alves <palves@redhat.com>
8366
8367 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
8368 (ptid_to_global_thread_id, in_thread_list)
8369 (do_captured_list_thread_ids, set_resumed, set_running)
8370 (set_executing, set_stop_requested, finish_thread_state)
8371 (validate_registers_access, can_access_registers_ptid)
8372 (print_thread_info_1, switch_to_thread)
8373 (do_restore_current_thread_cleanup)
8374 (make_cleanup_restore_current_thread, thread_command)
8375 (thread_name_command): Use operator== instead of ptid_equal.
8376
996812e3
PA
83772017-04-10 Pedro Alves <palves@redhat.com>
8378
8379 * thread.c (struct current_thread_cleanup) <next>: Delete field.
8380 (current_thread_cleanup_chain): Delete.
8381 (restore_current_thread_cleanup_dtor)
8382 (make_cleanup_restore_current_thread): Remove references to
8383 current_thread_cleanup_chain.
8384
845b344f
AH
83852017-04-10 Alan Hayward <alan.hayward@arm.com>
8386
8387 * msp430-tdep.c (msp430_pseudo_register_read): Never return
8388 REG_UNKNOWN.
8389
803bdfe4
YQ
83902017-04-10 Yao Qi <yao.qi@linaro.org>
8391
8392 PR gdb/19942
8393 * gdbthread.h (thread_info::deletable): New method.
8394 (thread_info::incref): New method.
8395 (thread_info::decref): New method.
8396 (thread_info::refcount): Move it to private.
8397 * infrun.c (save_stop_context): Call inc_refcount.
8398 (release_stop_context_cleanup): Likewise.
8399 * thread.c (set_thread_exited): New function.
8400 (init_thread_list): Delete "tp" only it is deletable, otherwise
8401 call set_thread_exited.
8402 (delete_thread_1): Call set_thread_exited.
8403 (current_thread_cleanup) <inferior_pid>: Remove.
8404 <thread>: New field.
8405 (restore_current_thread_ptid_changed): Removed.
8406 (do_restore_current_thread_cleanup): Adjust.
8407 (restore_current_thread_cleanup_dtor): Don't call
8408 find_thread_ptid.
8409 (set_thread_refcount): Use dec_refcount.
8410 (make_cleanup_restore_current_thread): Adjust.
8411 (thread_apply_all_command): Call inc_refcount.
8412 (_initialize_thread): Don't call
8413 observer_attach_thread_ptid_changed.
8414
8c25b497
YQ
84152017-04-10 Yao Qi <yao.qi@linaro.org>
8416
8417 * thread.c (delete_thread_1): Hoist code on marking thread as
8418 exited.
8419
8473b447
SM
84202017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8421
8422 * windows-nat.c (windows_detach): Initialize ptid with
8423 minus_one_ptid.
8424
6670ec13
SM
84252017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8426
8427 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8428
ba2f91bb
AH
84292017-04-07 Alan Hayward <alan.hayward@arm.com>
8430
8431 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8432 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8433 (bfin_pseudo_register_write): Likewise
8434
436252de
SM
84352017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8436
8437 * common/ptid.h (struct ptid): Change to...
8438 (class ptid_t): ... this.
8439 <ptid_t>: New constructors.
8440 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8441 matches>: New methods.
8442 <make_null, make_minus_one>: New static methods.
8443 <pid>: Rename to...
8444 <m_pid>: ...this.
8445 <lwp>: Rename to...
8446 <m_lwp>: ...this.
8447 <tid>: Rename to...
8448 <m_tid>: ...this.
8449 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8450 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8451 as references, move comment to class ptid_t.
8452 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8453 ptid_t static methods.
8454 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8455 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8456 Take ptid arguments as references, implement using ptid_t methods.
8457 * unittests/ptid-selftests.c: New file.
8458 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8459 unittests/ptid-selftests.c.
8460 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8461
0dedf377
TP
84622017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8463
8464 * python/python.c (python_run_simple_file): Cast mode literal to
8465 non-const char pointer as expected by PyFile_FromString.
8466
4e9868d4
SM
84672017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8468
8469 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8470 minus_one_ptid and null_ptid.
8471
9bf2a700
PA
84722017-04-05 Pedro Alves <palves@redhat.com>
8473
8474 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8475 * configure: Regenerate.
8476
a121b7c1
PA
84772017-04-05 Pedro Alves <palves@redhat.com>
8478
8479 * ada-exp.y (yyerror): Constify.
8480 * ada-lang.c (bound_name, get_selections)
8481 (ada_variant_discrim_type)
8482 (ada_variant_discrim_name, ada_value_struct_elt)
8483 (ada_lookup_struct_elt_type, is_unchecked_variant)
8484 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8485 (catch_ada_exception_command_split)
8486 (catch_ada_assert_command_split, catch_assert_command)
8487 (ada_op_name): Constify.
8488 * ada-lang.h (ada_yyerror, get_selections)
8489 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8490 * arc-tdep.c (arc_print_frame_cache): Constify.
8491 * arm-tdep.c (arm_skip_stub): Constify.
8492 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8493 (gen_aggregate_elt_ref): Constify.
8494 * bcache.c (print_bcache_statistics): Constify.
8495 * bcache.h (print_bcache_statistics): Constify.
8496 * break-catch-throw.c (catch_exception_command_1):
8497 * breakpoint.c (struct ep_type_description::description):
8498 Constify.
8499 (add_solib_catchpoint): Constify.
8500 (catch_fork_command_1): Add cast.
8501 (add_catch_command): Constify.
8502 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8503 Constify.
8504 * bsd-uthread.c (bsd_uthread_state): Constify.
8505 * buildsym.c (patch_subfile_names): Constify.
8506 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8507 Constify.
8508 * c-exp.y (yyerror): Constify.
8509 (token::oper): Constify.
8510 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8511 * c-varobj.c (cplus_describe_child): Constify.
8512 * charset.c (find_charset_names): Add cast.
8513 (find_charset_names): Constify array and add const_cast.
8514 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8515 (edit_command): Constify.
8516 * cli/cli-decode.c (lookup_cmd): Constify.
8517 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8518 Constify.
8519 (struct dump_context): Constify.
8520 (add_dump_command, restore_command): Constify.
8521 * cli/cli-script.c (get_command_line): Constify.
8522 * cli/cli-script.h (get_command_line): Constify.
8523 * cli/cli-utils.c (check_for_argument): Constify.
8524 * cli/cli-utils.h (check_for_argument): Constify.
8525 * coff-pe-read.c (struct read_pe_section_data): Constify.
8526 * command.h (lookup_cmd): Constify.
8527 * common/print-utils.c (decimal2str): Constify.
8528 * completer.c (gdb_print_filename): Constify.
8529 * corefile.c (set_gnutarget): Constify.
8530 * cp-name-parser.y (yyerror): Constify.
8531 * cp-valprint.c (cp_print_class_member): Constify.
8532 * cris-tdep.c (cris_register_name, crisv32_register_name):
8533 Constify.
8534 * d-exp.y (yyerror): Constify.
8535 (struct token::oper): Constify.
8536 * d-lang.h (d_yyerror): Constify.
8537 * dbxread.c (struct header_file_location::name): Constify.
8538 (add_old_header_file, add_new_header_file, last_function_name)
8539 (dbx_next_symbol_text, add_bincl_to_list)
8540 (find_corresponding_bincl_psymtab, set_namestring)
8541 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8542 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8543 * defs.h (command_line_input, print_address_symbolic)
8544 (deprecated_readline_begin_hook): Constify.
8545 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8546 Constify.
8547 * event-top.c (handle_line_of_input): Constify and add cast.
8548 * exceptions.c (catch_errors): Constify.
8549 * exceptions.h (catch_errors): Constify.
8550 * expprint.c (print_subexp_standard, op_string, op_name)
8551 (op_name_standard, dump_raw_expression, dump_raw_expression):
8552 * expression.h (op_name, op_string, dump_raw_expression):
8553 Constify.
8554 * f-exp.y (yyerror): Constify.
8555 (struct token::oper): Constify.
8556 (struct f77_boolean_val::name): Constify.
8557 * f-lang.c (f_word_break_characters): Constify.
8558 * f-lang.h (f_yyerror): Constify.
8559 * fork-child.c (fork_inferior): Add cast.
8560 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8561 (new_variant): Constify.
8562 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8563 * gdbarch.c: Regenerate.
8564 * gdbcore.h (set_gnutarget): Constify.
8565 * go-exp.y (yyerror): Constify.
8566 (token::oper): Constify.
8567 * go-lang.h (go_yyerror): Constify.
8568 * go32-nat.c (go32_sysinfo): Constify.
8569 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8570 * guile/scm-cmd.c (cmdscm_function): Constify.
8571 * guile/scm-param.c (pascm_param_value): Constify.
8572 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8573 (h8300sx_register_name): Constify.
8574 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8575 Constify.
8576 * ia64-tdep.c (ia64_register_names): Constify.
8577 * infcmd.c (construct_inferior_arguments): Constify.
8578 (path_command, attach_post_wait): Constify.
8579 * language.c (show_range_command, show_case_command)
8580 (unk_lang_error): Constify.
8581 * language.h (language_defn::la_error)
8582 (language_defn::la_name_of_this): Constify.
8583 * linespec.c (decode_line_2): Constify.
8584 * linux-thread-db.c (thread_db_err_str): Constify.
8585 * lm32-tdep.c (lm32_register_name): Constify.
8586 * m2-exp.y (yyerror): Constify.
8587 * m2-lang.h (m2_yyerror): Constify.
8588 * m32r-tdep.c (m32r_register_names): Constify and make static.
8589 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8590 * m88k-tdep.c (m88k_register_name): Constify.
8591 * macroexp.c (appendmem): Constify.
8592 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8593 (upgrade_type, parse_external, parse_partial_symbols)
8594 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8595 (new_symbol): Constify.
8596 * memattr.c (mem_info_command): Constify.
8597 * mep-tdep.c (register_name_from_keyword): Constify.
8598 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8599 Constify.
8600 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8601 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8602 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8603 cast.
8604 (mi_execute_async_cli_command): Constify.
8605 * mips-tdep.c (mips_register_name): Constify.
8606 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8607 (am33_register_name, am33_2_register_name)
8608 * moxie-tdep.c (moxie_register_names): Constify.
8609 * nat/linux-osdata.c (osdata_type): Constify fields.
8610 * nto-tdep.c (nto_parse_redirection): Constify.
8611 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8612 (lookup_child_selector): Constify.
8613 (objc_methcall::name): Constify.
8614 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8615 (lookup_struct_typedef): Constify.
8616 * objfiles.c (pc_in_section): Constify.
8617 * objfiles.h (pc_in_section): Constify.
8618 * p-exp.y (struct token::oper): Constify.
8619 (yyerror): Constify.
8620 * p-lang.h (pascal_yyerror): Constify.
8621 * parser-defs.h (op_name_standard): Constify.
8622 (op_print::string): Constify.
8623 (exp_descriptor::op_name): Constify.
8624 * printcmd.c (print_address_symbolic): Constify.
8625 * psymtab.c (print_partial_symbols): Constify.
8626 * python/py-breakpoint.c (stop_func): Constify.
8627 (bppy_get_expression): Constify.
8628 * python/py-cmd.c (cmdpy_completer::name): Constify.
8629 (cmdpy_function): Constify.
8630 * python/py-event.c (evpy_add_attribute)
8631 (gdbpy_initialize_event_generic): Constify.
8632 * python/py-event.h (evpy_add_attribute)
8633 (gdbpy_initialize_event_generic): Constify.
8634 * python/py-evts.c (add_new_registry): Constify.
8635 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8636 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8637 * python/py-inferior.c (get_buffer): Add cast.
8638 * python/py-param.c (parm_constant::name): Constify.
8639 * python/py-unwind.c (fprint_frame_id): Constify.
8640 * python/python.c (gdbpy_parameter_value): Constify.
8641 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8642 * remote.c (memory_packet_config::name): Constify.
8643 (show_packet_config_cmd, remote_write_bytes)
8644 (remote_buffer_add_string):
8645 * reverse.c (exec_reverse_once): Constify.
8646 * rs6000-tdep.c (variant::name, variant::description): Constify.
8647 * rust-exp.y (rustyyerror): Constify.
8648 * rust-lang.c (rust_op_name): Constify.
8649 * rust-lang.h (rustyyerror): Constify.
8650 * serial.h (serial_ops::name): Constify.
8651 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8652 (sh_sh3e_register_name, sh_sh2e_register_name)
8653 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8654 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8655 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8656 (sh_sh4al_dsp_register_name): Constify.
8657 * sh64-tdep.c (sh64_register_name): Constify.
8658 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8659 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8660 * stabsread.c (patch_block_stabs, read_type_number)
8661 (ref_map::stabs, ref_add, process_reference)
8662 (symbol_reference_defined, define_symbol, define_symbol)
8663 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8664 (read_one_struct_field, read_struct_fields, read_baseclasses)
8665 (read_tilde_fields, read_struct_type, read_array_type)
8666 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8667 (read_huge_number, read_range_type, read_args, common_block_start)
8668 (find_name_end): Constify.
8669 * stabsread.h (common_block_start, define_symbol)
8670 (process_one_symbol, symbol_reference_defined, ref_add):
8671 * symfile.c (get_section_index, add_symbol_file_command):
8672 * symfile.h (get_section_index): Constify.
8673 * target-descriptions.c (tdesc_type::name): Constify.
8674 (tdesc_free_type): Add cast.
8675 * target.c (find_default_run_target):
8676 (add_deprecated_target_alias, find_default_run_target)
8677 (target_announce_detach): Constify.
8678 (do_option): Constify.
8679 * target.h (add_deprecated_target_alias): Constify.
8680 * thread.c (print_thread_info_1): Constify.
8681 * top.c (deprecated_readline_begin_hook, command_line_input):
8682 Constify.
8683 (init_main): Add casts.
8684 * top.h (handle_line_of_input): Constify.
8685 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8686 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8687 (tfind_command): Rename to ...
8688 (tfind_command_1): ... this and constify.
8689 (tfind_command): New function.
8690 (tfind_end_command, tfind_start_command): Adjust.
8691 (encode_source_string): Constify.
8692 * tracepoint.h (encode_source_string): Constify.
8693 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8694 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8695 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8696 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8697 * tui/tui-win.c (parse_scrolling_args): Constify.
8698 * tui/tui-windata.c (tui_erase_data_content): Constify.
8699 * tui/tui-windata.h (tui_erase_data_content): Constify.
8700 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8701 * tui/tui.c (tui_enable): Add cast.
8702 * utils.c (defaulted_query): Constify.
8703 (init_page_info): Add cast.
8704 (puts_debug, subset_compare): Constify.
8705 * utils.h (subset_compare): Constify.
8706 * varobj.c (varobj_format_string): Constify.
8707 * varobj.h (varobj_format_string): Constify.
8708 * vax-tdep.c (vax_register_name): Constify.
8709 * windows-nat.c (windows_detach): Constify.
8710 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8711 * xml-support.c (gdb_xml_end_element): Constify.
8712 * xml-tdesc.c (tdesc_start_reg): Constify.
8713 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8714 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8715 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8716
995816ba
PA
87172017-04-05 Pedro Alves <palves@redhat.com>
8718
8719 * proc-api.c (struct trans): Constify.
8720 (procfs_note): Constify.
8721 * proc-events.c (struct trans, syscall_table):
8722 * proc-flags.c (struct trans): Constify.
8723 * proc-utils.h (procfs_note): Constify.
8724 * proc-why.c (struct trans): Constify.
8725 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8726 (procfs_detach): Constify.
8727 * sol-thread.c (struct string_map): Constify.
8728 (td_err_string, td_state_string): Constify.
8729
3e83a920
PA
87302017-04-05 Pedro Alves <palves@redhat.com>
8731
8732 * proc-api.c (procfs_filename): Don't initialize
8733 procfs_filename.
8734 (prepare_to_trace): Assume procfs_filename is non-NULL.
8735 (_initialize_proc_api): Give procfs_filename a default value here.
8736
63160a43
PA
87372017-04-05 Pedro Alves <palves@redhat.com>
8738
8739 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8740 'cond_string' parameter.
8741 (extract_exception_regexp): Constify 'string' parameter.
8742 (catch_exception_command_1): Constify.
8743 * breakpoint.c (init_catchpoint)
8744 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8745 parameter.
8746 (ep_parse_optional_if_clause, catch_fork_command_1)
8747 (catch_exec_command_1): Constify.
8748 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8749 parameter.
8750 (ep_parse_optional_if_clause): Constify.
8751 * cli/cli-utils.c (remove_trailing_whitespace)
8752 (check_for_argument): Constify.
8753 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8754 non-const overload.
8755 (check_for_argument): Likewise.
8756
9b2eba3d
PA
87572017-04-05 Pedro Alves <palves@redhat.com>
8758
8759 * event-top.c (command_line_handler): Add cast to execute_command
8760 call.
8761 * record-btrace.c (cmd_record_btrace_bts_start)
8762 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8763 (cmd_record_btrace_start): Add cast to execute_command call.
8764 * record-full.c (record_full_goto_insn):
8765 * record.c (record_start, record_stop): Add cast to
8766 execute_command_to_string calls.
8767 (cmd_record_start): Add cast to execute_command calls.
8768
2adadf51
PA
87692017-04-05 Pedro Alves <palves@redhat.com>
8770
8771 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8772 static inline function.
8773 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8774 array and use gdb_PyArg_ParseTupleAndKeywords.
8775 * python/py-cmd.c (cmdpy_init): Likewise.
8776 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8777 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8778 (infpy_search_memory): Likewise.
8779 * python/py-objfile.c (objfpy_add_separate_debug_file)
8780 (gdbpy_lookup_objfile): Likewise.
8781 * python/py-symbol.c (gdbpy_lookup_symbol)
8782 (gdbpy_lookup_global_symbol): Likewise.
8783 * python/py-type.c (gdbpy_lookup_type): Likewise.
8784 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8785 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8786 Likewise.
8787
0d1f4ceb
PA
87882017-04-05 Pedro Alves <palves@redhat.com>
8789
8790 * python/python-internal.h (gdb_PyGetSetDef): New type.
8791 * python/py-block.c (block_object_getset)
8792 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8793 * python/py-event.c (event_object_getset)
8794 (finish_breakpoint_object_getset): Likewise.
8795 * python/py-inferior.c (inferior_object_getset): Likewise.
8796 * python/py-infthread.c (thread_object_getset): Likewise.
8797 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8798 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8799 * python/py-objfile.c (objfile_getset): Likewise.
8800 * python/py-progspace.c (pspace_getset): Likewise.
8801 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8802 Likewise.
8803 * python/py-record.c (recpy_record_getset): Likewise.
8804 * python/py-symbol.c (symbol_object_getset): Likewise.
8805 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8806 Likewise.
8807 * python/py-type.c (type_object_getset, field_object_getset):
8808 Likewise.
8809 * python/py-value.c (value_object_getset): Likewise.
8810
4d759979
PA
88112017-04-05 Pedro Alves <palves@redhat.com>
8812
8813 * python/python-internal.h (gdb_PyObject_CallMethod)
8814 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8815 New functions.
8816 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8817 (PySys_GetObject, PySys_SetPath): New macros.
8818
fdf9e36f
PA
88192017-04-05 Pedro Alves <palves@redhat.com>
8820
8821 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8822 info_osdata_command.
8823 * osdata.c (info_osdata_command): Rename to ...
8824 (info_osdata): ... this. Constify 'type' parameter, and remove
8825 the 'from_tty' parameter. Accept NULL TYPE.
8826 (info_osdata_command): New function.
8827 * osdata.h (info_osdata_command): Remove declaration.
8828 (info_osdata): New declaration.
8829
9f33b8b7
PA
88302017-04-05 Pedro Alves <palves@redhat.com>
8831
8832 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8833 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8834 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8835 parameter.
8836 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8837 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8838 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8839 parameter.
8840 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8841 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8842 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8843 (mi_cmd_file_list_exec_source_files)
8844 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8845 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8846 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8847 parameter.
8848 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8849 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8850 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8851 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8852 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8853 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8854 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8855 'command' parameter.
8856 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8857 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8858 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8859 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8860 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8861 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8862 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8863 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8864 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8865 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8866 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8867 parameter.
8868 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8869 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8870 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8871 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8872 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8873 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8874 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8875 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8876 (mi_cmd_data_list_changed_registers)
8877 (mi_cmd_data_write_register_values)
8878 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8879 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8880 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8881 (mi_cmd_list_features, mi_cmd_list_target_features)
8882 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8883 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8884 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8885 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8886 (mi_cmd_trace_frame_collected): Constify 'command'
8887 parameter.
8888 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8889 'command' parameter.
8890
67cb5b2d
PA
88912017-04-05 Pedro Alves <palves@redhat.com>
8892
8893 * ada-lang.c (ada_completer_word_break_characters): Now a const
8894 array.
8895 (ada_get_gdb_completer_word_break_characters): Constify.
8896 * completer.c (gdb_completer_command_word_break_characters)
8897 (gdb_completer_file_name_break_characters)
8898 (gdb_completer_quote_characters): Now const arrays.
8899 (get_gdb_completer_quote_characters): Constify.
8900 (set_rl_completer_word_break_characters): New function.
8901 (set_gdb_completion_word_break_characters)
8902 (complete_line_internal): Use it.
8903 * completer.h (get_gdb_completer_quote_characters): Constify.
8904 (set_rl_completer_word_break_characters): Declare.
8905 * f-lang.c (f_word_break_characters): Constify.
8906 * language.c (default_word_break_characters): Constify.
8907 * language.h (language_defn::la_word_break_characters): Constify.
8908 (default_word_break_characters): Constify.
8909 * top.c (init_main): Use set_rl_completer_word_break_characters.
8910
7a114964
PA
89112017-04-05 Pedro Alves <palves@redhat.com>
8912
8913 * aix-thread.c (aix_thread_pid_to_str)
8914 (aix_thread_extra_thread_info): Constify.
8915 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8916 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8917 (bsd_uthread_pid_to_str): Constify.
8918 * corelow.c (core_pid_to_str): Constify.
8919 * darwin-nat.c (darwin_pid_to_str): Constify.
8920 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8921 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8922 Constify.
8923 * gnu-nat.c (gnu_pid_to_str): Constify.
8924 * go32-nat.c (go32_pid_to_str): Constify.
8925 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8926 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8927 * inferior.c (inferior_pid_to_str): Constify.
8928 * linux-nat.c (linux_nat_pid_to_str): Constify.
8929 * linux-tdep.c (linux_core_pid_to_str): Constify.
8930 * linux-thread-db.c (thread_db_pid_to_str)
8931 (thread_db_extra_thread_info): Constify.
8932 * nto-tdep.c (nto_extra_thread_info): Constify.
8933 * nto-tdep.h (nto_extra_thread_info): Constify.
8934 * obsd-nat.c (obsd_pid_to_str): Constify.
8935 * procfs.c (procfs_pid_to_str): Constify.
8936 * ravenscar-thread.c (ravenscar_extra_thread_info)
8937 (ravenscar_pid_to_str): Constify.
8938 * remote-sim.c (gdbsim_pid_to_str): Constify.
8939 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8940 Constify.
8941 * sol-thread.c (solaris_pid_to_str): Constify.
8942 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8943 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8944 * target.c (default_pid_to_str, target_pid_to_str)
8945 (normal_pid_to_str, default_pid_to_str): Constify.
8946 * target.h (target_ops::to_pid_to_str)
8947 (target_ops::to_extra_thread_info): Constify.
8948 (target_pid_to_str, normal_pid_to_str): Constify.
8949 * windows-nat.c (windows_pid_to_str): Constify.
8950 * gdbarch.sh (core_pid_to_str): Constify.
8951 * target-delegates.c: Regenerate.
8952 * gdbarch.h, gdbarch.c: Regenerate.
8953
69bbf465
PA
89542017-04-05 Pedro Alves <palves@redhat.com>
8955
8956 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8957 the memory of the temporary warning_pre_print override.
8958 * utils.c (warning_pre_print): Constify.
8959 * utils.h (warning_pre_print): Constify.
8960
be47f9e8
PA
89612017-04-05 Pedro Alves <palves@redhat.com>
8962
8963 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8964 (shell_command): New function.
8965 (make_command): Use std::string.
8966 (init_cli_cmds): Register shell_command instead of shell_escape.
8967
bde6261a
PA
89682017-04-05 Pedro Alves <palves@redhat.com>
8969
8970 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8971 * tracepoint.c (default_collect): Don't initialize.
8972
b38ef47f
PA
89732017-04-05 Pedro Alves <palves@redhat.com>
8974
8975 * macroexp.c (macro_buffer::shared): Now a bool.
8976 (init_buffer): Update.
8977 (init_shared_buffer): Constify 'addr' parameter.
8978 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8979 casts.
8980
f995bbe8
PA
89812017-04-05 Pedro Alves <palves@redhat.com>
8982
8983 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8984 * disasm.c (set_disassembler_options): Constify local.
8985 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8986
4a596fe2
SDJ
89872017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8988
8989 PR gdb/21352
8990 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8991 option.
8992
2cad08ea
YQ
89932017-04-05 Yao Qi <yao.qi@linaro.org>
8994
8995 * frame.c (frame_unwind_register_unsigned): Call
8996 frame_unwind_register_value.
8997
55a98976
YQ
89982017-04-05 Yao Qi <yao.qi@linaro.org>
8999
9000 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
9001 Use gdb_test_multiple, and don't match anchor.
9002
4ac40124
PA
90032017-04-05 Pedro Alves <palves@redhat.com>
9004
9005 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
9006 (Write After Approval): Remove Simon Marchi.
9007
c053b654
PA
90082017-04-05 Pedro Alves <palves@redhat.com>
9009
9010 * common/gdb_optional.h (optional::optional): Make constexpr and
9011 initialize m_dummy.
9012
4c7bf4f9
JB
90132017-04-04 John Baldwin <jhb@FreeBSD.org>
9014
9015 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9016 (amd64fbsd_jmp_buf_reg_offset): Remove.
9017 (amd64fbsd_supply_uthread): Remove function.
9018 (amd64fbsd_collect_uthread): Remove function.
9019 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
9020 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
9021 (x86_64-*-freebsd*): Remove bsd-uthread.o.
9022 (fbsd-nat.c): Update comment.
9023 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9024 (i386fbsd_jmp_buf_reg_offset): Remove.
9025 (i386fbsd_supply_uthread): Remove function.
9026 (i386fbsd_collect_uthread): Remove function.
9027 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
9028
1e1a8bef
JB
90292017-04-04 John Baldwin <jhb@FreeBSD.org>
9030
9031 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
9032 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
9033 * NEWS: Mention that support for FreeBSD/alpha was removed.
9034 * alpha-fbsd-tdep.c: Delete file.
9035 * config/alpha/fbsd.mh: Delete file.
9036 * configure.host: Delete alpha*-*-freebsd* and
9037 alpha*-*-kfreebsd*-gnu.
9038 * configure.tgt: Delete alpha*-*-freebsd* and
9039 alpha*-*-kfreebsd*-gnu.
9040
49907934
JB
90412017-04-04 John Baldwin <jhb@FreeBSD.org>
9042
9043 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
9044 amd64bsd_store_inferior_registers): Use ptid from regcache.
9045
6f77053d
PA
90462017-04-04 Pedro Alves <palves@redhat.com>
9047
9048 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
9049 data fields, make them private and add "m_" prefixes.
9050 (lnp_state_machine::lnp_state_machine): New ctor.
9051 (record_line, check_line_address, handle_set_discriminator)
9052 (handle_set_address, handle_advance_pc, handle_special_opcode)
9053 (handle_advance_line, handle_set_file, handle_negate_stmt)
9054 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
9055 (end_sequence, advance_line): New methods.
9056 (m_gdbarch, m_record_lines_p): New fields.
9057 (lnp_reader_state): Delete.
9058 (dwarf_record_line): Rename to ...
9059 (lnp_state_machine::record_line): ... adjust.
9060 (init_lnp_state_machine): Delete.
9061 (lnp_state_machine::lnp_state_machine): New.
9062 (check_line_address): Rename to ...
9063 (lnp_state_machine::check_line_address): This.
9064 (dwarf_decode_lines_1): Remove reference to "reader_state".
9065 Adjust lnp_state_machine having a non-default ctor. Use bool.
9066 State machine internal state manipulation moved to
9067 lnp_state_machine methods.
9068
9c541725
PA
90692017-04-04 Pedro Alves <palves@redhat.com>
9070
9071 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9072 unittests/offset-type-selftests.c.
9073 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
9074 * common/offset-type.h: New file.
9075 * common/preprocessor.h: New file.
9076 * common/traits.h: New file.
9077 * common/valid-expr.h: New file.
9078 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
9079 sect_offset and cu_offset strong typedefs throughout.
9080 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
9081 typedefs throughout.
9082 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
9083 sect_offset and cu_offset strong typedefs throughout.
9084 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
9085 typedefs throughout.
9086 * gdbtypes.h: Include "common/offset-type.h".
9087 (cu_offset): Now an offset type (strong typedef) instead of a
9088 struct.
9089 (sect_offset): Likewise.
9090 (union call_site_parameter_u): Rename "param_offset" field to
9091 "param_cu_off".
9092 * unittests/offset-type-selftests.c: New file.
9093
ecfb656c
PA
90942017-04-04 Pedro Alves <palves@redhat.com>
9095
9096 * common/underlying.h: New file.
9097 * dwarf2read.c: Include "common/gdb_optional.h" and
9098 "common/underlying.h".
9099 (dir_index, file_name_index): New types.
9100 (file_entry): Use them.
9101 (file_entry::include): Use to_underlying.
9102 (line_header::add_file_name): Use dir_index.
9103 (read_formatted_entries): Use gdb::optional. Read form before
9104 writting to file_entry.
9105 (dwarf_decode_line_header): Use dir_index.
9106 (lnp_state_machine::current_file): Use to_underlying.
9107 (lnp_state_machine::file): Change type to file_name_index.
9108 (dwarf_record_line): Use to_underlying.
9109 (init_lnp_state_machine): Use file_name_index.
9110 (dwarf_decode_lines_1): Use dir_index and file_name_index.
9111
d194f1fe
PA
91122017-04-04 Pedro Alves <palves@redhat.com>
9113
9114 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
9115 operator bool, has_value and get methods.
9116
fff8551c
PA
91172017-04-04 Pedro Alves <palves@redhat.com>
9118
9119 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
9120 fields.
9121 (line_header): Initialize all data fields. Change type of
9122 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
9123 Change type of include_dirs to std::vector<const char *>. Remove
9124 num_include_dirs, include_dirs_size. Change type of file_names to
9125 std::vector<file_entry>. Remove num_file_names, file_names_size.
9126 (line_header::line_header): New.
9127 (line_header::add_include_dir, line_header::add_file_name): New
9128 methods.
9129 (line_header::include_dir_at): Remove NULL check.
9130 (line_header::file_name_at): Add const overload.
9131 (line_header_up): New unique_ptr typedef.
9132 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
9133 std::vector. Remove free_line_header call.
9134 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
9135 free_line_header call.
9136 (free_cu_line_header): Delete.
9137 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
9138 (setup_type_unit_groups): Use line_header_up instead of cleanups.
9139 Adjust to use std::vector.
9140 (free_line_header): Delete.
9141 (free_line_header_voidp): Use delete.
9142 (add_include_dir): Replace with ...
9143 (line_header::add_include_dir): ... this method. Use std::vector.
9144 (add_file_name): Replace with ...
9145 (line_header::add_file_name): ... this method. Use std::vector.
9146 (add_include_dir_stub): Delete.
9147 (read_formatted_entries): Remove memset.
9148 (dwarf_decode_line_header): Return a line_header_up instead of a
9149 raw pointer. Remove cleanup handling. Pass lambdas to
9150 read_formatted_entries. Adjust to use line_header methods.
9151 (dwarf_decode_lines_1): Adjust to use line_header methods.
9152 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
9153 use std::vector.
9154
d62a8ae2
SM
91552017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
9156
9157 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
9158 instead of struct ptid.
9159
db3a1dc7
AH
91602017-05-04 Alan Hayward <alan.hayward@arm.com>
9161
9162 * frame.c (get_frame_register_bytes): Unwind using value.
9163 (put_frame_register_bytes): Likewise.
9164
b1b45502
IB
91652017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
9166
9167 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
9168 aggregate-like.
9169
ec13808e
JK
91702017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9171
9172 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
9173
12316564
YQ
91742017-03-29 Yao Qi <yao.qi@linaro.org>
9175
9176 * gdbthread.h (struct thread_info): Declare constructor and
9177 destructor. Add some in-class member initializers.
9178 * thread.c (free_thread): Remove.
9179 (init_thread_list): Call delete instead of free_thread.
9180 (new_thread): Call thread_info constructor.
9181 (thread_info::thread_info): New function.
9182 (thread_info::~thread_info): New function.
9183 (delete_thread_1): Call delete instead of free_thread.
9184 (make_cleanup_restore_current_thread): Move tp and frame to
9185 inner block.
9186
fe5f7374
AK
91872017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9188
9189 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
9190 (arc_skip_prologue): Likewise.
9191 (arc_make_frame_cache): Likewise.
9192 (arc_pv_get_operand): New function.
9193 (arc_is_in_prologue): Likewise.
9194 (arc_analyze_prologue): Likewise.
9195 (arc_print_frame_cache): Likewise.
9196 (MAX_PROLOGUE_LENGTH): New constant.
9197
eea78757
AK
91982017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9199
9200 * configure.tgt: Add arc-insn.o.
9201 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
9202 (dump_arc_instruction_command): New function.
9203 (arc_fprintf_disasm): Likewise.
9204 (arc_disassemble_info): Likewise.
9205 (arc_insn_get_operand_value): Likewise.
9206 (arc_insn_get_operand_value_signed): Likewise.
9207 (arc_insn_get_memory_base_reg): Likewise.
9208 (arc_insn_get_memory_offset): Likewise.
9209 (arc_insn_get_branch_target): Likewise.
9210 (arc_insn_dump): Likewise.
9211 (arc_insn_get_linear_next_pc): Likewise.
9212 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
9213 (arc_disassemble_info): Likewise.
9214 (arc_insn_get_branch_target): Likewise.
9215 (arc_insn_get_linear_next_pc): Likewise.
9216 * NEWS: Mention new "maint print arc arc-instruction".
9217
3be78afd
AK
92182017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9219
9220 * arc-tdep (maintenance_print_arc_list): New variable.
9221 (maintenance_print_arc_command): New function.
9222
296ec4fa
AK
92232017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9224
9225 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
9226 Add "limm" and "reserved".
9227 (arc_cannot_fetch_register, arc_cannot_store_register): Add
9228 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
9229 * arc-tdep.h (arc_regnum): Likewise.
9230
f74f865e
MF
92312017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9232
9233 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9234 for THREADPTR register.
9235 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
9236 register.
9237 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
9238 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
9239 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
9240
0d0bf81a
MF
92412017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9242
9243 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
9244 registers above gdbarch_num_regs (gdbarch) as privileged in
9245 call0 ABI.
9246
0ce4291e
MF
92472017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9248
9249 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9250 for a single specified register or for all registers in
9251 a0_base..a0_base + C0_NREGS range.
9252 (supply_gregset_reg): Call regcache_raw_supply for a single
9253 specified register or for all registers in a0_base..a0_base +
9254 C0_NREGS range.
9255
c56054f9
MF
92562017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9257
9258 * arch/xtensa.h (C0_NREGS): Add definition.
9259 * xtensa-tdep.c (C0_NREGS): Remove definition.
9260
a4398628
MF
92612017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9262
9263 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
9264 Drop xtensa_default_isa initialization.
9265 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
9266
8c43009f
PA
92672017-03-27 Pedro Alves <palves@redhat.com>
9268
9269 * dwarf2read.c (file_entry) <dir_index>: Add comment.
9270 (file_entry::include_dir): New method.
9271 (line_header::include_dir_at, line_header::file_name_at): New
9272 methods.
9273 (setup_type_unit_groups, setup_type_unit_groups)
9274 (psymtab_include_file_name): Simplify using the new methods.
9275 (lnp_state_machine) <the_line_header>: New field.
9276 <file>: Add comment.
9277 (lnp_state_machine::current_file): New method.
9278 (dwarf_record_line): Simplify using the new methods.
9279 (init_lnp_state_machine): Initialize the "the_line_header" field.
9280 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
9281 Simplify using the new methods.
9282
a7e80b9e
PA
92832017-03-27 Pedro Alves <palves@redhat.com>
9284
9285 * cp-name-parser.y (make_empty): Delete.
9286 (demangler_special, nested_name, ptr_operator, array_indicator)
9287 (direct_declarator, declarator_1): Use fill_comp instead of
9288 make_empty.
9289
21047726
PA
92902017-03-27 Pedro Alves <palves@redhat.com>
9291
9292 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
9293 to ATTRIBUTE_PRINTF.
9294 * solib-target.c (library_list_start_list): Print "string" not
9295 "version".
9296 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
9297 gdb_xml_error call.
9298
d721ba37
PA
92992017-03-27 Pedro Alves <palves@redhat.com>
9300
9301 * dwarf2read.c (struct file_and_directory): New.
9302 (dwarf2_get_dwz_file): Adjust to use std::string.
9303 (dw2_get_file_names_reader): Adjust to use file_and_directory.
9304 (find_file_and_directory): Adjust to return a file_and_directory
9305 object.
9306 (read_file_scope): Adjust to use file_and_directory. Remove
9307 make_cleanup/do_cleanups calls.
9308 (open_and_init_dwp_file): Adjust to use std::string. Remove
9309 make_cleanup/do_cleanups calls.
9310 * python/python.c (do_start_initialization): Adjust to ldirname
9311 returning a std::string.
9312 * utils.c (ldirname): Now returns a std::string.
9313 * utils.h (ldirname): Change return type to std::string.
9314 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
9315 returning a std::string.
9316 * xml-tdesc.c (file_read_description_xml): Likewise.
9317
ed771251
AH
93182017-03-24 Alan Hayward <alan.hayward@arm.com>
9319
9320 * regcache.c (regcache_debug_print_register): New function.
9321 * regcache.h (regcache_debug_print_register): New declaration.
9322 * target.c (debug_print_register): Remove.
9323 (target_fetch_registers): Call regcache_debug_print_register.
9324 (target_store_registers): Likewise.
9325
568c1b9f
PB
93262017-03-24 Pádraig Brady <pbrady@fb.com>
9327
9328 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
9329 reference beyond the 'lh->include_dirs' array before accessing to
9330 it.
9331 (psymtab_include_file_name): Likewise.
9332 (dwarf_decode_lines_1): Likewise.
9333 (dwarf_decode_lines): Likewise.
9334 (file_file_name): Likewise.
9335
3e00d44f
SM
93362017-03-23 Simon Marchi <simon.marchi@ericsson.com>
9337
9338 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
9339 inferior_ptid.
9340 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9341 ps_lsetfpregs): Likewise.
9342 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
9343 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9344 ps_lsetfpregs): Likewise.
9345 * target.c (target_fetch_registers, target_store_registers):
9346 Remove asserts.
9347
077ae656
AH
93482017-03-23 Alan Hayward <alan.hayward@arm.com>
9349
9350 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
9351
1e2b521d
YQ
93522017-03-23 Yao Qi <yao.qi@linaro.org>
9353
9354 * aarch64-tdep.c (aarch64_process_record_test): Declare.
9355 (_initialize_aarch64_tdep): Register it.
9356 (aarch64_record_load_store): Handle PRFM instruction.
9357 (aarch64_process_record_test): New function.
9358
33877125
YQ
93592017-03-23 Yao Qi <yao.qi@linaro.org>
9360
9361 * aarch64-tdep.c (aarch64_record_load_store): Fix code
9362 indentation.
9363
a0eef940
YQ
93642017-03-23 Yao Qi <yao.qi@linaro.org>
9365
9366 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
9367
3f2a3564
PR
93682017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9369
9370 python/python.c (do_start_initialization): Fix memory leak.
9371
b67aeab0
SM
93722017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9373
9374 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
9375 using get_ptrace_pid.
9376 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
9377 inferior_ptid.
9378 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
9379 inferior_ptid instead of pid.
9380
ffdbe864
YQ
93812017-03-22 Yao Qi <yao.qi@linaro.org>
9382
9383 * aarch64-tdep.c: Wrap locally used classes in anonymous
9384 namespace.
9385 * arm-tdep.c: Likewise.
9386 * linespec.c: Likewise.
9387 * ui-out.c: Likewise.
9388
9d736fbf
JG
93892017-03-22 Jonah Graham <jonah@kichwacoders.com>
9390
9391 PR gdb/19637
9392 * python/lib/gdb/printer/bound_registers.py: Import sys.
9393
3de88e9a
SM
93942017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9395
9396 * windows-nat.c (do_windows_fetch_inferior_registers): Add
9397 windows_thread_info parameter and use it instead of
9398 current_thread.
9399 (windows_fetch_inferior_registers): Don't set current_thread,
9400 pass the thread to do_windows_fetch_inferior_registers. Use
9401 ptid from regcache instead of inferior_ptid.
9402 (do_windows_store_inferior_registers): Add windows_thread_info
9403 parameter and use it instead of current_thread.
9404 (windows_store_inferior_registers): Don't set current_thread,
9405 pass the thread to do_windows_store_inferior_registers. Use
9406 ptid from regcache instead of inferior_ptid.
9407
0e7b8f61
SM
94082017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9409
9410 * ser-mingw.c (ser_windows_raw): Remove reference to
9411 struct serial::current_timeout.
9412
5badf10a
IR
94132017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
9414
9415 PR tdep/20928
9416 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
9417 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
9418 (sparc64_fsr_type): Fix %fsr decoding.
9419
cee59b3f
TW
94202017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
9421
9422 * python/py-record-btrace.c (btpy_insn_data): Change return type
9423 for Python 2.
9424
639a9038
SM
94252017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9426
9427 * spu-linux-nat.c (spu_fetch_inferior_registers,
9428 spu_store_inferior_registers): Use ptid from regcache, set and
9429 restore inferior_ptid.
9430 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9431 Likewise.
9432
bcc0c096
SM
94332017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9434
9435 * i386-linux-nat.c (fetch_register, store_register,
9436 i386_linux_fetch_inferior_registers,
9437 i386_linux_store_inferior_registers): Use ptid from regcache.
9438 * ia64-linux-nat.c (ia64_linux_fetch_register,
9439 ia64_linux_store_register): Likewise.
9440 * inf-ptrace.c (inf_ptrace_fetch_register,
9441 inf_ptrace_store_register): Likewise.
9442 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9443 m32r_linux_store_inferior_registers): Likewise.
9444 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9445 m68kbsd_store_inferior_registers): Likewise.
9446 * m68k-linux-nat.c (fetch_register, store_register,
9447 m68k_linux_fetch_inferior_registers,
9448 m68k_linux_store_inferior_registers): Likewise.
9449 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9450 m88kbsd_store_inferior_registers): Likewise.
9451 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9452 mips_fbsd_store_inferior_registers): Likewise.
9453 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9454 mips64_linux_regsets_store_registers): Likewise.
9455 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9456 mipsnbsd_store_inferior_registers): Likewise.
9457 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9458 mips64obsd_store_inferior_registers): Likewise.
9459 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9460 Likewise.
9461 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9462 ppcfbsd_store_inferior_registers): Likewise.
9463 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9464 ppc_linux_store_inferior_registers): Likewise.
9465 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9466 ppcnbsd_store_inferior_registers): Likewise.
9467 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9468 ppcobsd_store_registers): Likewise.
9469 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9470 Likewise.
9471 * ravenscar-thread.c (ravenscar_fetch_registers,
9472 ravenscar_store_registers, ravenscar_prepare_to_store):
9473 Likewise.
9474 * record-btrace.c (record_btrace_fetch_registers,
9475 record_btrace_store_registers, record_btrace_prepare_to_store):
9476 Likewise.
9477 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9478 Lookup inferior using ptid from regcache, instead of
9479 current_inferior.
9480 * remote.c (remote_fetch_registers, remote_store_registers): Use
9481 ptid from regcache.
9482 * rs6000-nat.c (fetch_register, store_register): Likewise.
9483 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9484 s390_linux_store_inferior_registers): Likewise.
9485 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9486 shnbsd_store_inferior_registers): Likewise.
9487 * sol-thread.c (sol_thread_fetch_registers,
9488 sol_thread_store_registers): Likewise.
9489 * sparc-nat.c (sparc_fetch_inferior_registers,
9490 sparc_store_inferior_registers): Likewise.
9491 * tilegx-linux-nat.c (fetch_inferior_registers,
9492 store_inferior_registers): Likewise.
9493 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9494 vaxbsd_store_inferior_registers): Likewise.
9495 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9496 store_xtregs): Likewise.
9497
c0f55cc6
AV
94982017-03-20 Artemiy Volkov <artemiyv@acm.org>
9499
9500 PR gdb/14441
9501 * NEWS: Mention support for rvalue references in GDB and python.
9502 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9503 supports both lvalue and rvalue references.
9504
15c0a2a9
AV
95052017-03-20 Artemiy Volkov <artemiyv@acm.org>
9506
9507 PR gdb/14441
9508 * gdbtypes.c (rank_one_type): Implement overloading
9509 resolution rules regarding rvalue references.
9510
aa006118
AV
95112017-03-20 Artemiy Volkov <artemiyv@acm.org>
9512
9513 PR gdb/14441
9514 * aarch64-tdep.c (aarch64_type_align)
9515 (aarch64_extract_return_value, aarch64_store_return_value): Change
9516 lvalue reference type checks to general reference type checks.
9517 * amd64-tdep.c (amd64_classify): Likewise.
9518 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9519 Likewise.
9520 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9521 (arm_store_return_value): Likewise.
9522 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9523 * c-typeprint.c (c_print_type): Likewise.
9524 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9525 (cplus_number_of_children, cplus_describe_child): Likewise.
9526 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9527 * completer.c (expression_completer): Likewise.
9528 * cp-support.c (make_symbol_overload_list_adl_namespace):
9529 Likewise.
9530 * darwin-nat-info.c (info_mach_region_command): Likewise.
9531 * dwarf2loc.c (entry_data_value_coerce_ref)
9532 (value_of_dwarf_reg_entry): Likewise.
9533 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9534 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9535 Likewise.
9536 * findvar.c (extract_typed_address, store_typed_address):
9537 Likewise.
9538 * gdbtypes.c (rank_one_type): Likewise.
9539 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9540 * infcall.c (value_arg_coerce): Likewise.
9541 * language.c (pointer_type): Likewise.
9542 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9543 Likewise.
9544 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9545 * mn10300-tdep.c (mn10300_type_align): Likewise.
9546 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9547 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9548 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9549 Likewise.
9550 * printcmd.c (print_formatted, x_command): Likewise.
9551 * python/py-type.c (typy_get_composite, typy_template_argument):
9552 Likewise.
9553 * python/py-value.c (valpy_referenced_value)
9554 (valpy_get_dynamic_type, value_has_field): Likewise.
9555 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9556 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9557 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9558 * spu-tdep.c (spu_scalar_value_p): Likewise.
9559 * symtab.c (lookup_symbol_aux): Likewise.
9560 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9561 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9562 Likewise.
9563 * valops.c (value_cast_pointers, value_cast)
9564 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9565 (value_struct_elt, value_struct_elt_bitpos)
9566 (value_find_oload_method_list, find_overload_match)
9567 (value_rtti_indirect_type): Likewise.
9568 * valprint.c (val_print_scalar_type_p, generic_val_print):
9569 Likewise.
9570 * value.c (value_actual_type, value_as_address, unpack_long)
9571 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9572 (coerce_ref): Likewise.
9573 * varobj.c (varobj_get_value_type): Likewise.
9574
3fcf899d
AV
95752017-03-20 Artemiy Volkov <artemiyv@acm.org>
9576
9577 PR gdb/14441
9578 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9579 table of constants.
9580 * python/lib/gdb/command/explore.py: Support exploring values
9581 of rvalue reference types.
9582 * python/lib/gdb/types.py: Implement get_basic_type() for
9583 rvalue reference types.
9584 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9585 constant.
9586 * python/py-value.c (valpy_getitem): Add an rvalue reference
9587 check.
9588 (valpy_reference_value): Add new parameter "refcode".
9589 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9590 New wrappers for valpy_reference_value().
9591 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9592 (gdbpy_invoke_xmethod): Likewise.
9593
4297a3f0
AV
95942017-03-20 Artemiy Volkov <artemiyv@acm.org>
9595
9596 PR gdb/14441
9597 * dwarf2read.c (process_die, read_type_die_1): Handle the
9598 DW_TAG_rvalue_reference_type DIE.
9599 (read_tag_reference_type): Add new parameter "refcode".
9600
e1cb3213
AV
96012017-03-20 Artemiy Volkov <artemiyv@acm.org>
9602
9603 PR gdb/14441
9604 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9605 (c_type_print_modifier, c_type_print_varspec_suffix)
9606 (c_type_print_base): Support printing rvalue reference types.
9607 * c-valprint.c (c_val_print, c_value_print): Support printing
9608 rvalue reference values.
9609
e4347c89
AV
96102017-03-20 Artemiy Volkov <artemiyv@acm.org>
9611
9612 PR gdb/14441
9613 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9614 typename.
9615 * cp-support.c (replace_typedefs): Handle
9616 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9617 * python/py-type.c (typy_lookup_type): Likewise.
9618
53cc15f5
AV
96192017-03-20 Artemiy Volkov <artemiyv@acm.org>
9620
9621 PR gdb/14441
9622 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9623 * parse.c (insert_type): Change assert statement.
9624 (follow_types): Handle rvalue reference types.
9625 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9626 constant.
9627
a65cfae5
AV
96282017-03-20 Artemiy Volkov <artemiyv@acm.org>
9629
9630 PR gdb/14441
9631 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9632 value_ref() interface.
9633 * c-valprint.c (c_value_print): Likewise.
9634 * infcall.c (value_arg_coerce): Likewise.
9635 * python/py-value.c (valpy_reference_value): Likewise.
9636 * valops.c (value_cast, value_reinterpret_cast)
9637 (value_dynamic_cast, typecmp): Likewise.
9638 (value_ref): Parameterize by kind of return value reference type.
9639 * value.h (value_ref): Add new parameter "refcode".
9640
3b224330
AV
96412017-03-20 Artemiy Volkov <artemiyv@acm.org>
9642
9643 PR gdb/14441
9644 * dwarf2read.c (read_tag_reference_type): Use
9645 lookup_lvalue_reference_type() instead of lookup_reference_type().
9646 * eval.c (evaluate_subexp_standard): Likewise.
9647 * f-exp.y: Likewise.
9648 * gdbtypes.c (make_reference_type, lookup_reference_type):
9649 Generalize with rvalue reference types.
9650 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9651 convenience wrappers for lookup_reference_type().
9652 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9653 reference kind parameter.
9654 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9655 wrappers for lookup_reference_type().
9656 * guile/scm-type.c (gdbscm_type_reference): Use
9657 lookup_lvalue_reference_type() instead of lookup_reference_type().
9658 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9659 * parse.c (follow_types): Likewise.
9660 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9661 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9662 Likewise.
9663 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9664 (gdbpy_invoke_xmethod): Likewise.
9665 * stabsread.c: Provide extra argument to make_reference_type()
9666 call.
9667 * valops.c (value_ref, value_rtti_indirect_type): Use
9668 lookup_lvalue_reference_type() instead of lookup_reference_type().
9669
f9aeb8d4
AV
96702017-03-20 Artemiy Volkov <artemiyv@acm.org>
9671
9672 PR gdb/14441
9673 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9674 (TYPE_IS_REFERENCE): New macro.
9675 (struct type): Add rvalue_reference_type field.
9676 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9677
51457a05
MAL
96782017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9679
9680 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9681 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9682 New function definition.
9683 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9684 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9685 New function declaration.
9686 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9687 * mi/mi-interp.h: New file.
9688 * solib.c (info_sharedlibrary_command): Replace for loop with
9689 ALL_SO_LIBS macro
9690 * solib.h (update_solib_list): New function declaration.
9691 (so_list_head): Move macro.
9692 * solist.h (ALL_SO_LIBS): New macro.
9693
e696b3ad
MAL
96942017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9695
9696 * infcmd.c (post_create_inferior): Remove unused argument in
9697 call to solib_add.
9698 * remote.c (remote_start_remote): Likewise.
9699 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9700 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9701 (enable_break): Likewise.
9702 * solib.c (update_solib_list): Remove unused target argument
9703 and its documentation.
9704 (solib_add): Remove unused target argument. Remove unused
9705 argument in call to update_solib_list.
9706 (info_sharedlibrary_command): Remove unused argument in call
9707 to update_solib_list.
9708 (sharedlibrary_command): Remove unused argument in call to
9709 solib_add.
9710 (handle_solib_event): Likewise.
9711 (reload_shared_libraries): Likewise.
9712 * solib.h (solib_add): Remove unused target argument.
9713
dcb84eda
AA
97142017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9715
9716 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9717 (s390_displaced_step_fixup): Cover relative branches with the
9718 default fixup handling. This fixes lack of support for some
9719 relative branch instructions.
9720
d9cb6cdc
SM
97212017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9722
9723 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9724 ptid from regcache.
9725
1afaf9f4
SM
97262017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9727
9728 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9729 i386_darwin_store_inferior_registers): Use ptid from regcache.
9730
aac12e24
SM
97312017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9732
9733 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9734 i386bsd_store_inferior_registers): Use ptid from regcache.
9735
bbe1eef1
SM
97362017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9737
9738 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9739 hppaobsd_store_registers): Use ptid from regcache.
9740
10799020
SM
97412017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9742
9743 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9744 hppanbsd_store_registers): Use ptid from regcache.
9745
00204cf7
SM
97462017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9747
9748 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9749 from regcache. Use get_ptrace_pid.
9750
11a33714
SM
97512017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9752
9753 * corelow.c (get_core_register_section): Use ptid from regcache,
9754 update doc.
9755
317cd492
SM
97562017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9757
9758 * bsd-uthread.c (bsd_uthread_fetch_registers,
9759 bsd_uthread_store_registers): Use ptid from regcache, set and
9760 restore inferior_ptid.
9761
9ac8a7c2
SM
97622017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9763
9764 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9765 fetch_fp_regs, store_register, store_regs, store_fp_register,
9766 store_fp_regs): Use ptid from regcache.
9767
4ac4bb6a
SM
97682017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9769
9770 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9771 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9772 store_vfp_regs): Use ptid from regcache.
9773
9bcbdca8
PA
97742017-03-17 Pedro Alves <palves@redhat.com>
9775
9776 PR remote/21188
9777 * ser-base.c (ser_base_wait_for): Add comment.
9778 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9779 version.
9780 * ser-unix.c (hardwire_raw): Remove reference to
9781 scb->current_timeout.
9782 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9783 (hardwire_ops): Install ser_base_readchar instead of
9784 hardwire_readchar.
9785 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9786 Remove fields.
9787
7503099f
JG
97882017-03-17 Jonah Graham <jonah@kichwacoders.com>
9789
9790 PR gdb/19637
9791 * python/lib/gdb/printer/bound_registers.py: Add support for
9792 Python 3.
9793
7942e96e
AA
97942017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9795
9796 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9797 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9798 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9799 byte_offset to subobj_byte_offset. Fix the handling of
9800 DWARF_VALUE_STACK on big-endian targets when coming via an
9801 implicit pointer.
9802 (dwarf2_evaluate_loc_desc): Adjust call to
9803 dwarf2_evaluate_loc_desc_full.
9804 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9805 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9806
ba14f379
YQ
98072017-03-16 Yao Qi <yao.qi@linaro.org>
9808
9809 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9810 and REVSH instructions.
9811
b121eeb9
YQ
98122017-03-16 Yao Qi <yao.qi@linaro.org>
9813
9814 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9815 (arm_record_test): Declare.
9816 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9817 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9818 align with the manual.
9819 (thumb_record_misc): Adjust the code order to align with the
9820 manual.
9821 (thumb2_record_decode_insn_handler): Fix instruction matching.
9822 (instruction_reader_thumb): New class.
9823 (arm_record_test): New function.
9824
728a7913
YQ
98252017-03-16 Yao Qi <yao.qi@linaro.org>
9826
9827 * arm-tdep.c (abstract_memory_reader): New class.
9828 (instruction_reader): New class.
9829 (extract_arm_insn): Add argument 'reader'. Callers updated.
9830 (decode_insn): Likewise.
9831
34b43320
DE
98322017-03-16 Doug Evans <dje@google.com>
9833
a7c0469f
DE
9834 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9835 member. Change type of TYPE member to SCM. All uses updated.
9836 (lsscm_make_lazy_string_smob): Add assert.
9837 (lsscm_make_lazy_string): Flag bad length values.
9838 (lsscm_elt_type): New function.
9839 (gdbscm_lazy_string_to_value): Rewrite to use
9840 lsscm_safe_lazy_string_to_value.
9841 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9842 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9843 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9844 in incoming type.
9845 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9846 * guile/scm-type.c (tyscm_scm_to_type): New function.
9847
98482017-03-15 Doug Evans <dje@google.com>
9849
34b43320
DE
9850 PR python/17728, python/18439, python/18779
9851 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9852 member. Change type of TYPE member to PyObject *. All uses updated.
9853 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9854 (gdbpy_create_lazy_string_object): Flag bad length values.
9855 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9856 Handle typedefs in incoming type.
9857 (stpy_lazy_string_elt_type): New function.
9858 (gdbpy_extract_lazy_string): Call it.
9859 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9860 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9861 typedefs in incoming type.
9862
a3a5fecc
DE
98632017-03-16 Doug Evans <dje@google.com>
9864
9865 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9866 * guile/scm-type.c (tyscm_scm_to_type): New function.
9867
28f1c605
JW
98682017-03-16 Jiong Wang <jiong.wang@arm.com>
9869
9870 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9871 "ULONGEST" for "skip".
9872
87c336f6
AA
98732017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9874
9875 PR gdb/21220
9876 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9877 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9878 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9879 over ptrace peek/poke until end of buffer or error.
9880
cf81cf60
SM
98812017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9882
9883 * parse.c (length_of_subexp): Make static.
9884 * parser-defs.h (length_of_subexp): Remove.
9885
a379284a
AA
98862017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9887
9888 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9889 as well.
9890
8a6200ba
PA
98912017-03-14 Pedro Alves <palves@redhat.com>
9892
9893 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9894 (main): Use std::unique_ptr. Remove calls to
9895 cp_demangled_name_parse_free.
9896
f79ec206
SM
98972017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9898
9899 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9900 alphabsd_store_inferior_registers): Use regcache->ptid instead
9901 of inferior_ptid.
9902
edb5fb00
SM
99032017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9904
9905 * aix-thread.c (aix_thread_fetch_registers,
9906 aix_thread_store_registers): Use regcache->ptid instead of
9907 inferior_ptid.
9908
55119686
SM
99092017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9910
9911 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9912 store_gregs_to_thread, fetch_fpregs_from_thread,
9913 store_fpregs_to_thread): Use regcache->ptid instead of
9914 inferior_ptid.
9915
6a06fbb7
SM
99162017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9917
9918 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9919 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9920 instead of inferior_ptid.
9921
c6386875
SM
99222017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9923
9924 * target.c (target_fetch_registers, target_store_registers): Add
9925 assert.
9926
ddaaf0fb
SM
99272017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9928
9929 * regcache.h (regcache_get_ptid): New function.
9930 * regcache.c (regcache_get_ptid): New function.
9931
b9da89d1 99322017-03-13 Mark Wielaard <mark@klomp.org>
9933
9934 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9935
5f4d1085
KS
99362017-03-10 Keith Seitz <keiths@redhat.com>
9937
9938 PR c++/8218
9939 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9940
c65d6b55
PA
99412017-03-08 Pedro Alves <palves@redhat.com>
9942
9943 PR gdb/18360
9944 * infrun.c (start_step_over, do_target_resume, resume)
9945 (restart_threads): Assert we're not resuming a thread that is
9946 meant to be stopped.
9947 (infrun_thread_stop_requested_callback): Delete.
9948 (infrun_thread_stop_requested): If the thread is internally
9949 stopped, queue a pending stop event and clear the thread's
9950 inline-frame state.
9951 (handle_stop_requested): New function.
9952 (handle_syscall_event, handle_inferior_event_1): Use
9953 handle_stop_requested.
9954 (handle_stop_requested): New function.
9955 (handle_signal_stop): Set the thread's stop_signal here instead of
9956 at caller.
9957 (finish_step_over): Clear step over info unconditionally.
9958 (handle_signal_stop): If the user had interrupted the event
9959 thread, consider the stop a random signal.
9960 (handle_signal_stop) <signal arrived while stepping over
9961 breakpoint>: Don't restart threads here.
9962 (stop_waiting): Don't clear step-over info here.
9963
15c22686
PA
99642017-03-08 Pedro Alves <palves@redhat.com>
9965
9966 PR 21206
9967 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9968 goes to argument 2, not 1.
9969
6e5d74e7
PA
99702017-03-08 Pedro Alves <palves@redhat.com>
9971
9972 PR cli/21218
9973 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9974 display_gdb_prompt.
9975 (command_line_input): Add comment.
9976
9753a2f6
PA
99772017-03-08 Pedro Alves <palves@redhat.com>
9978
9979 PR tui/21216
9980 * tui/tui-file.c (tui_file::write): New.
9981 * tui/tui-file.h (tui_file): Override "write".
9982 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9983 factored out from ...
9984 (tui_puts): ... here.
9985 (tui_putc): Use them.
9986 (tui_write): New function.
9987 * tui/tui-io.h (tui_write): Declare.
9988
1672e0d9
SDJ
99892017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9990
9991 * Makefile.in (SFILES): Replace "environ.c" with
9992 "common/environ.c".
9993 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9994 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9995 to...
9996 * common/environ.c: ... here.
9997 * environ.h: Moved to...
9998 * common/environ.h: ... here.
9999
f7bb4e3a
PB
100002017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10001
10002 * gdbarch.sh (pstring_ptr): New static function.
10003 (gdbarch_disassembler_options): Use it.
10004 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
10005 not valid_disassembler_option->name.
10006 * gdbarch.c: Regenerate.
10007
e45ced6c
PB
100082017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10009
10010 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
10011
5f6fd321
PA
100122017-03-07 Pedro Alves <palves@redhat.com>
10013
10014 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
10015
6dbb839a 100162017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
10017
10018 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
10019 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
10020 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 10021 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 10022
d274ecf4
SM
100232017-03-06 Simon Marchi <simon.marchi@ericsson.com>
10024
10025 * xtensa-linux-nat.c (fetch_gregs): Remove const.
10026
df97be55
SM
100272017-03-03 Simon Marchi <simon.marchi@ericsson.com>
10028
10029 * remote.c (remote_add_target_side_commands): Use range-based
10030 for loop.
10031
7d45f3df
YQ
100322017-03-03 Yao Qi <yao.qi@linaro.org>
10033
10034 PR gdb/21165
10035 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
10036 value is lazy.
10037 * valprint.c (common_val_print): Likewise.
10038
65b48a81
PB
100392017-02-28 Peter Bergner <bergner@vnet.ibm.com>
10040
10041 * NEWS: Mention new set/show disassembler-options commands.
10042 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
10043 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
10044 (prospective_options): New static variable.
10045 (gdb_disassembler::gdb_disassembler): Initialize
10046 m_di.disassembler_options.
10047 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
10048 (get_disassembler_options): New function.
10049 (set_disassembler_options): Likewise.
10050 (set_disassembler_options_sfunc): Likewise.
10051 (show_disassembler_options_sfunc): Likewise.
10052 (disassembler_options_completer): Likewise.
10053 (_initialize_disasm): Likewise.
10054 * disasm.h (get_disassembler_options): New prototype.
10055 (set_disassembler_options): Likewise.
10056 * gdbarch.sh (gdbarch_disassembler_options): New variable.
10057 (gdbarch_verify_disassembler_options): Likewise.
10058 * gdbarch.c: Regenerate.
10059 * gdbarch.h: Likewise.
10060 * arm-tdep.c (num_disassembly_options): Delete.
10061 (set_disassembly_style): Likewise.
10062 (arm_disassembler_options): New static variable.
10063 (set_disassembly_style_sfunc): Convert short style name into long
10064 option name. Call set_disassembler_options.
10065 (show_disassembly_style_sfunc): New function.
10066 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
10067 set_gdbarch_verify_disassembler_options.
10068 (_initialize_arm_tdep): Delete regnames variable and update callers.
10069 (arm_disassembler_options): Initialize.
10070 (disasm_options): New variable.
10071 (num_disassembly_options): Rename from this...
10072 (num_disassembly_styles): ...to this. Compute by scanning through
10073 disasm_options.
10074 (valid_disassembly_styles): Initialize using disasm_options.
10075 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
10076 set_arm_regname_option.
10077 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
10078 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
10079 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
10080 set_gdbarch_verify_disassembler_options.
10081 * s390-tdep.c (s390_disassembler_options): New static variable.
10082 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
10083 set_gdbarch_verify_disassembler_options.
10084
d538e36d
SM
100852017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10086
10087 * remote.c (remote_add_target_side_condition): Remove "struct"
10088 keyword from range-based for loop.
10089
83621223
SM
100902017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10091
10092 * remote.c (remote_add_target_side_condition): Use range-based
10093 for loop. Update comment.
10094
2123df0e
YQ
100952017-02-27 Yao Qi <yao.qi@linaro.org>
10096
10097 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
10098
8e368124
AH
100992017-02-26 Alan Hayward <alan.hayward@arm.com>
10100
10101 * regcache.c (regcache_raw_update): New function.
10102 (regcache_raw_read): Move code to regcache_raw_update.
10103 * regcache.h (regcache_raw_update): New declaration.
10104 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
10105
a49dd8dd
JK
101062017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10107
10108 * dwarf2read.c (create_debug_type_hash_table): Initialize
10109 header.signature and header.type_offset_in_tu.
10110
34e4bae9
PA
101112017-02-24 Pedro Alves <palves@redhat.com>
10112
10113 * symtab.c (make_file_symbol_completion_list_1): Use
10114 add_symtab_completions.
10115
b0e4b369
AH
101162017-02-24 Alan Hayward <alan.hayward@arm.com>
10117
10118 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
10119
975c21ab
AH
101202017-02-24 Alan Hayward <alan.hayward@arm.com>
10121
10122 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
10123 I386_MAX_REGISTER_SIZE.
10124 (i386_pseudo_register_write): Likewise.
10125 (i386_process_record): Likewise.
10126 * i387-tdep.c (i387_supply_xsave): Likewise.
10127 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
10128 (store_register): Likewise.
10129
14bc53a8
PA
101302017-02-23 Pedro Alves <palves@redhat.com>
10131
10132 * ada-lang.c: Include "common/function-view.h".
10133 (ada_iterate_over_symbols): Adjust to use function_view as
10134 callback type.
10135 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
10136 (ada_make_symbol_completion_list): Use a lambda.
10137 (ada_exc_search_name_matches): Delete.
10138 (name_matches_regex): New.
10139 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
10140 * compile/compile-c-support.c: Include "common/function-view.h".
10141 (print_one_macro): Change prototype to accept a ui_file pointer.
10142 (write_macro_definitions): Use a lambda.
10143 * dwarf2read.c: Include "common/function-view.h".
10144 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10145 (dw2_expand_symtabs_matching): Adjust to use function_view as
10146 callback type.
10147 * language.h: Include "common/function-view.h".
10148 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
10149 function_view as callback type.
10150 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
10151 * linespec.c: Include "common/function-view.h".
10152 (collect_info::add_symbol): New method.
10153 (struct symbol_and_data_callback, iterate_inline_only, struct
10154 symbol_matcher_data, iterate_name_matcher): Delete.
10155 (iterate_over_all_matching_symtabs): Adjust to use function_view
10156 as callback type and lambdas.
10157 (iterate_over_file_blocks): Adjust to use function_view as
10158 callback type.
10159 (decode_compound_collector): Now a class with private fields.
10160 (decode_compound_collector::release_symbols): New method.
10161 (collect_one_symbol): Rename to...
10162 (decode_compound_collector::operator()): ... this and adjust.
10163 (lookup_prefix_sym): decode_compound_collector construction bits
10164 move to decode_compound_collector ctor. Pass the
10165 decode_compound_collector object directly as callback. Remove
10166 cleanups and use decode_compound_collector::release_symbols
10167 instead.
10168 (symtab_collector): Now a class with private fields.
10169 (symtab_collector::release_symtabs): New method.
10170 (add_symtabs_to_list): Rename to...
10171 (symtab_collector::operator()): ... this and adjust.
10172 (collect_symtabs_from_filename): symtab_collector construction
10173 bits move to symtab_collector ctor. Pass the symtab_collector
10174 object directly as callback. Remove cleanups and use
10175 symtab_collector::release_symtabs instead.
10176 (collect_symbols): Delete.
10177 (add_matching_symbols_to_info): Use lambdas.
10178 * macrocmd.c (print_macro_callback): Delete.
10179 (info_macro_command): Use a lambda.
10180 (info_macros_command): Pass print_macro_definition as callable
10181 directly.
10182 (print_one_macro): Remove 'ignore' parameter.
10183 (macro_list_command): Adjust.
10184 * macrotab.c (macro_for_each_data::fn): Now a function_view.
10185 (macro_for_each_data::user_data): Delete field.
10186 (foreach_macro): Adjust to call the function_view.
10187 (macro_for_each): Adjust to use function_view as callback type.
10188 (foreach_macro_in_scope): Adjust to call the function_view.
10189 (macro_for_each_in_scope): Adjust to use function_view as callback
10190 type.
10191 * macrotab.h: Include "common/function-view.h".
10192 (macro_callback_fn): Declare a prototype instead of a pointer.
10193 Remove "user_data" parameter.
10194 (macro_for_each, macro_for_each_in_scope): Adjust to use
10195 function_view as callback type.
10196 * psymtab.c (partial_map_expand_apply)
10197 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
10198 Adjust to use function_view as callback type and to return bool.
10199 (psym_expand_symtabs_matching): Adjust to use function_view as
10200 callback types.
10201 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
10202 to use function_view as callback type and to return bool.
10203 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
10204 callback types.
10205 * symfile.c (expand_symtabs_matching): Adjust to use function_view
10206 as callback types.
10207 * symfile.h: Include "common/function-view.h".
10208 (expand_symtabs_file_matcher_ftype)
10209 (expand_symtabs_symbol_matcher_ftype)
10210 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
10211 return bool.
10212 (quick_symbol_functions::map_symtabs_matching_filename)
10213 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
10214 function_view as callback type and return bool.
10215 (expand_symtabs_matching): Adjust to use function_view as callback
10216 type.
10217 (maintenance_expand_name_matcher)
10218 (maintenance_expand_file_matcher): Delete.
10219 (maintenance_expand_symtabs): Use lambdas.
10220 * symtab.c (iterate_over_some_symtabs): Adjust to use
10221 function_view as callback types and return bool.
10222 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
10223 of a cleanup.
10224 (lookup_symtab_callback): Delete.
10225 (lookup_symtab): Use a lambda.
10226 (iterate_over_symbols): Adjust to use function_view as callback
10227 type.
10228 (struct search_symbols_data, search_symbols_file_matches)
10229 (search_symbols_name_matches): Delete.
10230 (search_symbols): Use a pair of lambdas.
10231 (struct add_name_data, add_macro_name, symbol_completion_matcher)
10232 (symtab_expansion_callback): Delete.
10233 (default_make_symbol_completion_list_break_on_1): Use lambdas.
10234 * symtab.h: Include "common/function-view.h".
10235 (iterate_over_some_symtabs): Adjust to use function_view as
10236 callback type and return bool.
10237 (iterate_over_symtabs): Adjust to use function_view as callback
10238 type.
10239 (symbol_found_callback_ftype): Remove 'data' parameter and return
10240 bool.
10241 (iterate_over_symbols): Adjust to use function_view as callback
10242 type.
10243
07e253aa
PA
102442017-02-23 Pedro Alves <palves@redhat.com>
10245
10246 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
10247 (%.o) <unittests/%.c>: New pattern.
10248 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
10249 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
10250 * common/function-view.h: New file.
10251 * unittests/function-view-selftests.c: New file.
10252 * configure: Regenerate.
10253
8eaf5320
SM
102542017-02-23 Simon Marchi <simon.marchi@ericsson.com>
10255
10256 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
10257 inferior_ptid.
10258 * go32-nat.c (go32_thread_alive): Likewise.
10259
38768751
YQ
102602017-02-23 Yao Qi <yao.qi@linaro.org>
10261
10262 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
10263 delete.
10264
0a8beaba
YQ
102652017-02-23 Yao Qi <yao.qi@linaro.org>
10266
10267 * varobj.c (varobj_clear_saved_item): Use delete instead of
10268 xfree.
10269 (update_dynamic_varobj_children): Likewise.
10270
58fdfd2c
JK
102712017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10272
10273 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
10274
1b90b139
SM
102752017-02-21 Simon Marchi <simon.marchi@ericsson.com>
10276
10277 * common/enum-flags.h (enum_flags::enum_flags): Initialize
10278 m_enum_value to 0 in default constructor.
10279
2039d74e
EBM
102802017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10281
10282 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
10283 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
10284 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
10285 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
10286 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
10287 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
10288 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
10289 IS_STORE_CONDITIONAL_INSN.
10290
7814882a
JK
102912017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10292
10293 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
10294
0ae60b63
JK
102952017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10296
10297 * NEWS (Changes since GDB 7.12): Add DWARF-5.
10298
0224619f
JK
102992017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10300
10301 * dwarf2read.c (skip_one_die, read_attribute_value)
10302 (dwarf2_const_value_attr, dump_die_shallow)
10303 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
10304 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
10305
0af92d60
JK
103062017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10307
10308 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
10309 (dwarf_parse_macro_header): Accept DWARF version 5.
10310 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
10311
216f72a1
JK
103122017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10313
10314 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
10315 DW_AT_GNU_*.
10316 * common/common-exceptions.h (enum errors): Likewise.
10317 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
10318 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
10319 (dwarf_expr_context::execute_stack_op): Likewise.
10320 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
10321 Likewise.
10322 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
10323 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10324 (show_entry_values_debug, call_site_to_target_addr)
10325 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
10326 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
10327 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
10328 (value_of_dwarf_block_entry, indirect_pieced_value)
10329 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
10330 (disassemble_dwarf_expression): Likewise.
10331 * dwarf2read.c (process_die, inherit_abstract_dies)
10332 (read_call_site_scope): Likewise.
10333 * gdbtypes.h (struct func_type, struct call_site_parameter)
10334 (struct call_site): Likewise.
10335 * stack.c (read_frame_arg): Likewise.
10336 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
10337
43988095
JK
103382017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10339
10340 * defs.h (read_unsigned_leb128): New declaration.
10341 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
10342 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
10343 (dwarf2_find_location_expression): Call also
10344 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
10345 * dwarf2loc.h (dwarf2_version): New declaration.
10346 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
10347 rnglists.
10348 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
10349 .debug_rnglists.
10350 (struct dwop_section_names): Add loclists_dwo.
10351 (dwop_section_names): Add .debug_loclists.dwo.
10352 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
10353 (struct dwarf2_per_cu_data): Add dwarf_version.
10354 (struct dwo_sections): Add loclists.
10355 (struct attr_abbrev): Add implicit_const.
10356 (read_indirect_line_string): New declaration.
10357 (read_unsigned_leb128): Delete declaration.
10358 (rcuh_kind): New definition.
10359 (read_and_check_comp_unit_head): Change parameter
10360 is_debug_types_section to section_kind.
10361 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
10362 (read_comp_unit_head): Change parameter abfd to section, add parameter
10363 section_kind. Handle DWARF-5.
10364 (error_check_comp_unit_head): Accept also DWARF version 5.
10365 (read_and_check_comp_unit_head): Change parameter
10366 is_debug_types_section to section_kind.
10367 (read_and_check_type_unit_head): Delete function.
10368 (read_abbrev_offset): Handle DWARF-5.
10369 (create_debug_type_hash_table): Add parameter section_kind. Process
10370 only DW_UT_type. Use signature and type_offset_in_tu from struct
10371 comp_unit_head.
10372 (create_debug_types_hash_table): Update create_debug_type_hash_table
10373 caller.
10374 (create_all_type_units): Call create_debug_type_hash_table.
10375 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
10376 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
10377 caller.
10378 (skip_one_die): Handle DW_FORM_implicit_const.
10379 (dwarf2_rnglists_process): New function.
10380 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
10381 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
10382 (read_attribute_value): Handle DW_FORM_implicit_const,
10383 DW_FORM_line_strp.
10384 (read_attribute): Handle DW_FORM_implicit_const.
10385 (read_indirect_string_at_offset_from): New function from
10386 read_indirect_string_at_offset.
10387 (read_indirect_string_at_offset): Call
10388 read_indirect_string_at_offset_from.
10389 (read_indirect_line_string_at_offset): New function.
10390 (read_indirect_string): New function comment.
10391 (read_indirect_line_string): New function.
10392 (read_unsigned_leb128): Make it global.
10393 (dwarf2_string_attr): Handle DWARF-5.
10394 (add_include_dir_stub, read_formatted_entries): New functions.
10395 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
10396 Handle DWARF-5.
10397 (per_cu_header_read_in): Update read_comp_unit_head caller.
10398 (dwarf2_version): New function.
10399 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
10400 rnglists.
10401 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
10402 fields.
10403
22d2f3ab
JK
104042017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10405
10406 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
10407
5f46c5a5
JK
104082017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10409
10410 * dwarf2read.c (dwarf2_ranges_process): New function from
10411 dwarf2_ranges_read.
10412 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
10413 dwarf2_ranges_process.
10414
78d4d2c5
JK
104152017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10416
10417 * dwarf2read.c (create_debug_type_hash_table): New function from
10418 create_debug_types_hash_table.
10419 (create_debug_types_hash_table): Call create_debug_type_hash_table.
10420 (create_all_type_units, open_and_init_dwo_file): Update
10421 create_debug_types_hash_table callers.
10422
1b076f25
SDJ
104232017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10424
10425 PR gdb/16188
10426 * fork-child.c (trace_start_error): Fix thinko. va_end should
10427 refer to 'ap', not 'args'.
10428
0db8980c
SDJ
104292017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10430 Pedro Alves <palves@redhat.com>
10431
10432 PR gdb/16188
10433 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10434 calls succeeded.
10435 * fork-child.c (trace_start_error): New function.
10436 (trace_start_error_with_name): Likewise.
10437 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10438 * inf-ptrace.c (inf_ptrace_me): Likewise.
10439 * inferior.h (trace_start_error): New prototype.
10440 (trace_start_error_with_name): Likewise.
10441
99e8a4f9
SDJ
104422017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10443
10444 PR gdb/21164
10445 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10446 NULL before using it.
10447 * symmisc.c (maintenance_print_symbols): Likewise.
10448 (maintenance_print_msymbols): Likewise.
10449
4e746bb6
TW
104502017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10451
10452 * NEWS: Add record Python bindings entry.
10453
104542017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10455
10456 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10457 py-record-full.o.
10458 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10459 * python/py-record-btrace.c, python/py-record-btrace.h,
10460 python/py-record-full.c, python/py-record-full.h: New file.
10461 * python/py-record.c: Add include for py-record-btrace.h and
10462 py-record-full.h.
10463 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10464 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10465 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10466 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10467 New definition.
10468 (gdbpy_initialize_btrace): New export.
10469 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10470
104712017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10472
10473 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10474 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10475 * python/py-record.c: New file.
10476 * python/python-internal.h (gdbpy_start_recording,
10477 gdbpy_current_recording, gdpy_stop_recording,
10478 gdbpy_initialize_record): New export.
10479 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10480 (python_GdbMethods): Add gdbpy_start_recording,
10481 gdbpy_current_recording and gdbpy_stop_recording.
10482
104832017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10484
10485 * record-btrace.c (record_btrace_record_method): New function.
10486 (init_record_btrace_ops): Initialize to_record_method.
10487 * record-full.c (record_full_record_method): New function.
10488 (init_record_full_ops, init_record_full_core_ops): Add
10489 record_full_record_method.
10490 * record.h (enum record_method): New enum.
10491 * target-debug.h (target_debug_print_enum_record_method: New define.
10492 * target-delegates.c: Regenerate.
10493 * target.c (target_record_method): New function.
10494 * target.h: Include record.h.
10495 (struct target_ops) <to_record_method>: New field.
10496 (target_record_method): New export.
10497
104982017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10499
10500 * record.h (record_start, record_stop): New export.
10501 * record.c (record_start, record_stop): New function.
10502
105032017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10504
10505 * btrace.c (btrace_fetch): Copy function call segments pointer
10506 into a vector.
10507 (btrace_clear): Clear the vector.
10508 (btrace_find_insn_by_number): Use binary search to find the correct
10509 function call segment.
10510 * btrace.h (brace_fun_p): New typedef.
10511 (struct btrace_thread_info) <functions>: New field.
10512
105132017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10514
10515 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10516 * btrace.c (btrace_decode_error): ... here. New function.
10517 * btrace.h (btrace_decode_error): New export.
10518
105192017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10520
10521 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10522 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10523 btrace_find_insn_by_number): Remove special case for gaps.
10524 * btrace.h (btrace_insn_get_error): New export.
10525 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10526 * record-btrace.c (btrace_insn_history): Print number for gaps.
10527 (record_btrace_info, record_btrace_goto): Handle gaps.
10528
3f77c769
TT
105292017-02-14 Tom Tromey <tom@tromey.com>
10530
10531 PR python/13598:
10532 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10533 event.
10534 * python/py-evts.c (gdbpy_initialize_py_events): Add
10535 before_prompt registry.
10536 * python/py-events.h (events_object) <before_prompt>: New field.
10537
4c2c7ac6
MM
105382017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10539
10540 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10541
5cf30ebf
LM
105422017-02-13 Luis Machado <lgustavo@codesourcery.com>
10543
10544 * symfile (_initialize_symfile): Add usage text to the load command's
10545 help text.
10546
26a06916
SM
105472017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10548
10549 * utils.c (defaulted_query): Don't query on secondary UIs.
10550
0b145e37
TT
105512017-02-10 Tom Tromey <tom@tromey.com>
10552
10553 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10554
2d8365c4
TT
105552017-02-10 Tom Tromey <tom@tromey.com>
10556
10557 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10558 "cleanup" local.
10559 * python/py-type.c (typy_legacy_template_argument): Remove
10560 unnecessary "cleanup" local.
10561
2bb8f231
TT
105622017-02-10 Tom Tromey <tom@tromey.com>
10563
10564 * python/python.c (do_start_initialization): New function, from
10565 _initialize_python.
10566 (_initialize_python): Call do_start_initialization.
10567 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10568 goto.
10569
1bdfaf42
TT
105702017-02-10 Tom Tromey <tom@tromey.com>
10571
10572 * python/py-prettyprint.c (pretty_print_one_value): Use
10573 gdbpy_ref.
10574
88b6faea
TT
105752017-02-10 Tom Tromey <tom@tromey.com>
10576
10577 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10578 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10579 gdbpy_ref.
10580 * python/py-type.c (field_new): Use gdbpy_ref.
10581 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10582 gdbpy_ref.
10583 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10584 (py_free_pspace): Likewise.
10585 (pspace_to_pspace_object): Likewise.
10586 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10587 (py_free_objfile): Likewise.
10588 (objfile_to_objfile_object): Likewise.
10589 * python/py-inferior.c (delete_thread_object): Use
10590 gdbpy_ref.
10591 (infpy_read_memory): Likewise.
10592 (py_free_inferior): Likewise.
10593 * python/py-evtregistry.c (create_eventregistry_object): Use
10594 gdbpy_ref.
10595 * python/py-event.c (create_event_object): Use gdbpy_ref.
10596
7780f186
TT
105972017-02-10 Tom Tromey <tom@tromey.com>
10598
10599 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10600 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10601 used.
10602 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10603 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10604 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10605 python/py-framefilter.c, python/py-function.c,
10606 python/py-inferior.c, python/py-infevents.c,
10607 python/py-linetable.c, python/py-newobjfileevent.c,
10608 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10609 python/py-signalevent.c, python/py-stopevent.c,
10610 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10611 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10612 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10613 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10614
d4b0bb18
TT
106152017-02-10 Tom Tromey <tom@tromey.com>
10616
10617 * ui-out.h (ui_out_emit_type): New class.
10618 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10619 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10620 and ui_out_emit_tuple.
10621 (enumerate_locals): Likewise.
10622 (py_mi_print_variables, py_print_locals, py_print_args): Use
10623 ui_out_emit_list.
10624 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10625 ui_out_emit_list.
10626 * common/gdb_optional.h: New file.
10627
f67f945c
MG
106282017-02-10 Martin Galvan <martingalvan@sourceware.org>
10629
10630 * MAINTAINERS (Write After Approval): Update my e-mail address.
10631
18da0c51
MG
106322017-02-10 Martin Galvan <martingalvan@sourceware.org>
10633
10634 PR gdb/21122
10635 * breakpoint.c (_initialize_breakpoint): Update the help description
10636 of the 'commands' command to indicate that it takes a list argument.
10637
62c14536
SM
106382017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10639
10640 * interps.c (current_interp_set_logging): Remove "return".
10641
ff6fa247
GB
106422017-02-09 Gary Benson <gbenson@redhat.com>
10643
10644 * symtab.c (add_symtab_completions): Prevent NULL pointer
10645 dereference.
10646
a474bd8e
PA
106472017-02-08 Pedro Alves <palves@redhat.com>
10648
10649 * interps.c (interp::interp): Remove reference to quiet_p.
10650 (interp_set): Make static. Remove dead "Switching to" output
10651 code.
10652 (interp_quiet_p, interp_set_quiet): Delete.
10653 (interpreter_exec_cmd): Don't set the interpreter quiet.
10654 * interps.h (interp_quiet_p): Make static.
10655 (class interp) <quiet_p>: Remove field
10656
3d7b173c
JG
106572017-02-08 Jerome Guitton <guitton@adacore.com>
10658
604c4576
JG
10659 * cli/cli-decode.c (find_command_name_length): Make it extern.
10660 * cli/cli-decode.h (find_command_name_length): Declare.
10661 * cli/cli-script.c (command_name_equals, line_first_arg):
10662 New functions.
10663 (process_next_line): Use cli-decode to parse command names.
10664 (build_command_line): Make args a constant pointer.
10665
106662017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 10667
3d7b173c
JG
10668 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10669 Remove case-insensitive search.
10670
1291063d
JM
106712017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10672
10673 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10674 at the end of the line. Avoids an ARI warning.
10675
20b477a7
LM
106762017-02-06 Luis Machado <lgustavo@codesourcery.com>
10677
10678 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10679 rdseed instructions.
10680 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10681
3f7b46f2
IR
106822017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10683
10684 PR tdep/20936
10685 Provide and use sparc32 and sparc64 target description XML files.
10686 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10687 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10688 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10689 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10690 * features/sparc/sparc32-solaris.xml: New file.
10691 * features/sparc/sparc64-solaris.xml: New file.
10692 * features/sparc/sparc32-solaris.c: Generated.
10693 * features/sparc/sparc64-solaris.c: Generated.
10694 * sparc-tdep.h: Account for differences in target descriptions.
10695 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10696 (sparc32_register_type): Use target provided registers.
10697 (validate_tdesc_registers): New function.
10698 (sparc32_gdbarch_init): Use tdesc_has_registers.
10699 Set pseudoregister functions.
10700 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10701 (sparc64_register_type): Use target provided registers.
10702 (sparc64_init_abi): Set pseudoregister functions.
10703
f0fd41c1
TT
107042017-02-03 Tom Tromey <tom@tromey.com>
10705
10706 PR rust/21097:
10707 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10708 with a single member.
10709
d6f9b0fb
PA
107102017-02-03 Pedro Alves <palves@redhat.com>
10711
10712 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10713 (cli_interp_base::~cli_interp_base): New.
10714 (cli_interp): New struct.
10715 (as_cli_interp): Cast the interp itself to cli_interp.
10716 (cli_interpreter_pre_command_loop): Rename to ...
10717 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10718 parameter.
10719 (cli_interpreter_init): Rename to ...
10720 (cli_interp::init): ... this. Remove 'self' parameter. Use
10721 boolean. Make extern.
10722 (cli_interpreter_resume): Rename to ...
10723 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10724 extern.
10725 (cli_interpreter_suspend): Rename to ...
10726 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10727 extern.
10728 (cli_interpreter_exec): Rename to ...
10729 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10730 extern.
10731 (cli_interpreter_supports_command_editing): Rename to ...
10732 (cli_interp_base::supports_command_editing): ... this. Remove
10733 'interp' parameter. Make extern.
10734 (cli_ui_out): Rename to ...
10735 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10736 Make extern.
10737 (cli_set_logging): Rename to ...
10738 (cli_interp_base::set_logging): ... this. Remove 'interp'
10739 parameter. Make extern.
10740 (cli_interp_procs): Delete.
10741 (cli_interp_factory): Adjust to use "new".
10742 * cli/cli-interp.h: Include "interps.h".
10743 (struct cli_interp_base): New struct.
10744 * interps.c (struct interp): Delete. Fields moved to interps.h.
10745 (interp_new): Delete.
10746 (interp::interp, interp::~interp): New.
10747 (interp_set): Use bool, and return void. Assume the interpreter
10748 has suspend, init and resume methods, and that the all return
10749 void.
10750 (set_top_level_interpreter): interp_set returns void.
10751 (interp_ui_out): Adapt.
10752 (current_interp_set_logging): Adapt.
10753 (interp_data): Delete.
10754 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10755 (interp_exec): Adapt.
10756 (top_level_interpreter_data): Delete.
10757 * interps.h (interp_init_ftype, interp_resume_ftype)
10758 (interp_suspend_ftype, interp_exec_ftype)
10759 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10760 (class interp): New.
10761 (interp_new): Delete.
10762 (interp_set): Now returns void. Use bool.
10763 (interp_data, top_level_interpreter_data): Delete.
10764 * mi/mi-common.h: Include interps.h.
10765 (class mi_interp): Inherit from interp. Define a ctor. Declare
10766 init, resume, suspect, exec, interp_ui_out, set_logging and
10767 pre_command_loop methods.
10768 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10769 (mi_interpreter_init): Rename to ...
10770 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10771 bool, return void and make extern. Adjust.
10772 (mi_interpreter_resume): ... Rename to ...
10773 (mi_interp::resume): ... this. Remove the 'data' parameter,
10774 return void and make extern. Adjust.
10775 (mi_interpreter_suspend): ... Rename to ...
10776 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10777 return void and make extern. Adjust.
10778 (mi_interpreter_exec): ... Rename to ...
10779 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10780 extern. Adjust.
10781 (mi_interpreter_pre_command_loop): ... Rename to ...
10782 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10783 parameter and make extern.
10784 (mi_on_normal_stop_1): Adjust.
10785 (mi_ui_out): Rename to ...
10786 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10787 parameter and make extern. Adjust.
10788 (mi_set_logging): Rename to ...
10789 (mi_interp::set_logging): ... this. Remove the 'interp'
10790 parameter and make extern. Adjust.
10791 (mi_interp_procs): Delete.
10792 (mi_interp_factory): Adjust to use 'new'.
10793 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10794 (mi_print_exception, mi_execute_command, mi_load_progress):
10795 Adjust.
10796 * tui/tui-interp.c (tui_interp): New class.
10797 (as_tui_interp): Return a tui_interp pointer.
10798 (tui_on_normal_stop, tui_on_signal_received)
10799 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10800 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10801 to use interp::interp_ui_out.
10802 (tui_init): Rename to ...
10803 (tui_interp::init): ... this. Remove the 'self' parameter, use
10804 bool, return void and make extern. Adjust.
10805 (tui_resume): Rename to ...
10806 (tui_interp::resume): ... this. Remove the 'data' parameter,
10807 return void and make extern. Adjust.
10808 (tui_suspend): Rename to ...
10809 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10810 return void and make extern. Adjust.
10811 (tui_ui_out): Rename to ...
10812 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10813 parameter, and make extern. Adjust.
10814 (tui_exec): Rename to ...
10815 (tui_interp::exec): ... this. Remove the 'data' parameter and
10816 make extern.
10817 (tui_interp_procs): Delete.
10818 (tui_interp_factory): Use "new".
10819
65c40c95
TT
108202017-02-02 Tom Tromey <tom@tromey.com>
10821
10822 * rust-exp.y (ends_raw_string, space_then_number)
10823 (rust_identifier_start_p): Return bool.
10824 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10825 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10826 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10827 (rust_chartype_p): Return bool.
10828 (val_print_struct, rust_print_struct_def, rust_print_type):
10829 Update.
10830 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10831 Return bool.
10832
b50f188d
TT
108332017-02-02 Tom Tromey <tom@tromey.com>
10834
10835 * rust-lang.c: Reindent.
10836
03c85b11
TT
108372017-02-02 Tom Tromey <tom@tromey.com>
10838
10839 * rust-lang.h (rust_crate_for_block): Update.
10840 * rust-lang.c (rust_crate_for_block): Return std::string.
10841 (rust_get_disr_info): Use std:;string, not
10842 gdb::unique_xmalloc_ptr.
10843 * rust-exp.y (crate_name): Update.
10844
9b6da501
PA
108452017-02-02 Pedro Alves <palves@redhat.com>
10846
10847 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10848 field out of gdb_disassembler_test and make it static.
10849
ec4cb20b
PA
108502017-02-02 Pedro Alves <palves@redhat.com>
10851
10852 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10853 mi1_interp and mi_interp fields.
10854
5be5dbf0
PA
108552017-02-02 Pedro Alves <palves@redhat.com>
10856
616268b6
PA
10857 * cli/cli-interp.c (struct saved_output_files, saved_output):
10858 Moved from cli/cli-logging.c.
10859 (cli_set_logging): New function.
10860 (cli_interp_procs): Install cli_set_logging.
10861 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10862 Declare.
10863 * cli/cli-logging.c (struct saved_output_files, saved_output):
10864 Moved to cli/cli-interp.c.
10865 (pop_output_files): Don't save outputs here.
10866 (make_logging_output): New function.
10867 (handle_redirections): Don't build tee nor save previous outputs
10868 here.
10869 * interps.c (current_interp_set_logging): Change prototype.
10870 Assume there's always a set_logging_proc method installed.
10871 * interps.h (interp_set_logging_ftype): Change prototype.
10872 (current_interp_set_logging): Change prototype and adjust comment.
10873 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10874 use make_logging_output.
10875 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
108762017-02-02 Pedro Alves <palves@redhat.com>
10877
5be5dbf0
PA
10878 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10879 from ...
10880 (set_logging_overwrite): ... here.
10881 (logging_no_redirect_file): Delete.
10882 (set_logging_redirect): Don't handle redirection on the fly.
10883 Instead warn that "logging off" / "logging on" is necessary.
10884 (pop_output_files): Delete references to logging_no_redirect_file.
10885 (show_logging_command): Always speak in terms of what will happen
10886 once logging is reenabled.
10887
c99cc448
PA
108882017-02-02 Pedro Alves <palves@redhat.com>
10889
10890 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10891
8b172ce7
PA
108922017-02-02 Pedro Alves <palves@redhat.com>
10893
10894 * disasm.c (gdb_pretty_print_insn): Rename to ...
10895 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10896 Remove gdbarch parameter. Adapt to clear the object's buffers
10897 instead of allocating new buffers, and to print using the object's
10898 gdb_disassembler instead of calling gdb_print_insn.
10899 (dump_insns): Use gdb_pretty_print_disassembler.
10900 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10901 (gdb_pretty_print_disassembler): New class.
10902 * record-btrace.c (btrace_insn_history): Use
10903 gdb_pretty_print_disassembler.
10904
d7e74731
PA
109052017-02-02 Pedro Alves <palves@redhat.com>
10906
10907 * ada-lang.c (type_as_string): Use string_file.
10908 * ada-valprint.c (ada_print_floating): Use string_file.
10909 * ada-varobj.c (ada_varobj_scalar_image)
10910 (ada_varobj_get_value_image): Use string_file.
10911 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10912 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10913 * breakpoint.c (update_inserted_breakpoint_locations)
10914 (insert_breakpoint_locations, reattach_breakpoints)
10915 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10916 (print_it_watchpoint): Use string_file.
10917 (save_breakpoints): Use stdio_file.
10918 * c-exp.y (oper): Use string_file.
10919 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10920 tee_file.
10921 (pop_output_files): Use delete.
10922 (handle_redirections): Use stdio_file and tee_file.
10923 * cli/cli-setshow.c (do_show_command): Use string_file.
10924 * compile/compile-c-support.c (c_compute_program): Use
10925 string_file.
10926 * compile/compile-c-symbols.c (generate_vla_size): Take a
10927 'string_file &' instead of a 'ui_file *'.
10928 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10929 of a 'ui_file *'. Use string_file.
10930 (generate_c_for_variable_locations): Take a 'string_file &'
10931 instead of a 'ui_file *'.
10932 * compile/compile-internal.h (generate_c_for_for_one_variable):
10933 Take a 'string_file &' instead of a 'ui_file *'.
10934 * compile/compile-loc2c.c (push, pushf, unary, binary)
10935 (print_label, pushf_register_address, pushf_register)
10936 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10937 'ui_file *'. Adjust.
10938 * compile/compile.c (compile_to_object): Use string_file.
10939 * compile/compile.h (compile_dwarf_expr_to_c)
10940 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10941 'ui_file *'.
10942 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10943 (replace_typedefs_qualified_name): Use string_file and
10944 obstack_copy0.
10945 * disasm.c (gdb_pretty_print_insn): Use string_file.
10946 (gdb_disassembly): Adjust reference the null_stream global.
10947 (do_ui_file_delete): Delete.
10948 (gdb_insn_length): Use null_stream.
10949 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10950 * dwarf2loc.c (dwarf2_compile_property_to_c)
10951 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10952 'string_file &' instead of a 'ui_file *'.
10953 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10954 * dwarf2read.c (do_ui_file_peek_last): Delete.
10955 (dwarf2_compute_name): Use string_file.
10956 * event-top.c (gdb_setup_readline): Use stdio_file.
10957 * gdbarch.sh (verify_gdbarch): Use string_file.
10958 * gdbtypes.c (safe_parse_type): Use null_stream.
10959 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10960 string_file.
10961 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10962 'string_file *' instead of a 'ui_file *'.
10963 (gdbscm_arch_disassemble): Use string_file.
10964 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10965 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10966 inherits from ui_file.
10967 (ioscm_file_port_delete, ioscm_file_port_rewind)
10968 (ioscm_file_port_put): Delete.
10969 (ioscm_file_port_write): Rename to ...
10970 (ioscm_file_port::write): ... this. Remove file_port_magic
10971 checks.
10972 (ioscm_file_port_new): Delete.
10973 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10974 ui_file_up.
10975 * guile/scm-type.c (tyscm_type_name): Use string_file.
10976 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10977 Use string_file.
10978 * infcmd.c (print_return_value_1): Use string_file.
10979 * infrun.c (print_target_wait_results): Use string_file.
10980 * language.c (add_language): Use string_file.
10981 * location.c (explicit_to_string_internal): Use string_file.
10982 * main.c (captured_main_1): Use null_file.
10983 * maint.c (maintenance_print_architecture): Use stdio_file.
10984 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10985 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10986 event_channel>: Change type to mi_console_file pointer.
10987 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10988 (mi_console_file_delete): Delete.
10989 (struct mi_console_file): Delete.
10990 (mi_console_file_magic): Delete.
10991 (mi_console_file_new): Delete.
10992 (mi_console_file::mi_console_file): New.
10993 (mi_console_file_delete): Delete.
10994 (mi_console_file_fputs): Delete.
10995 (mi_console_file::write): New.
10996 (mi_console_raw_packet): Delete.
10997 (mi_console_file::flush): New.
10998 (mi_console_file_flush): Delete.
10999 (mi_console_set_raw): Rename to ...
11000 (mi_console_file::set_raw): ... this.
11001 * mi/mi-console.h (class mi_console_file): New class.
11002 (mi_console_file_new, mi_console_set_raw): Delete.
11003 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
11004 (mi_set_logging): Use delete and tee_file. Adjust.
11005 * mi/mi-main.c (output_register): Use string_file.
11006 (mi_cmd_data_evaluate_expression): Use string_file.
11007 (mi_cmd_data_read_memory): Use string_file.
11008 (mi_cmd_execute, print_variable_or_computed): Use string_file.
11009 * mi/mi-out.c (mi_ui_out::main_stream): New.
11010 (mi_ui_out::rewind): Use main_stream and
11011 string_file.
11012 (mi_ui_out::put): Use main_stream and string_file.
11013 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11014 Allocate a 'string_file' instead.
11015 (mi_out_new): Don't allocate a mem_fileopen stream here.
11016 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11017 (mi_ui_out::main_stream): Declare method.
11018 * printcmd.c (eval_command): Use string_file.
11019 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
11020 * python/py-arch.c (archpy_disassemble): Use string_file.
11021 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
11022 * python/py-frame.c (frapy_str): Use string_file.
11023 * python/py-framefilter.c (py_print_type, py_print_single_arg):
11024 Use string_file.
11025 * python/py-type.c (typy_str): Use string_file.
11026 * python/py-unwind.c (unwind_infopy_str): Use string_file.
11027 * python/py-value.c (valpy_str): Use string_file.
11028 * record-btrace.c (btrace_insn_history): Use string_file.
11029 * regcache.c (regcache_print): Use stdio_file.
11030 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
11031 * remote.c (escape_buffer): Use string_file.
11032 * rust-lang.c (rust_get_disr_info): Use string_file.
11033 * serial.c (serial_open_ops_1): Use stdio_file.
11034 (do_serial_close): Use delete.
11035 * stack.c (print_frame_arg): Use string_file.
11036 (print_frame_args): Remove local mem_fileopen stream, not used.
11037 (print_frame): Use string_file.
11038 * symmisc.c (maintenance_print_symbols): Use stdio_file.
11039 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
11040 Take a 'string_file *' instead of a 'ui_file *'.
11041 * top.c (new_ui): Use stdio_file and stderr_file.
11042 (free_ui): Use delete.
11043 (execute_command_to_string): Use string_file.
11044 (quit_confirm): Use string_file.
11045 * tracepoint.c (collection_list::append_exp): Use string_file.
11046 * tui/tui-disasm.c (tui_disassemble): Use string_file.
11047 * tui/tui-file.c: Don't include "ui-file.h".
11048 (enum streamtype, struct tui_stream): Delete.
11049 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
11050 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
11051 (tui_file::tui_file): New method.
11052 (tui_file_fputs): Delete.
11053 (tui_file_get_strbuf): Delete.
11054 (tui_file::puts): New method.
11055 (tui_file_adjust_strbuf): Delete.
11056 (tui_file_flush): Delete.
11057 (tui_file::flush): New method.
11058 * tui/tui-file.h: Tweak intro comment.
11059 Include ui-file.h.
11060 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
11061 (tui_file_adjust_strbuf): Delete declarations.
11062 (class tui_file): New class.
11063 * tui/tui-io.c (tui_initialize_io): Use tui_file.
11064 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
11065 (tui_register_format): Use string_stream.
11066 * tui/tui-stack.c (tui_make_status_line): Use string_file.
11067 (tui_get_function_from_frame): Use string_file.
11068 * typeprint.c (type_to_string): Use string_file.
11069 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
11070 (null_stream): New global.
11071 (ui_file_delete): Delete.
11072 (ui_file::ui_file): New.
11073 (null_file_isatty): Delete.
11074 (ui_file::~ui_file): New.
11075 (null_file_rewind): Delete.
11076 (ui_file::printf): New.
11077 (null_file_put): Delete.
11078 (null_file_flush): Delete.
11079 (ui_file::putstr): New.
11080 (null_file_write): Delete.
11081 (ui_file::putstrn): New.
11082 (null_file_read): Delete.
11083 (ui_file::putc): New.
11084 (null_file_fputs): Delete.
11085 (null_file_write_async_safe): Delete.
11086 (ui_file::vprintf): New.
11087 (null_file_delete): Delete.
11088 (null_file::write): New.
11089 (null_file_fseek): Delete.
11090 (null_file::puts): New.
11091 (ui_file_data): Delete.
11092 (null_file::write_async_safe): New.
11093 (gdb_flush, ui_file_isatty): Adjust.
11094 (ui_file_put, ui_file_rewind): Delete.
11095 (ui_file_write): Adjust.
11096 (ui_file_write_for_put): Delete.
11097 (ui_file_write_async_safe, ui_file_read): Adjust.
11098 (ui_file_fseek): Delete.
11099 (fputs_unfiltered): Adjust.
11100 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
11101 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
11102 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
11103 (set_ui_file_data): Delete.
11104 (string_file::~string_file, string_file::write)
11105 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
11106 (do_ui_file_as_string, ui_file_as_string): Delete.
11107 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
11108 (struct mem_file): Delete.
11109 (mem_file_new): Delete.
11110 (stdio_file::stdio_file): New.
11111 (mem_file_delete): Delete.
11112 (stdio_file::stdio_file): New.
11113 (mem_fileopen): Delete.
11114 (stdio_file::~stdio_file): New.
11115 (mem_file_rewind): Delete.
11116 (stdio_file::set_stream): New.
11117 (mem_file_put): Delete.
11118 (stdio_file::open): New.
11119 (mem_file_write): Delete.
11120 (stdio_file_magic, struct stdio_file): Delete.
11121 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
11122 (stdio_file::flush): New.
11123 (stdio_file_read): Rename to ...
11124 (stdio_file::read): ... this. Adjust.
11125 (stdio_file_write): Rename to ...
11126 (stdio_file::write): ... this. Adjust.
11127 (stdio_file_write_async_safe): Rename to ...
11128 (stdio_file::write_async_safe) ... this. Adjust.
11129 (stdio_file_fputs): Rename to ...
11130 (stdio_file::puts) ... this. Adjust.
11131 (stdio_file_isatty): Delete.
11132 (stdio_file_fseek): Delete.
11133 (stdio_file::isatty): New.
11134 (stderr_file_write): Rename to ...
11135 (stderr_file::write) ... this. Adjust.
11136 (stderr_file_fputs): Rename to ...
11137 (stderr_file::puts) ... this. Adjust.
11138 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
11139 (stderr_file::stderr_file): New.
11140 (tee_file_magic): Delete.
11141 (struct tee_file): Delete.
11142 (tee_file::tee_file): New.
11143 (tee_file_new): Delete.
11144 (tee_file::~tee_file): New.
11145 (tee_file_delete): Delete.
11146 (tee_file_flush): Rename to ...
11147 (tee_file::flush): ... this. Adjust.
11148 (tee_file_write): Rename to ...
11149 (tee_file::write): ... this. Adjust.
11150 (tee_file::write_async_safe): New.
11151 (tee_file_fputs): Rename to ...
11152 (tee_file::puts): ... this. Adjust.
11153 (tee_file_isatty): Rename to ...
11154 (tee_file::isatty): ... this. Adjust.
11155 * ui-file.h (struct obstack, struct ui_file): Don't
11156 forward-declare.
11157 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
11158 (ui_file_write_ftype)
11159 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
11160 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
11161 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
11162 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
11163 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
11164 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
11165 (set_ui_file_fseek): Delete.
11166 (ui_file_data, ui_file_delete, ui_file_rewind)
11167 (struct ui_file): New.
11168 (ui_file_up): New.
11169 (class null_file): New.
11170 (null_stream): Declare.
11171 (ui_file_write_for_put, ui_file_put): Delete.
11172 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
11173 Delete.
11174 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
11175 (gdb_fopen, tee_file_new): Delete.
11176 (struct string_file): New.
11177 (struct stdio_file): New.
11178 (stdio_file_up): New.
11179 (struct stderr_file): New.
11180 (class tee_file): New.
11181 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
11182 of a 'ui_file *'. Adjust.
11183 * ui-out.h (class ui_out) <field_stream>: Likewise.
11184 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
11185 (null_stream): Delete.
11186 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
11187 Adjust.
11188 * utils.h (struct ui_file): Delete forward declaration..
11189 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
11190 (error_stream): Take a 'string_file &' instead of a
11191 'ui_file *'.
11192 * varobj.c (varobj_value_get_print_value): Use string_file.
11193 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
11194 * gdbarch.c: Regenerate.
11195
187808b0
PA
111962017-02-02 Pedro Alves <palves@redhat.com>
11197
11198 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
11199 (gdb_pretty_print_insn): ... this. Now a free function. Add back
11200 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
11201 Adjust to call gdb_print_insn instead of
11202 gdb_disassembler::print_insn.
11203 (dump_insns, do_mixed_source_and_assembly_deprecated)
11204 (do_mixed_source_and_assembly, do_assembly_only): Add back a
11205 'gdbarch' parameter. Remove gdb_disassembler parameter.
11206 (gdb_disassembly): Don't allocate a gdb_disassembler here.
11207 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
11208 declaration.
11209 (gdb_pretty_print_insn): Re-add declaration.
11210 * record-btrace.c (btrace_insn_history): Don't allocate a
11211 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
11212
7a8eb317
SM
112132017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
11214
11215 * disasm.h (gdb_disassembly): Remove file_string parameter.
11216 * disasm.c (gdb_disassembly): Likewise.
11217 * cli/cli-cmds.c (print_disassembly): Adapt.
11218 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
11219 * stack.c (do_gdb_disassembly): Likewise.
11220
7346ef59
AA
112212017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
11222
11223 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
11224 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
11225 targets. And if the implicit value is longer than needed, extract
11226 the first bytes instead of the "least significant" ones.
11227
cd4007e4
MM
112282017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11229
11230 * btrace.c (btrace_enable): Do not call btrace_add_pc for
11231 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
11232 (btrace_fetch): Assert can_access_registers_ptid.
11233 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
11234 validate_registers_access.
11235
cf77c34e
MM
112362017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11237
11238 * gdbthread.h (can_access_registers_ptid): New.
11239 * thread.c (can_access_registers_ptid): New.
11240
be85ce7d
PA
112412017-02-01 Pedro Alves <palves@redhat.com>
11242
11243 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
11244
29b0b251
PA
112452017-01-31 Pedro Alves <palves@redhat.com>
11246
11247 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
11248 Fix typos.
11249
289b5b24
PA
112502017-01-31 Pedro Alves <palves@redhat.com>
11251
11252 * stack.c (print_frame_args): Remove local mem_fileopen stream,
11253 not used.
11254
b47413b4
PA
112552017-01-31 Pedro Alves <palves@redhat.com>
11256
11257 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
11258
60adb36c
PA
112592017-01-31 Pedro Alves <palves@redhat.com>
11260
11261 * common/scoped_restore.h
11262 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
11263 change the value's parameter type to T2.
11264 (make_scoped_restore): Likewise.
11265
2735833d
WT
112662017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11267 Richard Henderson <rth@redhat.com>
11268
11269 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
11270 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
11271 GS_BASE for older kernels.
11272 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
11273 GS_BASE for older kernels.
11274 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
11275 and GS_BASE to the offset table.
11276 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
11277 system register group.
11278 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
11279 for older kernels.
11280 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
11281 amd64 ABI.
11282 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
11283 AMD64_GSBASE_REGNUM.
11284 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
11285 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
11286 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
11287 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
11288 i386/64bit-segments.xml in those rules.
11289 * features/i386/64bit-segments.xml: New file.
11290 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
11291 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
11292 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
11293 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
11294 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
11295 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
11296 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
11297 * features/i386/amd64-avx-linux.c: Regenerated.
11298 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
11299 * features/i386/amd64-avx-mpx.c: Regenerated.
11300 * features/i386/amd64-avx512-linux.c: Regenerated.
11301 * features/i386/amd64-linux.c: Regenerated.
11302 * features/i386/amd64-mpx-linux.c: Regenerated.
11303 * features/i386/i386-avx-mpx-linux.c: Regenerated.
11304 * features/i386/i386-avx-mpx.c: Regenerated.
11305 * features/i386/x32-avx-linux.c: Regenerated.
11306 * features/i386/x32-avx512-linux.c: Regenerated.
11307 * regformats/i386/amd64-avx-linux.dat: Regenerated.
11308 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
11309 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
11310 * regformats/i386/amd64-linux.dat: Regenerated.
11311 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
11312 * regformats/i386/x32-avx-linux.dat: Regenerated.
11313 * regformats/i386/x32-avx512-linux.dat: Regenerated.
11314 * regformats/i386/x32-linux.dat: Regenerated.
11315
8884e97e
WT
113162017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11317
11318 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
11319 Set to AMD64_NUM_REGS.
11320
7005d26a
WT
113212017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11322
11323 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
11324 that checks validity of a register number.
11325
4bd2e1b2
KC
113262017-01-27 Kees Cook <keescook@google.com>
11327
11328 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
11329 fetch_fpregs if target has fpa registers.
11330 (arm_linux_store_inferior_registers): Call store_fpregs if target
11331 has fpa registers.
11332
7cf1de6c
AA
113332017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
11334
11335 * cris-tdep.c (cris_gdbarch_init): Remove check for
11336 info.byte_order and force it to BFD_ENDIAN_LITTLE.
11337
874a1c8c
AT
113382017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11339
11340 * corelow.c (get_core_register_section): Check for regset
11341 existence before checking for REGSET_VARIABLE_SIZE.
11342
d8b49cf0
YQ
113432017-01-26 Yao Qi <yao.qi@linaro.org>
11344 Pedro Alves <palves@redhat.com>
11345
11346 PR gdb/20939
11347 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
11348 call memory_error, save memaddr instead.
11349 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
11350 negative, cal memory_error.
11351 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
11352
658ca58c
YQ
113532017-01-26 Yao Qi <yao.qi@linaro.org>
11354
11355 * disasm-selftests.c (memory_error_test): New function.
11356 (_initialize_disasm_selftests): Register memory_error_test.
11357
79843d45
YQ
113582017-01-26 Yao Qi <yao.qi@linaro.org>
11359
11360 * Makefile.in (SFILES): Add disasm-selftests.c and
11361 selftest-arch.c.
11362 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
11363 * disasm-selftests.c: New file.
11364 * selftest-arch.c: New file.
11365 * selftest-arch.h: New file.
11366
8cafda32
YQ
113672017-01-26 Yao Qi <yao.qi@linaro.org>
11368
11369 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
11370 to bfd_arch_mep. Don't return 0 if section is not
11371 found. Call print_insn_mep.
11372
e47ad6c0
YQ
113732017-01-26 Pedro Alves <palves@redhat.com>
11374 Yao Qi <yao.qi@linaro.org>
11375
11376 * arm-tdep.c: Include "disasm.h".
11377 (gdb_print_insn_arm): Update code to get gdbarch.
11378 * disasm.c (dis_asm_read_memory): Change it to
11379 gdb_disassembler::dis_asm_read_memory.
11380 (dis_asm_memory_error): Likewise.
11381 (dis_asm_print_address): Likewise.
11382 (gdb_pretty_print_insn): Change it to
11383 gdb_disassembler::pretty_print_insn.
11384 (dump_insns): Add one argument gdb_disassemlber. All
11385 callers updated.
11386 (do_mixed_source_and_assembly_deprecated): Likewise.
11387 (do_mixed_source_and_assembly): Likewise.
11388 (do_assembly_only): Likewise.
11389 (gdb_disassembler::gdb_disassembler): New.
11390 (gdb_disassembler::print_insn): New.
11391 * disasm.h (class gdb_disassembler): New.
11392 (gdb_pretty_print_insn): Remove declaration.
11393 (gdb_disassemble_info): Likewise.
11394 * guile/scm-disasm.c (class gdbscm_disassembler): New.
11395 (gdbscm_disasm_read_memory_worker): Update.
11396 (gdbscm_disasm_read_memory): Update.
11397 (gdbscm_disasm_memory_error): Remove.
11398 (gdbscm_disasm_print_address): Remove.
11399 (gdbscm_disassembler::gdbscm_disassembler): New.
11400 (gdbscm_print_insn_from_port): Update.
11401 * mips-tdep.c: Include disasm.h.
11402 (gdb_print_insn_mips): Update code to get gdbarch.
11403 * record-btrace.c (btrace_insn_history): Update.
11404 * spu-tdep.c: Include disasm.h.
11405 (struct spu_dis_asm_data): Remove.
11406 (struct spu_dis_asm_info): New.
11407 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
11408 SPU id.
11409 (gdb_print_insn_spu): Cast disassemble_info to
11410 spu_dis_asm_info.
11411
80d75874
YQ
114122017-01-26 Yao Qi <yao.qi@linaro.org>
11413
11414 * disasm.c (do_ui_file_delete): Delete.
11415 (gdb_insn_length): Move code creating stream to ...
11416 * utils.c (null_stream): ... here. New function.
11417 * utils.h (null_stream): Declare.
11418
60685cd0
SM
114192017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11420
11421 * python/py-inferior.c (find_thread_object): Return directly
11422 from the loop. Remove "found" variable.
11423
eb1cdb62
JB
114242017-01-21 Joel Brobecker <brobecker@adacore.com>
11425
11426 GDB 7.12.1 released.
11427
b1ce6568
SM
114282017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11429
11430 * python/py-function.c (fnpy_call): Reorder declarations to have
11431 the gdbpy_enter object declared first.
11432 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11433
6f8b0407
SM
114342017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11435
fec93fb1 11436 PR python/21068
6f8b0407
SM
11437 * python/python-internal.h (PyMem_RawMalloc): Define for
11438 Python < 3.4.
11439 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11440 PyMem_RawMalloc instead of PyMem_Malloc.
11441
78cbbba8
LM
114422017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11443 Luis Machado <lgustavo@codesourcery.com>
11444
11445 * NEWS (New commands): Mention flash-erase.
11446 (New MI commands): Mention target-flash-erase.
11447 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11448 command.
11449 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11450 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11451 * target.c (flash_erase_command): New function.
11452 (initialize_targets): Add new flash-erase command.
11453 * target.h (flash_erase_command): New declaration.
11454
2132fe85
JB
114552017-01-20 Joel Brobecker <brobecker@adacore.com>
11456
11457 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11458 HAVE_SYS_PROCFS_H is defined.
11459
d1dff226
AH
114602017-01-18 Alan Hayward <alan.hayward@arm.com>
11461
11462 * remote.c (struct cached_reg): Change data into a pointer.
11463 * (stop_reply_dtr): Free data pointers before deleting vector.
11464 (process_stop_reply): Likewise.
11465 (remote_parse_stop_reply): Allocate space for data
11466
9890e433
AH
114672017-01-18 Alan Hayward <alan.hayward@arm.com>
11468
11469 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11470 MAX_REGISTER_SIZE.
11471 (amd64_pseudo_register_read_value): Likewise.
11472 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11473 (store_register_using_P): Likewise.
11474 * regcache.c (regcache_xfer_part): Likewise.
11475
7a36499a
IR
114762017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11477
11478 Split real and pseudo registers.
11479 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11480 (sparc32_pseudo_regnum): New enum.
11481 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11482 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11483 (SPARC32_CP0_REGISTERS): New macro.
11484 (sparc32_pseudo_register_name): New function.
11485 (sparc32_register_name): Use sparc32_pseudo_register_name.
11486 (sparc32_pseudo_register_type): New function.
11487 (sparc32_register_type): Use sparc32_pseudo_register_type.
11488 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11489 pseudo register numbers.
11490 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11491 (SPARC64_CP0_REGISTERS): New macro.
11492 (sparc64_pseudo_register_name): New function.
11493 (sparc64_register_name): Use sparc64_pseudo_register_name.
11494 (sparc64_pseudo_register_type): New function.
11495 (sparc64_register_type): Use sparc64_pseudo_register_type.
11496 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11497 pseudo register numbers.
11498 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11499 sparc64_store_arguments): Handle pseudo register numbers.
11500
6f8976bf
YQ
115012017-01-13 Yao Qi <yao.qi@linaro.org>
11502
11503 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11504 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11505 output.
11506 (getpkt_or_notif_sane_1): Likewise.
11507
e4241ace
YQ
115082017-01-13 Yao Qi <yao.qi@linaro.org>
11509
11510 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11511 of CC. Pass "-x c++-header" instead of "-x c".
11512
3015c064
SM
115132017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11514
11515 * remote.c (remote_can_async_p): Update comment.
11516
fde1b17d
SM
115172017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11518
11519 * linux-nat.c (linux_nat_can_async_p): Update comment.
11520
ca1ca08b
SM
115212017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11522
11523 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11524
4ad2da73
SM
115252017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11526
11527 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11528
c8b23b3f
TT
115292017-01-10 Tom Tromey <tom@tromey.com>
11530
11531 * python/py-type.c (typy_legacy_template_argument): Update.
11532 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11533 ~demangle_parse_info): Declare new members.
11534 (cp_demangled_name_to_comp): Return unique_ptr.
11535 (cp_demangled_name_parse_free)
11536 (make_cleanup_cp_demangled_name_parse_free)
11537 (cp_new_demangle_parse_info): Remove.
11538 * cp-support.c (do_demangled_name_parse_free_cleanup)
11539 (make_cleanup_cp_demangled_name_parse_free): Remove.
11540 (inspect_type, cp_canonicalize_string_full)
11541 (cp_canonicalize_string): Update.
11542 (mangled_name_to_comp): Change return type.
11543 (cp_class_name_from_physname, method_name_from_physname)
11544 (cp_func_name, cp_remove_params): Update.
11545 * cp-name-parser.y (demangle_parse_info): New constructor, from
11546 cp_new_demangle_parse_info.
11547 (~demangle_parse_info): New destructor, from
11548 cp_demangled_name_parse_free.
11549 (cp_merge_demangle_parse_infos): Update.
11550 (cp_demangled_name_to_comp): Change return type.
11551
1ac32117
TT
115522017-01-10 Tom Tromey <tom@tromey.com>
11553
11554 * top.c (prevent_dont_repeat): Change return type.
11555 * python/python.c (execute_gdb_command): Use std::string.
11556 Update.
11557 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11558 * command.h (prevent_dont_repeat): Change return type.
11559 * breakpoint.c (bpstat_do_actions_1): Update.
11560
0cf08227
TT
115612017-01-10 Tom Tromey <tom@tromey.com>
11562
11563 * value.h (scoped_value_mark::~scoped_value_mark): Call
11564 free_to_mark.
11565 (scoped_value_mark::free_to_mark): New method.
11566 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11567 scoped_value_mark.
11568
eb115069
TT
115692017-01-10 Tom Tromey <tom@tromey.com>
11570
11571 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11572 (valpy_reference_value, valpy_const_value, valpy_get_address)
11573 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11574 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11575 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11576 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11577 scoped_value_mark.
11578 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11579 * value.h (scoped_value_mark): New class.
11580
906768f9
TT
115812017-01-10 Tom Tromey <tom@tromey.com>
11582
11583 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11584 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11585 * psymtab.c (discard_psymtabs_upto): Remove.
11586 (make_cleanup_discard_psymtabs): Remove.
11587 (struct psymtab_state): Remove.
11588
bef155c3
TT
115892017-01-10 Tom Tromey <tom@tromey.com>
11590
11591 * record-full.c (record_full_save_cleanups): Remove.
11592 (record_full_save): Use gdb::unlinker.
11593 * gcore.c (do_bfd_delete_cleanup): Remove.
11594 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11595 cleanups.
11596 * dwarf2read.c (unlink_if_set): Remove.
11597 (write_psymtabs_to_index): Use gdb::unlinker.
11598 * common/gdb_unlinker.h: New file.
11599
192b62ce
TT
116002017-01-10 Tom Tromey <tom@tromey.com>
11601
11602 * windows-tdep.c (windows_xfer_shared_library): Update.
11603 * windows-nat.c (windows_make_so): Update.
11604 * utils.h (make_cleanup_bfd_unref): Remove.
11605 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11606 * symfile.h (symfile_bfd_open)
11607 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11608 * symfile.c (read_symbols, symbol_file_add)
11609 (separate_debug_file_exists): Update.
11610 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11611 (generic_load, reread_symbols): Update.
11612 * symfile-mem.c (symbol_file_add_from_memory): Update.
11613 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11614 (spu_symbol_file_add_from_memory): Update.
11615 * solist.h (struct target_so_ops) <bfd_open>: Return
11616 gdb_bfd_ref_ptr.
11617 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11618 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11619 gdb_bfd_ref_ptr.
11620 (solib_map_sections, reload_shared_libraries_1): Update.
11621 * solib-svr4.c (enable_break): Update.
11622 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11623 * solib-frv.c (enable_break2): Update.
11624 * solib-dsbt.c (enable_break): Update.
11625 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11626 gdb_bfd_ref_ptr.
11627 (darwin_solib_get_all_image_info_addr_at_init): Update.
11628 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11629 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11630 * record-full.c (record_full_save): Update.
11631 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11632 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11633 * minidebug.c (find_separate_debug_file_in_section): Return
11634 gdb_bfd_ref_ptr.
11635 * machoread.c (macho_add_oso_symfile): Change abfd to
11636 gdb_bfd_ref_ptr.
11637 (macho_symfile_read_all_oso): Update.
11638 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11639 (macho_symfile_read): Update.
11640 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11641 (jit_bfd_try_read_symtab): Update.
11642 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11643 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11644 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11645 gdb_bfd_ref_ptr.
11646 (gdb_bfd_ref_policy): New struct.
11647 (gdb_bfd_ref_ptr): New typedef.
11648 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11649 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11650 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11651 gdb_bfd_ref_ptr.
11652 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11653 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11654 (gcore_command): Update.
11655 * exec.c (exec_file_attach): Update.
11656 * elfread.c (elf_symfile_read): Update.
11657 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11658 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11659 (open_and_init_dwo_file): Update.
11660 (open_dwp_file): Return gdb_bfd_ref_ptr.
11661 (open_and_init_dwp_file): Update.
11662 * corelow.c (core_open): Update.
11663 * compile/compile-object-load.c (compile_object_load): Update.
11664 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11665 * coffread.c (coff_symfile_read): Update.
11666 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11667 gdb_bfd_ref_ptr. Rename.
11668 (dump_bfd_file, restore_command): Update.
11669 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11670 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11671 (find_separate_debug_file_by_buildid): Update.
11672
50315b21
TT
116732017-01-10 Tom Tromey <tom@tromey.com>
11674
11675 * common/gdb_ref_ptr.h: New file.
11676 * python/py-ref.h (struct gdbpy_ref_policy): New.
11677 (gdbpy_ref): Now a typedef.
11678
fc4007c9
TT
116792017-01-10 Tom Tromey <tom@tromey.com>
11680
11681 * utils.h (make_cleanup_htab_delete): Don't declare.
11682 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11683 Remove.
11684 * linespec.c (decode_compound_collector): Add constructor,
11685 destructor.
11686 (lookup_prefix_sym): Remove cleanup.
11687 (symtab_collector): Add constructor, destructor.
11688 (collect_symtabs_from_filename): Remove cleanup.
11689 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11690 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11691 Use htab_up.
11692 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11693 * dwarf2read.c (dw2_expand_symtabs_matching)
11694 (dw2_map_symbol_filenames, dwarf_decode_macros)
11695 (write_psymtabs_to_index): Use htab_up.
11696 * dwarf2loc.c (func_verify_no_selftailcall)
11697 (call_site_find_chain_1, func_verify_no_selftailcall)
11698 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11699 std::vector, gdb::unique_xmalloc_ptr.
11700 (call_sitep): Remove typedef.
11701 (dwarf2_locexpr_baton_eval): Remove unused variable.
11702
8dbcee67
TT
117032017-01-10 Tom Tromey <tom@tromey.com>
11704
11705 * python/python-internal.h (make_cleanup_py_decref)
11706 (make_cleanup_py_xdecref): Don't declare.
11707 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11708 (py_xdecref, make_cleanup_py_xdecref): Remove.
11709
13df46cc
TT
117102017-01-10 Tom Tromey <tom@tromey.com>
11711
11712 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11713 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11714
06fc9bf7
TT
117152017-01-10 Tom Tromey <tom@tromey.com>
11716
11717 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11718
830a4934
TT
117192017-01-10 Tom Tromey <tom@tromey.com>
11720
11721 * python/py-utils.c (unicode_to_encoded_string)
11722 (python_string_to_target_string)
11723 (python_string_to_target_python_string)
11724 (python_string_to_host_string, gdbpy_obj_to_string)
11725 (get_addr_from_python): Use gdbpy_ref.
11726
4586d543
TT
117272017-01-10 Tom Tromey <tom@tromey.com>
11728
11729 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11730 gdbpy_ref.
11731
59876f8f
TT
117322017-01-10 Tom Tromey <tom@tromey.com>
11733
11734 * python/python.c (eval_python_command, gdbpy_decode_line)
11735 (gdbpy_run_events, gdbpy_start_type_printers)
11736 (gdbpy_apply_type_printers): Use gdbpy_ref.
11737
97d83487
TT
117382017-01-10 Tom Tromey <tom@tromey.com>
11739
11740 * python/py-param.c (get_doc_string, compute_enum_values): Use
11741 gdbpy_ref.
11742
9205649a
TT
117432017-01-10 Tom Tromey <tom@tromey.com>
11744
11745 * python/py-inferior.c (find_thread_object, build_inferior_list):
11746 Use gdbpy_ref.
11747
74c49d45
TT
117482017-01-10 Tom Tromey <tom@tromey.com>
11749
11750 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11751
16361ffb
TT
117522017-01-10 Tom Tromey <tom@tromey.com>
11753
11754 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11755 gdbpy_ref.
11756
905f2cca
TT
117572017-01-10 Tom Tromey <tom@tromey.com>
11758
11759 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11760 extra incref.
11761 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11762 Use gdbpy_ref.
11763
64081434
TT
117642017-01-10 Tom Tromey <tom@tromey.com>
11765
11766 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11767 gdbpy_ref.
11768
59e9e831
TT
117692017-01-10 Tom Tromey <tom@tromey.com>
11770
11771 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11772 decref results of PyArg_ParseTupleAndKeywords.
11773
9de10f6d
TT
117742017-01-10 Tom Tromey <tom@tromey.com>
11775
11776 * python/python.c (python_run_simple_file): Use
11777 unique_xmalloc_ptr, gdbpy_ref.
11778
2bd5759d
TT
117792017-01-10 Tom Tromey <tom@tromey.com>
11780
11781 * python/py-prettyprint.c (print_stack_unless_memory_error)
11782 (print_string_repr, print_children): Use gdbpy_ref.
11783 (dummy_python_frame): New class.
11784 (dummy_python_frame::dummy_python_frame): Rename from
11785 push_dummy_python_frame.
11786 (py_restore_tstate): Remove.
11787
3b4e0e01
TT
117882017-01-10 Tom Tromey <tom@tromey.com>
11789
11790 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11791
17a22718
TT
117922017-01-10 Tom Tromey <tom@tromey.com>
11793
11794 * python/python.c (ensure_python_env, restore_python_env):
11795 Remove.
11796 * python/python-internal.h (ensure_python_env): Don't declare.
11797 * varobj.h (varobj_ensure_python_env): Don't declare.
11798 * varobj.c (varobj_ensure_python_env): Remove.
11799
68cdc557
TT
118002017-01-10 Tom Tromey <tom@tromey.com>
11801
11802 * varobj.c (varobj_value_get_print_value): Use
11803 gdbpy_enter_varobj.
11804
1eba6383
TT
118052017-01-10 Tom Tromey <tom@tromey.com>
11806
11807 * python/py-prettyprint.c (print_string_repr, print_children):
11808 Update.
11809 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11810 of "encoding".
11811 * varobj.c (varobj_value_get_print_value): Update.
11812 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11813
bde7b3e3
TT
118142017-01-10 Tom Tromey <tom@tromey.com>
11815
11816 * varobj.c (varobj_get_display_hint)
11817 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11818 (varobj_set_visualizer, free_variable): Use
11819 gdbpy_enter_varobj.
11820
a7785f8c
TT
118212017-01-10 Tom Tromey <tom@tromey.com>
11822
11823 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11824 (do_finish_initialization): New function. Use gdbpy_ref.
11825 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11826 do_finish_initialization.
11827
2865bfce
TT
118282017-01-10 Tom Tromey <tom@tromey.com>
11829
11830 * python/py-param.c (get_set_value, get_show_value): Use
11831 gdbpy_enter, gdbpy_ref.
11832
0e9dcc75
TT
118332017-01-10 Tom Tromey <tom@tromey.com>
11834
11835 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11836
12a5cedd
TT
118372017-01-10 Tom Tromey <tom@tromey.com>
11838
11839 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11840
788f2586
TT
118412017-01-10 Tom Tromey <tom@tromey.com>
11842
11843 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11844 Use gdbpy_enter_varobj.
11845
6cd67bea
TT
118462017-01-10 Tom Tromey <tom@tromey.com>
11847
11848 * varobj.c (gdbpy_enter_varobj): New constructor.
11849 * python/python-internal.h (gdbpy_enter_varobj): New class.
11850 * python/py-varobj.c (py_varobj_get_iterator): Use
11851 gdbpy_enter_varobj.
11852
14b122bf
TT
118532017-01-10 Tom Tromey <tom@tromey.com>
11854
11855 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11856 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11857 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11858 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11859 unique_xmalloc_ptr.
11860 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11861
bf1ca3b9
TT
118622017-01-10 Tom Tromey <tom@tromey.com>
11863
11864 * python/py-xmethods.c (invoke_match_method): Use
11865 gdbpy_ref.
11866
572a5524
TT
118672017-01-10 Tom Tromey <tom@tromey.com>
11868
11869 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11870 gdbpy_enter, gdbpy_ref.
11871
396a78b6
TT
118722017-01-10 Tom Tromey <tom@tromey.com>
11873
11874 * python/python.c (python_interactive_command): Use gdbpy_enter.
11875
a88b13c7
TT
118762017-01-10 Tom Tromey <tom@tromey.com>
11877
11878 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11879 gdbpy_ref.
11880
e9f0c363
TT
118812017-01-10 Tom Tromey <tom@tromey.com>
11882
11883 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11884 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11885
6349f452
TT
118862017-01-10 Tom Tromey <tom@tromey.com>
11887
11888 * utils.h (htab_deleter): New struct.
11889 (htab_up): New typedef.
11890 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11891 gdbpy_enter, gdbpy_ref, htab_up.
11892
c0171de6
TT
118932017-01-10 Tom Tromey <tom@tromey.com>
11894
11895 * python/py-unwind.c (pending_frame_invalidate): Remove.
11896 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11897
f18e226f
TT
118982017-01-10 Tom Tromey <tom@tromey.com>
11899
11900 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11901 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11902
c57af3f1
TT
119032017-01-10 Tom Tromey <tom@tromey.com>
11904
11905 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11906
60e600ec
TT
119072017-01-10 Tom Tromey <tom@tromey.com>
11908
11909 * python/python.c (gdbpy_eval_from_control_command)
11910 (gdbpy_source_script, gdbpy_run_events)
11911 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11912 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11913 gdbpy_enter.
11914
bf7da5b0
TT
119152017-01-10 Tom Tromey <tom@tromey.com>
11916
11917 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11918
2d38bced
TT
119192017-01-10 Tom Tromey <tom@tromey.com>
11920
11921 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11922
07bc7329
TT
119232017-01-10 Tom Tromey <tom@tromey.com>
11924
11925 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11926 (python_on_inferior_call_pre, python_on_inferior_call_post)
11927 (python_on_memory_change, python_on_register_change)
11928 (python_inferior_exit, python_new_objfile, add_thread_object)
11929 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11930
6e7c365e
TT
119312017-01-10 Tom Tromey <tom@tromey.com>
11932
11933 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11934 (bpfinishpy_handle_exit): Use gdbpy_enter.
11935
6ba0cd40
TT
119362017-01-10 Tom Tromey <tom@tromey.com>
11937
11938 * python/py-cmd.c (cmdpy_destroyer)
11939 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11940 gdbpy_enter.
11941
de2dc875
TT
119422017-01-10 Tom Tromey <tom@tromey.com>
11943
11944 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11945 gdbpy_enter.
11946 (gdbpy_breakpoint_has_cond): Likewise.
11947
4ecee2c4
TT
119482017-01-10 Tom Tromey <tom@tromey.com>
11949
11950 * python/python.c (gdbpy_enter): New constructor.
11951 (~gdbpy_enter): New destructor.
11952 (restore_python_env, ensure_python_env): Rewrite.
11953 * python/python-internal.h (gdbpy_enter): New class.
11954
37fce74f
TT
119552017-01-10 Tom Tromey <tom@tromey.com>
11956
11957 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11958
53a0cca3
TT
119592017-01-10 Tom Tromey <tom@tromey.com>
11960
11961 * python/py-value.c (value_has_field, get_field_flag)
11962 (get_field_type, valpy_getitem, convert_value_from_python): Use
11963 gdbpy_ref.
11964
ff3724f5
TT
119652017-01-10 Tom Tromey <tom@tromey.com>
11966
11967 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11968 gdbpy_ref.
11969
0700aea5
TT
119702017-01-10 Tom Tromey <tom@tromey.com>
11971
11972 * python/py-prettyprint.c (search_pp_list)
11973 (find_pretty_printer_from_objfiles)
11974 (find_pretty_printer_from_progspace)
11975 (find_pretty_printer_from_gdb, find_pretty_printer)
11976 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11977 gdbpy_ref.
11978
1bb44c9f
TT
119792017-01-10 Tom Tromey <tom@tromey.com>
11980
11981 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11982
87ce03fd
TT
119832017-01-10 Tom Tromey <tom@tromey.com>
11984
11985 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11986 (ltpy_get_all_source_lines): Use gdbpy_ref.
11987
ee0a3fb8
TT
119882017-01-10 Tom Tromey <tom@tromey.com>
11989
11990 * python/py-framefilter.c (extract_sym, extract_value)
11991 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11992 gdbpy_ref.
11993
bf2a52fa
TT
119942017-01-10 Tom Tromey <tom@tromey.com>
11995
11996 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11997
f59fe7f8
TT
119982017-01-10 Tom Tromey <tom@tromey.com>
11999
12000 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
12001
80bd970a
TT
120022017-01-10 Tom Tromey <tom@tromey.com>
12003
12004 * python/py-function.c (convert_values_to_python, fnpy_init): Use
12005 gdbpy_ref.
12006
d1b3de2e
TT
120072017-01-10 Tom Tromey <tom@tromey.com>
12008
12009 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
12010
3bb43384
TT
120112017-01-10 Tom Tromey <tom@tromey.com>
12012
12013 * python/py-type.c (convert_field, make_fielditem, typy_fields)
12014 (typy_range): Use gdbpy_ref.
12015
abf5651e
TT
120162017-01-10 Tom Tromey <tom@tromey.com>
12017
12018 * python/py-threadevent.c (create_thread_event_object): Use
12019 gdbpy_ref.
12020 * python/py-stopevent.c (create_stop_event_object): Simplify.
12021 (emit_stop_event): Use gdbpy_ref.
12022 * python/py-signalevent.c (create_signal_event_object): Use
12023 gdbpy_ref.
12024 * python/py-newobjfileevent.c (create_new_objfile_event_object)
12025 (emit_new_objfile_event, create_clear_objfiles_event_object)
12026 (emit_clear_objfiles_event): Use gdbpy_ref.
12027 * python/py-infevents.c (create_inferior_call_event_object)
12028 (create_register_changed_event_object)
12029 (create_memory_changed_event_object, emit_inferior_call_event)
12030 (emit_memory_changed_event, emit_register_changed_event): Use
12031 gdbpy_ref.
12032 * python/py-exitedevent.c (create_exited_event_object)
12033 (emit_exited_event): Use gdbpy_ref.
12034 * python/py-event.h (evpy_emit_event): Remove
12035 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
12036 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
12037 * python/py-continueevent.c (emit_continue_event): Use
12038 gdbpy_ref.
12039 * python/py-breakpoint.c (gdbpy_breakpoint_created)
12040 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
12041 gdbpy_ref.
12042 * python/py-bpevent.c (create_breakpoint_event_object): Use
12043 gdbpy_ref.
12044
a68ff33e
TT
120452017-01-10 Tom Tromey <tom@tromey.com>
12046
12047 * python/py-ref.h: New file.
12048
7becfd03
SM
120492017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12050
12051 * cli-out.c (cli_ui_out::do_redirect): Change return type to
12052 void.
12053 * cli-out.h (cli_ui_out::do_redirect): Likewise.
12054 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
12055 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
12056 * ui-out.c (ui_out::redirect): Likewise.
12057 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
12058 * cli/cli-logging.c (set_logging_redirect): Update call site of
12059 ui_out::redirect.
12060 (handle_redirections): Likewise.
12061 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
12062 * top.c (execute_command_to_string): Likewise.
12063 * utils.c (do_ui_out_redirect_pop): Likewise.
12064
df294654
SM
120652017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12066
12067 * stack.c (_initialize_stack): Update "frame" command help message.
12068
f5e6296e
IB
120692017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
12070
12071 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
12072
0e2d6fa6
YQ
120732017-01-06 Yao Qi <yao.qi@linaro.org>
12074
12075 * x86-linux-nat.h: Include gdb_proc_service.h.
12076
44d6d3f9
YQ
120772017-01-06 Yao Qi <yao.qi@linaro.org>
12078
12079 * ser-base.h: Include serial.h.
12080
656731fe
YQ
120812017-01-06 Yao Qi <yao.qi@linaro.org>
12082
12083 * ppc-linux-tdep.h: Include ppc-tdep.h.
12084
1ca8f924
YQ
120852017-01-06 Yao Qi <yao.qi@linaro.org>
12086
12087 * nat/amd64-linux-siginfo.h: Include signal.h.
12088
bc3008c4
YQ
120892017-01-06 Yao Qi <yao.qi@linaro.org>
12090
12091 * nat/aarch64-linux-hw-point.h: Include break-common.h.
12092
66c80d03
YQ
120932017-01-06 Yao Qi <yao.qi@linaro.org>
12094
12095 * mi/mi-parse.h: Include mi-cmds.h.
12096
051d2dda
YQ
120972017-01-06 Yao Qi <yao.qi@linaro.org>
12098
12099 * inf-loop.c: Don't include "target.h".
12100 * inf-loop.h: Include it here.
12101
8018d34f
YQ
121022017-01-06 Yao Qi <yao.qi@linaro.org>
12103
12104 * dfp.h: Include "dboulest.h" and "expression.h".
12105
c0b8369c
YQ
121062017-01-06 Yao Qi <yao.qi@linaro.org>
12107
12108 * ax-gdb.h: Include "ax.h".
12109
ad5cba2a
YQ
121102017-01-06 Yao Qi <yao.qi@linaro.org>
12111
12112 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
12113 with nat/gdb_ptrace.h.
12114
1c33cd7f
YQ
121152017-01-05 Yao Qi <yao.qi@linaro.org>
12116
12117 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
12118 new line.
12119 (mips64_fbsd_sigframe_init): Likewise.
12120
c988ac1d
JB
121212017-01-04 John Baldwin <jhb@FreeBSD.org>
12122
12123 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
12124 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
12125
b268007c
JB
121262017-01-04 John Baldwin <jhb@FreeBSD.org>
12127
12128 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
12129 * NEWS: Mention new FreeBSD/mips native configuration.
12130 * config/mips/fbsd.mh: New file.
12131 * configure.host: Add mips*-*-freebsd*.
12132 * mips-fbsd-nat.c: New file.
12133
387360da
JB
121342017-01-04 John Baldwin <jhb@FreeBSD.org>
12135
12136 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
12137 (ALLDEPFILES): Add mips-fbsd-tdep.c.
12138 * NEWS: Mention new FreeBSD/mips target.
12139 * configure.tgt: Add mips*-*-freebsd*.
12140 * mips-fbsd-tdep.c: New file.
12141 * mips-fbsd-tdep.h: New file.
12142
2aaaf250
YQ
121432017-01-04 Yao Qi <yao.qi@linaro.org>
12144
12145 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
12146 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
12147
61baf725
JB
121482017-01-01 Joel Brobecker <brobecker@adacore.com>
12149
6dbb839a 12150 Update copyright year range in all GDB files.
61baf725 12151
c113e7ff 121522017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 12153
c113e7ff 12154 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 12155
c113e7ff 12156For older changes see ChangeLog-2016.
c906108c
SS
12157\f
12158Local Variables:
12159mode: change-log
12160left-margin: 8
12161fill-column: 74
12162version-control: never
57da7796 12163coding: utf-8
c906108c 12164End:
This page took 3.579714 seconds and 4 git commands to generate.