Allow indexing of &str in Rust
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
01af5e0d
TT
12017-10-02 Tom Tromey <tom@tromey.com>
2
3 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
4
888e3ddb
TT
52017-10-02 Tom Tromey <tom@tromey.com>
6
7 * rust-lang.h (rust_slice_type): Add "extern".
8
cc536b21
PA
92017-10-02 Tom Tromey <tom@tromey.com>
10 Pedro Alves <palves@redhat.com>
11
12 * ada-lang.h (ada_exc_info::operator<): Make const.
13 (ada_exc_info::operator==): Make const.
14 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
15 Make const.
16
386c8614
TT
172017-09-29 Tom Tromey <tom@tromey.com>
18
19 * target.c (read_whatever_is_readable): Change type of "result".
20 Update.
21 (free_memory_read_result_vector): Remove.
22 (read_memory_robust): Change return type. Update.
23 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
24 bin2hex, std::string.
25 * target.h (memory_read_result_s): Remove typedef.
26 (free_memory_read_result_vector): Remove.
27 (read_memory_robust): Return std::vector.
28
789c4b5e
TT
292017-09-29 Tom Tromey <tom@tromey.com>
30
31 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
32
ab816a27
TT
332017-09-29 Tom Tromey <tom@tromey.com>
34
35 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
36 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
37 operator< and operator==.
38 (ada_exceptions_list): Return a std::vector.
39 * ada-lang.c (ada_exc_info::operator<): Rename from
40 compare_ada_exception_info.
41 (ada_exc_info::operator==): New.
42 (sort_remove_dups_ada_exceptions_list): Change type of
43 "exceptions".
44 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
45 (ada_add_global_exceptions): Likewise.
46 (ada_exceptions_list_1): Return a std::vector.
47 (ada_exceptions_list): Likewise.
48
52f9abe4
TT
492017-09-29 Tom Tromey <tom@tromey.com>
50
51 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
52 'std::set *'.
53 (print_one_inferior): Update.
54 (free_vector_of_ints): Remove.
55 (list_available_thread_groups): Change "ids" to std::set.
56 (mi_cmd_list_thread_groups): Update.
57 (struct collect_cores_data) <core>: Now a std::set.
58 (collect_cores): Update.
59 (unique): Remove.
60 (print_one_inferior): Update.
61
dcd5ddcc
TT
622017-09-29 Tom Tromey <tom@tromey.com>
63
64 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
65 (mi_execute_async_cli_command): Likewise.
66 (mi_cmd_trace_frame_collected): Use field_fmt.
67
45d288cc
TT
682017-09-29 Tom Tromey <tom@tromey.com>
69
70 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
71 gdb::byte_vector.
72
6afe2f4a
TT
732017-09-29 Tom Tromey <tom@tromey.com>
74
75 * mi/mi-parse.c (mi_parse): Remove unused declaration.
76
9813429a
TT
772017-09-29 Tom Tromey <tom@tromey.com>
78
79 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
80
2d6960b4
TT
812017-09-29 Tom Tromey <tom@tromey.com>
82
83 * varobj.h (varobj_gen_name): Return std::string.
84 * varobj.c (varobj_gen_name): Return std::string.
85 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
86 (mi_cmd_var_delete): Don't copy "name".
87
784c453a
TT
882017-09-29 Tom Tromey <tom@tromey.com>
89
90 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
91 (mi_cmd_break_insert_1): Update.
92
a9bc57b9
TT
932017-09-29 Tom Tromey <tom@tromey.com>
94
95 * target.h (make_scoped_defer_target_commit_resume): Update.
96 * target.c (make_scoped_defer_target_commit_resume): Rename from
97 make_cleanup_defer_target_commit_resume. Return a
98 scoped_restore.
99 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
100
9754d8c4
TT
1012017-09-29 Tom Tromey <tom@tromey.com>
102
103 * main.c (captured_main_1): Remove unused declaration.
104 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
105
99ef965c
TT
1062017-09-29 Tom Tromey <tom@tromey.com>
107
108 * symtab.c (search_symbols): Remove unused outer cleanup.
109 (make_source_files_completion_list): Remove unused declaration.
110
42518ba7
TT
1112017-09-29 Tom Tromey <tom@tromey.com>
112
113 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
114
726b2169
TT
1152017-09-29 Tom Tromey <tom@tromey.com>
116
117 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
118 gdb::byte_vector.
119
55b06432
TT
1202017-09-29 Tom Tromey <tom@tromey.com>
121
122 * complaints.c (vcomplaint): Use std::string.
123
8abcee91
TT
1242017-09-29 Tom Tromey <tom@tromey.com>
125
126 * tracepoint.c (trace_variable_command): Use std::string.
127 (encode_actions_1): Remove unused declarations.
128 (create_tsv_from_upload): Use std::string.
129
6ad94bc7
TT
1302017-09-29 Tom Tromey <tom@tromey.com>
131
132 * cp-support.c (gdb_demangle): Use std::string.
133
2003f3d8
TT
1342017-09-29 Tom Tromey <tom@tromey.com>
135
136 * stack.c (parse_frame_specification): Use std::string
137 (info_frame_command): Use gdb::unique_xmalloc_ptr.
138
8f8accb5
TT
1392017-09-29 Tom Tromey <tom@tromey.com>
140
141 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
142
200aa7b1
TT
1432017-09-29 Tom Tromey <tom@tromey.com>
144
145 * utils.c (vfprintf_maybe_filtered): Use std::string.
146 (vfprintf_unfiltered): Likewise.
147
606aae8a
TT
1482017-09-29 Tom Tromey <tom@tromey.com>
149
150 * event-top.c (top_level_prompt): Return std::string.
151 (display_gdb_prompt): Update.
152
bd413795
TT
1532017-09-29 Tom Tromey <tom@tromey.com>
154
155 * unittests/common-utils-selftests.c (format): New function.
156 (string_vprintf_tests): New function.
157 (_initialize_common_utils_selftests): Register new tests.
158 * common/common-utils.c (string_vprintf): New function.
159 * common/common-utils.h (string_vprintf): Declare.
160
256642e8
PA
1612017-09-29 Pedro Alves <palves@redhat.com>
162
163 * common/rsp-low.c (unpack_varlen_hex): Constify.
164 * common/rsp-low.h (unpack_varlen_hex): Constify.
165 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
166 Constify.
167 * remote.c (remote_set_permissions, read_ptid)
168 (remote_current_thread, remote_get_threads_with_qthreadinfo)
169 (remote_static_tracepoint_marker_at)
170 (remote_static_tracepoint_markers_by_strid)
171 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
172 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
173 (parse_tracepoint_definition, parse_tsv_definition)
174 (parse_static_tracepoint_marker_definition): Constify.
175 * tracepoint.h (parse_static_tracepoint_marker_definition)
176 (parse_trace_status, parse_tracepoint_status)
177 (parse_tracepoint_definition, parse_tsv_definition): Constify.
178
b6bb3468
PA
1792017-09-29 Pedro Alves <palves@redhat.com>
180
181 * remote.c (target_buf, target_buf_size): Delete.
182 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
183 Use the connection's packet buffer instead.
184 All callers adjusted.
185 (_initialize_remote): Remove references to target_buf and
186 target_buf_size.
187
b2f8eb7a
PA
1882017-09-28 Pedro Alves <palves@redhat.com>
189
190 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
191 unittests/common-utils-selftests.c.
192 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
193 (COMMON_OBS): Remove utils-selftests.o.
194 * utils-selftests.c: Move to ...
195 * unittests/common-utils-selftests.c: ... here and rename self
196 test to "string_printf".
197
08302ed2
DE
1982017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
199
200 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
201 having NULL cus or tus.
202
96a5a1d3
UW
2032017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
204
205 * arm-tdep.c: (convert_from_extended): Remove.
206 (convert_to_extended): Likewise.
207 (arm_extract_return_value): Use convert_typed_floating.
208 (arm_store_return_value): Likewise.
209
210 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
211 * sh-tdep.c: Do not include "floatformat.h".
212 (sh_littlebyte_bigword_type): New function.
213 (sh_register_convert_to_virtual): Use convert_typed_floating.
214 (sh_register_convert_to_raw): Likewise.
215 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
216 (sh64_littlebyte_bigword_type): New function.
217 (sh64_extract_return_value): Use convert_typed_floating.
218 (sh64_register_convert_to_virtual): Likewise.
219 (sh64_register_convert_to_raw): Likewise.
220
0db7851f
UW
2212017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
222
223 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
224 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
225
226 * gdbtypes.h (union type_specific): Make field floatformat hold
227 just a single struct floatformat, not an array.
228 (floatformat_from_type): Move here.
229 * gdbtypes.c (floatformat_from_type): Move here. Update to
230 changed TYPE_FLOATFORMAT definition.
231 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
232 (recursive_dump_type): Likewise.
233 (init_float_type): Install correct floatformat for byte order.
234 (arch_float_type): Likewise.
235
77b7c781
UW
2362017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
237
238 * gdbtypes.c (init_type): Change incoming argument from
239 length-in-bytes to length-in-bits. Assert length is a
240 multiple of TARGET_CHAR_BITS.
241 (arch_type, arch_flags_type): Likewise.
242 (init_integer_type): Update call to init_type.
243 (init_character_type): Likewise.
244 (init_boolean_type): Likewise.
245 (init_float_type): Likewise.
246 (init_decfloat_type): Likewise.
247 (init_complex_type): Likewise.
248 (init_pointer_type): Likewise.
249 (objfile_type): Likewise.
250 (arch_integer_type): Update call to arch_type.
251 (arch_character_type): Likewise.
252 (arch_boolean_type): Likewise.
253 (arch_float_type): Likewise.
254 (arch_decfloat_type): Likewise.
255 (arch_complex_type): Likewise.
256 (arch_pointer_type): Likewise.
257 (gdbtypes_post_init): Likewise.
258
259 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
260 (read_base_type): Likewise.
261 * mdebugread.c (basic_type): Likewise.
262 * stabsread.c (dbx_init_float_type): Likewise.
263 (rs6000_builtin_type): Likewise.
264 (read_range_type): Likewise. Also, fix call to init_integer_type
265 with erroneous length argument.
266
267 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
268 * d-lang.c (build_d_types): Likewise.
269 * f-lang.c (build_fortran_types): Likewise.
270 * go-lang.c (build_go_types): Likewise.
271 * opencl-lang.c (build_opencl_types): Likewise.
272 * jit.c (finalize_symtab): Likewise.
273 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
274 (build_std_type_info_type): Likewise.
275 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
276 update call to arch_flags_type.
277
278 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
279 arch_type.
280 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
281 * windows-tdep.c (windows_get_tlb_type): Likewise.
282
283 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
284 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
285 * m32c-tdep.c (make_types): Likewise.
286 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
287 (rl78_psw_type): Update call to arch_flags_type.
288 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
289 * rx-tdep.c (rx_psw_type): Likewise.
290 (rx_fpsw_type): Likewise.
291 * sparc-tdep.c (sparc_psr_type): Likewise.
292 (sparc_fsr_type): Likewise.
293 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
294 (sparc64_ccr_type): Likewise.
295 (sparc64_fsr_type): Likewise.
296 (sparc64_fprs_type): Likewise.
297
f21b4d5c
TT
2982017-09-27 Tom Tromey <tom@tromey.com>
299
300 * findcmd.c (find_command): Constify.
301
643c2ffa
TT
3022017-09-27 Tom Tromey <tom@tromey.com>
303
304 * ada-tasks.c (task_command_1, task_command): Constify.
305
510e5e56
TT
3062017-09-27 Tom Tromey <tom@tromey.com>
307
308 * symtab.c (maintenance_print_symbol_cache)
309 (maintenance_flush_symbol_cache)
310 (maintenance_print_symbol_cache_statistics): Constify.
311
e503b191
TT
3122017-09-27 Tom Tromey <tom@tromey.com>
313
314 * inferior.c (detach_inferior_command, kill_inferior_command)
315 (inferior_command): Constify.
316
4e001312
TT
3172017-09-27 Tom Tromey <tom@tromey.com>
318
319 * regcache.c (regcache_print, maintenance_print_registers)
320 (maintenance_print_raw_registers)
321 (maintenance_print_cooked_registers)
322 (maintenance_print_register_groups)
323 (maintenance_print_remote_registers): Constify.
324
77763700
TT
3252017-09-27 Tom Tromey <tom@tromey.com>
326
327 * printcmd.c (map_display_numbers, undisplay_command)
328 (enable_disable_display_command, enable_display_command)
329 (disable_display_command): Constify.
330
4495129a
TT
3312017-09-27 Tom Tromey <tom@tromey.com>
332
333 * breakpoint.h (delete_command): Don't declare.
334 * breakpoint.c (delete_command, enable_once_command)
335 (enable_count_command, enable_delete_command, breakpoint_1)
336 (maintenance_info_breakpoints, stopin_command, stopat_command)
337 (delete_command, delete_trace_command, save_breakpoints)
338 (save_breakpoints_command, save_tracepoints_command): Constify.
339
3088cf40
TT
3402017-09-27 Tom Tromey <tom@tromey.com>
341
342 * macrocmd.c (macro_expand_command, macro_expand_once_command)
343 (skip_ws, extract_identifier, macro_define_command)
344 (macro_undef_command, macro_list_command): Constify.
345
69f476a3
TT
3462017-09-27 Tom Tromey <tom@tromey.com>
347
348 * infcmd.c (environment_info, set_environment_command)
349 (unset_environment_command, path_info, info_proc_cmd_1)
350 (info_proc_cmd_mappings, info_proc_cmd_stat)
351 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
352 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
353
c4a3e68e
TT
3542017-09-27 Tom Tromey <tom@tromey.com>
355
356 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
357 Constify.
358
c9d31bd6
TT
3592017-09-27 Tom Tromey <tom@tromey.com>
360
361 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
362
1f3f85eb
TT
3632017-09-27 Tom Tromey <tom@tromey.com>
364
365 * demangle.c (demangle_command): Constify.
366
9c504b5d
TT
3672017-09-27 Tom Tromey <tom@tromey.com>
368
369 * progspace.c (maintenance_info_program_spaces_command):
370 Constify.
371
6663cf91
TT
3722017-09-27 Tom Tromey <tom@tromey.com>
373
374 * compile/compile.c (check_raw_argument, compile_file_command)
375 (compile_code_command, compile_print_command): Constify.
376
34e5fa26
TT
3772017-09-27 Tom Tromey <tom@tromey.com>
378
379 * reggroups.c (maintenance_print_reggroups): Constify.
380
8384c356
TT
3812017-09-27 Tom Tromey <tom@tromey.com>
382
383 * dwarf2read.c (save_gdb_index_command): Constify.
384
884beb0c
TT
3852017-09-27 Tom Tromey <tom@tromey.com>
386
387 * stap-probe.c (info_probes_stap_command): Constify.
388
e0b2930c
TT
3892017-09-27 Tom Tromey <tom@tromey.com>
390
391 * fork-child.c (unset_exec_wrapper_command): Constify.
392
f938677d
TT
3932017-09-27 Tom Tromey <tom@tromey.com>
394
395 * btrace.c (get_uint, get_context_size, no_chunk)
396 (maint_btrace_packet_history_cmd)
397 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
398 (maint_info_btrace_cmd): Constify.
399
8949cb87
TT
4002017-09-27 Tom Tromey <tom@tromey.com>
401
402 * reverse.c (delete_bookmark_command): Constify.
403
ac88e2de
TT
4042017-09-27 Tom Tromey <tom@tromey.com>
405
406 * remote.c (set_memory_packet_size)
407 (set_memory_write_packet_size, show_memory_write_packet_size)
408 (set_memory_read_packet_size, show_memory_read_packet_size)
409 (compare_sections_command, packet_command, remote_put_command)
410 (remote_get_command, remote_delete_command): Constify.
411
bd4c9dfe
TT
4122017-09-27 Tom Tromey <tom@tromey.com>
413
414 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
415 (set_mipsfpu_double_command, set_mipsfpu_none_command)
416 (set_mipsfpu_auto_command): Constify.
417
5e93d4c6
TT
4182017-09-27 Tom Tromey <tom@tromey.com>
419
420 * cli/cli-cmds.h (cd_command): Constify.
421 * cli/cli-cmds.c (cd_command): Constify.
422
fc41a75b
TT
4232017-09-27 Tom Tromey <tom@tromey.com>
424
425 * thread.c (thread_name_command, thread_find_command): Constify.
426
67810076
TT
4272017-09-27 Tom Tromey <tom@tromey.com>
428
429 * probe.c (enable_probes_command, disable_probes_command):
430 Constify.
431
1d8b34a7
TT
4322017-09-27 Tom Tromey <tom@tromey.com>
433
434 * symfile.c (symbol_file_command): Constify.
435 * gdbcore.h (deprecated_file_changed_hook): Constify.
436 * exec.c (deprecated_file_changed_hook, exec_file_command)
437 (file_command): Constify.
438 * defs.h (symbol_file_command): Constify.
439
442019e1
TT
4402017-09-27 Tom Tromey <tom@tromey.com>
441
442 * remote-fileio.c (set_system_call_allowed)
443 (show_system_call_allowed): Constify.
444
2983f7cb
TT
4452017-09-27 Tom Tromey <tom@tromey.com>
446
447 * tracepoint.c (delete_trace_variable_command)
448 (tfind_end_command, tfind_start_command, tfind_pc_command)
449 (tfind_tracepoint_command, tfind_line_command)
450 (tfind_range_command, tfind_outside_command): Constify.
451
4fd41b24
TT
4522017-09-27 Tom Tromey <tom@tromey.com>
453
454 * ax-gdb.c (maint_agent_printf_command, agent_command)
455 (agent_eval_command): Constify.
456
f2fc3015
TT
4572017-09-27 Tom Tromey <tom@tromey.com>
458
459 * tracepoint.c (info_scope_command): Constify.
460 * python/python.c (gdbpy_decode_line): Constify.
461 * python/py-breakpoint.c (bppy_init): Constify.
462 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
463 * location.h: (new_linespec_location)
464 (string_to_event_location_basic, string_to_event_location):
465 Constify.
466 * location.c (new_linespec_location)
467 (string_to_event_location_basic, string_to_event_location):
468 Constify.
469 * linespec.h (decode_line_with_current_source)
470 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
471 * linespec.c (linespec_lex_to_end)
472 (decode_line_with_current_source)
473 (decode_line_with_last_displayed): Constify.
474 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
475 Constify.
476 * cli/cli-cmds.c (edit_command, list_command): Constify.
477 * breakpoint.h (until_break_command, watch_command_wrapper)
478 (awatch_command_wrapper, rwatch_command_wrapper)
479 (init_ada_exception_breakpoint): Constify.
480 * breakpoint.c (break_command_1, dprintf_command)
481 (break_range_command, watch_command_wrapper)
482 (rwatch_command_wrapper, awatch_command_wrapper)
483 (until_break_command, init_ada_exception_breakpoint)
484 (strace_marker_create_sals_from_location, trace_command)
485 (ftrace_command, strace_command, struct tracepoint): Constify.
486 * ax-gdb.c (agent_command_1): Constify.
487 * ada-lang.c (ada_exception_sal): Constify.
488
8c2f95f4
TT
4892017-09-27 Tom Tromey <tom@tromey.com>
490
491 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
492 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
493 (get_context_size, no_chunk, get_insn_history_modifiers)
494 (cmd_record_insn_history, get_call_history_modifiers)
495 (cmd_record_call_history): Constify.
496
a0d65762
TT
4972017-09-27 Tom Tromey <tom@tromey.com>
498
499 * source.c (show_substitute_path_command)
500 (unset_substitute_path_command, set_substitute_path_command):
501 Constify.
502
58971144
TT
5032017-09-27 Tom Tromey <tom@tromey.com>
504
505 * typeprint.c (maintenance_print_type): Constify.
506 * maint.c (maintenance_dump_me, maintenance_demangle)
507 (maintenance_time_display, maintenance_info_sections)
508 (maintenance_print_statistics, maintenance_deprecate)
509 (maintenance_undeprecate): Constify.
510 (maintenance_do_deprecate): Constify. Use std::string.
511 (maintenance_selftest): Constify.
512 * gdbtypes.h (maintenance_print_type): Constify.
513
c482f52c
TT
5142017-09-27 Tom Tromey <tom@tromey.com>
515
516 * hppa-tdep.c (unwind_command): Constify.
517
e100df1a
TT
5182017-09-27 Tom Tromey <tom@tromey.com>
519
520 * target-descriptions.c (unset_tdesc_filename_cmd)
521 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
522 Constify.
523
31d56ade
TT
5242017-09-27 Tom Tromey <tom@tromey.com>
525
526 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
527
b961da0b
TT
5282017-09-27 Tom Tromey <tom@tromey.com>
529
530 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
531
e2d8ae16
TT
5322017-09-27 Tom Tromey <tom@tromey.com>
533
534 * tui/tui-regs.c (tui_reg_command): Constify.
535
863779b0
TT
5362017-09-27 Tom Tromey <tom@tromey.com>
537
538 * skip.c (skip_file_command, skip_function_command)
539 (skip_enable_command, skip_disable_command, skip_delete_command):
540 Constify.
541
cdb34d4a
TT
5422017-09-27 Tom Tromey <tom@tromey.com>
543
544 * record-btrace.c (cmd_record_btrace_bts_start)
545 (cmd_record_btrace_pt_start): Constify.
546
e99c83e7
TT
5472017-09-27 Tom Tromey <tom@tromey.com>
548
549 * symmisc.c (maintenance_print_symbols)
550 (maintenance_print_msymbols, maintenance_print_objfiles)
551 (maintenance_info_symtabs, maintenance_check_symtabs)
552 (maintenance_expand_symtabs, maintenance_info_line_tables):
553 Constify.
554
32faf971
TT
5552017-09-27 Tom Tromey <tom@tromey.com>
556
557 * top.c (new_ui_command): Constify.
558
2cf311eb
TT
5592017-09-27 Tom Tromey <tom@tromey.com>
560
561 * symfile.c (add_symbol_file_command)
562 (remove_symbol_file_command, list_overlays_command)
563 (map_overlay_command, unmap_overlay_command)
564 (overlay_auto_command, overlay_manual_command)
565 (overlay_off_command, overlay_load_command): Constify.
566
e6738699
TT
5672017-09-27 Tom Tromey <tom@tromey.com>
568
569 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
570 (info_spu_mailbox_command, info_spu_dma_command)
571 (info_spu_proxydma_command): Constify.
572
aa360cd5
TT
5732017-09-27 Tom Tromey <tom@tromey.com>
574
575 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
576
898241a5
TT
5772017-09-27 Tom Tromey <tom@tromey.com>
578
579 * cli/cli-script.c (user_defined_command): Constify.
580
2d0ac106
TT
5812017-09-27 Tom Tromey <tom@tromey.com>
582
583 * cli/cli-dump.c (dump_memory_command, dump_value_command)
584 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
585 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
586 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
587 (dump_binary_value, append_binary_memory, append_binary_value):
588 Constify.
589 (struct dump_context) <func>: Constify.
590 (add_dump_command): Update.
591
dede02ce
TT
5922017-09-27 Tom Tromey <tom@tromey.com>
593
594 * cli/cli-cmds.c (show_version, show_configuration)
595 (source_command, show_user): Constify.
596
d3cb6b99
TT
5972017-09-27 Tom Tromey <tom@tromey.com>
598
599 * target.c (maintenance_print_target_stack): Constify.
600
1970a12f
TT
6012017-09-27 Tom Tromey <tom@tromey.com>
602
603 * interps.c (interpreter_exec_cmd): Constify.
604
41243651
TT
6052017-09-27 Tom Tromey <tom@tromey.com>
606
607 * record-full.c (cmd_record_full_restore): Constify.
608
4465d9db
TT
6092017-09-27 Tom Tromey <tom@tromey.com>
610
611 * memattr.c (enable_mem_command, disable_mem_command)
612 (delete_mem_command): Constify.
613
ad25e423
TT
6142017-09-27 Tom Tromey <tom@tromey.com>
615
616 * value.c (show_convenience): Constify.
617
d64097b1
TT
6182017-09-27 Tom Tromey <tom@tromey.com>
619
620 * gdbcore.h (core_file_command): Update.
621 * corefile.c (core_file_command): Constify.
622
4d4589ef
TT
6232017-09-27 Tom Tromey <tom@tromey.com>
624
625 * user-regs.c (maintenance_print_user_registers): Constify.
626
32a7bf17
TT
6272017-09-27 Tom Tromey <tom@tromey.com>
628
629 * cp-namespace.c (maintenance_cplus_namespace): Constify.
630
4a475551
TT
6312017-09-27 Tom Tromey <tom@tromey.com>
632
633 * cp-support.c (first_component_command): Constify.
634
990b9f9f
TT
6352017-09-27 Tom Tromey <tom@tromey.com>
636
637 * psymtab.c (maintenance_print_psymbols)
638 (maintenance_info_psymtabs, maintenance_check_psymtabs):
639 Constify.
640
c281872e
TT
6412017-09-27 Tom Tromey <tom@tromey.com>
642
643 * windows-tdep.c (display_tib): Constify.
644
5b64bf74
TT
6452017-09-27 Tom Tromey <tom@tromey.com>
646
647 * linux-fork.c (delete_checkpoint_command)
648 (detach_checkpoint_command): Constify.
649
4ada038f
TT
6502017-09-27 Tom Tromey <tom@tromey.com>
651
652 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
653
57f5a81b
TT
6542017-09-27 Tom Tromey <tom@tromey.com>
655
656 * arc-tdep.c (dump_arc_instruction_command): Constify.
657
b0a8e6c4
TT
6582017-09-27 Tom Tromey <tom@tromey.com>
659
660 * valprint.c (set_radix, show_radix): Constify.
661
8d97dc1c
TT
6622017-09-27 Tom Tromey <tom@tromey.com>
663
664 * dtrace-probe.c (info_probes_dtrace_command): Constify.
665
eb7c454d
TT
6662017-09-27 Tom Tromey <tom@tromey.com>
667
668 * command.h (not_just_help_class_command): Update.
669 * cli/cli-decode.h (not_just_help_class_command): Update.
670 * cli/cli-decode.c (not_just_help_class_command): Constify.
671
e4e33335
TT
6722017-09-27 Tom Tromey <tom@tromey.com>
673
674 * gdb_bfd.c (maintenance_info_bfds): Constify.
675
0450cc4c
TT
6762017-09-27 Tom Tromey <tom@tromey.com>
677
678 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
679 overloads.
680 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
681 (do_const_cfunc): New function.
682 (cmd_cfunc_eq): New overload.
683 (cli_user_command_p): Check do_const_cfunc.
684 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
685 const_cfunc.
686 * command.h (add_cmd): Add const overload and no-function
687 overload.
688 (set_cmd_cfunc): Add const overload.
689 (cmd_const_cfunc_ftype): Declare.
690 (cmd_cfunc_eq): Add const overload.
691 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
692 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
693 overload.
694
a9bbfbd8
TT
6952017-09-27 Tom Tromey <tom@tromey.com>
696
697 * macroexp.c (get_next_token_for_substitution): New function.
698 (substitute_args): Call it. Check for __VA_OPT__.
699
5230b05a
WT
7002017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
701 Pedro Alves <palves@redhat.com>
702
703 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
704 producer_is_icc_lt_14.
705 (producer_is_icc_lt_14): New function.
706 (check_producer): Add code for checking version of ICC.
707 (producer_is_icc): Move to producer.c.
708 (read_structure_type): Restrict ICC workaround to ICC<14.
709 * producer.c: Include selftest.h.
710 (producer_is_icc, producer_parsing_tests, _initialize_producer):
711 New functions.
712 * producer.h (producer_is_icc): New declaration.
713
b32b108a
WT
7142017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
715
716 * Makefile.in (SFILES): Add producer.c.
717 (COMMON_OBS): Add producer.o
718 * amd64-tdep.c (producer.h): Add new include.
719 * dwarf2read.c (producer.h): Add new include.
720 * producer.c: New file.
721 * producer.h: New file.
722 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
723 producer.c.
724 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
725 producer.h.
726
5007d765
MK
7272017-09-26 Matthias Klose <doko@ubuntu.com>
728
729 * configure.ac: Search ncursesw before ncurses.
730 Check ncursesw/ncurses.h before ncurses/ncurses.h.
731 * gdb_curses.h: Include <ncursesw/ncurses.h>
732 * config.in, configure: Regenerate.
733
281c4447
RO
7342017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
735
736 PR gdb/22185
737 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
738 obsolete.
739 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
740 Remove i386sol2 support.
741 * configure.nat <i386sol2>: Remove.
742 <sol2-64>: Fold into ...
743 <sol2>: ... this.
744 Move common settings to default section.
745 Add sol-thread.o.
746 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
747 x86_64-*-solaris2.1[0-9]*>: Rename to ...
748 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
749 <i[34567]86-*-solaris*>: Remove.
750 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
751
752 * configure.ac: Remove wctype in libw check.
753 (_MSE_INT_H): Don't define on Solaris 7-9.
754 <solaris*>: Remove libthread_db.so.1 check.
755 * configure: Regenerate.
756 * config.in: Regenerate.
757
758 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
759 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
760 (gdb_ps_size_t): Remove.
761 Use base types in users.
762 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
763
764 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
765
39b06c20
RO
7662017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
767
768 PR build/22206
769 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
770 (adi_is_addr_mapped): Likewise.
771 (PSR_ICC): Don't redefine.
772 (PSR_IMPL): Likewise.
773
6c3e20f1
TT
7742017-09-25 Tom Tromey <tom@tromey.com>
775
776 * regcache.c (regcache::dump): Use string_printf.
777
b292235f
TT
7782017-09-25 Tom Tromey <tom@tromey.com>
779
780 * regcache.c (class regcache_invalidator): New.
781 (struct register_to_invalidate): Remove.
782 (make_cleanup_regcache_invalidate): Remove.
783 (regcache::raw_write): Use regcache_invalidator.
784
9ac86b52
TT
7852017-09-25 Tom Tromey <tom@tromey.com>
786
787 * spu-tdep.c (spu2ppu_sniffer): Update.
788 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
789 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
790 Remove.
791 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
792 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
793 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
794 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
795 (frame_pop): Update.
796
c0e383c6
TT
7972017-09-25 Tom Tromey <tom@tromey.com>
798
799 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
800 * regcache.h (regcache_xfree): Don't declare.
801 * regcache.c (regcache_xfree): Remove.
802 (do_regcache_xfree): Use delete.
803 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
804 * linux-fork.c (free_fork): Use delete.
805 (fork_save_infrun_state): Likewise.
806 * jit.c (jit_dealloc_cache): Use delete.
807 * infrun.c (discard_infcall_suspend_state): Use delete.
808
791199cc
TT
8092017-09-25 Tom Tromey <tom@tromey.com>
810
811 * regcache.h (regcache_xmalloc): Don't declare.
812 (regcache_raw_set_cached_value): Update comment.
813 * regcache.c (regcache_xmalloc): Remove.
814 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
815 * jit.c (jit_frame_sniffer): Use new.
816 * frame.c (frame_save_as_regcache): Use new.
817
289e23aa
AA
8182017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
819
820 * NEWS: Advertise support for guarded-storage registers on IBM z.
821
1b63490c
AA
8222017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
823
824 * s390-linux-nat.c (have_regset_gs): New static variable.
825 (s390_linux_fetch_inferior_registers): Handle guarded-storage
826 control block and guarded-storage broadcast control regsets.
827 (s390_read_description): Detect whether the target has
828 guarded-storage support, return appropriate tdesc.
829 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
830 (features/s390x-gs-linux64.c): Likewise.
831 (struct gdbarch_tdep) <have_gs>: New field.
832 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
833 (s390_gsbc_regset): New variables.
834 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
835 and s390_gsbc_regset, if applicable.
836 (s390_core_read_description): Check whether core file was from a
837 target with guarded-storage support; include appropriate regsets.
838 (s390_gdbarch_init): Add registers for guarded-storage support.
839 (_initialize_s390_tdep): Initialize new target descriptions that
840 include registers for guarded-storage support.
841 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
842 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
843 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
844 (S390_NUM_REGS): Adjust macro definition.
845 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
846 (tdesc_s390x_gs_linux64): New declarations.
847
96235dc1
AA
8482017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
849
850 * features/s390-gs-linux64.xml: New file.
851 * features/s390-gs.xml: New file.
852 * features/s390-gsbc.xml: New file.
853 * features/s390x-gs-linux64.xml: New file.
854 * features/Makefile (WHICH): Add s390-gs-linux64 and
855 s390x-gs-linux64.
856 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
857 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
858 * features/s390-gs-linux64.c: New generated file.
859 * features/s390x-gs-linux64.c: New file.
860 * regformats/s390-gs-linux64.dat: New file.
861 * regformats/s390x-gs-linux64.dat: New file.
862
b4a7c699
TT
8632017-09-23 Tom Tromey <tom@tromey.com>
864
865 * defs.h (make_cleanup_override_quit_handler): Don't declare.
866
c2f97536
TT
8672017-09-22 Tom Tromey <tom@tromey.com>
868
869 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
870 type to scoped_restore_tmpl.
871 <scoped_input_handler>: Initialize m_quit_handler directly.
872
43573013
SDJ
8732017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
874
875 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
876 (cd_command): Likewise. Free "current_directory" before
877 assigning to it.
878 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
879 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
880 * top.c (gdb_dirbuf): Remove global declaration.
881 * top.h (gdb_dirbuf): Likewise.
882
6ec2e0f5
SDJ
8832017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
884
885 * gnulib/aclocal.m4: Regenerate.
886 * gnulib/config.in: Regenerate.
887 * gnulib/configure: Regenerate.
888 * gnulib/import/Makefile.am: Regenerate.
889 * gnulib/import/Makefile.in: Regenerate.
890 * gnulib/import/assure.h: New file.
891 * gnulib/import/at-func.c: Likewise
892 * gnulib/import/chdir-long.c: New file.
893 * gnulib/import/chdir-long.h: New file.
894 * gnulib/import/cloexec.c: New file.
895 * gnulib/import/cloexec.h: New file.
896 * gnulib/import/close.c: New file.
897 * gnulib/import/closedir.c: New file.
898 * gnulib/import/dirent-private.h: New file.
899 * gnulib/import/dup-safer.c: New file.
900 * gnulib/import/dup.c: New file.
901 * gnulib/import/dup2.c: New file.
902 * gnulib/import/error.c: New file.
903 * gnulib/import/error.h: New file.
904 * gnulib/import/exitfail.c: New file.
905 * gnulib/import/exitfail.h: New file.
906 * gnulib/import/fchdir.c: New file.
907 * gnulib/import/fcntl.c: New file.
908 * gnulib/import/fcntl.in.h: New file.
909 * gnulib/import/fd-hook.c: New file.
910 * gnulib/import/fd-hook.h: New file.
911 * gnulib/import/fd-safer.c: New file.
912 * gnulib/import/fdopendir.c: New file.
913 * gnulib/import/filename.h: New file.
914 * gnulib/import/filenamecat-lgpl.c: New file.
915 * gnulib/import/filenamecat.h: New file.
916 * gnulib/import/fstat.c: New file.
917 * gnulib/import/fstatat.c: New file.
918 * gnulib/import/getcwd-lgpl.c: New file.
919 * gnulib/import/getcwd.c: New file.
920 * gnulib/import/getdtablesize.c: New file.
921 * gnulib/import/getlogin_r.c: New file.
922 * gnulib/import/getprogname.c: New file.
923 * gnulib/import/getprogname.h: New file.
924 * gnulib/import/gettext.h: New file.
925 * gnulib/import/glob-libc.h: New file.
926 * gnulib/import/glob.c: New file.
927 * gnulib/import/glob.in.h: New file.
928 * gnulib/import/intprops.h: New file.
929 * gnulib/import/m4/chdir-long.m4: New file.
930 * gnulib/import/m4/close.m4: New file.
931 * gnulib/import/m4/closedir.m4: New file.
932 * gnulib/import/m4/d-ino.m4: New file.
933 * gnulib/import/m4/d-type.m4: New file.
934 * gnulib/import/m4/dup.m4: New file.
935 * gnulib/import/m4/dup2.m4: New file.
936 * gnulib/import/m4/error.m4: New file.
937 * gnulib/import/m4/fchdir.m4: New file.
938 * gnulib/import/m4/fcntl.m4: New file.
939 * gnulib/import/m4/fcntl_h.m4: New file.
940 * gnulib/import/m4/fdopendir.m4: New file.
941 * gnulib/import/m4/filenamecat.m4: New file.
942 * gnulib/import/m4/fstat.m4: New file.
943 * gnulib/import/m4/fstatat.m4: New file.
944 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
945 * gnulib/import/m4/getcwd-path-max.m4: New file.
946 * gnulib/import/m4/getcwd.m4: New file.
947 * gnulib/import/m4/getdtablesize.m4: New file.
948 * gnulib/import/m4/getlogin_r.m4: New file.
949 * gnulib/import/m4/getprogname.m4: New file.
950 * gnulib/import/m4/glob.m4: New file.
951 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
952 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
953 * gnulib/import/m4/mempcpy.m4: New file.
954 * gnulib/import/m4/memrchr.m4: New file.
955 * gnulib/import/m4/mode_t.m4: New file.
956 * gnulib/import/m4/msvc-inval.m4: New file.
957 * gnulib/import/m4/msvc-nothrow.m4: New file.
958 * gnulib/import/m4/open.m4: New file.
959 * gnulib/import/m4/openat.m4: New file.
960 * gnulib/import/m4/opendir.m4: New file.
961 * gnulib/import/m4/readdir.m4: New file.
962 * gnulib/import/m4/realloc.m4: New file.
963 * gnulib/import/m4/rewinddir.m4: New file.
964 * gnulib/import/m4/save-cwd.m4: New file.
965 * gnulib/import/m4/strdup.m4: New file.
966 * gnulib/import/m4/strerror.m4: New file.
967 * gnulib/import/m4/unistd-safer.m4: New file.
968 * gnulib/import/mempcpy.c: New file.
969 * gnulib/import/memrchr.c: New file.
970 * gnulib/import/msvc-inval.c: New file.
971 * gnulib/import/msvc-inval.h: New file.
972 * gnulib/import/msvc-nothrow.c: New file.
973 * gnulib/import/msvc-nothrow.h: New file.
974 * gnulib/import/open.c: New file.
975 * gnulib/import/openat-die.c: New file.
976 * gnulib/import/openat-priv.h: New file.
977 * gnulib/import/openat-proc.c: New file.
978 * gnulib/import/openat.c: New file.
979 * gnulib/import/openat.h: New file.
980 * gnulib/import/opendir.c: New file.
981 * gnulib/import/pipe-safer.c: New file.
982 * gnulib/import/readdir.c: New file.
983 * gnulib/import/realloc.c: New file.
984 * gnulib/import/rewinddir.c: New file.
985 * gnulib/import/save-cwd.c: New file.
986 * gnulib/import/save-cwd.h: New file.
987 * gnulib/import/strdup.c: New file.
988 * gnulib/import/strerror-override.c: New file.
989 * gnulib/import/strerror-override.h: New file.
990 * gnulib/import/strerror.c: New file.
991 * gnulib/import/unistd--.h: New file.
992 * gnulib/import/unistd-safer.h: New file.
993 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
994 "getcwd" and "glob".
995 * ser-tcp.c: Undefine "close" before redefining it.
996
432ae719
SM
9972017-09-21 Simon Marchi <simon.marchi@ericsson.com>
998
999 * guile/scm-value.c (gdbscm_value_address): Initialize address,
1000 get rid of res_val.
1001
4fa7574e
RO
10022017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1003
1004 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
1005 <sol2,sparc>: Likewise.
1006 <sol2-64,i386>: Likewise.
1007
1008 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
1009 -Wdeprecated-declarations on *-*-solaris*.
1010 * configure: Regenerate.
1011
1012 * procfs.c: Include "nat/inferior.h".
1013 (procfs_info_proc): Fix typo.
1014
f6327dcb
KB
10152017-09-21 Kevin Buettner <kevinb@redhat.com>
1016
1017 * remote.c (vector): Include.
1018 (struct private_thread_info): Add field, thread_handle.
1019 (free_private_thread_info): Deallocate storage associated with
1020 thread handle.
1021 (get_private_info_thread): Initialize `thread_handle' field.
1022 (struct thread_item): Add field, thread_handle.
1023 (clear_threads_listing_context): Deallocate storage associated
1024 with thread handle.
1025 (start_thread): Add support for "handle" attribute.
1026 (thread_attributes): Add "handle".
1027 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
1028 field.
1029 (remote_update_thread_list): Update thread_handle.
1030 (remote_thread_handle_to_thread_info): New function.
1031 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
1032
fbbe5337
KB
10332017-09-21 Kevin Buettner <kevinb@redhat.com>
1034
1035 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
1036 function.
1037 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
1038 * python/python-internal.h (thread_object_type): Declare.
1039
e04ee09e
KB
10402017-09-21 Kevin Buettner <kevinb@redhat.com>
1041
1042 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
1043 (target_thread_handle_to_thread_info): Declare.
1044 * target.c (target_thread_handle_to_thread_info): New function.
1045 * target-delegates.c: Regenerate.
1046 * gdbthread.h (find_thread_by_handle): Declare.
1047 * thread.c (find_thread_by_handle): New function.
1048 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
1049 function.
1050 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
1051
1e5b66ed
SM
10522017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1053
1054 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
1055
ebe48ba0
SM
10562017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1057
1058 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
1059
0a0bf5dc
YQ
10602017-09-21 Yao Qi <yao.qi@linaro.org>
1061
1062 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
1063 to gdb_target_obs.
1064
d1b0a7bf
TT
10652017-09-20 Tom Tromey <tom@tromey.com>
1066
1067 * breakpoint.c (struct counted_command_line): Remove.
1068 (breakpoint_commands): Update.
1069 (alloc_counted_command_line, incref_counted_command_line)
1070 (decref_counted_command_line, do_cleanup_counted_command_line)
1071 (make_cleanup_decref_counted_command_line): Remove.
1072 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
1073 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
1074 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
1075 (save_breakpoints): Update.
1076 * breakpoint.h (counted_command_line): Now a typedef to
1077 shared_ptr.
1078 (struct breakpoint) <commands>: Now a counted_command_line.
1079 (struct bpstats) <command>: Likewise.
1080
48649e1b
TT
10812017-09-20 Tom Tromey <tom@tromey.com>
1082
1083 * breakpoint.c (struct commands_info, do_map_commands_command):
1084 Remove.
1085 (commands_command_1): Update.
1086 (iterate_over_related_breakpoints): Take a function_view.
1087 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
1088 (delete_command): Update.
1089 (map_breakpoint_numbers): Take a function_view.
1090 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
1091 (disable_command): Update.
1092 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
1093 (enable_command): Update.
1094 (struct disp_data, do_enable_breakpoint_disp)
1095 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
1096 (do_map_enable_delete_breakpoint): Remove.
1097 (enable_once_command, enable_count_command, enable_delete_command)
1098 (delete_trace_variable_command): Update.
1099
04afa70c
TT
11002017-09-20 Tom Tromey <tom@tromey.com>
1101
1102 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
1103 (bpstat_clear): Use delete.
1104 (bpstats): New constructors.
1105 (bpstat_copy, bpstat_stop_status): Use new.
1106 (dprintf_after_condition_true): Update.
1107 * breakpoint.h (bpstats::bpstats): Add constructors.
1108 (bpstats::~bpstats): Add destructor.
1109
c83833f4
PA
11102017-09-20 Pedro Alves <palves@redhat.com>
1111
1112 * eval.c (make_params): Delete, refactored as ...
1113 (class fake_method): ... this new type's ctor.
1114 (fake_method::~fake_method): New.
1115 (evaluate_subexp_standard): Use 'fake_method'.
1116
223ffa71
TT
11172017-09-20 Tom Tromey <tom@tromey.com>
1118
1119 * windows-nat.c (get_windows_debug_event, windows_wait)
1120 (do_initial_windows_stuff, windows_attach): Update.
1121 * utils.c (vwarning, internal_vproblem): Update.
1122 (ui_unregister_input_event_handler_cleanup)
1123 (prepare_to_handle_input): Remove.
1124 (class scoped_input_handler): New.
1125 (defaulted_query, prompt_for_continue): Update.
1126 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1127 Update.
1128 * top.c (undo_terminal_modifications_before_exit): Update.
1129 * target/target.h (target_terminal_init, target_terminal_inferior)
1130 (target_terminal_ours): Don't declare.
1131 (class target_terminal): New.
1132 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
1133 (target_terminal_ours_for_output)
1134 (make_cleanup_restore_target_terminal): Don't declare.
1135 (target_terminal_info): Remove.
1136 * target.c (enum terminal_state, terminal_state): Remove.
1137 (target_terminal::terminal_state): Define.
1138 (target_terminal::init): Rename from target_terminal_init.
1139 (target_terminal::inferior): Rename from
1140 target_terminal_inferior.
1141 (target_terminal::ours): Rename from target_terminal_ours.
1142 (target_terminal::ours_for_output): Rename from
1143 target_terminal_ours_for_output.
1144 (target_terminal::info): New method.
1145 (cleanup_restore_target_terminal)
1146 (make_cleanup_restore_target_terminal): Remove.
1147 * solib.c (handle_solib_event): Update.
1148 * remote.c (remote_serial_quit_handler): Update.
1149 (remote_terminal_inferior, remote_wait_as): Update.
1150 * record-full.c (record_full_wait_1): Update.
1151 * nto-procfs.c (procfs_create_inferior): Update.
1152 * nat/fork-inferior.c (startup_inferior): Update.
1153 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1154 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1155 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1156 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1157 (mi_breakpoint_created, mi_breakpoint_deleted)
1158 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
1159 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
1160 (mi_user_selected_context_changed, report_initial_inferior):
1161 Update.
1162 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
1163 (linux_nat_terminal_inferior): Update.
1164 * infrun.c (follow_fork_inferior)
1165 (handle_vfork_child_exec_or_exit, do_target_resume)
1166 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
1167 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
1168 Update.
1169 * inflow.c (child_terminal_init, info_terminal_command): Update.
1170 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
1171 (attach_command): Update.
1172 * infcall.c (call_thread_fsm_should_stop): Update.
1173 * gnu-nat.c (gnu_attach): Update.
1174 * extension.c (struct active_ext_lang_state)
1175 (restore_active_ext_lang): Update.
1176 * exceptions.c (print_flush): Update.
1177 * event-top.c (async_enable_stdin, default_quit_handler): Update.
1178 (struct quit_handler_cleanup_data, restore_quit_handler)
1179 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
1180 Remove.
1181 * cp-support.c (gdb_demangle): Update.
1182 * breakpoint.c (update_inserted_breakpoint_locations)
1183 (insert_breakpoint_locations, handle_jit_event)
1184 (disable_breakpoints_in_unloaded_shlib): Update.
1185 * annotate.c (annotate_breakpoints_invalid)
1186 (annotate_frames_invalid): Update.
1187
013af3fc
TT
11882017-09-20 Tom Tromey <tom@tromey.com>
1189
1190 * main.c (catch_command_errors): Rename from
1191 catch_command_errors_const.
1192 (captured_main_1): Update.
1193
06871ae8
PA
11942017-09-20 Pedro Alves <palves@redhat.com>
1195
1196 * cli/cli-cmds.c (list_command): Use print_sal_location.
1197 (print_sal_location): New function.
1198 (ambiguous_line_spec): Use print_sal_location.
1199 * linespec.c (symbol_to_sal): Record the symbol in the sal.
1200 * symtab.c (find_function_start_sal): Likewise.
1201 * symtab.h (symtab_and_line::symbol): New field.
1202
e5f25bc5
PA
12032017-09-20 Pedro Alves <palves@redhat.com>
1204
1205 * linespec.c (minsym_found): Handle non-text minsyms.
1206 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
1207
1b7fa39e
WT
12082017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1209
1210 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
1211 backslash.
1212
37dd0825
WT
12132017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1214
1215 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
1216 vmovups instead vmovaps.
1217 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
1218
4e5a4f58
JB
12192017-09-19 John Baldwin <jhb@FreeBSD.org>
1220
1221 * NEWS (Changes since GDB 8.0): Add starti.
1222 * infcmd.c (enum run_break): New.
1223 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
1224 case.
1225 (run_command): Use enum run_how.
1226 (start_command): Likewise.
1227 (starti_command): New function.
1228 (RUN_ARGS_HELP): New macro.
1229 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
1230 commands. Add starti command.
1231
aa70c9f1
YQ
12322017-09-19 Yao Qi <yao.qi@linaro.org>
1233
1234 * Makefile.in (monitor.o): Remove the rule.
1235
d6541620
YQ
12362017-09-19 Yao Qi <yao.qi@linaro.org>
1237
1238 * annotate.h (struct annotate_arg_emitter): Use
1239 DISABLE_COPY_AND_ASSIGN.
1240 * common/refcounted-object.h (refcounted_object): Likewise.
1241 * completer.h (struct completion_result): Likewise.
1242 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
1243 * filename-seen-cache.h (filename_seen_cache): Likewise.
1244 * gdbcore.h (thread_section_name): Likewise.
1245 * gdb_regex.h (compiled_regex): Likewise.
1246 * gdbthread.h (scoped_restore_current_thread): Likewise.
1247 * inferior.h (scoped_restore_current_inferior): Likewise.
1248 * jit.c (jit_reader): Likewise.
1249 * linespec.h (struct linespec_result): Likewise.
1250 * mi/mi-parse.h (struct mi_parse): Likewise.
1251 * nat/fork-inferior.c (execv_argv): Likewise.
1252 * progspace.h (scoped_restore_current_program_space): Likewise.
1253 * python/python-internal.h (class gdbpy_enter): Likewise.
1254 * regcache.h (regcache): Likewise.
1255 * target-descriptions.c (struct tdesc_reg): Likewise.
1256 (struct tdesc_type): Likewise.
1257 (struct tdesc_feature): Likewise.
1258 * ui-out.h (ui_out_emit_type): Likewise.
1259
0615127c
SM
12602017-09-18 Simon Marchi <simon.marchi@ericsson.com>
1261
1262 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
1263 label abort_expression.
1264
5e187554
SM
12652017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1266
1267 * common/buffer.c (buffer_xml_printf): Adjust.
1268 * common/xml-utils.c (xml_escape_text): Change return type to
1269 std::string, update code accordingly.
1270 * common/xml-utils.h (xml_escape_text): Change return type to
1271 std::string.
1272 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
1273 * windows-tdep.c (windows_xfer_shared_library): Adjust.
1274 * unittests/xml-utils-selftests.c (test_xml_escape_text):
1275 Adjust.
1276
c3d7b541
SM
12772017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1278
1279 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
1280 (SUBDIR_UNITTESTS_OBS): Add new object file.
1281 * unittests/xml-utils-selftests.c: New file.
1282
1526853e
SM
12832017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1284
1285 * common/selftest.h (selftest): New struct/interface.
1286 (register_test): Add name parameter, add new overload.
1287 (run_tests): Add filter parameter.
1288 (for_each_selftest_ftype): New typedef.
1289 (for_each_selftest): New declaration.
1290 * common/selftest.c (tests): Change type to
1291 map<string, unique_ptr<selftest>>.
1292 (simple_selftest): New struct.
1293 (register_test): New function.
1294 (register_test): Add name parameter and use it.
1295 (run_tests): Add filter parameter and use it. Add prints.
1296 Adjust to vector -> map change.
1297 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
1298 registering selftests.
1299 * arm-tdep.c (_initialize_arm_tdep): Likewise.
1300 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
1301 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
1302 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
1303 * findvar.c (_initialize_findvar): Likewise.
1304 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
1305 * maint.c (maintenance_selftest): Update call to run_tests.
1306 (maintenance_info_selftests): New function.
1307 (_initialize_maint_cmds): Register "maintenance info selftests"
1308 command. Update "maintenance selftest" doc.
1309 * regcache.c (_initialize_regcache): Add names when registering
1310 selftests.
1311 * rust-exp.y (_initialize_rust_exp): Likewise.
1312 * selftest-arch.c (gdbarch_selftest): New struct.
1313 (gdbarch_tests): Remove.
1314 (register_test_foreach_arch): Add name parameter. Call
1315 register_test.
1316 (tests_with_arch): Remove, move most content to
1317 gdbarch_selftest::operator().
1318 (_initialize_selftests_foreach_arch): Remove.
1319 * selftest-arch.h (register_test_foreach_arch): Add name
1320 parameter.
1321 (run_tests_with_arch): New declaration.
1322 * utils-selftests.c (_initialize_utils_selftests): Add names
1323 when registering selftests.
1324 * utils.c (_initialize_utils): Likewise.
1325 * unittests/array-view-selftests.c
1326 (_initialize_array_view_selftests): Likewise.
1327 * unittests/environ-selftests.c (_initialize_environ_selftests):
1328 Likewise.
1329 * unittests/function-view-selftests.c
1330 (_initialize_function_view_selftests): Likewise.
1331 * unittests/offset-type-selftests.c
1332 (_initialize_offset_type_selftests): Likewise.
1333 * unittests/optional-selftests.c
1334 (_initialize_optional_selftests): Likewise.
1335 * unittests/scoped_restore-selftests.c
1336 (_initialize_scoped_restore_selftests): Likewise.
1337 * NEWS: Document "maintenance selftest" and "maint info
1338 selftests".
1339
5846367a
SM
13402017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1341
1342 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
1343 scoped_restore.
1344
bd77e8ff
SM
13452017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1346
1347 * mi/mi-main.c (mi_load_progress): Make uiout variable
1348 a unique_ptr.
1349
26a67918
PA
13502017-09-15 Pedro Alves <palves@redhat.com>
1351
1352 * compile/compile-c-types.c (convert_enum, convert_int)
1353 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
1354
3f8a7804
SM
13552017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1356
1357 * dwarf2read.c (copy_string): Remove.
1358 (parse_macro_definition): Replace copy_string with savestring.
1359
8d200706
YQ
13602017-09-15 Yao Qi <yao.qi@linaro.org>
1361
1362 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
1363 gdb_target_obs.
1364 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
1365 Likewise.
1366 (i[34567]86-*-linux*): Likewise.
1367
d185219d
SM
13682017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1369
1370 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1371 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1372 <stack>: Change type to std::vector.
1373 <stack_len, stack_allocated>: Remove.
1374 <grow_stack>: Remove.
1375 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1376 (dwarf_expr_context::~dwarf_expr_context): Remove.
1377 (dwarf_expr_context::grow_stack): Remove.
1378 (dwarf_expr_context::push): Adjust.
1379 (dwarf_expr_context::pop): Adjust.
1380 (dwarf_expr_context::fetch): Adjust.
1381 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1382 (dwarf_expr_context::stack_empty_p): Adjust.
1383 (dwarf_expr_context::execute_stack_op): Adjust.
1384
eccd80d6
SM
13852017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1386
1387 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1388 return type to bool.
1389 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1390
69009882
SM
13912017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1392
1393 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1394 Change type to bool.
1395 (dwarf_stack_value) <in_stack_memory>: Likewise.
1396 (dwarf_expr_context) <push_address>: Change parameter type to
1397 bool.
1398 <fetch_in_stack_memory>: Change return type to bool.
1399 <push>: Change parameter type to bool.
1400 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1401 to bool.
1402 (dwarf_expr_context::push_address): Likewise.
1403 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1404 to bool.
1405 (dwarf_expr_context::execute_stack_op): Adjust.
1406 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1407
1e467161
SM
14082017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1409
1410 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1411 (struct dwarf_expr_context) <n_pieces>: Remove.
1412 <pieces>: Change type to std::vector.
1413 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1414 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1415 pieces.
1416 (dwarf_expr_context::add_piece): Adjust.
1417 * dwarf2loc.c (struct piece_closure): Initialize fields.
1418 <n_pieces>: Remove.
1419 <pieces>: Change type to std::vector.
1420 (allocate_piece_closure): Adjust, change parameter to
1421 std::vector rvalue and std::move it to piece_closure.
1422 (rw_pieced_value): Adjust.
1423 (check_pieced_synthetic_pointer): Adjust.
1424 (indirect_synthetic_pointer): Adjust.
1425 (coerce_pieced_ref): Adjust.
1426 (free_pieced_value_closure): Adjust. Use delete to free
1427 piece_closure.
1428 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1429 to allocate_piece_closure.
1430 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1431
0782db84
SM
14322017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1433
1434 * probe.h (probe_ops_cp): Remove typedef.
1435 (DEF_VEC_P (probe_ops_cp)): Remove.
1436 (all_probe_ops): Change type to std::vector.
1437 * probe.c (info_probes_for_ops): Adjust to vector change.
1438 (probe_linespec_to_ops): Likewise.
1439 (all_probe_ops): Change type to std::vector.
1440 (_initialize_probe): Adjust to vector change.
1441 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1442 * elfread.c (elf_get_probes): Likewise.
1443 * stap-probe.c (_initialize_stap_probe): Likewise.
1444
1eac6bea
SM
14452017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1446
1447 * probe.h (struct bound_probe): Define constructors.
1448 * probe.c (bound_probe_s): Remove typedef.
1449 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1450 (collect_probes): Change return type to std::vector, remove
1451 cleanup.
1452 (compare_probes): Return bool, change parameter type. Change
1453 semantic to "less than".
1454 (gen_ui_out_table_header_info): Change parameter to std::vector
1455 and update.
1456 (exists_probe_with_pops): Likewise.
1457 (info_probes_for_ops): Update to std::vector change.
1458 (enable_probes_command): Likewise.
1459 (disable_probes_command): Likewise.
1460
aaa63a31
SM
14612017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1462
1463 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1464 vec to std::vector.
1465 * probe.c (parse_probes_in_pspace): Update.
1466 (find_probes_in_objfile): Update.
1467 (find_probe_by_pc): Update.
1468 (collect_probes): Update.
1469 (probe_any_get_probes): Update.
1470 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1471 return type to reference to std::vector.
1472 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1473 std::vector and update.
1474 (dtrace_process_dof): Likewise.
1475 (dtrace_get_probes): Likewise.
1476 * elfread.c (elf_get_probes): Change return type to std::vector,
1477 store an std::vector in bfd_data.
1478 (probe_key_free): Update to std::vector.
1479 * stap-probe.c (handle_stap_probe): Change parameter to
1480 std::vector and update.
1481 (stap_get_probes): Likewise.
1482 * symfile-debug.c (debug_sym_get_probes): Change return type to
1483 std::vector and update.
1484
cb85b21b
TT
14852017-09-11 Tom Tromey <tom@tromey.com>
1486
1487 * breakpoint.c (program_breakpoint_here_p): Update.
1488 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1489 from make_show_memory_breakpoints_cleanup. Return a
1490 scoped_restore_tmpl<int>.
1491 (restore_show_memory_breakpoints): Remove.
1492 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1493 * mem-break.c (memory_validate_breakpoint): Update.
1494 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1495 (ia64_memory_remove_breakpoint): Update.
1496 (ia64_breakpoint_from_pc): Update.
1497 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1498 from make_show_memory_breakpoints_cleanup.
1499
8fbc99ef
TT
15002017-09-11 Tom Tromey <tom@tromey.com>
1501
1502 * d-namespace.c (d_lookup_symbol): Use std::string.
1503 (find_symbol_in_baseclass): Likewise.
1504
50feb4bd
TT
15052017-09-11 Tom Tromey <tom@tromey.com>
1506
1507 * ctf.c (ctf_start): Use std::string.
1508
c6dc63a1
TT
15092017-09-11 Tom Tromey <tom@tromey.com>
1510
1511 * ada-lang.c (is_known_support_routine): Update.
1512 (ada_unhandled_exception_name_addr_from_raise): Update.
1513 * guile/scm-frame.c (gdbscm_frame_name): Update.
1514 * python/py-frame.c (frapy_name): Update.
1515 (frapy_function): Update.
1516 * stack.h (find_frame_funname): Update.
1517 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1518 (print_frame): Update.
1519
d6b9b80f
TT
15202017-09-11 Tom Tromey <tom@tromey.com>
1521
1522 * findcmd.c (put_bits): Take a gdb::byte_vector.
1523 (parse_find_args): Return gdb::byte_vector. "args" now const.
1524 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1525 cleanups.
1526 (find_command): Update.
1527
a9921622
TT
15282017-09-11 Tom Tromey <tom@tromey.com>
1529
1530 * cli/cli-script.c (class scoped_restore_hook_in): New.
1531 (clear_hook_in_cleanup): Remove.
1532 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1533 scoped_restore_hook_in.
1534
be0d7abb
TT
15352017-09-11 Tom Tromey <tom@tromey.com>
1536
1537 * cli/cli-script.c (restore_interp): Remove.
1538 (read_command_lines): Use scoped_restore_interp.
1539 * interps.c (scoped_restore_interp::set_temp): Rename from
1540 interp_set_temp.
1541 * interps.h (class scoped_restore_interp): New.
1542 (interp_set_temp): Remove.
1543
00f675ff
TT
15442017-09-11 Tom Tromey <tom@tromey.com>
1545
1546 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1547 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1548 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1549 scoped_restore.
1550 (mi_cmd_break_insert_1): Update.
1551 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1552 scoped_restore.
1553
cb791d59
TT
15542017-09-11 Tom Tromey <tom@tromey.com>
1555
1556 * demangle.c (demangle_command): Update.
1557 * breakpoint.c (disable_command): Update.
1558 (enable_command): Update.
1559 (find_location_by_number): Make "number" const. Use
1560 get_number_trailer.
1561 * cli/cli-utils.c (extract_arg): Return std::string.
1562 * probe.c (parse_probe_linespec): Update. Change types.
1563 (collect_probes): Take string arguments.
1564 (parse_probe_linespec): Likewise.
1565 (info_probes_for_ops): Update.
1566 (enable_probes_command): Update.
1567 (disable_probes_command): Update.
1568 * break-catch-sig.c (catch_signal_split_args): Update.
1569 * mi/mi-parse.c (mi_parse): Update.
1570
2039bd9f
TT
15712017-09-11 Tom Tromey <tom@tromey.com>
1572
1573 * language.h (language_enum): Make argument const.
1574 * language.c (language_enum): Make argument const.
1575
f1735a53
TT
15762017-09-11 Tom Tromey <tom@tromey.com>
1577
1578 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1579 as function.
1580 (skip_to_space): Rename from skip_to_space_const.
1581 * common/common-utils.c (skip_to_space): New function.
1582 (skip_to_space): Rename from skip_to_space_const.
1583 * cli/cli-utils.h (get_number): Rename from get_number_const.
1584 (extract_arg): Rename from extract_arg_const.
1585 * cli/cli-utils.c (get_number): Rename from get_number_const.
1586 (extract_arg): Rename from extract_arg_const.
1587 (number_or_range_parser::get_number): Use ::get_number.
1588 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1589 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1590 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1591 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1592 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1593 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1594 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1595 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1596
7d221d74
TT
15972017-09-11 Tom Tromey <tom@tromey.com>
1598
1599 * python/python.c (do_start_initialization): Use
1600 py-event-types.def to initialize types.
1601 Define all object type structures.
1602 * python/python-internal.h: Don't declare event initialization
1603 functions.
1604 * python/py-threadevent.c (thread_event_object_type): Don't
1605 define.
1606 * python/py-stopevent.c (stop_event_object_type): Don't define.
1607 * python/py-signalevent.c (signal_event_object_type): Don't
1608 declare or define.
1609 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1610 (clear_objfiles_event_object_type): Don't declare or define.
1611 * python/py-infevents.c (inferior_call_pre_event_object_type)
1612 (inferior_call_post_event_object_type)
1613 (register_changed_event_object_type)
1614 (memory_changed_event_object_type): Don't declare or define.
1615 * python/py-inferior.c (new_thread_event_object_type)
1616 (new_inferior_event_object_type)
1617 (inferior_deleted_event_object_type): Don't declare or define.
1618 * python/py-exitedevent.c (exited_event_object_type): Don't
1619 declare or define.
1620 * python/py-evts.c (gdbpy_initialize_py_events): Use
1621 py-all-events.def.
1622 * python/py-events.h (thread_event_object_type): Don't declare.
1623 (events_object): Use py-all-events.def.
1624 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1625 py-event-types.def.
1626 * python/py-event-types.def: New file.
1627 * python/py-continueevent.c (create_continue_event_object): Don't
1628 declare or define.
1629 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1630 declare or define.
1631 * python/py-all-events.def: New file.
1632
35c61a1d
TT
16332017-09-11 Tom Tromey <tom@tromey.com>
1634
1635 * python/py-threadevent.c (create_thread_event_object): Return
1636 gdbpy_ref.
1637 * python/py-stopevent.h (create_stop_event_object)
1638 (create_breakpoint_event_object, create_signal_event_object):
1639 Update.
1640 * python/py-stopevent.c (create_stop_event_object): Return
1641 gdbpy_ref.
1642 (emit_stop_event): Update.
1643 * python/py-signalevent.c (create_signal_event_object): Return
1644 gdbpy_ref.
1645 * python/py-infevents.c (create_inferior_call_event_object):
1646 Update.
1647 * python/py-event.h (create_event_object)
1648 (create_thread_event_object): Update.
1649 * python/py-event.c (create_event_object): Return gdbpy_ref.
1650 * python/py-continueevent.c: Return gdbpy_ref.
1651 * python/py-bpevent.c (create_breakpoint_event_object): Return
1652 gdbpy_ref.
1653
7c96f8c1
TT
16542017-09-11 Tom Tromey <tom@tromey.com>
1655
1656 PR python/15622:
1657 * NEWS: Add entry.
1658 * python/python.c (do_start_initialization): Initialize new event
1659 types.
1660 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1661 (gdbpy_initialize_inferior_deleted_event)
1662 (gdbpy_initialize_new_thread_event): Declare.
1663 * python/py-threadevent.c (create_thread_event_object): Add option
1664 "thread" parameter.
1665 * python/py-inferior.c (new_thread_event_object_type)
1666 (new_inferior_event_object_type)
1667 (inferior_deleted_event_object_type): Declare.
1668 (python_new_inferior, python_inferior_deleted): New functions.
1669 (add_thread_object): Emit new_thread event.
1670 (gdbpy_initialize_inferior): Attach new functions to corresponding
1671 observers.
1672 (new_thread, new_inferior, inferior_deleted): Define new event
1673 types.
1674 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1675 registries.
1676 * python/py-events.h (events_object) <new_inferior,
1677 inferior_deleted, new_thread>: New fields.
1678 * python/py-event.h (create_thread_event_breakpoint): Add optional
1679 "thread" parameter.
1680
72542b8e
AB
16812017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1682
1683 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1684 check current_ui instead.
1685 (internal_vproblem): Likewise.
1686
0d64823e
SM
16872017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1688
1689 * thread.c (print_thread_info_1): Remove unnecessary calls to
1690 uiout->is_mi_like_p.
1691
eb1e02fd
TT
16922017-09-09 Tom Tromey <tom@tromey.com>
1693
1694 * namespace.h (add_using_directive): Update.
1695 * namespace.c (add_using_directive): Change type of excludes to
1696 std::vector.
1697 * dwarf2read.c (read_import_statement): Use std::vector.
1698 (read_namespace): Update.
1699 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1700
0fc21fd8
TT
17012017-09-09 Tom Tromey <tom@tromey.com>
1702
1703 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1704
49663d05
TT
17052017-09-09 Tom Tromey <tom@tromey.com>
1706
1707 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1708
0b868b60
TT
17092017-09-09 Tom Tromey <tom@tromey.com>
1710
1711 * stack.c (func_command): Use gdb::def_vector.
1712
c0470d48
TT
17132017-09-09 Tom Tromey <tom@tromey.com>
1714
1715 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1716 ui_out_emit_list, ui_out_emit_tuple.
1717 (mi_cmd_var_update): Likewise.
1718
ca5909c7
TT
17192017-09-09 Tom Tromey <tom@tromey.com>
1720
1721 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1722 ui_out_redirect_pop.
1723 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1724 ui_out_redirect_pop.
1725 * utils.c (do_ui_out_redirect_pop)
1726 (make_cleanup_ui_out_redirect_pop): Remove.
1727 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1728 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1729 * ui-out.h (ui_out_redirect_pop): New class.
1730
e6a2252a
TT
17312017-09-09 Tom Tromey <tom@tromey.com>
1732
1733 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1734 (list_available_thread_groups, mi_cmd_list_thread_groups)
1735 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1736 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1737 Likewise.
1738
393702cd
TT
17392017-09-09 Tom Tromey <tom@tromey.com>
1740
1741 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1742 ui_out_emit_tuple.
1743
76f9c9cf
TT
17442017-09-09 Tom Tromey <tom@tromey.com>
1745
1746 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1747 * stack.c (print_frame): Use ui_out_emit_tuple.
1748 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1749 (info_spu_mailbox_command, info_spu_dma_command)
1750 (info_spu_proxydma_command): Likewise.
1751 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1752 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1753 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1754 ui_out_emit_tuple.
1755 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1756
dc9fe180
TT
17572017-09-09 Tom Tromey <tom@tromey.com>
1758
1759 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1760 (class ui_out_emit_table): Update comment.
1761 * ui-out.c (do_cleanup_table_end)
1762 (make_cleanup_ui_out_table_begin_end): Remove.
1763 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1764 (info_spu_dma_cmdlist): Likewise.
1765 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1766 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1767 ui_out_emit_table.
1768
f8cc3da6
TT
17692017-09-09 Tom Tromey <tom@tromey.com>
1770
1771 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1772 ui_out_emit_list, gdb::optional.
1773
481695ed
JB
17742017-09-09 John Baldwin <jhb@FreeBSD.org>
1775
1776 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1777 prototype.
1778 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1779 prototype.
1780 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1781 prototype.
1782 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1783 * ada-exp.y: Remove _initialize_ada_exp prototype.
1784 * ada-lang.c: Remove _initialize_ada_language prototype.
1785 * ada-tasks.c: Remove _initialize_tasks prototype.
1786 * addrmap.c: Remove _initialize_addrmap prototype.
1787 * agent.c: Remove _initialize_agent prototype.
1788 * aix-thread.c: Remove _initialize_aix_thread prototype.
1789 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1790 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1791 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1792 prototype.
1793 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1794 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1795 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1796 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1797 prototype.
1798 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1799 prototype.
1800 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1801 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1802 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1803 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1804 prototype.
1805 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1806 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1807 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1808 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1809 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1810 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1811 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1812 prototype.
1813 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1814 prototype.
1815 * annotate.c: Remove _initialize_annotate prototype.
1816 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1817 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1818 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1819 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1820 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1821 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1822 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1823 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1824 prototype.
1825 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1826 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1827 * auto-load.c: Remove _initialize_auto_load prototype.
1828 * auxv.c: Remove _initialize_auxv prototype.
1829 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1830 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1831 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1832 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1833 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1834 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1835 prototype.
1836 * break-catch-throw.c: Remove _initialize_break_catch_throw
1837 prototype.
1838 * breakpoint.c: Remove _initialize_breakpoint prototype.
1839 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1840 * btrace.c: Remove _initialize_btrace prototype.
1841 * charset.c: Remove _initialize_charset prototype.
1842 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1843 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1844 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1845 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1846 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1847 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1848 * coffread.c: Remove _initialize_coffread prototype.
1849 * compile/compile.c: Remove _initialize_compile prototype.
1850 * complaints.c: Remove _initialize_complaints prototype.
1851 * completer.c: Remove _initialize_completer prototype.
1852 * copying.awk: Remove _initialize_copying prototype.
1853 * copying.c: Regenerate.
1854 * core-regset.c: Remove _initialize_core_regset prototype.
1855 * corefile.c: Remove _initialize_core prototype.
1856 * corelow.c: Remove _initialize_corelow prototype.
1857 * cp-abi.c: Remove _initialize_cp_abi prototype.
1858 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1859 * cp-support.c: Remove _initialize_cp_support prototype.
1860 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1861 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1862 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1863 * ctf.c: Remove _initialize_ctf prototype.
1864 * d-lang.c: Remove _initialize_d_language prototype.
1865 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1866 prototype.
1867 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1868 * dbxread.c: Remove _initialize_dbxread prototype.
1869 * dcache.c: Remove _initialize_dcache prototype.
1870 * demangle.c: Remove _initialize_demangler prototype.
1871 * disasm-selftests.c: Remove _initialize_disasm_selftests
1872 prototype.
1873 * disasm.c: Remove _initialize_disasm prototype.
1874 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1875 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1876 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1877 prototype.
1878 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1879 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1880 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1881 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1882 * elfread.c: Remove _initialize_elfread prototype.
1883 * exec.c: Remove _initialize_exec prototype.
1884 * extension.c: Remove _initialize_extension prototype.
1885 * f-lang.c: Remove _initialize_f_language prototype.
1886 * f-valprint.c: Remove _initialize_f_valprint prototype.
1887 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1888 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1889 * filesystem.c: Remove _initialize_filesystem prototype.
1890 * findcmd.c: Remove _initialize_mem_search prototype.
1891 * fork-child.c: Remove _initialize_fork_child prototype.
1892 * frame-base.c: Remove _initialize_frame_base prototype.
1893 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1894 * frame.c: Remove _initialize_frame prototype.
1895 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1896 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1897 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1898 * gcore.c: Remove _initialize_gcore prototype.
1899 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1900 * gdbarch.c: Regenerate.
1901 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1902 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1903 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1904 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1905 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1906 * go-lang.c: Remove _initialize_go_language prototype.
1907 * go32-nat.c: Remove _initialize_go32_nat prototype.
1908 * guile/guile.c: Remove _initialize_guile prototype.
1909 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1910 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1911 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1912 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1913 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1914 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1915 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1916 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1917 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1918 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1919 prototype.
1920 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1921 prototype.
1922 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1923 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1924 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1925 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1926 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1927 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1928 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1929 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1930 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1931 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1932 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1933 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1934 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1935 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1936 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1937 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1938 prototype.
1939 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1940 prototype.
1941 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
1942 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
1943 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
1944 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
1945 * infcall.c: Remove _initialize_infcall prototype.
1946 * infcmd.c: Remove _initialize_infcmd prototype.
1947 * inferior.c: Remove _initialize_inferiors prototype.
1948 * inflow.c: Remove _initialize_inflow prototype.
1949 * infrun.c: Remove _initialize_infrun prototype.
1950 * interps.c: Remove _initialize_interpreter prototype.
1951 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
1952 * jit.c: Remove _initialize_jit prototype.
1953 * language.c: Remove _initialize_language prototype.
1954 * linux-fork.c: Remove _initialize_linux_fork prototype.
1955 * linux-nat.c: Remove _initialize_linux_nat prototype.
1956 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
1957 * linux-thread-db.c: Remove _initialize_thread_db prototype.
1958 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
1959 * m2-lang.c: Remove _initialize_m2_language prototype.
1960 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
1961 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
1962 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
1963 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
1964 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
1965 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1966 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1967 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
1968 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
1969 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
1970 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1971 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1972 * machoread.c: Remove _initialize_machoread prototype.
1973 * macrocmd.c: Remove _initialize_macrocmd prototype.
1974 * macroscope.c: Remove _initialize_macroscope prototype.
1975 * maint.c: Remove _initialize_maint_cmds prototype.
1976 * mdebugread.c: Remove _initialize_mdebugread prototype.
1977 * memattr.c: Remove _initialize_mem prototype.
1978 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
1979 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
1980 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
1981 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
1982 * mi/mi-main.c: Remove _initialize_mi_main prototype.
1983 * microblaze-linux-tdep.c: Remove
1984 _initialize_microblaze_linux_tdep prototype.
1985 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
1986 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
1987 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
1988 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
1989 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
1990 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
1991 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
1992 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
1993 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
1994 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
1995 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
1996 prototype.
1997 * mipsread.c: Remove _initialize_mipsread prototype.
1998 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
1999 prototype.
2000 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
2001 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
2002 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
2003 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
2004 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
2005 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
2006 prototype.
2007 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
2008 * nto-procfs.c: Remove _initialize_procfs prototype.
2009 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
2010 * objc-lang.c: Remove _initialize_objc_language prototype.
2011 * objfiles.c: Remove _initialize_objfiles prototype.
2012 * observer.c: Remove observer_test_first_notification_function,
2013 observer_test_second_notification_function,
2014 observer_test_third_notification_function, and
2015 _initialize_observer prototypes.
2016 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
2017 * osabi.c: Remove _initialize_gdb_osabi prototype.
2018 * osdata.c: Remove _initialize_osdata prototype.
2019 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
2020 * parse.c: Remove _initialize_parse prototype.
2021 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
2022 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
2023 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
2024 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
2025 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
2026 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
2027 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
2028 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
2029 * printcmd.c: Remove _initialize_printcmd prototype.
2030 * probe.c: Remove _initialize_probe prototype.
2031 * proc-api.c: Remove _initialize_proc_api prototype.
2032 * proc-events.c: Remove _initialize_proc_events prototype.
2033 * proc-service.c: Remove _initialize_proc_service prototype.
2034 * procfs.c: Remove _initialize_procfs prototype.
2035 * psymtab.c: Remove _initialize_psymtab prototype.
2036 * python/python.c: Remove _initialize_python prototype.
2037 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
2038 * record-btrace.c: Remove _initialize_record_btrace prototype.
2039 * record-full.c: Remove _initialize_record_full prototype.
2040 * record.c: Remove _initialize_record prototype.
2041 * regcache.c: Remove _initialize_regcache prototype.
2042 * reggroups.c: Remove _initialize_reggroup prototype.
2043 * remote-notif.c: Remove _initialize_notif prototype.
2044 * remote-sim.c: Remove _initialize_remote_sim prototype.
2045 * remote.c: Remove _initialize_remote prototype.
2046 * reverse.c: Remove _initialize_reverse prototype.
2047 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
2048 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
2049 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
2050 prototype.
2051 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
2052 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
2053 * rust-exp.y: Remove _initialize_rust_exp prototype.
2054 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
2055 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
2056 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
2057 * score-tdep.c: Remove _initialize_score_tdep prototype.
2058 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
2059 prototype.
2060 * ser-go32.c: Remove _initialize_ser_dos prototype.
2061 * ser-mingw.c: Remove _initialize_ser_windows prototype.
2062 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
2063 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
2064 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
2065 * serial.c: Remove _initialize_serial prototype.
2066 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
2067 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
2068 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
2069 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
2070 * skip.c: Remove _initialize_step_skip prototype.
2071 * sol-thread.c: Remove _initialize_sol_thread prototype.
2072 * solib-aix.c: Remove _initialize_solib_aix prototype.
2073 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
2074 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
2075 * solib-frv.c: Remove _initialize_frv_solib prototype.
2076 * solib-spu.c: Remove _initialize_spu_solib prototype.
2077 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
2078 * solib-target.c: Remove _initialize_solib_target prototype.
2079 * solib.c: Remove _initialize_solib prototype.
2080 * source.c: Remove _initialize_source prototype.
2081 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
2082 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
2083 prototype.
2084 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
2085 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
2086 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
2087 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
2088 prototype.
2089 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
2090 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
2091 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
2092 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
2093 prototype.
2094 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
2095 prototype.
2096 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
2097 prototype.
2098 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
2099 prototype.
2100 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
2101 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
2102 prototype.
2103 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
2104 prototype.
2105 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
2106 prototype.
2107 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
2108 prototype.
2109 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
2110 prototype.
2111 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
2112 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
2113 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
2114 * stabsread.c: Remove _initialize_stabsread prototype.
2115 * stack.c: Remove _initialize_stack prototype.
2116 * stap-probe.c: Remove _initialize_stap_probe prototype.
2117 * std-regs.c: Remove _initialize_frame_reg prototype.
2118 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
2119 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
2120 * symfile.c: Remove _initialize_symfile prototype.
2121 * symmisc.c: Remove _initialize_symmisc prototype.
2122 * symtab.c: Remove _initialize_symtab prototype.
2123 * target-dcache.c: Remove _initialize_target_dcache prototype.
2124 * target-descriptions.c: Remove _initialize_target_descriptions
2125 prototype.
2126 * thread.c: Remove _initialize_thread prototype.
2127 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
2128 prototype.
2129 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
2130 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
2131 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
2132 prototype.
2133 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
2134 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
2135 * tracefile.c: Remove _initialize_tracefile prototype.
2136 * tracepoint.c: Remove _initialize_tracepoint prototype.
2137 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
2138 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
2139 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
2140 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
2141 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
2142 * tui/tui-win.c: Remove _initialize_tui_win prototype.
2143 * tui/tui.c: Remove _initialize_tui prototype.
2144 * typeprint.c: Remove _initialize_typeprint prototype.
2145 * user-regs.c: Remove _initialize_user_regs prototype.
2146 * utils.c: Remove _initialize_utils prototype.
2147 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
2148 * valarith.c: Remove _initialize_valarith prototype.
2149 * valops.c: Remove _initialize_valops prototype.
2150 * valprint.c: Remove _initialize_valprint prototype.
2151 * value.c: Remove _initialize_values prototype.
2152 * varobj.c: Remove _initialize_varobj prototype.
2153 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
2154 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
2155 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
2156 * windows-nat.c: Remove _initialize_windows_nat,
2157 _initialize_check_for_gdb_ini, and _initialize_loadable
2158 prototypes.
2159 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
2160 * xcoffread.c: Remove _initialize_xcoffread prototype.
2161 * xml-support.c: Remove _initialize_xml_support prototype.
2162 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
2163 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
2164 prototype.
2165 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
2166 prototype.
2167 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
2168
a611b5cb
KS
21692017-09-08 Keith Seitz <keiths@redhat.com>
2170
2171 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
2172 field.
2173
469412dd
CW
21742017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
2175
2176 * f-valprint.c (f_val_print): Remove check for one byte
2177 sized integers. Remove printing of character type.
2178
a5ad232b
FP
21792017-09-08 Frank Penczek <frank.penczek@intel.com>
2180 Christoph Weinmann <christoph.t.weinmann@intel.com>
2181 Bernhard Heckel <bernhard.heckel@intel.com>
2182
2183 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
2184 to maintain proper indentation when printing pointers/refs.
2185
e5014227
JB
21862017-09-07 Joel Brobecker <brobecker@adacore.com>
2187
2188 GDB 8.0.1 released.
2189
63c99141
JB
21902017-09-07 Joel Brobecker <brobecker@adacore.com>
2191
2192 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
2193
69c1e056
TT
21942017-09-05 Tom Tromey <tom@tromey.com>
2195
2196 * parse.c (funcall_chain): Now a std::vector.
2197 (start_arglist, end_arglist): Simplify.
2198 (free_funcalls): Remove.
2199 (parse_exp_in_context_1): Remove cleanup.
2200
fef704bf
TT
22012017-09-05 Tom Tromey <tom@tromey.com>
2202
2203 * go-exp.y (go_parse): Don't create a cleanup.
2204
5613c585
TT
22052017-09-05 Tom Tromey <tom@tromey.com>
2206
2207 * d-exp.y (PrimaryExpression): Use std::string.
2208 (d_parse): Don't create a cleanup.
2209
eae49211
TT
22102017-09-05 Tom Tromey <tom@tromey.com>
2211
2212 * utils.c (do_clear_parser_state): Remove.
2213 (make_cleanup_clear_parser_state): Remove.
2214 * p-exp.y (pascal_parse): Use scoped_restore.
2215 * m2-exp.y (m2_parse): Use scoped_restore.
2216 * f-exp.y (f_parse): Use scoped_restore.
2217 * d-exp.y (d_parse): Use scoped_restore.
2218 * c-exp.y (c_parse): Use scoped_restore.
2219 * ada-exp.y (ada_parse): Use scoped_restore.
2220 * utils.h (make_cleanup_clear_parser_state): Remove.
2221
73b9be8b
KS
22222017-09-06 Keith Seitz <keiths@redhat.com>
2223
2224 * dwarf2read.c (dw2_linkage_name_attr): New function.
2225 (dw2_linkage_name): New function.
2226 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
2227 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
2228 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
2229
a102602b
KR
22302017-09-06 Kamil Rytarowski <n54@gmx.com>
2231
2232 * config/djgpp/djconfig.sh: Correct shell portability issue.
2233
28ad437d
KR
22342017-09-06 Kamil Rytarowski <n54@gmx.com>
2235
2236 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
2237
351787dd
JB
22382017-09-06 John Baldwin <jhb@FreeBSD.org>
2239
2240 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2241 * NEWS: Mention new FreeBSD/mips native configuration.
2242 * configure.host: Add aarch64*-*-freebsd*.
2243 * configure.nat: Likewise.
2244 * aarch64-fbsd-nat.c: New file.
2245
c0f84956
JB
22462017-09-06 John Baldwin <jhb@FreeBSD.org>
2247
2248 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
2249 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
2250 * NEWS: Mention new FreeBSD/aarch64 target.
2251 * configure.tgt: Add aarch64*-*-freebsd*.
2252 * aarch64-fbsd-tdep.c: New file.
2253 * aarch64-fbsd-tdep.h: New file.
2254
7610297a
KR
22552017-09-06 Kamil Rytarowski <n54@gmx.com>
2256
2257 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
2258
fbd1b771
JK
22592017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2260
2261 * parse.c (find_minsym_type_and_address): Don't relocate addresses
2262 of TLS symbols.
2263
5ca79eae
PW
22642017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2265
2266 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
2267 call.
2268
bf93d7ba
SM
22692017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2270
2271 * infrun.c (follow_exec): Call add_thread after
2272 target_find_description.
2273
1bb7c059
SM
22742017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2275
2276 * infrun.c (handle_inferior_event_1): When exec'ing, read
2277 stop_pc after follow_exec.
2278
fc809827
SM
22792017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2280
2281 * remote.c (process_g_packet): Update error message.
2282
d2fcdd85
YQ
22832017-09-05 Yao Qi <yao.qi@linaro.org>
2284
2285 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
2286 targets.
2287
e69570ee
PA
22882017-09-05 Pedro Alves <palves@redhat.com>
2289
2290 * eval.c (eval_call, evaluate_funcall): New functions, factored
2291 out from ...
2292 (evaluate_subexp_standard): ... this.
2293
22916b07
YQ
22942017-09-05 Yao Qi <yao.qi@linaro.org>
2295
2296 * amd64-tdep.c (amd64_target_description): Create target
2297 descriptions.
2298 (_initialize_amd64_tdep): Don't call functions
2299 initialize_tdesc_amd64_*. Add self tests.
2300 * arch/amd64.c (amd64_create_target_description): Add parameter
2301 is_linux. Call set_tdesc_osabi if is_linux is true.
2302 * arch/amd64.h (amd64_create_target_description): Update the
2303 declaration.
2304 * arch/i386.c (i386_create_target_description): Add parameter
2305 is_linux. Call set_tdesc_osabi if is_linux is true.
2306 * arch/i386.h (i386_create_target_description): Update
2307 declaration.
2308 * configure.tgt: Add i386.o to gdb_target_obs.
2309 * features/Makefile (XMLTOC): Remove i386/*.xml.
2310 * features/i386/amd64-avx-avx512.c: Remove.
2311 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
2312 * features/i386/amd64-avx-mpx.c: Remove.
2313 * features/i386/amd64-avx.c: Remove.
2314 * features/i386/amd64-mpx.c: Remove.
2315 * features/i386/amd64.c: Remove.
2316 * features/i386/i386-avx-avx512.c: Remove.
2317 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
2318 * features/i386/i386-avx-mpx.c: Remove.
2319 * features/i386/i386-avx.c: Remove.
2320 * features/i386/i386-mmx.c: Remove.
2321 * features/i386/i386-mpx.c: Remove.
2322 * features/i386/i386.c: Remove.
2323 * i386-tdep.c: Don't include features/i386/i386*.c., include
2324 target-descriptions.h and arch/i386.h.
2325 (i386_target_description): Create target descriptions.
2326 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
2327 functions. Do self tests.
2328
0854b7b1
YQ
23292017-09-05 Yao Qi <yao.qi@linaro.org>
2330
2331 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
2332 * features/i386/amd64-avx-avx512-linux.c: Removed.
2333 * features/i386/amd64-avx-linux.c: Removed.
2334 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
2335 * features/i386/amd64-avx-mpx-linux.c: Removed.
2336 * features/i386/amd64-linux.c: Removed.
2337 * features/i386/amd64-mpx-linux.c: Removed.
2338 * features/i386/x32-avx-avx512-linux.c: Removed.
2339 * features/i386/x32-avx-linux.c: Removed.
2340 * features/i386/x32-linux.c: Removed.
2341
b4570e4b
YQ
23422017-09-05 Yao Qi <yao.qi@linaro.org>
2343
2344 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
2345 features/i386/*.c.
2346 (amd64_linux_read_description): Call
2347 amd64_create_target_description.
2348 * arch/amd64.c: New file.
2349 * arch/amd64.h: New file.
2350 * configure.tgt (x86_64-*-linux*): Append amd64.o.
2351 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
2352
6c73f67f
YQ
23532017-09-05 Yao Qi <yao.qi@linaro.org>
2354
2355 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
2356 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
2357 (amd64_linux_read_description): Create target descriptions.
2358 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
2359 functions. Add unit tests.
2360 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
2361 x32-core.xml.
2362 * features/i386/64bit-avx.c: Generated.
2363 * features/i386/64bit-avx512.c: Generated.
2364 * features/i386/64bit-core.c: Generated.
2365 * features/i386/64bit-linux.c: Generated.
2366 * features/i386/64bit-mpx.c: Generated.
2367 * features/i386/64bit-pkeys.c: Generated.
2368 * features/i386/64bit-segments.c: Generated.
2369 * features/i386/64bit-sse.c: Generated.
2370 * features/i386/x32-core.c: Generated.
2371 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2372 c files for amd64-linux and x32-linux.
2373
9d3d478b
YQ
23742017-09-05 Yao Qi <yao.qi@linaro.org>
2375
2376 * amd64-linux-tdep.c (amd64_linux_read_description): New
2377 function.
2378 (amd64_linux_core_read_description): Call
2379 amd64_linux_read_description.
2380 (amd64_linux_init_abi): Likewise.
2381 (amd64_x32_linux_init_abi): Likewise.
2382 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2383 * x86-linux-nat.c (x86_linux_read_description): Call
2384 amd64_linux_read_description.
2385
b9f1d50f
YQ
23862017-09-05 Yao Qi <yao.qi@linaro.org>
2387
2388 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2389 comments.
2390
188c9e6d
YQ
23912017-09-05 Yao Qi <yao.qi@linaro.org>
2392
2393 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2394 * features/i386/i386-avx-avx512-linux.c: Remove.
2395 * features/i386/i386-avx-linux.c: Remove.
2396 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2397 * features/i386/i386-avx-mpx-linux.c: Remove.
2398 * features/i386/i386-linux.c: Remove.
2399 * features/i386/i386-mmx-linux.c: Remove.
2400 * features/i386/i386-mpx-linux.c: Remove.
2401
5f035c07
YQ
24022017-09-05 Yao Qi <yao.qi@linaro.org>
2403
2404 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2405 (SFILES): Add arch/i386.c.
2406 (HFILES_NO_SRCDIR): Add arch/i386.h.
2407 * arch/i386.c: New file.
2408 * arch/i386.h: New file.
2409 * arch/tdesc.h (allocate_target_description): Declare.
2410 (set_tdesc_architecture): Declare.
2411 (set_tdesc_osabi): Declare.
2412 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2413 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2414 include arch/i386.h.
2415 (i386_linux_read_description): Remove code and call
2416 i386_create_target_description.
2417 (set_tdesc_architecture): New function.
2418 (set_tdesc_osabi): New function.
2419 * target-descriptions.h (allocate_target_description): Remove.
2420
0abe8a89
YQ
24212017-09-05 Yao Qi <yao.qi@linaro.org>
2422
2423 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2424 * target-descriptions.c (tdesc_create_feature): Likewise, and
2425 adjust code.
2426 * features/i386/32bit-avx.c: Re-generated.
2427 * features/i386/32bit-avx512.c: Re-generated.
2428 * features/i386/32bit-core.c: Re-generated.
2429 * features/i386/32bit-linux.c: Re-generated.
2430 * features/i386/32bit-mpx.c: Re-generated.
2431 * features/i386/32bit-pkeys.c: Re-generated.
2432 * features/i386/32bit-sse.c: Re-generated.
2433
0a188386
YQ
24342017-09-05 Yao Qi <yao.qi@linaro.org>
2435
2436 * regformats/regdef.h (struct reg): Override operator == and !=.
2437
f49ff000
YQ
24382017-09-05 Yao Qi <yao.qi@linaro.org>
2439
2440 * arch/tdesc.h: New file.
2441 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2442 * target-descriptions.c: Update comments.
2443 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2444 declarations.
2445 * features/i386/32bit-avx.c: Re-generated.
2446 * features/i386/32bit-avx512.c: Re-generated.
2447 * features/i386/32bit-core.c: Re-generated.
2448 * features/i386/32bit-linux.c: Re-generated.
2449 * features/i386/32bit-mpx.c: Re-generated.
2450 * features/i386/32bit-pkeys.c: Re-generated.
2451 * features/i386/32bit-sse.c: Re-generated.
2452
f7000548
YQ
24532017-09-05 Yao Qi <yao.qi@linaro.org>
2454
2455 * regformats/regdat.sh: Update generated code.
2456
c9a5e2a5
YQ
24572017-09-05 Yao Qi <yao.qi@linaro.org>
2458
2459 * regformats/regdat.sh: Adjust code order.
2460
d6b687ac
SM
24612017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2462
2463 * expprint.c (dump_subexp_body_standard): Use constant format
2464 string in fprintf_filtered call.
2465
a379bfd0
JB
24662017-09-04 John Baldwin <jhb@FreeBSD.org>
2467
2468 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2469 NetBSD/i386.
2470 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2471
f7efc967
JB
24722017-09-04 John Baldwin <jhb@FreeBSD.org>
2473
2474 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2475
c49fbc6c
JB
24762017-09-04 John Baldwin <jhb@FreeBSD.org>
2477
2478 * bsd-kvm.o: Define _KMEMUSER.
2479 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2480 * configure: Regenerate.
2481
26562e73
JB
24822017-09-04 John Baldwin <jhb@FreeBSD.org>
2483
2484 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2485 * i386-fbsd-nat.c: Likewise.
2486
31cf1487
JB
24872017-09-04 John Baldwin <jhb@FreeBSD.org>
2488
2489 * unittests/array-view-selftests.c: Add include of <array>.
2490
5b9f8a7c
JB
24912017-09-04 John Baldwin <jhb@FreeBSD.org>
2492
2493 * spu-tdep.c (flush_ea_cache): Add missing argument to
2494 call_function_by_hand.
2495
d69cf9b2
PA
24962017-09-04 Pedro Alves <palves@redhat.com>
2497
2498 * NEWS (Safer support for debugging with no debug info): New.
2499
3693fdb3
PA
25002017-09-04 Pedro Alves <palves@redhat.com>
2501
2502 * c-exp.y (function_method, function_method_void): Add current
2503 instance flags to TYPE_INSTANCE.
2504 * dwarf2read.c (check_modifier): New.
2505 (compute_delayed_physnames): Assert that only C++ adds delayed
2506 physnames. Mark fn_fields as const/volatile depending on
2507 physname.
2508 * eval.c (make_params): New type_instance_flags parameter. Use
2509 it as the new type's instance flags.
2510 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2511 flags element and pass it to make_params.
2512 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2513 instance flags element.
2514 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2515 * gdbtypes.h: Include "enum-flags.h".
2516 (type_instance_flags): New enum-flags type.
2517 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2518 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2519 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2520 (follow_type_instance_flags): New function.
2521 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2522 * parser-defs.h (follow_type_instance_flags): Declare.
2523 * valops.c (value_struct_elt_for_reference): const/volatile must
2524 match too.
2525
e68cb8e0
PA
25262017-09-04 Pedro Alves <palves@redhat.com>
2527
2528 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2529 function/method scopes; lookup the nested name as a function local
2530 static variable.
2531
858be34c
PA
25322017-09-04 Pedro Alves <palves@redhat.com>
2533
2534 (%type <voidval>): Add function_method.
2535 * c-exp.y (exp): New production for calls with no arguments.
2536 (function_method, function_method_void_or_typelist): New
2537 productions.
2538 (exp): New production for "method()::static_var".
2539 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2540 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2541 Handle OP_FUNC_STATIC_VAR.
2542 * parse.c (operator_length_standard):
2543 Handle OP_FUNC_STATIC_VAR.
2544
dd5901a6
PA
25452017-09-04 Pedro Alves <palves@redhat.com>
2546
2547 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2548 handling.
2549 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2550 Ditto.
2551 * parse.c (operator_length_standard, operator_check_standard):
2552 Ditto.
2553 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2554
46a4882b
PA
25552017-09-04 Pedro Alves <palves@redhat.com>
2556
2557 * ax-gdb.c: Include "typeprint.h".
2558 (gen_expr_for_cast): New function.
2559 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2560 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2561 type is unknown.
2562 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2563 nodebug_data_symbol.
2564 * eval.c: Include "typeprint.h".
2565 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2566 Error out if symbol has unknown type.
2567 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2568 evaluate_subexp_for_cast.
2569 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2570 OP_VAR_MSYM_VALUE.
2571 (evaluate_subexp_for_cast): New function.
2572 * gdbtypes.c (init_nodebug_var_type): New function.
2573 (objfile_type): Use it to initialize types of variables with no
2574 debug info.
2575 * typeprint.c (error_unknown_type): New.
2576 * typeprint.h (error_unknown_type): New declaration.
2577 * compile/compile-c-types.c (convert_type_basic): Handle
2578 TYPE_CODE_ERROR; warn and fallback to int for variables with
2579 unknown type.
2580
fe13dfec
PA
25812017-09-04 Pedro Alves <palves@redhat.com>
2582
2583 * eval.c (evaluate_var_value): New function, factored out from ...
2584 (evaluate_subexp_standard): ... here.
2585
d008ee21
PA
25862017-09-04 Pedro Alves <palves@redhat.com>
2587
2588 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2589 Remove useless assignments to 'op'.
2590
827d0c51
PA
25912017-09-04 Pedro Alves <palves@redhat.com>
2592
2593 * eval.c (eval_skip_value): New function.
2594 (evaluate_subexp_standard): Use it.
2595
2c5a2be1
PA
25962017-09-04 Pedro Alves <palves@redhat.com>
2597
2598 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2599 function name from symbol/minsym and pass it to
2600 error_call_unknown_return_type.
2601
74ea4be4
PA
26022017-09-04 Pedro Alves <palves@redhat.com>
2603
2604 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2605 * ax-gdb.c (gen_msym_var_ref): New function.
2606 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2607 * eval.c (evaluate_var_msym_value): New function.
2608 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2609 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2610 to call_function_by_hand.
2611 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2612 Handle OP_VAR_MSYM_VALUE.
2613 (union exp_element) <msymbol>: New field.
2614 * minsyms.h (struct type): Forward declare.
2615 (find_minsym_type_and_address): Declare.
2616 * parse.c (write_exp_elt_msym): New function.
2617 (write_exp_msymbol): Delete, refactored as ...
2618 (find_minsym_type_and_address): ... this new function.
2619 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2620 (operator_length_standard, operator_check_standard): Handle
2621 OP_VAR_MSYM_VALUE.
2622 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2623
7022349d
PA
26242017-09-04 Pedro Alves <palves@redhat.com>
2625
2626 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2627 TYPE_GNU_IFUNC specially here. Throw error if return type is
2628 unknown.
2629 * ada-typeprint.c (print_func_type): Handle functions with unknown
2630 return type.
2631 * c-typeprint.c (c_type_print_base): Handle functions and methods
2632 with unknown return type.
2633 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2634 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2635 * compile/compile-c-types.c: Include "objfiles.h".
2636 (convert_func): For functions with unknown return type, warn and
2637 default to int.
2638 * compile/compile-object-run.c (compile_object_run): Adjust call
2639 to call_function_by_hand_dummy.
2640 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2641 call_function_by_hand.
2642 * eval.c (evaluate_subexp_standard): Adjust calls to
2643 call_function_by_hand. Handle functions and methods with unknown
2644 return type. Pass expect_type to call_function_by_hand.
2645 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2646 return type.
2647 * gcore.c (call_target_sbrk): Adjust call to
2648 call_function_by_hand.
2649 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2650 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2651 an integer address type instead of nodebug.
2652 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2653 call_function_by_hand.
2654 * infcall.c (error_call_unknown_return_type): New function.
2655 (call_function_by_hand): New "default_return_type" parameter.
2656 Pass it down.
2657 (call_function_by_hand_dummy): New "default_return_type"
2658 parameter. Use it instead of defaulting to int. If there's no
2659 default and the return type is unknown, throw an error. If
2660 there's a default return type, and the called function has no
2661 debug info, then assume the function is prototyped.
2662 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2663 New "default_return_type" parameter.
2664 (error_call_unknown_return_type): New declaration.
2665 * linux-fork.c (call_lseek): Cast return type of lseek.
2666 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2667 call_function_by_hand.
2668 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2669 calls to call_function_by_hand.
2670 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2671 return type.
2672 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2673 (value_nsstring, print_object_command): Adjust calls to
2674 call_function_by_hand.
2675 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2676 functions with unknown return type.
2677 (pascal_type_print_func_varspec_suffix): New function.
2678 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2679 TYPE_CODE_METHOD>: Use it.
2680 * python/py-value.c (valpy_call): Adjust call to
2681 call_function_by_hand.
2682 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2683 call_function_by_hand.
2684 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2685 call_function_by_hand.
2686 * valops.c (value_allocate_space_in_inferior): Adjust call to
2687 call_function_by_hand.
2688 * typeprint.c (type_print_unknown_return_type): New function.
2689 * typeprint.h (type_print_unknown_return_type): New declaration.
2690
54990598
PA
26912017-09-04 Pedro Alves <palves@redhat.com>
2692
2693 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2694 types with more than one parameter as prototyped.
2695
9a24775b
PA
26962017-09-04 Pedro Alves <palves@redhat.com>
2697
2698 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2699 (disassemble_command): Use gdb_disassembly_flags instead of bare
2700 int.
2701 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2702 (dump_insns, do_mixed_source_and_assembly_deprecated)
2703 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2704 Use gdb_disassembly_flags instead of bare int.
2705 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2706 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2707 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2708 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2709 (enum gdb_disassembly_flag): ... values of this new enumeration.
2710 (gdb_disassembly_flags): Define.
2711 (gdb_disassembly)
2712 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2713 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2714 gdb_disassembly_flags instead of bare int.
2715 * record-btrace.c (btrace_insn_history)
2716 (record_btrace_insn_history, record_btrace_insn_history_range)
2717 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2718 instead of bare int.
2719 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2720 Use gdb_disassembly_flags instead of bare int.
2721 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2722 Define.
2723 * target-delegates.c: Regenerate.
2724 * target.c (target_insn_history, target_insn_history_from)
2725 (target_insn_history_range): Use gdb_disassembly_flags instead of
2726 bare int.
2727 * target.h: Include "disasm.h".
2728 (struct target_ops) <to_insn_history, to_insn_history_from,
2729 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2730 int.
2731 (target_insn_history, target_insn_history_from)
2732 (target_insn_history_range): Use gdb_disassembly_flags instead of
2733 bare int.
2734
80a65e9b
SM
27352017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2736
2737 * cli/cli-script.c (build_command_line): For if/while commands,
2738 check whether args is empty.
2739
6b66338c
SM
27402017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2741
2742 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2743 (enum command_control_type): Likewise.
2744 (struct command_line): Likewise.
2745 (free_command_lines): Likewise.
2746 (struct command_lines_deleter): Likewise.
2747 (command_line_up): Likewise.
2748 (read_command_lines): Likewise.
2749 (read_command_lines_1): Likewise.
2750 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2751 (enum command_control_type): Likewise.
2752 (struct command_line): Likewise.
2753 (free_command_lines): Likewise.
2754 (struct command_lines_deleter): Likewise.
2755 (command_line_up): Likewise.
2756 (read_command_lines): Likewise.
2757 (read_command_lines_1): Likewise.
2758 * breakpoint.h: Include cli/cli-script.h.
2759 * extension-priv.h: Likewise.
2760 * gdbcmd.h: Likewise.
2761
51abb421
PA
27622017-09-04 Pedro Alves <palves@redhat.com>
2763
2764 * ada-lang.c (is_known_support_routine): Move sal declaration to
2765 where it is initialized.
2766 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2767 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2768 (clear_command, update_static_tracepoint): Remove init_sal
2769 references. Move declarations closer to initializations.
2770 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2771 initializations.
2772 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2773 references. Move sal declarations closer to initializations.
2774 * frame.c (find_frame_sal): Return a symtab_and_line via function
2775 return instead of output parameter. Remove init_sal references.
2776 * frame.h (find_frame_sal): Return a symtab_and_line via function
2777 return instead of output parameter.
2778 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2779 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2780 instead of memset.
2781 (gdbscm_find_pc_line): Remove init_sal reference.
2782 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2783 references. Move declarations closer to initializations.
2784 * infcmd.c (set_step_frame): Update. Move declarations closer to
2785 initializations.
2786 (finish_backward): Remove init_sal references. Move declarations
2787 closer to initializations.
2788 * infrun.c (process_event_stop_test, handle_step_into_function)
2789 (insert_hp_step_resume_breakpoint_at_frame)
2790 (insert_step_resume_breakpoint_at_caller): Likewise.
2791 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2792 (symbol_to_sal): Likewise.
2793 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2794 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2795 to its initialization.
2796 * reverse.c (save_bookmark_command): Use new/delete. Remove
2797 init_sal references. Move declarations closer to initializations.
2798 * source.c (get_current_source_symtab_and_line): Remove brace
2799 initialization.
2800 (set_current_source_symtab_and_line): Now takes the sal by const
2801 reference. Remove brace initialization.
2802 (line_info): Remove init_sal reference.
2803 * source.h (set_current_source_symtab_and_line): Now takes a
2804 symtab_and_line via const reference.
2805 * stack.c (set_current_sal_from_frame): Adjust.
2806 (print_frame_info): Adjust.
2807 (get_last_displayed_sal): Return the sal via function return
2808 instead of via output parameter. Simplify.
2809 (frame_info): Adjust.
2810 * stack.h (get_last_displayed_sal): Return the sal via function
2811 return instead of via output parameter.
2812 * symtab.c (init_sal): Delete.
2813 (find_pc_sect_line): Remove init_sal references. Move
2814 declarations closer to initializations.
2815 (find_function_start_sal): Remove init_sal references. Move
2816 declarations closer to initializations.
2817 * symtab.h (struct symtab_and_line): In-class initialize all
2818 fields.
2819 * tracepoint.c (set_traceframe_context)
2820 (print_one_static_tracepoint_marker): Remove init_sal references.
2821 Move declarations closer to initializations.
2822 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2823 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2824 declarations closer to initializations.
2825 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2826 init_sal references. Adjust.
2827
6c5b2ebe
PA
28282017-09-04 Pedro Alves <palves@redhat.com>
2829
2830 * ax-gdb.c (agent_command_1): Use range-for.
2831 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2832 * breakpoint.c: Include "common/array-view.h".
2833 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2834 parameter from struct symtabs_and_lines to
2835 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2836 (breakpoint_sals_to_pc): Change sals parameter from struct
2837 symtabs_and_lines to std::vector reference.
2838 (check_fast_tracepoint_sals): Change sals parameter from struct
2839 symtabs_and_lines to std::array_view. Use range-for.
2840 (decode_static_tracepoint_spec): Return a std::vector instead of
2841 symtabs_and_lines. Update.
2842 (create_breakpoint): Update.
2843 (break_range_command, until_break_command, clear_command): Update.
2844 (base_breakpoint_decode_location, bkpt_decode_location)
2845 (bkpt_probe_create_sals_from_location)
2846 (bkpt_probe_decode_location, tracepoint_decode_location)
2847 (tracepoint_probe_decode_location)
2848 (strace_marker_create_sals_from_location): Return a std::vector
2849 instead of symtabs_and_lines.
2850 (strace_marker_create_breakpoints_sal): Update.
2851 (strace_marker_decode_location): Return a std::vector instead of
2852 symtabs_and_lines. Update.
2853 (update_breakpoint_locations): Change struct symtabs_and_lines
2854 parameters to gdb::array_view. Adjust.
2855 (location_to_sals): Return a std::vector instead of
2856 symtabs_and_lines. Update.
2857 (breakpoint_re_set_default): Use std::vector instead of struct
2858 symtabs_and_lines.
2859 (decode_location_default): Return a std::vector instead of
2860 symtabs_and_lines. Update.
2861 * breakpoint.h: Include "common/array-view.h".
2862 (struct breakpoint_ops) <decode_location>: Now returns a
2863 std::vector instead of returning a symtabs_and_lines via output
2864 parameter.
2865 (update_breakpoint_locations): Change sals parameters to use
2866 gdb::array_view.
2867 * cli/cli-cmds.c (edit_command, list_command): Update to use
2868 std::vector and gdb::array_view.
2869 (ambiguous_line_spec): Adjust to use gdb::array_view and
2870 range-for.
2871 (compare_symtabs): Rename to ...
2872 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2873 const reference and adjust.
2874 (filter_sals): Rewrite using std::vector and standard algorithms.
2875 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2876 (jump_command): Update to use std::vector.
2877 * linespec.c (struct linespec_state) <canonical_names>: Update
2878 comment.
2879 (add_sal_to_sals_basic): Delete.
2880 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2881 (decode_line_2, create_sals_line_offset)
2882 (convert_address_location_to_sals, convert_linespec_to_sals)
2883 (convert_explicit_location_to_sals, parse_linespec)
2884 (event_location_to_sals, decode_line_full, decode_line_1)
2885 (decode_line_with_current_source)
2886 (decode_line_with_last_displayed, decode_objc)
2887 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2888 (linespec_result::~linespec_result): Adjust to use std::vector
2889 instead of symtabs_and_lines.
2890 * linespec.h (linespec_sals::sals): Now a std::vector.
2891 (struct linespec_result): Use std::vector, bool, and in-class
2892 initialization.
2893 (decode_line_1, decode_line_with_current_source)
2894 (decode_line_with_last_displayed): Return std::vector.
2895 * macrocmd.c (info_macros_command): Use std::vector.
2896 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2897 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2898 std::vector.
2899 * probe.h (parse_probes): Return a std::vector.
2900 * python/python.c (gdbpy_decode_line): Use std::vector and
2901 gdb::array_view.
2902 * source.c (select_source_symtab, line_info): Use std::vector.
2903 * stack.c (func_command): Use std::vector.
2904 * symtab.h (struct symtabs_and_lines): Delete.
2905 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2906
7c44b49c
PA
29072017-09-04 Pedro Alves <palves@redhat.com>
2908
2909 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2910 unittests/array-view-selftests.c.
2911 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2912 * common/array-view.h: New file.
2913 * unittests/array-view-selftests.c: New file.
2914
e439fa14
PA
29152017-09-04 Pedro Alves <palves@redhat.com>
2916
2917 * cli/cli-cmds.c (edit_command): Pass message to
2918 ambiguous_line_spec.
2919 (list_command): Pass message to ambiguous_line_spec. Say
2920 "first"/"last" instead of "start" and "end" to be consistent with
2921 the manual.
2922 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2923 them to print formatted message.
2924
7525b645
PA
29252017-09-04 Pedro Alves <palves@redhat.com>
2926
2927 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2928 ftrace_update_insns by reference instead of pointer.
2929
badc0020
YQ
29302017-09-04 Yao Qi <yao.qi@linaro.org>
2931
2932 * i386-go32-tdep.c: Include x86-xstate.h.
2933 (i386_go32_init_abi): Call i386_target_description.
2934 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2935 if xcr0 is X86_XSTATE_X87_MASK.
2936 * i386-tdep.h (tdesc_i386): Remove the declaration.
2937 (tdesc_i386_mmx): Likewise.
2938
d78bdb54
YQ
29392017-09-04 Yao Qi <yao.qi@linaro.org>
2940
2941 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
2942 X86_XSTATE_SSE_MASK instead of 0.
2943
ca1fa5ee
YQ
29442017-09-04 Yao Qi <yao.qi@linaro.org>
2945
2946 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
2947 i386_target_description.
2948 * i386-fbsd-nat.c (i386fbsd_read_description): Call
2949 i386_target_description.
2950 * i386-tdep.c (i386_gdbarch_init): Likewise.
2951
2434b019
YQ
29522017-09-04 Yao Qi <yao.qi@linaro.org>
2953
2954 * amd64-darwin-tdep.c: Include "x86-xstate.h".
2955 (x86_darwin_init_abi_64): Call amd64_target_description.
2956 * amd64-dicos-tdep.c: Likewise.
2957 * amd64-fbsd-nat.c: Likewise.
2958 * amd64-fbsd-tdep.c: Likewise.
2959 * amd64-nbsd-tdep.c: Likewise.
2960 * amd64-obsd-tdep.c: Likewise.
2961 * amd64-sol2-tdep.c: Likewise.
2962 * amd64-windows-tdep.c: Likewise.
2963 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
2964
0860c437
SM
29652017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2966
2967 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
2968 (btrace_function) <insn>: Change type to use std::vector.
2969 * btrace.c (ftrace_debug, ftrace_call_num_insn,
2970 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
2971 ftrace_update_insns, ftrace_compute_global_level_offset,
2972 btrace_stitch_bts, btrace_clear, btrace_insn_get,
2973 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
2974 change to std::vector.
2975 (ftrace_update_insns): Adjust to change to std::vector, change
2976 type of INSN parameter.
2977 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
2978 * record-btrace.c (btrace_call_history_insn_range,
2979 btrace_compute_src_line_range,
2980 record_btrace_frame_prev_register): Adjust to change to
2981 std::vector.
2982 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
2983 to change to std::vector.
2984
0638b7f9
TT
29852017-09-03 Tom Tromey <tom@tromey.com>
2986
2987 * corefile.c (reopen_exec_file): Use std::string.
2988
8f84fb0e
TT
29892017-09-03 Tom Tromey <tom@tromey.com>
2990
2991 * compile/compile.c (compile_register_name_mangled): Return
2992 std::string.
2993 * compile/compile-loc2c.c (pushf_register_address): Update.
2994 (pushf_register): Update.
2995 * compile/compile-c-types.c (convert_array): Update.
2996 * compile/compile-c-symbols.c (generate_vla_size): Update.
2997 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
2998 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
2999 (convert_one_symbol): Update.
3000 (generate_c_for_for_one_variable): Update.
3001 * compile/compile-c-support.c (c_get_range_decl_name): Return a
3002 std::string.
3003 (generate_register_struct): Update.
3004 * compile/compile-internal.h (c_get_range_decl_name): Return a
3005 std::string.
3006 (compile_register_name_mangled): Return std::string.
3007
18e9961f
TT
30082017-09-03 Tom Tromey <tom@tromey.com>
3009
3010 * utils.c (perror_string): Return a std::string.
3011 (throw_perror_with_name, perror_warning_with_name): Update.
3012
45343786
TT
30132017-09-03 Tom Tromey <tom@tromey.com>
3014
3015 * demangle.c (demangle_command): Use std::string,
3016 unique_xmalloc_ptr.
3017
b57af503
TT
30182017-09-03 Tom Tromey <tom@tromey.com>
3019
3020 * cli/cli-setshow.c (do_set_command): Use std::string.
3021
6eecf35f
TT
30222017-09-03 Tom Tromey <tom@tromey.com>
3023
3024 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
3025
56496dd4
TT
30262017-09-03 Tom Tromey <tom@tromey.com>
3027
3028 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
3029
e91a1fa7
TT
30302017-09-03 Tom Tromey <tom@tromey.com>
3031
3032 * mi/mi-cmd-env.c (env_execute_cli_command): Use
3033 gdb::unique_xmalloc_ptr.
3034
7ffd83d7
TT
30352017-09-03 Tom Tromey <tom@tromey.com>
3036
3037 * thread.c (print_thread_info_1): Use string_printf.
3038 (thread_apply_command, thread_apply_all_command): Use
3039 std::string.
3040
1ccbe998
TT
30412017-09-03 Tom Tromey <tom@tromey.com>
3042
3043 * valprint.c (val_print_string): Update.
3044 * gdbcore.h (memory_error_message): Return std::string.
3045 * corefile.c (memory_error_message): Return std::string.
3046 (memory_error): Update.
3047 * breakpoint.c (insert_bp_location): Update.
3048
23fdd69e
SM
30492017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3050
3051 * target/waitstatus.h (target_waitstatus_to_string): Change
3052 return type to std::string.
3053 * target/waitstatus.c (target_waitstatus_to_string): Return
3054 std::string.
3055 * target.h (target_waitstatus_to_string): Remove declaration.
3056 * infrun.c (resume, clear_proceed_status_thread,
3057 print_target_wait_results, do_target_wait, save_waitstatus,
3058 stop_all_threads): Adjust.
3059 * record-btrace.c (record_btrace_wait): Adjust.
3060 * target-debug.h
3061 (target_debug_print_struct_target_waitstatus_p): Adjust.
3062
5c811d30
JK
30632017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3064
3065 PR gdb/22046
3066 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
3067 detection.
3068
0a2dde4a
SDJ
30692017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3070
3071 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
3072 for setting/unsetting environment variables on the remote target.
3073 (New remote packets): Add entries for QEnvironmentHexEncoded,
3074 QEnvironmentUnset and QEnvironmentReset.
3075 * common/environ.c (gdb_environ::operator=): Extend method to
3076 handle m_user_set_env_list and m_user_unset_env_list.
3077 (gdb_environ::clear): Likewise.
3078 (match_var_in_string): Change type of first parameter from 'char
3079 *' to 'const char *'.
3080 (gdb_environ::set): Extend method to handle
3081 m_user_set_env_list and m_user_unset_env_list.
3082 (gdb_environ::unset): Likewise.
3083 (gdb_environ::clear_user_set_env): New method.
3084 (gdb_environ::user_set_envp): Likewise.
3085 (gdb_environ::user_unset_envp): Likewise.
3086 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
3087 m_user_unset_env_list on move constructor/assignment.
3088 (unset): Add new default parameter 'update_unset_list = true'.
3089 (clear_user_set_env): New method.
3090 (user_set_envp): Likewise.
3091 (user_unset_envp): Likewise.
3092 (m_user_set_env_list): New std::set.
3093 (m_user_unset_env_list): Likewise.
3094 * common/rsp-low.c (hex2str): New function.
3095 (bin2hex): New overload for bin2hex function.
3096 * common/rsp-low.c (hex2str): New prototype.
3097 (str2hex): New overload prototype.
3098 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
3099 QEnvironmentUnset and QEnvironmentReset.
3100 (remote_protocol_features): Add QEnvironmentHexEncoded,
3101 QEnvironmentUnset and QEnvironmentReset packets.
3102 (send_environment_packet): New function.
3103 (extended_remote_environment_support): Likewise.
3104 (extended_remote_create_inferior): Call
3105 extended_remote_environment_support.
3106 (_initialize_remote): Add QEnvironmentHexEncoded,
3107 QEnvironmentUnset and QEnvironmentReset packet configs.
3108 * unittests/environ-selftests.c (gdb_selftest_env_var):
3109 New variable.
3110 (test_vector_initialization): New function.
3111 (test_init_from_host_environ): Likewise.
3112 (test_reinit_from_host_environ): Likewise.
3113 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
3114 Likewise.
3115 (test_unset_set_empty_vector): Likewise.
3116 (test_vector_clear): Likewise.
3117 (test_std_move): Likewise.
3118 (test_move_constructor):
3119 (test_self_move): Likewise.
3120 (test_set_unset_reset): Likewise.
3121 (run_tests): Rewrite in terms of the functions above.
3122
654670a4
WP
31232017-08-31 Weimin Pan <weimin.pan@oracle.com>
3124
3125 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
3126 (adi_available): Use a temp variable of type CORE_ADDR as argument
3127 3 when calling target_auxv_search.
3128 (adi_normalize_address): Use masks and xor operators to calculate
3129 normalized address.
3130 (adi_read_versions, adi_write_versions, adi_print_versions)
3131 (do_examine, do_assign): Use paddress.
3132
7755ddb7
JB
31332017-08-29 John Baldwin <jhb@FreeBSD.org>
3134
3135 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
3136 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
3137 out of loop and add supply of FIR.
3138 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
3139 add collect of FIR.
3140
fd437cbc
SM
31412017-08-28 Simon Marchi <simon.marchi@ericsson.com>
3142
3804a343 3143 PR gdb/21827
fd437cbc
SM
3144 * cli/cli-script.c (define_command): Don't convert command name
3145 to lower case.
3146
988f6b3d
JB
31472017-08-25 Joel Brobecker <brobecker@adacore.com>
3148
3149 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
3150 Update all callers accordingly. Remove all code blocks handling
3151 the case where DISPP is not NULL.
3152
663c44ac
JK
31532017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3154
3155 PR symtab/22003
3156 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
3157 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3158 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
3159
f1902523
JK
31602017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3161
3162 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
3163 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
3164 (read_comp_units_from_section): New parameter abbrev_section, use
3165 read_and_check_comp_unit_head, allocate signatured_type if needed.
3166 (create_all_comp_units): Update read_comp_units_from_section caller.
3167
87215ad1
SDJ
31682017-08-23 Pedro Alves <palves@redhat.com>
3169
3170 PR remote/21852
3171 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
3172 to null_ptid and switch to thread without reading the registers
3173 after adding the inferior.
3174
6e41ddec
JK
31752017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3176
3177 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
3178 compile-gcc.
3179 * compile/compile.c (compile_gcc, show_compile_gcc): New.
3180 (compile_to_object): Implement compile_gcc.
3181 (_initialize_compile): Install "set compile-gcc". Initialize
3182 compile_gcc.
3183
e68c32d5
JK
31842017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3185
3186 * compile/compile.c (compile_to_object): Conditionally call
3187 set_verbose. Conditionally call compile or compile_v0.
3188
58afddc6
WP
31892017-08-07 Weimin Pan <weimin.pan@oracle.com>
3190
3191 * sparc64-tdep.h: (adi_normalize_address): New export.
3192 * sparc-nat.h: (open_adi_tag_fd): New export.
3193 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
3194 * sparc64-linux-tdep.c:
3195 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
3196 (sparc64_linux_handle_segmentation_fault): New function.
3197 (sparc64_linux_init_abi): Register
3198 sparc64_linux_handle_segmentation_fault
3199 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
3200 (sparc64_addr_bits_remove): New function.
3201 (sparc64_init_abi): Register sparc64_addr_bits_remove.
3202 (MAX_PROC_NAME_SIZE): New macro.
3203 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
3204 (sparc64adilist): New variable.
3205 (adi_proc_list): New variable.
3206 (find_adi_info): New function.
3207 (add_adi_info): New function.
3208 (get_adi_info_proc): New function.
3209 (get_adi_info): New function.
3210 (info_adi_command): New function.
3211 (read_maps_entry): New function.
3212 (adi_available): New function.
3213 (adi_normalize_address): New function.
3214 (adi_align_address): New function.
3215 (adi_convert_byte_count): New function.
3216 (adi_tag_fd): New function.
3217 (adi_is_addr_mapped): New function.
3218 (adi_read_versions): New function.
3219 (adi_write_versions): New function.
3220 (adi_print_versions): New function.
3221 (do_examine): New function.
3222 (do_assign): New function.
3223 (adi_examine_command): New function.
3224 (adi_assign_command): New function.
3225 (_initialize_sparc64_adi_tdep): New function.
3226
11db9430
SM
32272017-08-22 Simon Marchi <simon.marchi@ericsson.com>
3228
3229 * breakpoint.c (breakpoints_info): Rename to ...
3230 (info_breakpoints_command): ... this.
3231 (watchpoints_info): Rename to ...
3232 (info_watchpoints_command): ... this.
3233 (tracepoints_info): Rename to ...
3234 (info_tracepoints_command): ... this.
3235 (_initialize_breakpoint): Adjust.
3236 * dcache.c (dcache_info): Rename to ...
3237 (info_display_command): ... this.
3238 (_initialize_dcache): Adjust.
3239 * frame.h (args_info): Rename to ...
3240 (info_args_command): ... this.
3241 (locals_info): Rename to ...
3242 (info_locals_command): ... this.
3243 * infcmd.c (nofp_registers_info): Rename to ...
3244 (info_registers_command): ... this.
3245 (float_info): Rename to ...
3246 (info_float_command): ... this.
3247 (program_info): Rename to ...
3248 (info_program_command): ... this.
3249 (all_registers_info): Rename to ...
3250 (info_all_registers_command): ... this.
3251 (vector_info): Rename to ...
3252 (info_vector_command): ... this.
3253 (float_info): Rename to ...
3254 (info_float_command): ... this.
3255 (_initialize_infcmd): Adjust.
3256 * inferior.h (term_info): Rename to ...
3257 (info_terminal_command): ... this.
3258 * inflow.c (term_info): Rename to ...
3259 (info_terminal_command): ... this.
3260 (_initialize_inflow): Adjust.
3261 * infrun.c (signals_info): Rename to ...
3262 (info_signals_command): ... this.
3263 (_initialize_infrun): Adjust.
3264 * objc-lang.c (classes_info): Rename to ...
3265 (info_classes_command): ... this.
3266 (selectors_info): Rename to ...
3267 (info_selectors_command): ... this.
3268 (_initialize_objc_language): Adjust.
3269 * printcmd.c (sym_info): Rename to ...
3270 (info_symbol_command): ... this.
3271 (address_info): Rename to ...
3272 (info_address_command): ... this.
3273 (display_info): Rename to ...
3274 (info_display_command): ... this.
3275 (_initialize_printcmd): Adjust.
3276 * reverse.c (bookmarks_info): Rename to ...
3277 (info_breakpoints_command): ... this.
3278 (_initialize_reverse): Adjust.
3279 * ser-go32.c (dos_info): Rename to ...
3280 (info_serial_command): ... this.
3281 (_initialize_ser_dos): Adjust.
3282 * skip.c (skip_info): Rename to ...
3283 (info_skip_command): ... this.
3284 (_initialize_step_skip): Adjust.
3285 * source.c (line_info): Rename to ...
3286 (info_line_command): ... this.
3287 (source_info): Rename to ...
3288 (info_source_command)
3289 * stack.c (frame_info): Rename to ...
3290 (info_frame_command): ... this.
3291 (locals_info): Rename to ...
3292 (info_locals_command): ... this.
3293 (args_info): Rename to ...
3294 (info_args_command): ... this.
3295 (_initialize_stack): Adjust.
3296 * symtab.c (sources_info): Rename to ...
3297 (info_sources_command): ... this.
3298 (variables_info): Rename to ...
3299 (info_variables_command): ... this.
3300 (functions_info): Rename to ...
3301 (info_functions_command): ... this.
3302 (types_info): Rename to ...
3303 (info_types_command): ... this.
3304 (_initialize_symtab): Adjust.
3305 * target.c (target_info): Rename to ...
3306 (info_target_command): ... this.
3307 (initialize_targets): Adjust.
3308 * tracepoint.c (tvariables_info): Rename to ...
3309 (info_tvariables_command): ... this.
3310 (scope_info): Rename to ...
3311 (info_scope_command): ... this.
3312 (trace_dump_actions): Adjust.
3313 (_initialize_tracepoint): Adjust.
3314
b270e6f9
TT
33152017-08-22 Tom Tromey <tom@tromey.com>
3316
3317 * breakpoint.h (install_breakpoint): Update.
3318 * breakpoint.c (add_solib_catchpoint): Update.
3319 (install_breakpoint): Change argument to a std::unique_ptr.
3320 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
3321 (create_breakpoint_sal, create_breakpoint): Update.
3322 (watch_command_1, catch_exec_command_1)
3323 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
3324 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
3325 Return the breakpoint.
3326 (set_raw_breakpoint_without_location, set_raw_breakpoint)
3327 (new_single_step_breakpoint): Update.
3328 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
3329 std::unique_ptr.
3330 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3331 std::unique_ptr.
3332 * break-catch-sig.c (create_signal_catchpoint): Use
3333 std::unique_ptr.
3334 * ada-lang.c (create_ada_exception_catchpoint): Use
3335 std::unique_ptr.
3336
36bd8eaa
TT
33372017-08-22 Tom Tromey <tom@tromey.com>
3338
3339 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
3340
56f37645
TT
33412017-08-22 Tom Tromey <tom@tromey.com>
3342
3343 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
3344 (lookup_partial_symbol): Update.
3345
0b581c69
TT
33462017-08-22 Tom Tromey <tom@tromey.com>
3347
3348 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
3349 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
3350 (find_and_open_source, symtab_to_fullname): Update.
3351 * psymtab.c (psymtab_to_fullname): Update.
3352
14278e1f
TT
33532017-08-22 Tom Tromey <tom@tromey.com>
3354
3355 * exec.c (exec_file_attach): Update.
3356 * linux-thread-db.c (try_thread_db_load): Update.
3357 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
3358 * utils.c (gdb_realpath): Change return type.
3359 (gdb_realpath_keepfile): Update.
3360 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
3361 (_initialize_utils): Register the new self test.
3362 * source.c (openp): Update.
3363 (find_and_open_source): Update.
3364 * nto-tdep.c (nto_find_and_open_solib): Update.
3365 * main.c (set_gdb_data_directory): Update.
3366 (captured_main_1): Update.
3367 * dwarf2read.c (dwarf2_get_dwz_file): Update
3368 (dw2_map_symbol_filenames): Update.
3369 * auto-load.c (auto_load_safe_path_vec_update): Update.
3370 (filename_is_in_auto_load_safe_path_vec): Change type of
3371 "filename_realp".
3372 (auto_load_objfile_script): Update.
3373 (file_is_auto_load_safe): Update. Use std::string.
3374 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3375
4971c9a7
TT
33762017-08-22 Tom Tromey <tom@tromey.com>
3377
3378 * utils.c (gdb_realpath_keepfile): Return a
3379 gdb::unique_xmalloc_ptr.
3380 * exec.c (exec_file_attach): Update.
3381 * utils.h (gdb_realpath_keepfile): Return a
3382 gdb::unique_xmalloc_ptr.
3383
e3e41d58
TT
33842017-08-22 Tom Tromey <tom@tromey.com>
3385
3386 * compile/compile.c (compile_file_command): Use
3387 gdb::unique_xmalloc_ptr, std::string.
3388 * utils.c (gdb_abspath): Change return type.
3389 * source.c (openp): Update.
3390 * objfiles.c (allocate_objfile): Update.
3391 * main.c (set_gdb_data_directory): Update.
3392 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3393
0d999a6e
ZZ
33942017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3395
3396 * cli-cmds.c (list_commands): List actual code around more than
3397 one location.
3398
329d5e7e
JB
33992017-08-21 John Baldwin <jhb@FreeBSD.org>
3400
3401 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3402
bf223d3e
PA
34032017-08-21 Pedro Alves <palves@redhat.com>
3404
3405 PR gdb/19487
3406 * c-exp.y (variable production): Handle function aliases.
3407 * minsyms.c (msymbol_is_text): New function.
3408 * minsyms.h (msymbol_is_text): Declare.
3409 * symtab.c (find_function_alias_target): New function.
3410 * symtab.h (find_function_alias_target): Declare.
3411
c973d0aa
PA
34122017-08-21 Pedro Alves <palves@redhat.com>
3413
3414 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3415 typedefs.
3416 * typeprint.c (whatis_exp): If handling "whatis", and expression
3417 is OP_TYPE, strip one typedef level. Otherwise don't strip
3418 typedefs here.
3419 * valops.c (value_cast): Save "to" type before resolving
3420 stubs/typedefs. Use that type as resulting value's type.
3421
2989a365
TT
34222017-08-18 Tom Tromey <tom@tromey.com>
3423 Pedro Alves <palves@redhat.com>
3424
3425 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3426 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3427 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3428 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3429 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3430 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3431 (linux_get_siginfo_data): Add "thread" argument. Use
3432 scoped_restore.
3433 * linux-nat.c (linux_child_follow_fork)
3434 (check_stopped_by_watchpoint): Use scoped_restore.
3435 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3436 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3437 (restore_inferior_ptid, save_inferior_ptid): Remove.
3438 * btrace.c (btrace_fetch): Use scoped_restore.
3439 * bsd-uthread.c (bsd_uthread_fetch_registers)
3440 (bsd_uthread_store_registers): Use scoped_restore.
3441 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3442 scoped_restore.
3443 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3444 (aix_thread_xfer_partial): Use scoped_restore.
3445 * inferior.h (save_inferior_ptid): Remove.
3446
e60eb288
YQ
34472017-08-18 Yao Qi <yao.qi@linaro.org>
3448
3449 PR tdep/21818
3450 * arm-tdep.c (gdb_print_insn_arm): Mark
3451 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3452
6d580b63
YQ
34532017-08-18 Yao Qi <yao.qi@linaro.org>
3454
3455 * NEWS: Mention GDBserver's new option "--selftest".
3456 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3457 * selftest.c: Move it to common/selftest.c.
3458 * selftest.h: Move it to common/selftest.h.
3459 * selftest-arch.c (reset): New function.
3460 (tests_with_arch): Call reset.
3461
86dcbf50
YQ
34622017-08-18 Yao Qi <yao.qi@linaro.org>
3463
3464 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3465 instead of exception_fprintf and printf_filtered.
3466
7649770c
YQ
34672017-08-18 Yao Qi <yao.qi@linaro.org>
3468
3469 * selftest.c (register_self_test): Rename it to
3470 selftests::register_test.
3471 (run_self_tests): selftest::run_tests.
3472 * selftest.h: Update declarations.
3473 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3474 selftests::register_test_foreach_arch.
3475 * selftest-arch.h: Update declaration.
3476 * aarch64-tdep.c: Update.
3477 * arm-tdep.c: Likewise.
3478 * disasm-selftests.c: Likewise.
3479 * dwarf2loc.c: Likewise.
3480 * dwarf2-frame.c: Likewise.
3481 * findvar.c: Likewise.
3482 * gdbarch-selftests.c: Likewise.
3483 * maint.c (maintenance_selftest): Likewise.
3484 * regcache.c: Likewise.
3485 * rust-exp.y: Likewise.
3486 * selftest-arch.c: Likewise.
3487 * unittests/environ-selftests.c: Likewise.
3488 * unittests/function-view-selftests.c: Likewise.
3489 * unittests/offset-type-selftests.c: Likewise.
3490 * unittests/optional-selftests.c: Likewise.
3491 * unittests/scoped_restore-selftests.c: Likewise.
3492 * utils-selftests.c: Likewise.
3493
b0cba12e
PA
34942017-08-17 Pedro Alves <palves@redhat.com>
3495
3496 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3497 local.
3498
4c8aa72d
PA
34992017-08-17 Pedro Alves <palves@redhat.com>
3500
3501 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3502 field.
3503 (reset_die_in_process): Delete, replaced by ...
3504 (process_die_scope): ... this new class. Make it responsible for
3505 freeing cu->line_header too.
3506 (process_die): Use process_die_scope.
3507 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3508 cu->line_header_die_owner. Don't release the line header if it's
3509 owned by the CU.
3510 (setup_type_unit_groups): Make the CU/DIE own the line header.
3511 Don't release the line header here.
3512
ba713918
AL
35132017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3514
3515 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3516
44d0fb3a
RK
35172017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3518
3519 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3520 Single-Key mode
3521
a5afdb16
RK
35222017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3523
3524 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3525 mode command list.
3526
47613aeb
SH
35272017-08-15 Stafford Horne <shorne@gmail.com>
3528
3529 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3530
9c3cc999
SH
35312017-08-15 Stafford Horne <shorne@gmail.com>
3532
3533 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3534
206726fb
SDJ
35352017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3536
3537 PR gdb/21954
3538 * infcmd.c (unset_environment_command): Use the 'clear' method on
3539 the environment instead of resetting it.
3540
0335ac6d
JB
35412017-08-15 John Baldwin <jhb@FreeBSD.org>
3542
3543 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3544 platforms.
3545
d3abe1c8
TT
35462017-08-14 Tom Tromey <tom@tromey.com>
3547
3548 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3549 (print_binary_chars): Likewise.
3550 (BITS_IN_BYTES): Remove.
3551
d6382fff
TT
35522017-08-14 Tom Tromey <tom@tromey.com>
3553
3554 PR gdb/21675
3555 * valprint.c (LOW_ZERO): Change value to 034.
3556 (print_octal_chars): Add static_asserts for octal constants.
3557 * printcmd.c (print_scalar_formatted): Add 'd' case.
3558
f978cb06
TT
35592017-08-11 Tom Tromey <tom@tromey.com>
3560
3561 * symfile.c (add_symbol_file_command): Use std::vector.
3562
2f5404b3
TT
35632017-08-14 Tom Tromey <tom@tromey.com>
3564
3565 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3566 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3567 std::move.
3568 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3569
de7985c3
PA
35702017-08-11 Pedro Alves <palves@redhat.com>
3571
3572 * infrun.c (process_event_stop_test): Adjust
3573 function_name_is_marked_for_skip call.
3574 * skip.c: Include <list>.
3575 (skiplist_entry): Make it a class with private fields, and
3576 getters/setters.
3577 (skiplist_entry_chain): Delete.
3578 (skiplist_entries): New.
3579 (skiplist_entry_count): Delete.
3580 (highest_skiplist_entry_num): New.
3581 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3582 (add_skiplist_entry): Delete.
3583 (skiplist_entry::skiplist_entry): New.
3584 (skiplist_entry::add_entry): New.
3585 (skip_file_command, skip_function): Adjust.
3586 (compile_skip_regexp): Delete.
3587 (skip_command): Don't compile regexp here. Adjust to use
3588 skiplist_entry::add_entry.
3589 (skip_info): Adjust to use range-for and getters.
3590 (skip_enable_command, skip_disable_command): Adjust to use
3591 range-for and setters.
3592 (skip_delete_command): Adjust to use std::list.
3593 (add_skiplist_entry): Delete.
3594 (skip_file_p): Delete, refactored as ...
3595 (skiplist_entry::do_skip_file_p): ... this new method.
3596 (skip_gfile_p): Delete, refactored as ...
3597 (skiplist_entry::do_gskip_file_p): ... this new method.
3598 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3599 (skiplist_entry::skip_function_p): ... this new method.
3600 (function_name_is_marked_for_skip): Now returns bool, and takes
3601 the function sal by const reference. Adjust to use range-for and
3602 skiplist_entry methods.
3603 (_initialize_step_skip): Remove references to
3604 skiplist_entry_chain, skiplist_entry_count.
3605 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3606 takes the function sal by const reference.
3607
be7d3cd5
YQ
36082017-08-11 Yao Qi <yao.qi@linaro.org>
3609
3610 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3611 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3612 (dwarf2_frame_cache):
3613 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3614 RETURN_MASK_ALL and set *this_case to NULL.
3615 * frame-unwind.h: Update comments.
3616
1c90d9f0
YQ
36172017-08-11 Yao Qi <yao.qi@linaro.org>
3618
3619 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3620 (dwarf2_frame_state_copy_regs): Remove.
3621 (dwarf2_frame_state_free_regs): Remove.
3622 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3623 (dwarf2_restore_rule): Call method .alloc_regs instead of
3624 dwarf2_frame_state_alloc_regs.
3625 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3626 constructor. Call std::move.
3627 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3628 (dwarf2_frame_cache): Likewise.
3629
3630 [GDB_SELF_TEST]: Include selftest.h and
3631 selftest-arch.h.
3632 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3633 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3634 execute_cfa_program_test.
3635
3636 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3637 copy ctor, assignment operator, move assignment.
3638 <alloc_regs>: New method.
3639 <swap>: New method.
3640 (struct dwarf2_frame_state): Delete dtor.
3641 (dwarf2_frame_state_alloc_regs): Remove declaration.
3642 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3643 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3644
afe37d6b
YQ
36452017-08-11 Yao Qi <yao.qi@linaro.org>
3646
3647 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3648 (dwarf2_frame_state::dwarf2_frame_state): New.
3649 (dwarf2_frame_state::~dwarf2_frame_state): New.
3650 (dwarf2_fetch_cfa_info): Update.
3651 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3652 rather than a pointer. Update code.
3653 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3654 dtor.
3655 <data_align, code_align, retaddr_column>: Change them to const.
3656 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3657 to bool.
3658
b348037f
YQ
36592017-08-11 Yao Qi <yao.qi@linaro.org>
3660
3661 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3662 <loc.exp>: New field.
3663 * dwarf2-frame.c (execute_cfa_program): Update.
3664 (dwarf2_frame_prev_register): Update.
3665
e7c9de26
PA
36662017-08-10 Pedro Alves <palves@redhat.com>
3667
3668 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3669
e8c6b620
JB
36702017-08-09 John Baldwin <jhb@FreeBSD.org>
3671
3672 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3673 (fbsd_pending_children): Use std::list.
3674 (fbsd_remember_child): Likewise.
3675 (fbsd_is_child_pending): Likewise.
3676 (fbsd_pending_vfork_done): Use std::forward_list.
3677 (fbsd_add_vfork_done): Likewise.
3678 (fbsd_is_vfork_done_pending): Likewise.
3679 (fbsd_next_vfork_done): Likewise.
3680
e4a26669
JB
36812017-08-09 John Baldwin <jhb@FreeBSD.org>
3682
3683 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3684 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3685 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3686 for `mapfilename'.
3687 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 3688 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 3689
142311d3
JB
36902017-08-09 John Baldwin <jhb@FreeBSD.org>
3691
3692 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3693 "filestuff.h".
3694 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3695
42fa2e0e
TT
36962017-08-09 Tom Tromey <tom@tromey.com>
3697
3698 * skip.c (skiplist_entry): New constructor.
3699 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3700 (skiplist_entry::file_is_glob): Now bool.
3701 (skiplist_entry::file, skiplist_entry::function): Now
3702 std::string.
3703 (make_skip_entry): Return a unique_ptr. Use new.
3704 (free_skiplist_entry, free_skiplist_entry_cleanup)
3705 (make_free_skiplist_entry_cleanup): Remove.
3706 (skip_command, skip_disable_command, add_skiplist_entry)
3707 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3708 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3709 (function_name_is_marked_for_skip): Update.
3710 (skip_delete_command): Update. Use delete.
3711
cd3af38d
JW
37122017-08-09 Jiong Wang <jiong.wang@arm.com>
3713
3714 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3715 (aarch64_linux_core_read_description): New function.
3716 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3717
29592bde
PA
37182017-08-09 Pedro Alves <palves@redhat.com>
3719
3720 * cp-name-parser.y (cp_comp_to_string): Return a
3721 gdb::unique_xmalloc_ptr<char>.
3722 * cp-support.c (replace_typedefs_qualified_name)
3723 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3724 (cp_canonicalize_string_full): Use op= instead of explicit
3725 convertion.
3726 (cp_class_name_from_physname, method_name_from_physname)
3727 (cp_func_name, cp_remove_params): Adjust to use
3728 gdb::unique_xmalloc_ptr<char>.
3729 * cp-support.h (cp_comp_to_string): Return a
3730 gdb::unique_xmalloc_ptr<char>.
3731 * python/py-type.c (typy_lookup_type): Adjust to use
3732 gdb::unique_xmalloc_ptr<char>.
3733
b3340438
L
37342017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3735
3736 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3737
e88e8651
YQ
37382017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3739 Yao Qi <yao.qi@linaro.org>
3740
3741 * cp-support.c (cp_canonicalize_string_full): Use
3742 gdb::unique_xmalloc_ptr<char>.
3743 (cp_canonicalize_string): Likewise.
3744
f5a29eb0
YQ
37452017-08-09 Yao Qi <yao.qi@linaro.org>
3746
3747 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3748 * regformats/i386/amd64-avx-avx512.dat: Remove.
3749 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3750 * regformats/i386/amd64-avx-mpx.dat:Remove.
3751 * regformats/i386/amd64-avx.dat: Remove.
3752 * regformats/i386/amd64-mpx.dat: Remove.
3753 * regformats/i386/i386-avx-avx512.dat: Remove.
3754 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3755 * regformats/i386/i386-avx-mpx.dat: Remove.
3756 * regformats/i386/i386-mmx.dat: Remove.
3757 * regformats/i386/i386-mpx.dat: Remove.
3758
57757c2f
YQ
37592017-08-09 Yao Qi <yao.qi@linaro.org>
3760
3761 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3762 * amd64-tdep.c: Don't include features/i386/x32*.c.
3763 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3764 functions.
3765 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3766 and i386/x32-avx-avx512.
3767 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3768 and i386/x32.xml.
3769 * features/i386/x32-avx-avx512.c: Removed.
3770 * features/i386/x32-avx-avx512.xml: Removed.
3771 * features/i386/x32-avx.c: Removed.
3772 * features/i386/x32-avx.xml: Removed.
3773 * features/i386/x32.c: Removed.
3774 * features/i386/x32.xml: Removed.
3775 * regformats/i386/x32-avx-avx512.dat: Removed.
3776 * regformats/i386/x32-avx.dat: Removed.
3777 * regformats/i386/x32.dat: Removed.
3778
ba7b109b
MR
37792017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3780
3781 PR breakpoints/21886
3782 * mem-break.c (default_memory_insert_breakpoint): Use
3783 `->placed_address' rather than `->reqstd_address' for the
3784 breakpoint location.
3785
e347efc3
MR
37862017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3787
3788 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3789 assertions.
3790
0dba2a6c
MR
37912017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3792
3793 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3794 a union of `tdep_info', `tdesc_data' and `id'.
3795 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3796 rather than `info.tdep_info'.
3797 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3798 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3799 * i386-tdep.c (i386_gdbarch_init): Likewise.
3800 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3801 * mips-tdep.c (mips_gdbarch_init): Likewise.
3802 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3803 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3804 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3805 `info.tdep_info'.
3806 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3807 `info.tdep_info'.
3808 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3809 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3810 `info.tdep_info'.
3811 * spu-tdep.c (spu_gdbarch_init): Likewise.
3812 * gdbarch.h: Regenerate.
3813
16eb6b2d
LS
38142017-08-07 Leszek Swirski <leszeks@google.com>
3815
7b005726 3816 PR symtab/20899
16eb6b2d
LS
3817 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3818
74cbb09e
SM
38192017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3820
3821 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3822 (gdbsim_open): Rename gdb_argv args object to argv.
3823
ee0c3293
TT
38242017-08-05 Tom Tromey <tom@tromey.com>
3825
3826 * compile/compile-object-load.c (compile_object_load): Use
3827 gdb::unique_xmalloc_ptr.
3828 * cli/cli-dump.c (scan_filename): Rename from
3829 scan_filename_with_cleanup. Change return type.
3830 (scan_expression): Rename from scan_expression_with_cleanup.
3831 Change return type.
3832 (dump_memory_to_file, dump_value_to_file, restore_command):
3833 Use gdb::unique_xmalloc_ptr. Update.
3834 * cli/cli-cmds.c (find_and_open_script): Use
3835 gdb::unique_xmalloc_ptr.
3836 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3837 * symmisc.c (maintenance_print_symbols)
3838 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3839 * symfile.c (symfile_bfd_open, generic_load)
3840 (add_symbol_file_command, remove_symbol_file_command): Use
3841 gdb::unique_xmalloc_ptr.
3842 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3843 * psymtab.c (maintenance_print_psymbols): Use
3844 gdb::unique_xmalloc_ptr.
3845 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3846 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3847 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3848 (reload_shared_libraries_1): Likewise.
3849
3232fabd
TT
38502017-08-05 Tom Tromey <tom@tromey.com>
3851
3852 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3853 (rust_op_vector, rust_set_vector): New typedefs.
3854 (current_parser): New global.
3855 (work_obstack): Change to pointer type. Update all users.
3856 (rust_ast, pstate): Remove globals.
3857 (struct rust_parser): New.
3858 (%union) <params, field_inits>: Change type.
3859 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3860 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3861 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3862 (convert_params_to_types, convert_params_to_expression): Change
3863 type of "params".
3864 (ast_string): Change type of "fields".
3865 (rust_parse): Make a rust_parser. Remove cleanups.
3866 (rust_lex_tests): Make and install an auto_obstack.
3867
f02fd774
YQ
38682017-08-04 Yao Qi <yao.qi@linaro.org>
3869
3870 * configure.srv (ipa_x32_linux_regobj): New.
3871 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3872 instead of X86_TDESC_AVX512.
3873 (initialize_low_tracepoint): Call
3874 init_registers_x32_avx_avx512_linux.
3875
91975afd
YQ
38762017-08-04 Yao Qi <yao.qi@linaro.org>
3877
3878 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3879
2331fa3a
RK
38802017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3881
3882 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3883
744e4fe1
TT
38842017-08-03 Tom Tromey <tom@tromey.com>
3885
3886 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3887 Remove.
3888 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3889
1c034b67
TT
38902017-08-03 Tom Tromey <tom@tromey.com>
3891
3892 * python/py-param.c (compute_enum_values): Use gdb_argv.
3893
773a1edc
TT
38942017-08-03 Tom Tromey <tom@tromey.com>
3895
3896 * utils.h (struct gdb_argv_deleter): New.
3897 (gdb_argv): New class.
3898 * utils.c (gdb_argv::reset): New method.
3899 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3900 * tracefile.c (tsave_command): Use gdb_argv.
3901 * top.c (new_ui_command): Use gdb_argv.
3902 * symmisc.c (maintenance_print_symbols)
3903 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3904 * symfile.c (symbol_file_command, generic_load)
3905 (remove_symbol_file_command): Use gdb_argv.
3906 * stack.c (backtrace_command): Use gdb_argv.
3907 * source.c (add_path, show_substitute_path_command)
3908 (unset_substitute_path_command, set_substitute_path_command):
3909 Use gdb_argv.
3910 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3911 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3912 * remote.c (extended_remote_run, remote_put_command)
3913 (remote_get_command, remote_delete_command): Use gdb_argv.
3914 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3915 (gdbsim_open): Use gdb_argv.
3916 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3917 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3918 * procfs.c (procfs_info_proc): Use gdb_argv.
3919 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3920 * infrun.c (handle_command): Use gdb_argv.
3921 * inferior.c (add_inferior_command, clone_inferior_command):
3922 Use gdb_argv.
3923 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3924 * exec.c (exec_file_command): Use gdb_argv.
3925 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3926 * compile/compile.c (build_argc_argv): Use gdb_argv.
3927
0d50bde3
TT
39282017-08-03 Tom Tromey <tom@tromey.com>
3929
3930 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3931
7f968c89
TT
39322017-08-03 Tom Tromey <tom@tromey.com>
3933
3934 * python/python.c (compute_python_string): Return std::string.
3935 (gdbpy_eval_from_control_command): Update.
3936 (do_start_initialization): Use std::string.
3937 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3938 xstrprintf.
3939 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3940 xstrprintf.
3941
3c9ebddd
TT
39422017-08-03 Tom Tromey <tom@tromey.com>
3943
3944 * top.h (do_restore_instream_cleanup): Remove.
3945 * top.c (do_restore_instream_cleanup): Remove.
3946 (read_command_file): Use scoped_restore.
3947 * cli/cli-script.c (execute_user_command): Use scoped_restore.
3948
b51b225e
TT
39492017-08-03 Tom Tromey <tom@tromey.com>
3950
3951 * cli/cli-script.c (execute_user_command)
3952 (execute_control_command): Use scoped_restore.
3953
ac991630
TT
39542017-08-03 Tom Tromey <tom@tromey.com>
3955
3956 * cli/cli-script.c (do_restore_user_call_depth): Remove.
3957 (execute_user_command): Remove user_call_depth; use
3958 user_args_stack's size instead.
3959
898e0c8e
TT
39602017-08-03 Tom Tromey <tom@tromey.com>
3961
3962 * top.h (in_user_command): Remove.
3963 * top.c (in_user_command): Remove.
3964 * cli/cli-script.c (do_restore_user_call_depth)
3965 (execute_user_command): Update.
3966
26fcd5d7
TT
39672017-08-03 Tom Tromey <tom@tromey.com>
3968
3969 * valops.c (search_struct_method): Use gdb::byte_vector.
3970 * valarith.c (value_concat): Use std::vector.
3971 * target.c (memory_xfer_partial): Use gdb::byte_vector.
3972 (simple_search_memory): Likewise.
3973 * printcmd.c (find_string_backward): Use gdb::byte_vector.
3974 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
3975 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
3976 * elfread.c (elf_rel_plt_read): Use std::string.
3977 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
3978 * cli/cli-dump.c (restore_section_callback): Use
3979 gdb::byte_vector.
3980
7c218e6c
TT
39812017-08-03 Tom Tromey <tom@tromey.com>
3982
3983 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
3984
31b68d4a
TT
39852017-08-03 Tom Tromey <tom@tromey.com>
3986
3987 * tui/tui-regs.c (tui_restore_gdbout): Remove.
3988 (tui_register_format): Use scoped_restore.
3989
2ec845e7
TT
39902017-08-03 Tom Tromey <tom@tromey.com>
3991
3992 * reverse.c (exec_direction_default): Remove.
3993 (exec_reverse_once): Use scoped_restore.
3994 * remote.c (restore_remote_timeout): Remove.
3995 (remote_flash_erase, remote_flash_write, remote_flash_done)
3996 (readchar, remote_serial_write): Use scoped_restore.
3997 * cli/cli-script.c (struct source_cleanup_lines_args)
3998 (source_cleanup_lines): Remove.
3999 (script_from_file): Use scoped_restore.
4000 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
4001 (source_command): Use scoped_restore.
4002
b3bc8453
TT
40032017-08-03 Tom Tromey <tom@tromey.com>
4004
4005 * utils.h (make_cleanup_free_so): Remove.
4006 * utils.c (do_free_so, make_cleanup_free_so): Remove.
4007 * solist.h (struct so_deleter): New.
4008 (so_list_up): New typedef.
4009 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
4010
e3ad2841
TT
40112017-08-03 Tom Tromey <tom@tromey.com>
4012
4013 * utils.h (make_cleanup_restore_current_language): Remove.
4014 * utils.c (do_restore_current_language)
4015 (make_cleanup_restore_current_language): Remove.
4016 * parse.c (parse_exp_in_context_1)
4017 (parse_expression_with_language): Use
4018 scoped_restore_current_language.
4019 * mi/mi-main.c (mi_cmd_execute): Use
4020 scoped_restore_current_language.
4021 * language.h (scoped_restore_current_language): New class.
4022
b80cf838
TT
40232017-08-03 Tom Tromey <tom@tromey.com>
4024
4025 * compile/compile.c (cleanup_unlink_file): Remove.
4026 (compile_to_object): Use gdb::unlinker.
4027 (eval_compile_command): Likewise.
4028
fad0444a
TT
40292017-08-03 Tom Tromey <tom@tromey.com>
4030
4031 * utils.h (make_cleanup_fclose): Remove.
4032 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
4033
6e7bc05c
TT
40342017-08-03 Tom Tromey <tom@tromey.com>
4035
4036 * top.c (open_terminal_stream): Return gdb_file_up.
4037 (new_ui_command): Update.
4038
4a45905b
TT
40392017-08-03 Tom Tromey <tom@tromey.com>
4040
4041 * source.c (print_source_lines_base, forward_search_command)
4042 (reverse_search_command): Use gdb_file_up.
4043
7cd06d6e
TT
40442017-08-03 Tom Tromey <tom@tromey.com>
4045
4046 * fbsd-nat.c (fbsd_find_memory_regions): Update.
4047
ed166945
TT
40482017-08-03 Tom Tromey <tom@tromey.com>
4049
4050 * cli/cli-cmds.c (find_and_open_script): Change return type.
4051 Remove "streamp" and "full_path" parameters.
4052 (source_script_with_search): Update.
4053 * auto-load.c (source_script_file): Update.
4054 * cli/cli-cmds.h (find_and_open_script): Change type.
4055 (open_script): New struct.
4056
d419f42d
TT
40572017-08-03 Tom Tromey <tom@tromey.com>
4058
4059 * xml-support.c (xml_fetch_content_from_file): Update.
4060 * ui-file.c (stdio_file::open): Update.
4061 * tracefile-tfile.c (tfile_start): Update.
4062 * remote.c (remote_file_put, remote_file_get): Update.
4063 * nat/linux-procfs.c (linux_proc_get_int)
4064 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
4065 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
4066 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
4067 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4068 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
4069 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
4070 * linux-nat.c (linux_proc_pending_signals): Update.
4071 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
4072 (file_closer): Remove.
4073 * compile/compile.c (compile_to_object): Update.
4074 * common/filestuff.h (struct gdb_file_deleter): New.
4075 (gdb_file_up): New typedef.
4076 (gdb_fopen_cloexec): Change return type.
4077 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
4078 * cli/cli-dump.c (fopen_with_cleanup): Remove.
4079 (dump_binary_file, restore_binary_file): Update.
4080 * auto-load.c (auto_load_objfile_script_1): Update.
4081
4a2b031d
TT
40822017-08-03 Tom Tromey <tom@tromey.com>
4083
4084 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
4085 (info_static_tracepoint_markers_command): Likewise.
4086 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
4087 * skip.c (skip_info): Use ui_out_emit_table.
4088 * progspace.c (print_program_space): Use ui_out_emit_table.
4089 * osdata.c (info_osdata): Use ui_out_emit_table.
4090 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
4091 ui_out_emit_table.
4092 * linux-thread-db.c (info_auto_load_libthread_db): Use
4093 ui_out_emit_table.
4094 * inferior.c (print_inferior): Use ui_out_emit_table.
4095 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
4096 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
4097 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
4098 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
4099 * ui-out.h (class ui_out_emit_table): New.
4100
a4f320fd
MR
41012017-08-02 Maciej W. Rozycki <macro@imgtec.com>
4102
4103 * mips-tdep.c (mips_fpu_type_str): New function.
4104 (mips_dump_tdep): Call it.
4105
a2f1f308
MR
41062017-08-01 Maciej W. Rozycki <macro@imgtec.com>
4107
4108 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
4109 `->mips_fpu_type'.
4110
7e5ed83b
XR
41112017-07-31 Xavier Roirand <roirand@adacore.com>
4112
4113 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4114
4c9dc811
XR
41152017-07-27 Xavier Roirand <roirand@adacore.com>
4116
4117 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
4118
27d41eac
YQ
41192017-07-26 Yao Qi <yao.qi@linaro.org>
4120
4121 * cli/cli-cmds.c (maintenancechecklist): New variable.
4122 * gdbcmd.h (maintenancechecklist): Declare it.
4123 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
4124 Call i386_linux_read_description with different masks.
4125 * maint.c (maintenance_check_command): New function.
4126 (_initialize_maint_cmds): Call add_prefix_cmd.
4127 * target-descriptions.c (tdesc_reg): override operator != and ==.
4128 (tdesc_type): Likewise.
4129 (tdesc_feature): Likewise.
4130 (target_desc): Likewise.
4131 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
4132 (maintenance_check_xml_descriptions): New function.
4133 (_initialize_target_descriptions) Add command "xml-descriptions".
4134 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
4135
ea03d0d3
YQ
41362017-07-26 Yao Qi <yao.qi@linaro.org>
4137
4138 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
4139 Include features/i386/32bit-*.c.
4140 (i386_linux_read_description): Generate target description if it
4141 doesn't exist.
4142 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
4143 functions.
4144 * features/i386/32bit-linux.c: Re-generated.
4145 * features/i386/32bit-sse.c: Likewise.
4146 * target-descriptions.c (print_c_feature::visit): Print code to
4147 set register number if needed.
4148 (print_c_feature) <m_next_regnum>: New field.
4149
25aa13e5
YQ
41502017-07-26 Yao Qi <yao.qi@linaro.org>
4151
4152 * features/Makefile (CFILES): Rename with TDESC_CFILES.
4153 (FEATURE_XMLFILES): New.
4154 (FEATURE_CFILES): New.
4155 New rules.
4156 (clean-cfiles): Remove generated c files.
4157 * features/i386/32bit-avx.c: Generated.
4158 * features/i386/32bit-avx512.c: Generated.
4159 * features/i386/32bit-core.c: Generated.
4160 * features/i386/32bit-linux.c: Generated.
4161 * features/i386/32bit-mpx.c: Generated.
4162 * features/i386/32bit-pkeys.c: Generated.
4163 * features/i386/32bit-sse.c: Generated.
4164 * target-descriptions.c: Include algorithm.
4165 (tdesc_element_visitor): Add method visit_end.
4166 (print_c_tdesc): Implement visit_end.
4167 (print_c_tdesc:: m_filename_after_features): Move it to
4168 protected.
4169 (print_c_feature): New class.
4170 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
4171 name starts with "i386/32bit-".
4172
6eb1e6a8
YQ
41732017-07-26 Yao Qi <yao.qi@linaro.org>
4174
4175 * target-descriptions.c (tdesc_element_visitor): New class.
4176 (tdesc_element): New class.
4177 (tdesc_reg): Inherit from tdesc_element.
4178 (tdesc_reg::accept): New function.
4179 (tdesc_type): Inherit from tdesc_element.
4180 (tdesc_type::accept): New function.
4181 (tdesc_feature): Inherit from tdesc_element.
4182 (tdesc_feature::accept): New function.
4183 (target_desc): Inherit from tdesc_element.
4184 (target_desc::target_desc): New.
4185 (target_desc::~target_desc): New.
4186 (target_desc::accept): New.
4187 (allocate_target_description): Use new.
4188 (free_target_description): Use delete.
4189 (print_c_tdesc): New class.
4190 (maint_print_c_tdesc_cmd): Adjust.
4191
4192 * features/aarch64.c: Re-generated.
4193 * features/arc-arcompact.c: Re-generated.
4194 * features/arc-v2.c: Re-generated.
4195 * features/arm/arm-with-iwmmxt.c: Re-generated.
4196 * features/arm/arm-with-m.c: Re-generated.
4197 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
4198 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
4199 * features/arm/arm-with-neon.c: Re-generated.
4200 * features/arm/arm-with-vfpv2.c: Re-generated.
4201 * features/arm/arm-with-vfpv3.c: Re-generated.
4202 * features/i386/amd64-avx-avx512.c: Re-generated.
4203 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4204 * features/i386/amd64-avx.c: Re-generated.
4205 * features/i386/amd64-avx-linux.c: Re-generated.
4206 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
4207 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4208 * features/i386/amd64-avx-mpx.c: Re-generated.
4209 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
4210 * features/i386/amd64.c: Re-generated.
4211 * features/i386/amd64-linux.c: Re-generated.
4212 * features/i386/amd64-mpx.c: Re-generated.
4213 * features/i386/amd64-mpx-linux.c: Re-generated.
4214 * features/i386/i386-avx-avx512.c: Re-generated.
4215 * features/i386/i386-avx-avx512-linux.c: Re-generated.
4216 * features/i386/i386-avx.c: Re-generated.
4217 * features/i386/i386-avx-linux.c: Re-generated.
4218 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
4219 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
4220 * features/i386/i386-avx-mpx.c: Re-generated.
4221 * features/i386/i386-avx-mpx-linux.c: Re-generated.
4222 * features/i386/i386.c: Re-generated.
4223 * features/i386/i386-linux.c: Re-generated.
4224 * features/i386/i386-mmx.c: Re-generated.
4225 * features/i386/i386-mmx-linux.c: Re-generated.
4226 * features/i386/i386-mpx.c: Re-generated.
4227 * features/i386/i386-mpx-linux.c: Re-generated.
4228 * features/i386/x32-avx-avx512.c: Re-generated.
4229 * features/i386/x32-avx-avx512-linux.c: Re-generated.
4230 * features/i386/x32-avx.c: Re-generated.
4231 * features/i386/x32-avx-linux.c: Re-generated.
4232 * features/i386/x32.c: Re-generated.
4233 * features/i386/x32-linux.c: Re-generated.
4234 * features/microblaze.c: Re-generated.
4235 * features/microblaze-with-stack-protect.c: Re-generated.
4236 * features/mips64-dsp-linux.c: Re-generated.
4237 * features/mips64-linux.c: Re-generated.
4238 * features/mips-dsp-linux.c: Re-generated.
4239 * features/mips-linux.c: Re-generated.
4240 * features/nds32.c: Re-generated.
4241 * features/nios2.c: Re-generated.
4242 * features/nios2-linux.c: Re-generated.
4243 * features/rs6000/powerpc-32.c: Re-generated.
4244 * features/rs6000/powerpc-32l.c: Re-generated.
4245 * features/rs6000/powerpc-403.c: Re-generated.
4246 * features/rs6000/powerpc-403gc.c : Re-generated.
4247 * features/rs6000/powerpc-405.c: Re-generated.
4248 * features/rs6000/powerpc-505.c: Re-generated.
4249 * features/rs6000/powerpc-601.c: Re-generated.
4250 * features/rs6000/powerpc-602.c: Re-generated.
4251 * features/rs6000/powerpc-603.c: Re-generated.
4252 * features/rs6000/powerpc-604.c: Re-generated.
4253 * features/rs6000/powerpc-64.c: Re-generated.
4254 * features/rs6000/powerpc-64l.c: Re-generated.
4255 * features/rs6000/powerpc-7400.c: Re-generated.
4256 * features/rs6000/powerpc-750.c: Re-generated.
4257 * features/rs6000/powerpc-860.c: Re-generated.
4258 * features/rs6000/powerpc-altivec32.c: Re-generated.
4259 * features/rs6000/powerpc-altivec32l.c: Re-generated.
4260 * features/rs6000/powerpc-altivec64.c: Re-generated.
4261 * features/rs6000/powerpc-altivec64l.c: Re-generated.
4262 * features/rs6000/powerpc-cell32l.c: Re-generated.
4263 * features/rs6000/powerpc-cell64l.c: Re-generated.
4264 * features/rs6000/powerpc-e500.c: Re-generated.
4265 * features/rs6000/powerpc-e500l.c: Re-generated.
4266 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
4267 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
4268 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
4269 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
4270 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
4271 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
4272 * features/rs6000/powerpc-vsx32.c: Re-generated.
4273 * features/rs6000/powerpc-vsx32l.c: Re-generated.
4274 * features/rs6000/powerpc-vsx64.c: Re-generated.
4275 * features/rs6000/powerpc-vsx64l.c: Re-generated.
4276 * features/rs6000/rs6000.c: Re-generated.
4277 * features/s390-linux32.c: Re-generated.
4278 * features/s390-linux32v1.c: Re-generated.
4279 * features/s390-linux32v2.c: Re-generated.
4280 * features/s390-linux64.c: Re-generated.
4281 * features/s390-linux64v1.c: Re-generated.
4282 * features/s390-linux64v2.c: Re-generated.
4283 * features/s390-te-linux64.c: Re-generated.
4284 * features/s390-tevx-linux64.c: Re-generated.
4285 * features/s390-vx-linux64.c: Re-generated.
4286 * features/s390x-linux64.c: Re-generated.
4287 * features/s390x-linux64v1.c: Re-generated.
4288 * features/s390x-linux64v2.c: Re-generated.
4289 * features/s390x-te-linux64.c: Re-generated.
4290 * features/s390x-tevx-linux64.c: Re-generated.
4291 * features/s390x-vx-linux64.c: Re-generated.
4292 * features/sparc/sparc32-solaris.c: Re-generated.
4293 * features/sparc/sparc64-solaris.c: Re-generated.
4294 * features/tic6x-c62x.c: Re-generated.
4295 * features/tic6x-c62x-linux.c: Re-generated.
4296 * features/tic6x-c64x.c: Re-generated.
4297 * features/tic6x-c64x-linux.c: Re-generated.
4298 * features/tic6x-c64xp.c: Re-generated.
4299 * features/tic6x-c64xp-linux.c: Re-generated.
4300
35b4818d
YQ
43012017-07-26 Yao Qi <yao.qi@linaro.org>
4302
4303 * i386-linux-tdep.c (i386_linux_read_description): New function.
4304 (i386_linux_core_read_description): Call
4305 i386_linux_read_description.
4306 * i386-linux-tdep.h (i386_linux_read_description): Declare.
4307 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
4308 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
4309 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
4310 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
4311 * x86-linux-nat.c (x86_linux_read_description): Call
4312 i386_linux_read_description.
4313
8e2141c6
YQ
43142017-07-26 Yao Qi <yao.qi@linaro.org>
4315
4316 * NEWS: Mention it.
4317 * features/Makefile (%.c: %.xml): Pass the xml file name to
4318 command "maint print c-tdesc".
4319 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
4320 name from 'arg'.
4321
b468ff4c
YQ
43222017-07-26 Yao Qi <yao.qi@linaro.org>
4323
4324 * target-descriptions.c (target_desc): Add ctor and dtor. Do
4325 in-class initialization.
4326 (tdesc_create_feature): Call new instead of XCNEW.
4327 (free_target_description): Ue delete.
4328
b9c0e1b4
JB
43292017-07-25 John Baldwin <jhb@FreeBSD.org>
4330
4331 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
4332
a04b5337
YQ
43332017-07-25 Yao Qi <yao.qi@linaro.org>
4334
4335 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
4336 constant.
4337 (amd64_x32_init_abi): Likewise.
4338 * amd64-tdep.h (amd64_init_abi): Update declaration.
4339 (amd64_x32_init_abi): Likewise.
4340
02ad7fc2
YQ
43412017-07-25 Yao Qi <yao.qi@linaro.org>
4342
4343 PR tdep/21717
4344 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
4345 condition for FPSCR.
4346 (arm_linux_store_inferior_registers): Likewise.
4347
b6f48cb0
TT
43482017-07-22 Tom Tromey <tom@tromey.com>
4349
4350 * break-catch-syscall.c (struct catch_syscall_inferior_data)
4351 <syscalls_counts>: Now a std::vector.
4352 (get_catch_syscall_inferior_data): Use "new".
4353 (catch_syscall_inferior_data_cleanup): Use "delete".
4354 (insert_catch_syscall, remove_catch_syscall)
4355 (clear_syscall_counts): Update.
4356
e12c9b7a
TT
43572017-07-22 Tom Tromey <tom@tromey.com>
4358
4359 * break-catch-syscall.c (syscall_catchpoint)
4360 <syscalls_to_be_caught>: Now a std::vector<int>
4361 (~syscall_catchpoint): Remove.
4362 (insert_catch_syscall, remove_catch_syscall)
4363 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4364 (print_mention_catch_syscall, print_recreate_catch_syscall):
4365 Update.
4366 (create_syscall_event_catchpoint): Change type of "filter"
4367 parameter.
4368 (catch_syscall_split_args): Return a std::vector.
4369 (catch_syscall_command_1, catching_syscall_number_1): Update.
4370
4fa8aeac
TT
43712017-07-22 Tom Tromey <tom@tromey.com>
4372
4373 * break-catch-throw.c (struct exception_catchpoint)
4374 <exception_rx>: Now a std::string.
4375 (~exception_catchpoint): Remove.
4376 (print_one_detail_exception_catchpoint): Update.
4377 (handle_gnu_v3_exceptions): Change type of except_rx.
4378 (extract_exception_regexp): Return a std::string.
4379 (catch_exception_command_1): Update.
4380
f746a154
TT
43812017-07-22 Tom Tromey <tom@tromey.com>
4382
4383 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4384 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4385 std::vector.
4386 <catch_all>: Now a bool.
4387 (~signal_catchpoint): Remove.
4388 (signal_catchpoint_insert_location)
4389 (signal_catchpoint_remove_location)
4390 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4391 (signal_catchpoint_print_mention)
4392 (signal_catchpoint_print_recreate)
4393 (signal_catchpoint_explains_signal): Update.
4394 (create_signal_catchpoint): Change type of "filter" and
4395 "catch_all".
4396 (catch_signal_split_args): Return a std::vector. Change type of
4397 "catch_all".
4398 (catch_signal_command): Update.
4399
47e77640
PA
44002017-07-20 Pedro Alves <palves@redhat.com>
4401
4402 * ada-lang.c (ada_language_defn): Make extern.
4403 (_initialize_ada_language): Remove add_language call.
4404 * c-lang.c (c_language_defn, cplus_language_defn)
4405 (asm_language_defn, minimal_language_defn): Make extern.
4406 (_initialize_c_language): Delete.
4407 * completer.c (compare_cstrings): Delete, moved to utils.h.
4408 * d-lang.c (d_language_defn): Make extern.
4409 (_initialize_d_language): Remove add_language calls.
4410 * defs.h (enum language): Add comment.
4411 * f-lang.c (f_language_defn): Make extern.
4412 (_initialize_f_language): Remove add_language call.
4413 * go-lang.c (go_language_defn): Make extern.
4414 (_initialize_go_language): Remove add_language call.
4415 * language.c: Include <algorithm>.
4416 (languages): Redefine as const array.
4417 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4418 (set_language_command): Handle "local". Use for-range loop.
4419 (set_language): Remove loop.
4420 (language_enum): Rewrite.
4421 (language_def, language_str): Remove loops.
4422 (add_language): Delete.
4423 (add_set_language_command): New, based on add_languages.
4424 (skip_language_trampoline): Adjust.
4425 (local_language_defn): Delete.
4426 (language_gdbarch_post_init): Adjust.
4427 (_initialize_language): Remove add_language calls. Call
4428 add_set_language_command.
4429 * language.h (add_language): Delete.
4430 (auto_language_defn)
4431 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4432 (asm_language_defn, c_language_defn, cplus_language_defn)
4433 (d_language_defn, f_language_defn, go_language_defn)
4434 (m2_language_defn, objc_language_defn, opencl_language_defn)
4435 (pascal_language_defn, rust_language_defn): Declare.
4436 * m2-lang.c (m2_language_defn): Make extern.
4437 (_initialize_m2_language): Remove add_language call.
4438 * objc-lang.c (objc_language_defn): Make extern.
4439 (_initialize_objc_language): Remove add_language call.
4440 * opencl-lang.c (opencl_language_defn): Make extern.
4441 (_initialize_opencl_language): Remove add_language call.
4442 * p-lang.c (pascal_language_defn): Make extern.
4443 (_initialize_pascal_language): Delete.
4444 * rust-lang.c (rust_language_defn): Make extern.
4445 (_initialize_rust_language): Delete.
4446 * utils.h (compare_cstrings): New static inline function.
4447
edb0c9cb
PA
44482017-07-20 Pedro Alves <palves@redhat.com>
4449
4450 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4451 (get_var_value): Constify parameters.
4452 (get_int_var_value): Change prototype.
4453 (to_fixed_range_type): Adjust.
4454 * ada-lang.h (get_int_var_value): Change prototype.
4455
a778f165
PA
44562017-07-20 Pedro Alves <palves@redhat.com>
4457
4458 * dwarf2read.c (dw2_lookup_symbol): Use
4459 SYMBOL_MATCHES_SEARCH_NAME.
4460 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4461
42edd901
PA
44622017-07-20 Pedro Alves <palves@redhat.com>
4463
4464 * block.c (block_iter_name_step, block_iter_name_first)
4465 (block_iter_name_next): Delete.
4466 (block_lookup_symbol_primary): Adjust to use
4467 dict_iter_match_first/dict_iter_match_next.
4468 * block.h (block_iter_name_first, block_iter_name_next): Delete
4469 declarations.
4470 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4471 dict_iter_match_first/dict_iter_match_next.
4472
cf325299
PA
44732017-07-20 Pedro Alves <palves@redhat.com>
4474
4475 * cp-support.c (cp_find_first_component_aux): Add missing case for
4476 end of string.
4477
c5ed0576
DB
44782017-07-18 David Blaikie <dblaikie@gmail.com>
4479
4480 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4481 of dwo_cu's dwo_file.
4482
27841e76
YQ
44832017-07-18 Yao Qi <yao.qi@linaro.org>
4484
4485 * remote.c (store_registers_using_G): Remove one line comment.
4486
cfb7e58b
YQ
44872017-07-18 Yao Qi <yao.qi@linaro.org>
4488
4489 * regcache.c (regcache_cpy): Simplify it.
4490 (regcache::cpy_no_passthrough): Remove it.
4491 * regcache.h (cpy_no_passthrough): Remove it.
4492 (regcache_dup, regcache_cpy): Update comments.
4493
386535dd
PA
44942017-07-18 Pedro Alves <palves@redhat.com>
4495
4496 * remote-sim.c (sim_command_completer): Adjust to work with a
4497 completion_tracker instead of a VEC.
4498
c45ec17c
PA
44992017-07-17 Pedro Alves <palves@redhat.com>
4500
4501 * completer.c (complete_source_filenames): New function.
4502 (complete_address_and_linespec_locations): New function.
4503 (location_completer): Use complete_address_and_linespec_locations.
4504 (completion_tracker::build_completion_result): Honor the tracker's
4505 request to suppress append.
4506 * completer.h (completion_tracker::suppress_append_ws)
4507 (completion_tracker::set_suppress_append_ws): New methods.
4508 (completion_tracker::m_suppress_append_ws): New field.
4509 (complete_source_filenames): New declaration.
4510 * linespec.c (linespec_complete_what): New.
4511 (struct ls_parser) <complete_what, completion_word,
4512 completion_quote_char, completion_quote_end, completion_tracker>:
4513 New fields.
4514 (string_find_incomplete_keyword_at_end): New.
4515 (linespec_lexer_lex_string): Record quote char. If in completion
4516 mode, don't throw.
4517 (linespec_lexer_consume_token): Advance the completion word point.
4518 (linespec_lexer_peek_token): Save/restore completion info.
4519 (save_stream_and_consume_token): New.
4520 (set_completion_after_number): New.
4521 (linespec_parse_basic): Set what to complete next depending on
4522 token. Handle function and label completions specially.
4523 (parse_linespec): Disable objc shortcut in completion mode. Set
4524 what to complete next depending on token type. Skip keyword if in
4525 completion mode.
4526 (complete_linespec_component, linespec_complete): New.
4527 * linespec.h (linespec_complete): Declare.
4528
be966d42
PA
45292017-07-17 Pedro Alves <palves@redhat.com>
4530
4531 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4532 Handle 'operator<' / 'operator<<'.
4533
a2459270
PA
45342017-07-17 Pedro Alves <palves@redhat.com>
4535
4536 * completer.c (collect_explicit_location_matches): Handle
4537 MATCH_LABEL.
4538 (convert_explicit_location_to_linespec): New, factored out from
4539 ...
4540 (convert_explicit_location_to_sals): ... this.
4541 (complete_label): New.
4542 (linespec_complete_label, find_label_symbols_in_block): New.
4543 (find_label_symbols): Add completion_mode parameter and adjust to
4544 call find_label_symbols_in_block.
4545 * linespec.h (linespec_complete_label): Declare.
4546
c6756f62
PA
45472017-07-17 Pedro Alves <palves@redhat.com>
4548
4549 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4550 complete_symbol_mode parameter.
4551 * cli/cli-cmds.c (complete_command): Get the completion result out
4552 of the handle_brkchars tracker if used a custom word point.
4553 * completer.c: Include "linespec.h".
4554 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4555 (advance_to_expression_complete_word_point): New.
4556 (completion_tracker::completes_to_completion_word): New.
4557 (complete_files_symbols): Pass down
4558 complete_symbol_mode::EXPRESSION.
4559 (explicit_options, probe_options): New.
4560 (collect_explicit_location_matches): Complete on the
4561 explictit_loc->foo instead of word. Use
4562 linespec_complete_function. Handle MATCH_LINE. Handle offering
4563 keyword and options completions.
4564 (backup_text_ptr): Delete.
4565 (skip_keyword): New.
4566 (complete_explicit_location): Remove 'word' parameter. Add
4567 language, quoted_arg_start and quoted_arg_end parameters.
4568 Rewrite, parsing left to right.
4569 (location_completer): Rewrite.
4570 (location_completer_handle_brkchars): New function.
4571 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4572 (enum complete_line_internal_reason): Adjust comments.
4573 (completion_tracker::discard_completions): New.
4574 (completer_handle_brkchars_func_for_completer): Handle
4575 location_completer.
4576 (gdb_custom_word_point_brkchars)
4577 (gdb_org_rl_basic_quote_characters): New.
4578 (gdb_completion_word_break_characters_throw)
4579 (completion_find_completion_word): Handle trackers that use a
4580 custom word point.
4581 (completion_tracker::advance_custom_word_point_by): New.
4582 (completion_tracker::build_completion_result): Don't rely on
4583 readline appending the quote char.
4584 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4585 use a custom word point.
4586 (gdb_rl_attempted_completion_function): Restore
4587 rl_basic_quote_characters.
4588 * completer.h (class completion_tracker): Extend intro comment.
4589 (completion_tracker::set_quote_char)
4590 (completion_tracker::quote_char)
4591 (completion_tracker::set_use_custom_word_point)
4592 (completion_tracker::use_custom_word_point)
4593 (completion_tracker::custom_word_point)
4594 (completion_tracker::set_custom_word_point)
4595 (completion_tracker::advance_custom_word_point_by)
4596 (completion_tracker::completes_to_completion_word)
4597 (completion_tracker::discard_completions): New methods.
4598 (completion_tracker::m_quote_char)
4599 (completion_tracker::m_use_custom_word_point)
4600 (completion_tracker::m_custom_word_point): New fields.
4601 (advance_to_expression_complete_word_point): Declare.
4602 * f-lang.c (f_collect_symbol_completion_matches): Add
4603 complete_symbol_mode parameter.
4604 * language.h (struct language_defn)
4605 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4606 parameter.
4607 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4608 (linespec_complete_function): New function.
4609 (linespec_lexer_lex_keyword): Adjust.
4610 * linespec.h (linespec_keywords, linespec_complete_function): New
4611 declarations.
4612 * location.c (find_end_quote): New function.
4613 (explicit_location_lex_one): Add explicit_completion_info
4614 parameter. Save quoting info. Don't throw if being called for
4615 completion. Don't handle Ada operators here.
4616 (is_cp_operator, skip_op_false_positives, first_of)
4617 (explicit_location_lex_one_function): New function.
4618 (string_to_explicit_location): Replace 'dont_throw' parameter with
4619 an explicit_completion_info pointer parameter. Handle it. Don't
4620 use explicit_location_lex_one to lex function names. Use
4621 explicit_location_lex_one_function instead.
4622 * location.h (struct explicit_completion_info): New.
4623 (string_to_explicit_location): Replace 'dont_throw' parameter with
4624 an explicit_completion_info pointer parameter.
4625 * symtab.c (default_collect_symbol_completion_matches_break_on):
4626 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4627 (default_collect_symbol_completion_matches)
4628 (collect_symbol_completion_matches): Add complete_symbol_mode
4629 parameter.
4630 (collect_symbol_completion_matches_type): Pass down
4631 complete_symbol_mode::EXPRESSION.
4632 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4633 parameter. Handle LINESPEC mode.
4634 * symtab.h (complete_symbol_mode): New.
4635 (default_collect_symbol_completion_matches_break_on)
4636 (default_collect_symbol_completion_matches)
4637 (collect_symbol_completion_matches)
4638 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4639 parameter.
4640
1d550c82
PA
46412017-07-17 Pedro Alves <palves@redhat.com>
4642
4643 * utils.c (enum class strncmp_iw_mode): New.
4644 (strcmp_iw): Rename to ...
4645 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4646 parameters. Handle them.
4647 (strncmp_iw): New.
4648 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4649 * utils.h (strncmp_iw): Declare.
4650 (strcmp_iw): Move describing comments here.
4651
8090b426
PA
46522017-07-17 Pedro Alves <palves@redhat.com>
4653
4654 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4655 CP_OPERATOR_STR.
4656 * c-typeprint.c (is_type_conversion_operator): Use
4657 CP_OPERATOR_STR.
4658 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4659 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4660 CP_OPERATOR_LEN.
4661 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4662 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4663 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4664 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4665 CP_OPERATOR_STR.
4666 * location.c: Include "cp-support.h".
4667 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4668 CP_OPERATOR_STR.
4669 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4670 CP_OPERATOR_LEN.
4671
6a2c1b87
PA
46722017-07-17 Pedro Alves <palves@redhat.com>
4673
4674 * cli/cli-cmds.c (complete_command): Use a completion tracker
4675 along with completion_find_completion_word for handle_brkchars
4676 phase.
4677 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4678 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4679 (struct gdb_rl_completion_word_info): New.
4680 (gdb_rl_find_completion_word): New.
4681 (completion_find_completion_word): New.
4682 * completer.h (completion_find_completion_word): Declare.
4683
eb3ff9a5
PA
46842017-07-17 Pedro Alves <palves@redhat.com>
4685
4686 * ada-lang.c (symbol_completion_match): Adjust comments.
4687 (symbol_completion_add): Replace vector parameter with
4688 completion_tracker parameter. Use it.
4689 (ada_make_symbol_completion_list): Rename to...
4690 (ada_collect_symbol_completion_matches): ... this. Add
4691 completion_tracker parameter and use it.
4692 (ada_language_defn): Adjust.
4693 * break-catch-syscall.c (catch_syscall_completer): Adjust
4694 prototype and work with completion_tracker instead of VEC.
4695 * breakpoint.c (condition_completer): Adjust prototype and work
4696 with completion_tracker instead of VEC.
4697 * c-lang.c (c_language_defn, cplus_language_defn)
4698 (asm_language_defn, minimal_language_defn): Adjust to renames.
4699 * cli/cli-cmds.c (complete_command): Rework using
4700 completion_tracker. Catch exceptions when completing.
4701 * cli/cli-decode.c (integer_unlimited_completer)
4702 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4703 with completion_tracker instead of VEC.
4704 * command.h (struct completion_tracker): Forward declare.
4705 (completer_ftype, completer_handle_brkchars_ftype): Change
4706 types.
4707 (complete_on_cmdlist, complete_on_enum): Adjust.
4708 * completer.c: Include <algorithm>.
4709 (struct gdb_completer_state): New.
4710 (current_completion): New global.
4711 (readline_line_completion_function): Delete.
4712 (noop_completer, filename_completer)
4713 (filename_completer_handle_brkchars, complete_files_symbols)
4714 (linespec_location_completer): Adjust to work with a
4715 completion_tracker instead of a VEC.
4716 (string_or_empty): New.
4717 (collect_explicit_location_matches): Adjust to work with a
4718 completion_tracker instead of a VEC.
4719 (explicit_location_completer): Rename to ...
4720 (complete_explicit_location): ... this and adjust to work with a
4721 completion_tracker instead of a VEC.
4722 (location_completer): Adjust to work with a completion_tracker
4723 instead of a VEC.
4724 (add_struct_fields): Adjust to work with a completion_list instead
4725 of VEC.
4726 (expression_completer): Rename to ...
4727 (complete_expression): ... this and adjust to work with a
4728 completion_tracker instead of a VEC. Use complete_files_symbols.
4729 (expression_completer): Reimplement on top of complete_expression.
4730 (symbol_completer): Adjust to work with a completion_tracker
4731 instead of a VEC.
4732 (enum complete_line_internal_reason): Add describing comments.
4733 (complete_line_internal_normal_command): Adjust to work with a
4734 completion_tracker instead of a VEC.
4735 (complete_line_internal): Rename to ...
4736 (complete_line_internal_1): ... this and adjust to work with a
4737 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4738 handle_brkchars phase.
4739 (new_completion_tracker): Delete.
4740 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4741 complete_line_internal_1.
4742 (free_completion_tracker): Delete.
4743 (INITIAL_COMPLETION_HTAB_SIZE): New.
4744 (completion_tracker::completion_tracker)
4745 (completion_tracker::~completion_tracker): New.
4746 (maybe_add_completion): Delete.
4747 (completion_tracker::maybe_add_completion)
4748 (completion_tracker::add_completion)
4749 (completion_tracker::add_completions): New.
4750 (throw_max_completions_reached_error): Delete.
4751 (complete_line): Adjust to work with a completion_tracker instead
4752 of a VEC. Don't create a completion_tracker_t or check for max
4753 completions here.
4754 (command_completer, command_completer_handle_brkchars)
4755 (signal_completer, reg_or_group_completer_1)
4756 (reg_or_group_completer, default_completer_handle_brkchars):
4757 Adjust to work with a completion_tracker.
4758 (gdb_completion_word_break_characters_throw): New.
4759 (gdb_completion_word_break_characters): Reimplement.
4760 (line_completion_function): Delete.
4761 (completion_tracker::recompute_lowest_common_denominator)
4762 (expand_preserving_ws)
4763 (completion_tracker::build_completion_result)
4764 (completion_result::completion_result)
4765 (completion_result::completion_result)
4766 (completion_result::~completion_result)
4767 (completion_result::completion_result)
4768 (completion_result::release_match_list, compare_cstrings)
4769 (completion_result::sort_match_list)
4770 (completion_result::reset_match_list)
4771 (gdb_rl_attempted_completion_function_throw)
4772 (gdb_rl_attempted_completion_function): New.
4773 * completer.h (completion_list, struct completion_result)
4774 (class completion_tracker): New.
4775 (complete_line): Add completion_tracker parameter.
4776 (readline_line_completion_function): Delete.
4777 (gdb_rl_attempted_completion_function): New.
4778 (noop_completer, filename_completer, expression_completer)
4779 (location_completer, symbol_completer, command_completer)
4780 (signal_completer, reg_or_group_completer): Update prototypes.
4781 (completion_tracker_t, new_completion_tracker)
4782 (make_cleanup_free_completion_tracker): Delete.
4783 (enum maybe_add_completion_enum): Delete.
4784 (maybe_add_completion): Delete.
4785 (throw_max_completions_reached_error): Delete.
4786 * corefile.c (complete_set_gnutarget): Adjust to work with a
4787 completion_tracker instead of a VEC.
4788 * cp-abi.c (cp_abi_completer): Adjust to work with a
4789 completion_tracker instead of a VEC.
4790 * d-lang.c (d_language_defn): Adjust.
4791 * disasm.c (disassembler_options_completer): Adjust to work with a
4792 completion_tracker instead of a VEC.
4793 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4794 (f_collect_symbol_completion_matches): ... this. Adjust to work
4795 with a completion_tracker instead of a VEC.
4796 (f_language_defn): Adjust.
4797 * go-lang.c (go_language_defn): Adjust.
4798 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4799 Adjust to work with a completion_tracker instead of a VEC.
4800 * infrun.c (handle_completer): Likewise.
4801 * interps.c (interpreter_completer): Likewise.
4802 * interps.h (interpreter_completer): Likewise.
4803 * language.c (unknown_language_defn, auto_language_defn)
4804 (local_language_defn): Adjust.
4805 * language.h (language_defn::la_make_symbol_completion_list):
4806 Rename to ...
4807 (language_defn::la_collect_symbol_completion_matches): ... this
4808 and adjust to work with a completion_tracker instead of a VEC.
4809 * m2-lang.c (m2_language_defn): Adjust.
4810 * objc-lang.c (objc_language_defn): Adjust.
4811 * opencl-lang.c (opencl_language_defn): Adjust.
4812 * p-lang.c (pascal_language_defn): Adjust.
4813 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4814 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4815 with a completion_tracker.
4816 * rust-lang.c (rust_language_defn): Adjust.
4817 * symtab.c (free_completion_list, do_free_completion_list)
4818 (return_val, completion_tracker): Delete.
4819 (completion_list_add_name, completion_list_add_symbol)
4820 (completion_list_add_msymbol, completion_list_objc_symbol)
4821 (completion_list_add_fields, add_symtab_completions): Add
4822 completion_tracker parameter and use it.
4823 (default_make_symbol_completion_list_break_on_1): Rename to...
4824 (default_collect_symbol_completion_matches_break_on): ... this.
4825 Add completion_tracker parameter and use it instead of allocating
4826 a completion tracker here.
4827 (default_make_symbol_completion_list_break_on): Delete old
4828 implementation.
4829 (default_make_symbol_completion_list): Delete.
4830 (default_collect_symbol_completion_matches): New.
4831 (make_symbol_completion_list): Delete.
4832 (collect_symbol_completion_matches): New.
4833 (make_symbol_completion_type): Rename to ...
4834 (collect_symbol_completion_matches_type): ... this. Add
4835 completion_tracker parameter and use it instead of VEC.
4836 (make_file_symbol_completion_list_1): Rename to...
4837 (collect_file_symbol_completion_matches): ... this. Add
4838 completion_tracker parameter and use it instead of VEC.
4839 (make_file_symbol_completion_list): Delete.
4840 (add_filename_to_list): Use completion_list instead of a VEC.
4841 (add_partial_filename_data::list): Now a completion_list.
4842 (make_source_files_completion_list): Work with a completion_list
4843 instead of a VEC.
4844 * symtab.h: Include "completer.h".
4845 (default_make_symbol_completion_list_break_on)
4846 (default_make_symbol_completion_list, make_symbol_completion_list)
4847 (make_symbol_completion_type, make_file_symbol_completion_list)
4848 (make_source_files_completion_list): Delete.
4849 (default_collect_symbol_completion_matches_break_on)
4850 (default_collect_symbol_completion_matches)
4851 (collect_symbol_completion_matches)
4852 (collect_symbol_completion_matches_type)
4853 (collect_file_symbol_completion_matches)
4854 (make_source_files_completion_list): New.
4855 * top.c (init_main): Don't install a rl_completion_entry_function
4856 hook. Install a rl_attempted_completion_function hook instead.
4857 * tui/tui-layout.c (layout_completer): Adjust to work with a
4858 completion_tracker.
4859 * tui/tui-regs.c (tui_reggroup_completer):
4860 * tui/tui-win.c (window_name_completer, focus_completer)
4861 (winheight_completer): Adjust to work with a completion_tracker.
4862 * value.c: Include "completer.h".
4863 (complete_internalvar): Adjust to work with a completion_tracker.
4864 * value.h (complete_internalvar): Likewise.
4865
6e1dbf8c
PA
48662017-07-17 Pedro Alves <palves@redhat.com>
4867
4868 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4869 renames.
4870 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4871 comments to completer_ftype's declaration.
4872 <completer_handle_brkchars>: Change type to
4873 completer_handle_brkchars_ftype.
4874 * command.h (completer_ftype): Add describing comment and give
4875 names to parameters.
4876 (completer_ftype_void): Rename to ...
4877 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4878 (set_cmd_completer_handle_brkchars): Adjust.
4879 * completer.c (filename_completer_handle_brkchars): New function.
4880 (complete_line_internal_normal_command): New function, factored
4881 out from ...
4882 (complete_line_internal): ... here.
4883 (command_completer_handle_brkchars)
4884 (default_completer_handle_brkchars)
4885 (completer_handle_brkchars_func_for_completer): New functions.
4886 * completer.h (set_gdb_completion_word_break_characters): Delete
4887 declaration.
4888 (completer_handle_brkchars_func_for_completer): New declaration.
4889 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4890 completer_handle_brkchars_func_for_completer.
4891
78b13106
PA
48922017-07-17 Pedro Alves <palves@redhat.com>
4893
4894 * completer.c (symbol_completer): New function, based on
4895 make_symbol_completion_list_fn.
4896 * completer.h (symbol_completer): New declaration.
4897 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4898 * python/py-cmd.c (completers): Adjust.
4899 * symtab.c (make_symbol_completion_list_fn): Delete.
4900 * symtab.h (make_symbol_completion_list_fn): Delete.
4901 * cli/cli-decode.c (add_cmd): Adjust.
4902
bbf2f4df
PA
49032017-07-17 Pedro Alves <palves@redhat.com>
4904
4905 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4906 * dwarf2read.c: Include "filename-seen-cache.h".
4907 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4908 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4909 * filename-seen-cache.c: New file.
4910 * filename-seen-cache.h: New file.
4911 * symtab.c: Include "filename-seen-cache.h".
4912 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4913 (create_filename_seen_cache, clear_filename_seen_cache)
4914 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4915 to filename-seen-cache.h/filename-seen-cache.c.
4916 (output_source_filename, sources_info)
4917 (maybe_add_partial_symtab_filename)
4918 (make_source_files_completion_list): Adjust to use
4919 filename_seen_cache.
4920
330cdd98
PA
49212017-07-17 Pedro Alves <palves@redhat.com>
4922
4923 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4924 fields.
4925 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4926 dwarf2_debug_sections*)): New.
4927 (dwarf2_per_objfile::dwarf2_per_objfile(const
4928 dwarf2_per_objfile&)): Declare as deleted.
4929 (dwarf2_per_objfile::operator=): Declare as deleted.
4930 (dwarf2_per_objfile::dwarf2_per_objfile)
4931 (dwarf2_per_objfile::~dwarf2_per_objfile)
4932 (dwarf2_per_objfile::free_cached_comp_units): New.
4933 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4934 ctor. Call dwarf2_per_objfile's ctor manually.
4935 (dwarf2_locate_sections): Deleted/refactored as ...
4936 (dwarf2_per_objfile::locate_sections): ... this new method.
4937 (free_cached_comp_units): Defer to
4938 dwarf2_per_objfile::free_cached_comp_units.
4939 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4940
8880f2a9
TT
49412017-07-14 Tom Tromey <tom@tromey.com>
4942
4943 PR rust/21764:
4944 * rust-exp.y (convert_ast_to_expression): Add "want_type"
4945 parameter.
4946 <UNOP_SIZEOF>: Split into separate case.
4947 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
4948
65547233
TT
49492017-07-14 Tom Tromey <tom@tromey.com>
4950
4951 PR rust/21763:
4952 * symtab.c (symbol_matches_domain): Add language_rust to special
4953 case.
4954 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
4955 treat LOC_TYPEDEF symbols as variables.
4956
8f14146e
PA
49572017-07-14 Pedro Alves <palves@redhat.com>
4958
4959 * symtab.c (make_file_symbol_completion_list_1): Iterate over
4960 symtabs matching all symtabs with SRCFILE as file name instead of
4961 only considering the first hit, with lookup_symtab.
4962
2347965c
SM
49632017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4964
4965 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
4966 operator_name parameters.
4967 (gen_expr): Update function call.
4968
40f4af28
SM
49692017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4970
4971 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
4972 parameter.
4973 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
4974 Likewise.
4975 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
4976 parameter, use agent_expr::gdbarch instead, update function
4977 calls.
4978 (locexpr_tracepoint_var_ref): Likewise.
4979 (loclist_tracepoint_var_ref): Likewise.
4980 * ax-gdb.c (gen_trace_static_fields): Likewise.
4981 (gen_traced_pop): Likewise.
4982 (gen_frame_args_address): Likewise.
4983 (gen_frame_locals_address): Likewise.
4984 (gen_var_ref): Likewise.
4985 (gen_struct_ref_recursive): Likewise.
4986 (gen_static_field): Likewise.
4987 (gen_maybe_namespace_elt): Likewise.
4988 (gen_expr): Likewise.
4989 (gen_trace_for_var): Likewise.
4990 (gen_trace_for_expr): Likewise.
4991 (gen_trace_for_return_address): Likewise.
4992
053f8057
SM
49932017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4994
4995 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
4996 parameter.
4997 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
4998
6661ad48
SM
49992017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5000
5001 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
5002 from ax, update calls.
5003 (gen_usual_arithmetic): Likewise.
5004 (gen_integral_promotions): Likewise.
5005 (gen_bitfield_ref): Likewise.
5006 (gen_primitive_field): Likewise.
5007 (gen_struct_ref_recursive): Likewise.
5008 (gen_struct_ref): Likewise.
5009 (gen_maybe_namespace_elt): Likewise.
5010 (gen_struct_elt_for_reference): Likewise.
5011 (gen_namespace_elt): Likewise.
5012 (gen_aggregate_elt_ref): Likewise.
5013 (gen_expr): Get gdbarch from ax, update calls.
5014 (gen_expr_binop_rest): Likewise.
5015
c55a47e7
PA
50162017-07-13 Pedro Alves <palves@redhat.com>
5017
5018 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
5019 as default tdesc.
5020 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
5021 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
5022 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
5023 tdesc_amd64_linux as default tdesc. Get final tdesc from the
5024 tdep.
5025 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
5026 Get final tdesc from the tdep.
5027 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
5028 default tdesc.
5029 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5030 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5031 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
5032 Use it as default tdesc.
5033 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
5034 down to amd_init_abi. No longer handle fallback tdesc here.
5035 * amd64-tdep.h (tdesc_x32): Declare.
5036 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
5037 parameter.
5038 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
5039 as default tdesc.
5040
55efceab
AA
50412017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5042
5043 * s390-linux-tdep.c (s390_process_record): Add support for
5044 instructions new in arch12.
5045
0aa37b65
JB
50462017-07-11 John Baldwin <jhb@FreeBSD.org>
5047
5048 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5049 PT_GETFSBASE and PT_GETGSBASE.
5050 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
5051 PT_SETGSBASE.
5052
48aeef91
JB
50532017-07-11 John Baldwin <jhb@FreeBSD.org>
5054
5055 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
5056 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
5057 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
5058 those rules.
5059 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
5060 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
5061 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
5062 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
5063 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
5064 * features/i386/amd64.xml: Add 64bit-segments.xml.
5065 * features/i386/amd64-avx-avx512.c: Regenerated.
5066 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
5067 * features/i386/amd64-avx-mpx.c: Regenerated.
5068 * features/i386/amd64-avx.c: Regenerated.
5069 * features/i386/amd64-mpx.c: Regenerated.
5070 * features/i386/amd64.c: Regenerated.
5071 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
5072 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5073 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
5074 * regformats/i386/amd64-avx.dat: Regenerated.
5075 * regformats/i386/amd64-mpx.dat: Regenerated.
5076 * regformats/i386/amd64.dat: Regenerated.
5077
77c501bc
YQ
50782017-07-10 Yao Qi <yao.qi@linaro.org>
5079
5080 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
5081 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
5082
6dc8d757
AK
50832017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
5084
5085 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
5086 unsetenv.
5087 * gnulib/aclocal.m4: Regenerate.
5088 * gnulib/config.in: Regenerate.
5089 * gnulib/configure: Regenerate.
5090 * gnulib/import/Makefile.am: Regenerate.
5091 * gnulib/import/Makefile.in: Regenerate.
5092 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5093 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5094 * gnulib/import/m4/environ.m4: New file.
5095 * gnulib/import/m4/setenv.m4: New file.
5096 * gnulib/import/setenv.c: New file.
5097 * gnulib/import/unsetenv.c: New file.
5098
266934d1
SM
50992017-07-09 Simon Marchi <simon.marchi@ericsson.com>
5100
5101 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
5102 address when op is DW_OP_addr.
5103
03278692
TT
51042017-07-09 Tom Tromey <tom@tromey.com>
5105
5106 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
5107 check and apply to outer type.
5108
4b654465
JB
51092017-07-07 John Baldwin <jhb@FreeBSD.org>
5110
5111 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
5112 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
5113 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
5114 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
5115
2af9fc44
JB
51162017-07-07 John Baldwin <jhb@FreeBSD.org>
5117
5118 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
5119
382b69bb
JB
51202017-07-07 John Baldwin <jhb@FreeBSD.org>
5121
5122 * corelow.c (get_core_siginfo): Remove.
5123 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
5124 instead of get_core_siginfo.
5125 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
5126 * gdbarch.h: Re-generate.
5127 * gdbarch.c: Re-generate.
5128 * linux-tdep.c (linux_core_xfer_siginfo): New.
5129 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
5130
6e5eab33
JB
51312017-07-07 John Baldwin <jhb@FreeBSD.org>
5132
5133 * corelow.c (thread_section_name): Move to ...
5134 * gdbcore.h (thread_section_name): ... here.
5135
929edea9
JB
51362017-07-07 John Baldwin <jhb@FreeBSD.org>
5137
5138 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
5139 (struct siginfo32): New.
5140 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
5141 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
5142 via ptrace(PT_LWPINFO).
5143
762c974a
JB
51442017-07-07 John Baldwin <jhb@FreeBSD.org>
5145
5146 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
5147 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
5148 (fbsd_get_siginfo_type): New.
5149 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5150 (_initialize_fbsd_tdep): New.
5151
33c5cd75
DB
51522017-07-06 David Blaikie <dblaikie@gmail.com>
5153
5154 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
5155 a singular dwo_unit*) to support multiple CUs in the same way that
5156 multiple TUs are supported.
5157 (create_cus_hash_table): Replace create_dwo_cu with a function for
5158 parsing multiple CUs from a DWO file.
5159 (open_and_init_dwo_file): Use create_cus_hash_table rather than
5160 create_dwo_cu.
5161 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
5162 htab_find, rather than comparing the signature to a singleton CU in
5163 the dwo_file.
5164
8455d262
PA
51652017-07-06 Pedro Alves <palves@redhat.com>
5166
5167 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
5168
4da3eb35
PA
51692017-07-04 Pedro Alves <palves@redhat.com>
5170
5171 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
5172 * gdbtypes.h (TYPE_STATIC): Delete.
5173 (struct fn_field) <is_public, is_abstract, is_static, is_final,
5174 is_synchronized, is_native>: Delete.
5175 <dummy>: Bump.
5176 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
5177 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
5178 (TYPE_FN_FIELD_ABSTRACT): Delete.
5179
5bfd255c
SM
51802017-07-03 Simon Marchi <simon.marchi@ericsson.com>
5181
5182 * buffer.h (buffer_finish): Fix spelling mistakes.
5183
25c54127
EZ
51842017-07-01 Eli Zaretskii <eliz@gnu.org>
5185
5186 * .dir-locals.el: Automatically switch to C-style comments in
5187 versions of Emacs that support the feature.
5188
dc4bde35
SDJ
51892017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5190 Pedro Alves <palves@redhat.com>
5191
5192 PR cli/21688
5193 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
5194 (process_next_line): New variable 'inline_cmd'.
5195 Adjust 'if' clauses for "python", "compile" and "guile" to use
5196 'command_name_equals' and check for '!inline_cmd'.
5197
51ed89aa
SDJ
51982017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5199
5200 PR cli/21688
5201 * cli/cli-script.c (command_name_equals_not_inline): New function.
5202 (process_next_line): Adjust 'if' clauses for "python", "compile"
5203 and "guile" to use command_name_equals_not_inline.
5204
eb17d413
PA
52052017-06-29 Pedro Alves <palves@redhat.com>
5206
5207 * completer.c (expression_completer): Call
5208 linespec_location_completer instead of location_completer.
5209
195bcdd5
PA
52102017-06-29 Pedro Alves <palves@redhat.com>
5211
5212 * completer.c (expression_completer): Remove code that recomputes
5213 'text' from 'word'.
5214
adc764e7
YQ
52152017-06-29 Yao Qi <yao.qi@linaro.org>
5216
5217 * regformats/regdat.sh: Generate code with
5218 "ifndef IN_PROCESS_AGENT".
5219
6e75794e
PA
52202017-06-28 Pedro Alves <palves@redhat.com>
5221
5222 * command.h: Include "common/scoped_restore.h".
5223
bc491f2e
YQ
52242017-06-28 Yao Qi <yao.qi@linaro.org>
5225
5226 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
5227 instead of obstack_grow.
5228
41664b45
DG
52292017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
5230
5231 PR gdb/21337
5232 * symfile.c (reread_symbols): Call objfiles_changed just before
5233 read_symbols.
5234
6da67eb1
PA
52352017-06-27 Pedro Alves <palves@redhat.com>
5236
5237 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
5238 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
5239 (completion_list_add_symbol, completion_list_add_msymbol):
5240 ... these new functions.
5241 (add_symtab_completions)
5242 (default_make_symbol_completion_list_break_on_1): Adjust.
5243
23732b1e
PA
52442017-06-27 Pedro Alves <palves@redhat.com>
5245
5246 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
5247 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
5248 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
5249 dtor.
5250 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
5251 'storage_obstack' field an auto_obstack. In-class initialize all
5252 non-bitfield fields. Make minsyms_read bool.
5253 * symfile.c (read_symbols): Adjust.
5254
a4d1e79a
AH
52552017-06-27 Alan Hayward <alan.hayward@arm.com>
5256
5257 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
5258 (gdbsim_store_register): Likewise.
5259
8268c778
PA
52602017-06-27 Pedro Alves <palves@redhat.com>
5261
5262 * c-exp.y (name_obstack): Now an auto_obstack.
5263 (yylex): Use auto_obstack::clear.
5264 (c_parse): Use auto_obstack::clear instead of reinitializing and
5265 freeing the obstack.
5266 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
5267 * d-exp.y (name_obstack): Now an auto_obstack.
5268 (yylex): Use auto_obstack::clear.
5269 (d_parse): Use auto_obstack::clear instead of reinitializing and
5270 freeing the obstack.
5271 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
5272 auto_obstack.
5273 * dwarf2read.c (create_addrmap_from_index)
5274 (dwarf2_build_psymtabs_hard)
5275 (update_enumeration_type_from_children): Likewise.
5276 * gdb_obstack.h (auto_obstack): New type.
5277 * go-exp.y (name_obstack): Now an auto_obstack.
5278 (build_packaged_name): Use auto_obstack::clear.
5279 (go_parse): Use auto_obstack::clear instead of reinitializing and
5280 freeing the obstack.
5281 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
5282 auto_obstack.
5283 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
5284 * rust-exp.y (work_obstack): Now an auto_obstack.
5285 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
5286 reinitializing and freeing the obstack.
5287 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
5288 (host_char_to_target): Use auto_obstack.
5289 * utils.h (make_cleanup_obstack_free): Delete declaration.
5290 * valprint.c (generic_emit_char, generic_printstr): Use
5291 auto_obstack.
5292
db665f42
SM
52932017-06-27 Simon Marchi <simon.marchi@ericsson.com>
5294
5295 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
5296 thread.
5297 (darwin_init_thread_list): Don't update dummy thread.
5298 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
5299
873c0814
SM
53002017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5301
5302 * record-full.c (netorder16): Remove.
5303
8b5a7a6e
SM
53042017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5305
5306 * common/diagnostics.h: Define macros for GCC.
5307 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
5308 * common/vec.h: Include diagnostics.h.
5309 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
5310 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
5311 warning.
5312
d1435379
SM
53132017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5314
5315 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
5316 New macro.
5317 * ada-lex.l: Ignore deprecated register warnings.
5318
cc75e0fd
SM
53192017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5320
5321 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
5322 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
5323
07809eaf
SM
53242017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5325
5326 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
5327 its own line.
5328
f076f034
SM
53292017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5330
5331 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
5332
0dd5cbc5
AH
53332017-06-23 Alan Hayward <alan.hayward@arm.com>
5334
5335 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
5336 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
5337 (xtensa_register_read_masked): Likewise.
5338
d4c6ce5b
SDJ
53392017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
5340
5341 * common/environ.c (gdb_environ::unset): Update comment.
5342
16892a03
AH
53432017-06-22 Alan Hayward <alan.hayward@arm.com>
5344
5345 * python/py-unwind.c (pyuw_sniffer): Allocate space for
5346 registers.
5347
d7dcbefc
AH
53482017-06-22 Alan Hayward <alan.hayward@arm.com>
5349
5350 * record-full.c (record_full_exec_insn): Use byte_vector.
5351
b30ff123
YQ
53522017-06-22 Yao Qi <yao.qi@linaro.org>
5353
5354 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
5355 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5356
4fa847d7
AH
53572017-06-22 Alan Hayward <alan.hayward@arm.com>
5358
5359 * remote.c (cached_reg): Move from here...
5360 * regcache.h (cached_reg): ...to here.
5361 * python/py-unwind.c (struct reg_info): Remove.
5362 (cached_frame_info): Use cached_reg_t.
5363 (pyuw_prev_register): Likewise.
5364 (pyuw_sniffer): Use cached_reg_t and allocate registers.
5365 (pyuw_dealloc_cache): Free all registers.
5366
f4906a9a
PA
53672017-06-22 Pedro Alves <palves@redhat.com>
5368 Simon Marchi <simon.marchi@ericsson.com>
5369
5370 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5371 warning.
5372 * common/diagnostics.h: New file.
5373
b45a1208
PA
53742017-06-22 Pedro Alves <palves@redhat.com>
5375
5376 * common/agent.h: Add include guards.
5377
e4da2c61
SM
53782017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5379
5380 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5381 talk about addressable units instead of bytes.
5382
96160d60
SDJ
53832017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5384
5385 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5386 of '::const_iterator'.
5387
9a6c7d9c
SDJ
53882017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5389
5390 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5391 'unittests/environ-selftests.c'.
5392 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5393 * charset.c (find_charset_names): Declare object 'iconv_env'.
5394 Update code to use 'iconv_env' object. Remove call to
5395 'free_environ'.
5396 * common/environ.c: Include <utility>.
5397 (make_environ): Delete function.
5398 (free_environ): Delete function.
5399 (gdb_environ::clear): New function.
5400 (gdb_environ::operator=): New function.
5401 (gdb_environ::get): Likewise.
5402 (environ_vector): Delete function.
5403 (set_in_environ): Delete function.
5404 (gdb_environ::set): New function.
5405 (unset_in_environ): Delete function.
5406 (gdb_environ::unset): New function.
5407 (gdb_environ::envp): Likewise.
5408 * common/environ.h: Include <vector>.
5409 (struct gdb_environ): Delete; transform into...
5410 (class gdb_environ): ... this class.
5411 (free_environ): Delete prototype.
5412 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5413 environ_vector): Likewise.
5414 * infcmd.c (run_command_1): Update code to call
5415 'envp' from 'gdb_environ' class.
5416 (environment_info): Update code to call methods from 'gdb_environ'
5417 class.
5418 (unset_environment_command): Likewise.
5419 (path_info): Likewise.
5420 (path_command): Likewise.
5421 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5422 (inferior::inferior): Initialize 'environment' using the host's
5423 information.
5424 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5425 Include "environ.h".
5426 (class inferior) <environment>: Change type from 'struct
5427 gdb_environ' to 'gdb_environ'.
5428 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5429 methods from 'gdb_environ' class.
5430 * solib.c (solib_find_1): Likewise
5431 * unittests/environ-selftests.c: New file.
5432
75c554cf
YQ
54332017-06-20 Yao Qi <yao.qi@linaro.org>
5434
5435 * features/i386/i386-linux.xml: Exchange the order of including
5436 32bit-linux.xml and 32bit-sse.xml.
5437 * features/i386/i386-linux.c: Regenerated.
5438
72ddacb7
YQ
54392017-06-20 Yao Qi <yao.qi@linaro.org>
5440
5441 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5442 Delete copy ctor and assignment operator.
5443 (tdesc_type): Likewise.
5444 (tdesc_feature): Likewise.
5445 (tdesc_free_reg): Remove.
5446 (tdesc_create_reg): Use new.
5447 (tdesc_free_type): Remove.
5448 (tdesc_create_vector): Use new.
5449 (tdesc_create_union): Likewise.
5450 (tdesc_create_flags): Likewise.
5451 (tdesc_create_enum): Likewise.
5452 (tdesc_free_feature): Delete.
5453 (free_target_description): Use delete.
5454
325c9fd4
JB
54552017-06-19 John Baldwin <jhb@FreeBSD.org>
5456
5457 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5458 registers.
5459
16b7a719
PA
54602017-06-19 Pedro Alves <palves@redhat.com>
5461
5462 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5463 after gdb::unlinker.
5464
1c8e01c9
SDJ
54652017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5466
5467 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5468 gdb_environ to access an environment variable.
5469
ffce45d2
TP
54702017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5471
5472 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5473 gdb_byte*.
5474
1d4fbac9
SM
54752017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5476
5477 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5478
8465943a
SM
54792017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5480
5481 * configure: Re-generate.
5482 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5483
3e019bdc
SM
54842017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5485
5486 * configure: Re-generate.
5487 * warning.m4: Pass -Werror to compiler when checking for
5488 supported warning flags.
5489
cf0dd6f0
SM
54902017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5491
5492 * Makefile.in (COMPILE.pre): Add "-x c++".
5493
6f98355c
YQ
54942017-06-16 Alan Hayward <alan.hayward@arm.com>
5495 Pedro Alves <palves@redhat.com>
5496 Yao Qi <yao.qi@linaro.org>
5497
5498 * defs.h (RequireLongest): New.
5499 (extract_integer): Declare function template.
5500 (extract_signed_integer): Remove the declaration, but define it
5501 static inline.
5502 (extract_unsigned_integer): Likewise.
5503 (store_integer): Declare function template.
5504 (store_signed_integer): Remove the declaration, but define it
5505 static inline.
5506 (store_unsigned_integer): Likewise.
5507 * findvar.c (extract_integer): New function template.
5508 (extract_signed_integer): Remove.
5509 (extract_unsigned_integer): Remove.
5510 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5511 instantiations.
5512 (store_integer): New function template.
5513 (store_signed_integer): Remove.
5514 (store_unsigned_integer): Remove.
5515 (store_integer): Explicit instantiations.
5516 * regcache.c (regcache_raw_read_signed): Update.
5517 (regcache::raw_read): New function.
5518 (regcache::raw_read_signed): Remove.
5519 (regcache::raw_read_unsigned): Remove.
5520 (regcache_raw_read_unsigned): Update.
5521 (regcache_raw_write_unsigned): Update.
5522 (regcache::raw_write_signed): Remove.
5523 (regcache::raw_write): New function.
5524 (regcache_cooked_read_signed): Update.
5525 (regcache::raw_write_unsigned): Remove.
5526 (regcache::cooked_read_signed): Remove.
5527 (regcache_cooked_read_unsigned): Update.
5528 (regcache::cooked_read_unsigned): Remove.
5529 (regcache_cooked_write_signed): Update.
5530 (regcache_cooked_write_unsigned): Update.
5531 * regcache.h (regcache) <raw_read_signed>: Remove.
5532 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5533 <raw_read, raw_write>: New.
5534 <cooked_read_signed, cooked_write_signed>: Remove.
5535 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5536 <cooked_read, cooked_write>: New.
5537 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5538 (sh64_pseudo_register_write): Update.
5539
a87dc45a
AK
55402017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5541
5542 * arc-tdep.c (arc_disassembler_options): New variable.
5543 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5544 of default_print_insn.
5545 (arc_delayed_print_insn): Set info->section when needed,
5546 use default_print_insn to retrieve a disassembler.
5547
45159d6a
SDJ
55482017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5549
5550 PR gdb/21574
5551 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5552 to mention $SHELL and startup-with-shell.
5553
b46c4cf0
MF
55542017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5555
5556 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5557
6394c606
YQ
55582017-06-14 Yao Qi <yao.qi@linaro.org>
5559
5560 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5561 default_print_insn instead of print_insn_aarch64.
5562 * arm-tdep.c (gdb_print_insn_arm): Call
5563 default_print_insn instead of print_insn_big_arm
5564 and print_insn_little_arm.
5565 * i386-tdep.c (i386_print_insn): Call default_print_insn
5566 instead of print_insn_i386.
5567 * ia64-tdep.c (ia64_print_insn): Call
5568 default_print_insn instead of print_insn_ia64.
5569 * mips-tdep.c (gdb_print_insn_mips): Call
5570 default_print_insn instead of print_insn_big_mips
5571 and print_insn_little_mips.
5572 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5573 instead of print_insn_spu.
5574
d5722aa2
PA
55752017-06-14 Pedro Alves <palves@redhat.com>
5576
5577 * ada-lang.c: Include "common/byte-vector.h".
5578 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5579 * charset.c (wchar_iterator::iterate): Resize the vector instead
5580 of reserving it.
5581 * common/byte-vector.h: Include "common/def-vector.h".
5582 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5583 * cli/cli-dump.c: Include "common/byte-vector.h".
5584 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5585 * common/byte-vector.h: New file.
5586 * common/def-vector.h: New file.
5587 * common/default-init-alloc.h: New file.
5588 * dwarf2loc.c: Include "common/byte-vector.h".
5589 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5590 instead of reserving it.
5591 * dwarf2read.c: Include "common/byte-vector.h".
5592 (data_buf::m_vec): Now a gdb::byte_vector.
5593 * gdb_regex.c: Include "common/def-vector.h".
5594 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5595 * mi/mi-main.c: Include "common/byte-vector.h".
5596 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5597 * printcmd.c: Include "common/byte-vector.h".
5598 (print_scalar_formatted): Use gdb::byte_vector.
5599 * valprint.c: Include "common/byte-vector.h".
5600 (maybe_negate_by_bytes, print_decimal_chars): Use
5601 gdb::byte_vector.
5602
01ec7a27
SM
56032017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5604
5605 * darwin-nat.c: Include "nat/fork-inferior.h".
5606
848d9074
SM
56072017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5608
5609 * configure.nat: Factor out Darwin bits that are not
5610 architecture-specific. Add fork-inferior.o.
5611
3b912944
SM
56122017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5613
5614 * configure.nat: Factor out AIX bits that are not
5615 architecture-specific. Add fork-inferior.o.
5616
55acdf22
AA
56172017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5618
5619 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5620 (read_pieced_value, write_pieced_value): ...here. Reduce to
5621 wrappers that just call rw_pieced_value.
5622
f65e2044
AA
56232017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5624
5625 * dwarf2loc.c (write_pieced_value): When writing the data for a
5626 memory piece, use write_memory_with_notification instead of
5627 write_memory.
5628
23f945bf
AA
56292017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5630
5631 * valops.c (read_value_memory): Change embedded_offset to
5632 represent a bit offset instead of a byte offset.
5633 * value.h (read_value_memory): Adjust comment.
5634
f236533e
AA
56352017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5636
5637 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5638 dest_offset_bits and source_offset_bits.
5639 (write_pieced_value): Likewise.
5640
65d84b76
AA
56412017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5642
5643 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5644 given by DW_OP_bit_piece.
5645 (write_pieced_value): Likewise.
5646
242d31ab
AA
56472017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5648
5649 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5650 some other preparations to the places where sufficient information
5651 is available.
5652 (write_pieced_value): Likewise.
5653
03c8af18
AA
56542017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5655
5656 * dwarf2loc.c (bits_to_bytes): New function.
5657 (read_pieced_value): Fix offset calculations for register pieces
5658 on big-endian targets.
5659 (write_pieced_value): Likewise.
5660
840989c1
AA
56612017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5662
5663 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5664 (write_pieced_value): Likewise.
5665
359b19bb
AA
56662017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5667
5668 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5669 transfer the source value's least significant bits, instead of its
5670 lowest-addressed ones. Rename type_len to max_offset.
5671 (read_pieced_value): Mirror above changes to write_pieced_value as
5672 applicable.
5673
07c9ca3b
AA
56742017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5675
5676 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5677 truncate full bytes from dest_offset_bits before using it as an
5678 offset into the buffer.
5679
f1cc9874
AA
56802017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5681
5682 * dwarf2loc.c (write_pieced_value): Include transfer size in
5683 byte-wise check.
5684
cdaac320
AA
56852017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5686
5687 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5688 calculation of this_size.
5689
af547a96
AA
56902017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5691
5692 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5693 when targeting a bit-field.
5694 (write_pieced_value): Likewise.
5695
ddd7882a
AA
56962017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5697
5698 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5699 (allocate_piece_closure): Drop addr_size parameter.
5700 (dwarf2_evaluate_loc_desc_full): Adjust call to
5701 allocate_piece_closure.
5702
e9352324
AA
57032017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5704
5705 PR gdb/21226
5706 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5707 the LSB end, independent of endianness.
5708
d5d1163e
AA
57092017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5710
5711 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5712 size capping.
5713
032bb6ea
YQ
57142017-06-13 Yao Qi <yao.qi@linaro.org>
5715
5716 * mips-linux-nat.c: Move include features/mips*-linux.c to
5717 mips-linux-tdep.c.
5718 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5719 to mips-linux-tdep.c.
5720 * mips-linux-tdep.c: Include features/mips*-linux.c
5721 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5722 functions.
5723 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5724 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5725 (tdesc_mips64_dsp_linux): Declare.
5726
f12f6bad
TT
57272017-06-12 Tom Tromey <tom@tromey.com>
5728
5729 * valprint.h (val_print_type_code_int): Remove.
5730 * valprint.c (generic_val_print_int): Always call
5731 val_print_scalar_formatted.
5732 (val_print_type_code_int): Remove.
5733 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5734 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5735 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5736 * ada-valprint.c (ada_val_print_num): Use
5737 val_print_scalar_formatted.
5738
d9109c80
TT
57392017-06-12 Tom Tromey <tom@tromey.com>
5740
5741 * printcmd.c (print_scalar_formatted): Unify the two switches.
5742 Don't convert scalars to LONGEST.
5743
4ac0cb1c
TT
57442017-06-12 Tom Tromey <tom@tromey.com>
5745
5746 PR exp/16225:
5747 * valprint.h (print_decimal_chars): Update.
5748 * valprint.c (maybe_negate_by_bytes): New function.
5749 (print_decimal_chars): Add "is_signed" argument.
5750 * printcmd.c (print_scalar_formatted): Update.
5751
30a25466
TT
57522017-06-12 Tom Tromey <tom@tromey.com>
5753
5754 PR exp/16225:
5755 * valprint.h (print_binary_chars, print_hex_chars): Update.
5756 * valprint.c (val_print_type_code_int): Update.
5757 (print_binary_chars): Add "zero_pad" argument.
5758 (emit_octal_digit): New function.
5759 (print_octal_chars): Don't zero-pad.
5760 (print_decimal_chars): Likewise.
5761 (print_hex_chars): Add "zero_pad" argument.
5762 * sh64-tdep.c (sh64_do_fp_register): Update.
5763 * regcache.c (regcache::dump): Update.
5764 * printcmd.c (print_scalar_formatted): Update.
5765 * infcmd.c (default_print_one_register_info): Update.
5766
b3464d03
PA
57672017-06-12 Pedro Alves <palves@redhat.com>
5768 Alan Hayward <alan.hayward@arm.com>
5769
5770 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5771 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5772 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5773 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5774 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5775
4b76cda9
PA
57762017-06-12 Pedro Alves <palves@redhat.com>
5777
5778 * dwarf2read.c (mapped_symtab::data): Now a vector of
5779 symtab_index_entry instead of vector of
5780 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5781 whether an element's name is NULL instead of checking whether the
5782 element itself is NULL.
5783 (find_slot): Change return type. Adjust.
5784 (hash_expand, , add_index_entry, uniquify_cu_indices)
5785 (write_hash_table): Adjust.
5786
e8f8bcb3
PA
57872017-06-12 Pedro Alves <palves@redhat.com>
5788
5789 * dwarf2read.c (recursively_count_psymbols): New function.
5790 (write_psymtabs_to_index): Call it to compute number of psyms and
5791 pass estimate size of psyms_seen to unordered_set's ctor.
5792
70a1152b
PA
57932017-06-12 Pedro Alves <palves@redhat.com>
5794
5795 * dwarf2read.c (write_hash_table): Check if key already exists
5796 before emplacing.
5797
c2f134ac
PA
57982017-06-12 Pedro Alves <palves@redhat.com>
5799
5800 * dwarf2read.c (data_buf::append_space): Rename to...
5801 (data_buf::grow): ... this, and make private. Adjust all callers.
5802 (data_buf::append_uint): New method.
5803 (add_address_entry, write_one_signatured_type)
5804 (write_psymtabs_to_index): Use it.
5805
a81e6d4d
PA
58062017-06-12 Pedro Alves <palves@redhat.com>
5807
5808 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5809 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5810 (data_buf::file_write): Call ::fwrite directly.
5811
6fd931f2
PA
58122017-06-12 Pedro Alves <palves@redhat.com>
5813
5814 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5815 std::vector::erase.
5816
bc8f2430
JK
58172017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5818
5819 Code cleanup: C++ify .gdb_index producer.
5820 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5821 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5822 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5823 (create_strtab, add_string): Remove.
5824 (file_write, data_buf): New.
5825 (struct symtab_index_entry): Use std::vector for cu_indices.
5826 (struct mapped_symtab): Use std::vector for data.
5827 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5828 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5829 Remove.
5830 (find_slot): Change return type. Update it to the new data structures.
5831 (hash_expand, add_index_entry): Update it to the new data structures.
5832 (offset_type_compare): Remove.
5833 (uniquify_cu_indices): Update it to the new data structures.
5834 (c_str_view, c_str_view_hasher, vector_hasher): New.
5835 (add_indices_to_cpool): Remove.
5836 (write_hash_table): Update it to the new data structures.
5837 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5838 (eq_psymtab_cu_index): Remove.
5839 (psym_index_map): New typedef.
5840 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5841 reference and std::unordered_map for cu_index_htab.
5842 (add_address_entry, add_address_entry_worker, write_address_map)
5843 (write_psymbols): Update it to the new data structures.
5844 (write_obstack): Remove.
5845 (struct signatured_type_index_data): Change types_list to a data_buf
5846 reference and psyms_seen to a std::unordered_set reference.
5847 (write_one_signatured_type, recursively_write_psymbols)
5848 (write_psymtabs_to_index): Update it to the new data structures.
5849
c4dcb155
SM
58502017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5851
5852 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5853 separate-debug-file commands.
5854 * symfile.h (separate_debug_file_debug): New global.
5855 * symfile.c (separate_debug_file_debug): New global.
5856 (separate_debug_file_exists, find_separate_debug_file): Add
5857 debug output.
5858 (_initialize_symfile): Add "set debug separate-debug-file"
5859 command.
5860 * build-id.c (build_id_to_debug_bfd,
5861 find_separate_debug_file_by_buildid): Add debug output.
5862
6d45d4b4
SM
58632017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5864
5865 * gdbarch.sh (displaced_step_free_closure): Remove.
5866 * gdbarch.h, gdbarch.c: Re-generate.
5867 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5868 displaced_step_free_closure.
5869 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5870 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5871 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5872 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5873 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5874 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5875 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5876 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5877 * infrun.c (displaced_step_clear): Call xfree instead of
5878 gdbarch_displaced_step_free_closure.
5879
2f91880f
SDJ
58802017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5881
5882 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5883 NULL".
5884
b8b6e72f
AH
58852017-06-08 Alan Hayward <alan.hayward@arm.com>
5886
5887 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5888 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5889 (mn10300_push_dummy_call): Likewise.
5890
5369082e
AH
58912017-06-08 Alan Hayward <alan.hayward@arm.com>
5892
5893 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5894
ff4ca5ac
AH
58952017-06-08 Alan Hayward <alan.hayward@arm.com>
5896
5897 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5898
aefd8b33
SDJ
58992017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5900
5901 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5902 able to start inferiors using a shell.
5903 (New remote packets): Announce new packet "QStartupWithShell".
5904 * remote.c: Add PACKET_QStartupWithShell.
5905 (extended_remote_create_inferior): Handle new
5906 PACKET_QStartupWithShell.
5907 (remote_protocol_features) <QStartupWithShell>: New entry for
5908 PACKET_QStartupWithShell.
5909 (_initialize_remote): Call "add_packet_config_cmd" for
5910 QStartupShell.
5911
2090129c
SDJ
59122017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5913 Pedro Alves <palves@redhat.com>
5914
5915 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5916 and "nat/fork-inferior.h".
5917 * common/common-inferior.h: New file, with contents from
5918 "gdb/inferior.h".
5919 * commom/common-utils.c: Include "common-utils.h".
5920 (stringify_argv): New function.
5921 * common/common-utils.h (stringify_argv): New prototype.
5922 * configure.nat: Add "fork-inferior.o" as a dependency for
5923 "*linux*", "fbsd*" and "nbsd*" hosts.
5924 * corefile.c (get_exec_file): Update comment.
5925 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5926 instead of "startup_inferior".
5927 (darwin_create_inferior): Call "add_thread_silent" after
5928 "fork_inferior".
5929 * fork-child.c: Cleanup unnecessary includes.
5930 (SHELL_FILE): Move to "common/common-fork-child.c".
5931 (environ): Likewise.
5932 (exec_wrapper): Initialize.
5933 (get_exec_wrapper): New function.
5934 (breakup_args): Move to "common/common-fork-child.c"; rename to
5935 "breakup_args_for_exec".
5936 (escape_bang_in_quoted_argument): Move to
5937 "common/common-fork-child.c".
5938 (saved_ui): New variable.
5939 (prefork_hook): New function.
5940 (postfork_hook): Likewise.
5941 (postfork_child_hook): Likewise.
5942 (gdb_startup_inferior): Likewise.
5943 (fork_inferior): Move to "common/common-fork-child.c". Update
5944 function to support gdbserver.
5945 (startup_inferior): Likewise.
5946 * gdbcore.h (get_exec_file): Remove declaration.
5947 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
5948 instead of "startup_inferior". Call "add_thread_silent" after
5949 "fork_inferior".
5950 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
5951 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
5952 instead of "startup_inferior". Call "add_thread_silent" after
5953 "fork_inferior".
5954 * inferior.h: Include "common-inferior.h".
5955 (trace_start_error): Move to "common/common-utils.h".
5956 (trace_start_error_with_name): Likewise.
5957 (fork_inferior): Move prototype to "nat/fork-inferior.h".
5958 (startup_inferior): Likewise.
5959 (gdb_startup_inferior): New prototype.
5960 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
5961 * nat/fork-inferior.h: New file.
5962 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
5963 instead of "startup_inferior". Call "add_thread_silent" after
5964 "fork_inferior".
5965 * target.h (target_terminal_init): Move prototype to
5966 "target/target.h".
5967 (target_terminal_inferior): Likewise.
5968 (target_terminal_ours): Likewise.
5969 * target/target.h (target_terminal_init): New prototype, moved
5970 from "target.h".
5971 (target_terminal_inferior): Likewise.
5972 (target_terminal_ours): Likewise.
5973 * utils.c (gdb_flush_out_err): New function.
5974
043a4934
SDJ
59752017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5976
5977 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
5978 * common/common-gdbthread.h: New file, with parts from
5979 "gdb/gdbthread.h".
5980 * gdbthread.h: Include "common-gdbthread.h".
5981 (switch_to_thread): Moved to "common/common-gdbthread.h".
5982
15652511
SDJ
59832017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5984
5985 * Makefile.in (SFILES): Add "common/job-control.c".
5986 (HFILES_NO_SRCDIR): Add "common/job-control.h".
5987 (COMMON_OBS): Add "job-control.o".
5988 * common/job-control.c: New file, with contents from
5989 "gdb/inflow.c".
5990 * common/job-control.h: New file, with contents from "terminal.h".
5991 * fork-child.c: Include "job-control.h".
5992 * inflow.c: Include "job-control.h".
5993 (gdb_setpgid): Move to "common/common-inflow.c".
5994 (_initialize_inflow): Move setting of "job_control" to
5995 "handle_job_control".
5996 * terminal.h (job_control): Moved to "common/common-terminal.h".
5997 (gdb_setpgid): Likewise.
5998 * top.c: Include "job_control.h".
5999 * utils.c: Likewise.
6000 (job_control): Moved to "job-control.c".
6001
2d7cc5c7
PA
60022017-06-07 Pedro Alves <palves@redhat.com>
6003
6004 * Makefile.in (SFILES): Add gdb_regex.c.
6005 (COMMON_OBS): Add gdb_regex.o.
6006 * ada-lang.c (ada_add_standard_exceptions)
6007 (ada_add_exceptions_from_frame, name_matches_regex)
6008 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
6009 parameter type to compiled_regex. Adjust.
6010 (ada_exceptions_list): Use compiled_regex.
6011 * break-catch-throw.c (exception_catchpoint::pattern): Now a
6012 std::unique_ptr<compiled_regex>.
6013 (exception_catchpoint::~exception_catchpoint): Remove regfree
6014 call.
6015 (check_status_exception_catchpoint): Adjust to use compiled_regex.
6016 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
6017 * breakpoint.c (solib_catchpoint::compiled): Now a
6018 std::unique_ptr<compiled_regex>.
6019 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
6020 (check_status_catch_solib): Adjust to use compiled_regex.
6021 (add_solib_catchpoint): Adjust to use compiled_regex.
6022 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
6023 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
6024 compiled_regex reference. Adjust to use it.
6025 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
6026 declaration. Include "gdb_regex.h".
6027 (apropos_cmd): Change regex parameter to compiled_regex reference.
6028 * gdb_regex.c: New file.
6029 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
6030 declarations.
6031 (class compiled_regex): New.
6032 * linux-tdep.c: Include "common/gdb_optional.h".
6033 (struct mapping_regexes): New, factored out from
6034 mapping_is_anonymous_p, and adjusted to use compiled_regex.
6035 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
6036 gdb::optional and remove cleanups. Adjust to compiled_regex.
6037 * probe.c: Include "common/gdb_optional.h".
6038 (collect_probes): Use compiled_regex and gdb::optional and remove
6039 cleanups.
6040 * skip.c: Include "common/gdb_optional.h".
6041 (skiplist_entry::compiled_function_regexp): Now a
6042 gdb::optional<compiled_regex>.
6043 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
6044 (free_skiplist_entry): Remove regfree call.
6045 (compile_skip_regexp, skip_rfunction_p): Adjust to use
6046 compiled_regex and gdb::optional.
6047 * symtab.c: Include "common/gdb_optional.h".
6048 (search_symbols): Use compiled_regex and gdb::optional.
6049 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
6050 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
6051 to gdb_regex.c.
6052
50d6adef
AH
60532017-06-07 Alan Hayward <alan.hayward@arm.com>
6054
6055 * regcache.c (regcache::save): Avoid buffer use.
6056 (regcache::dump): Likewise.
6057
4a8a33c8
AH
60582017-06-07 Alan Hayward <alan.hayward@arm.com>
6059
6060 * sh-tdep.c (sh_pseudo_register_read): Remove
6061 MAX_REGISTER_SIZE.
6062 (sh_pseudo_register_write): Likewise.
6063 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
6064 (sh64_pseudo_register_write): Likewise
6065
d1be909e
AH
60662017-06-07 Alan Hayward <alan.hayward@arm.com>
6067
6068 * aarch64-tdep.c (aarch64_store_return_value): Use
6069 V_REGISTER_SIZE.
6070 (aarch64_pseudo_read_value): Likewise.
6071 (aarch64_pseudo_write): Likewise.
6072
f4a65042
YQ
60732017-06-06 Yao Qi <yao.qi@linaro.org>
6074
6075 * regformats/regdef.h (set_register_cache): Remove the
6076 declaration.
6077
9f7fb0aa
AH
60782017-06-06 Alan Hayward <alan.hayward@arm.com>
6079
6080 * frame.c (frame_unwind_register_signed): Use
6081 frame_unwind_register_value.
6082
e1e01040
PA
60832017-06-06 Pedro Alves <palves@redhat.com>
6084
6085 PR breakpoints/21553
6086 * breakpoint.c (create_breakpoints_sal_default)
6087 (init_breakpoint_sal, create_breakpoint_sal): Use
6088 gdb::unique_xmalloc_ptr for string parameters.
6089 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6090 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
6091 (base_breakpoint_create_breakpoints_sal)
6092 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
6093 (strace_marker_create_breakpoints_sal)
6094 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
6095 string parameters.
6096 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
6097 gdb::unique_xmalloc_ptr for string parameters.
6098 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6099 parameters.
6100
fbe654c8
AH
61012017-06-06 Alan Hayward <alan.hayward@arm.com>
6102
6103 * alpha-tdep.c (alpha_register_to_value): Use
6104 get_frame_register_value.
6105 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
6106
ae0d01d6
AH
61072017-06-06 Alan Hayward <alan.hayward@arm.com>
6108
6109 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
6110 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
6111 (ia64_value_to_register): Likewise.
6112 (ia64_extract_return_value): Likewise.
6113 (ia64_store_return_value): Likewise.
6114 (ia64_push_dummy_call): Likewise.
6115
49cf576c
JB
61162017-06-04 Joel Brobecker <brobecker@adacore.com>
6117
6118 GDB 8.0 released.
6119
26b6a6ab
SM
61202017-06-03 Simon Marchi <simon.marchi@ericsson.com>
6121
6122 * x86-linux-nat.c (struct arch_lwp_info): Remove.
6123
22827c51
SM
61242017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
6125
6126 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
6127 parameter.
6128 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
6129
0e05cf3a
SM
61302017-06-02 Simon Marchi <simon.marchi@ericsson.com>
6131
6132 * event-loop.c (poll_timers): Unallocate timer using delete
6133 instead of xfree.
6134
c1fc2657
SM
61352017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6136
6137 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
6138 (struct breakpoint) <~breakpoint>: New.
6139 (struct watchpoint): Inherit from breakpoint.
6140 <~watchpoint>: New.
6141 <base>: Remove.
6142 (struct tracepoint): Inherit from breakpoint.
6143 <base>: Remove.
6144 * breakpoint.c (longjmp_breakpoint_ops): Remove.
6145 (struct longjmp_breakpoint): Inherit from breakpoint.
6146 <~longjmp_breakpoint>: New.
6147 <base>: Remove.
6148 (new_breakpoint_from_type): Remove casts.
6149 (watchpoint_in_thread_scope): Remove reference to base field.
6150 (watchpoint_del_at_next_stop): Likewise.
6151 (update_watchpoint): Likewise.
6152 (watchpoint_check): Likewise.
6153 (bpstat_check_watchpoint): Likewise.
6154 (set_longjmp_breakpoint): Likewise.
6155 (struct fork_catchpoint): Inherit from breakpoint.
6156 <base>: Remove.
6157 (struct solib_catchpoint): Inherit from breakpoint.
6158 <~solib_catchpoint>: New.
6159 <base>: Remove.
6160 (dtor_catch_solib): Change to ...
6161 (solib_catchpoint::~solib_catchpoint): ... this.
6162 (breakpoint_hit_catch_solib): Remove reference to base field.
6163 (add_solib_catchpoint): Likewise.
6164 (create_fork_vfork_event_catchpoint): Likewise.
6165 (struct exec_catchpoint): Inherit from breakpoint.
6166 <~exec_catchpoint>: New.
6167 <base>: Remove.
6168 (dtor_catch_exec): Change to ...
6169 (exec_catchpoint::~exec_catchpoint): ... this.
6170 (dtor_watchpoint): Change to ...
6171 (watchpoint::~watchpoint): ... this.
6172 (watch_command_1): Remove reference to base field.
6173 (catch_exec_command_1): Likewise.
6174 (base_breakpoint_dtor): Change to ...
6175 (breakpoint::~breakpoint): ... this.
6176 (base_breakpoint_ops): Remove dtor field value.
6177 (longjmp_bkpt_dtor): Change to ...
6178 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
6179 (strace_marker_create_breakpoints_sal): Remove reference to base
6180 field.
6181 (delete_breakpoint): Don't manually call breakpoint destructor.
6182 (create_tracepoint_from_upload): Remove reference to base field.
6183 (trace_pass_set_count): Likewise.
6184 (initialize_breakpoint_ops): Don't initialize
6185 momentary_breakpoint_ops, don't set dtors.
6186 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
6187 <~ada_catchpoint>: New.
6188 <base>: Remove.
6189 (create_excep_cond_exprs): Remove reference to base field.
6190 (dtor_exception): Change to ...
6191 (ada_catchpoint::~ada_catchpoint): ... this.
6192 (dtor_catch_exception): Remove.
6193 (dtor_catch_exception_unhandled): Remove.
6194 (dtor_catch_assert): Remove.
6195 (create_ada_exception_catchpoint): Remove reference to base
6196 field.
6197 (initialize_ada_catchpoint_ops): Don't set dtors.
6198 * break-catch-sig.c (struct signal_catchpoint): Inherit from
6199 breakpoint.
6200 <~signal_catchpoint>: New.
6201 <base>: Remove.
6202 (signal_catchpoint_dtor): Change to ...
6203 (signal_catchpoint::~signal_catchpoint): ... this.
6204 (create_signal_catchpoint): Remove reference to base field.
6205 (initialize_signal_catchpoint_ops): Don't set dtor.
6206 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
6207 from breakpoint.
6208 <~syscall_catchpoint>: New.
6209 <base>: Remove.
6210 (dtor_catch_syscall): Change to ...
6211 (syscall_catchpoint::~syscall_catchpoint): ... this.
6212 (create_syscall_event_catchpoint): Remove reference to base
6213 field.
6214 (initialize_syscall_catchpoint_ops): Don't set dtor.
6215 * break-catch-throw.c (struct exception_catchpoint): Inherit
6216 from breakpoint.
6217 <~exception_catchpoint>: New.
6218 <base>: Remove.
6219 (dtor_exception_catchpoint): Change to ...
6220 (exception_catchpoint::~exception_catchpoint): ... this.
6221 (handle_gnu_v3_exceptions): Remove reference to base field.
6222 (initialize_throw_catchpoint_ops): Don't set dtor.
6223 * ctf.c (ctf_get_traceframe_address): Remove reference to base
6224 field.
6225 * remote.c (remote_get_tracepoint_status): Likewise.
6226 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
6227 * tracefile.c (tracefile_fetch_registers): Likewise.
6228 * tracepoint.c (actions_command): Likewise.
6229 (validate_actionline): Likewise.
6230 (tfind_1): Likewise.
6231 (get_traceframe_location): Likewise.
6232 (find_matching_tracepoint_location): Likewise.
6233 (parse_tracepoint_status): Likewise.
6234 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
6235
3b0871f4
SM
62362017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6237
6238 * breakpoint.c (struct longjmp_breakpoint): New struct.
6239 (is_tracepoint_type): Change return type to bool.
6240 (is_longjmp_type): New function.
6241 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
6242 (set_raw_breakpoint_without_location): Use
6243 new_breakpoint_from_type.
6244 (set_raw_breakpoint): Likewise.
6245
a5e364af
SM
62462017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6247
6248 * breakpoint.c (new_breakpoint_from_type): New function.
6249 (create_breakpoint_sal): Use new_breakpoint_from_type and
6250 unique_ptr.
6251 (create_breakpoint): Likewise.
6252
ae3b3f34
SM
62532017-05-31 Simon Marchi <simon.marchi@ericsson.com>
6254
6255 * memattr.c (mem_info_command): Rename to ...
6256 (info_mem_command): ... this.
6257 (mem_enable_command): Rename to ...
6258 (enable_mem_command): ... this.
6259 (mem_disable_command): Rename to ...
6260 (disable_mem_command): ... this.
6261 (mem_delete_command): Rename to ...
6262 (delete_mem_command): ... this.
6263 (_initialize_mem): Adjust function names.
6264
13ace077
MM
62652017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6266
6267 * btrace.c (handle_pt_insn_events): New.
6268 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
6269 STATUS. Split into this and ...
6270 (handle_pt_insn_event_flags): ... this.
6271
c56ccc05
MM
62722017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6273
6274 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
6275 and struct pt_insn.resynced.
6276 * configure: Regenerated.
6277 * config.in: Regenerated.
6278
08c3f6d2
TW
62792017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6280
6281 * btrace.c (ftrace_find_call_by_number): New function.
6282 (ftrace_new_function): Store objects, not pointers.
6283 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
6284 ftrace_new_gap, ftrace_update_function,
6285 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
6286 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
6287 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
6288 btrace_ends_with_single_insn, btrace_call_get): Account for
6289 btrace_thread_info::functions now storing objects.
6290 * btrace.h (struct btrace_thread_info): Add constructor.
6291 (struct btrace_thread_info) <functions>: Make std::vector.
6292 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
6293 Initialize with default values.
6294 * record-btrace.c (record_btrace_frame_sniffer): Account for
6295 btrace_thread_info::functions now storing objects.
6296
8ffd39f2
TW
62972017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6298
6299 * btrace.c: Remove typedef bfun_s.
6300 (ftrace_new_gap): Directly add gaps to the list of gaps.
6301 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
6302 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
6303 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
6304 instead of gdb VEC.
6305
4aeb0dfc
TW
63062017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6307
6308 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
6309 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
6310 with btrace_thread_info::next_segment and
6311 btrace_thread_info::prev_segment.
6312 * btrace.h: Remove struct btrace_func_link.
6313 (struct btrace_function): Replace pair of function segment pointers
6314 with pair of indices.
6315 * python/py-record-btrace.c (btpy_call_prev_sibling,
6316 btpy_call_next_sibling): Replace references to
6317 btrace_thread_info::segment with btrace_thread_info::next_segment and
6318 btrace_thread_info::prev_segment.
6319 * record-btrace.c (record_btrace_frame_this_id): Use
6320 btrace_find_call_by_number.
6321
eb8f2b9c
TW
63222017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6323
6324 * btrace.c (ftrace_new_function, ftrace_fixup_level,
6325 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
6326 btrace_insn_next, btrace_insn_prev): Remove references to
6327 btrace_thread_info::flow.
6328 * btrace.h (struct btrace_function): Remove FLOW.
6329
42bfe59e
TW
63302017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6331
6332 * btrace.c (ftrace_find_call_by_number): New function.
6333 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
6334 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
6335 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
6336 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
6337 index.
6338 * btrace.h (struct btrace_function): Turn UP into an index.
6339 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
6340 as an index.
6341 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
6342 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
6343 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
6344
b54b03bd
TW
63452017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6346
6347 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6348 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6349 ftrace_update_function, ftrace_compute_global_level_offset,
6350 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
6351 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
6352 btrace_insn_end, btrace_is_empty): Remove references to
6353 btrace_thread_info::begin and btrace_thread_info::end.
6354 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
6355 (struct btrace_thread_info) <functions>: Adjust comment.
6356 * record-btrace.c (record_btrace_start_replaying): Remove reference to
6357 btrace_thread_info::begin.
6358
8286623c
TW
63592017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6360
6361 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6362 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6363 ftrace_update_function): Remove arguments that implicitly were always
6364 BTINFO->END.
6365 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6366 Don't pass BTINFO->END.
6367
a0f1b963
TW
63682017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6369
6370 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6371 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6372 btrace_find_insn_by_number): Replace function segment pointer with
6373 index.
6374 (btrace_insn_cmp): Simplify.
6375 * btrace.h: (struct btrace_insn_iterator) Rename index to
6376 insn_index. Replace function segment pointer with index into function
6377 segment vector.
6378 * record-btrace.c (record_btrace_call_history): Replace function
6379 segment pointer use with index.
6380 (record_btrace_frame_sniffer): Retrieve function call segment through
6381 vector.
6382 (record_btrace_set_replay): Remove defunc't safety check.
6383
f158f208
TW
63842017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6385
6386 * btrace.c (btrace_ends_with_single_insn): New function.
6387 (btrace_call_get, btrace_call_number, btrace_call_begin,
6388 btrace_call_end, btrace_call_next, btrace_call_prev,
6389 btrace_find_call_by_number): Use index into call segment vector
6390 instead of pointer.
6391 (btrace_call_cmp): Simplify.
6392 * btrace.h (struct btrace_call_iterator): Replace function call segment
6393 pointer with index into vector.
6394 * record-btrace.c (record_btrace_call_history): Use index instead of
6395 pointer.
6396
521103fd
TW
63972017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6398
6399 * btrace.c (btrace_insn_begin, btrace_insn_end,
6400 btrace_find_insn_by_number): Add btinfo to iterator.
6401 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6402
17b89b34
TW
64032017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6404
6405 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6406 and save pointers directly.
6407 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6408 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6409 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6410 changed signature of functions.
6411 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6412 (btrace_fetch): Remove code that adds btrace_function pointers to
6413 vector of btrace_functions.
6414 (btrace_clear): Simplify freeing vector of btrace_functions.
6415
2b51eddc
TW
64162017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6417
6418 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6419 Replace VEC_* with std::vector functions.
6420 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6421 (struct btrace_thread_info)<functions>: Change type to std::vector.
6422
db6be0d5
SM
64232017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6424
6425 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6426 "Removed targets and native configurations" up. Merge duplicate
6427 "New commands" sub-sections. Add "New options" sub-sections.
6428
b057297a
AH
64292017-05-26 Alan Hayward <alan.hayward@arm.com>
6430
6431 * defs.h (copy_integer_to_size): New declaration.
6432 * findvar.c (copy_integer_to_size): New function.
6433 (do_cint_test): New selftest function.
6434 (copy_integer_to_size_test): Likewise.
6435 (_initialize_findvar): Likewise.
6436 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6437 (mips_fbsd_collect_reg): Use raw_collect_integer.
6438 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6439 (mips64_fill_gregset): Use raw_collect_integer
6440 (mips64_fill_fpregset): Use raw_supply_integer.
6441 * regcache.c (regcache::raw_supply_integer): New function.
6442 (regcache::raw_collect_integer): Likewise.
6443 * regcache.h: (regcache::raw_supply_integer): New declaration.
6444 (regcache::raw_collect_integer): Likewise.
6445
b77b02a5
YQ
64462017-05-24 Yao Qi <yao.qi@linaro.org>
6447
6448 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6449 (COMMON_OBS): Add gdbarch-selftests.o.
6450 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6451 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6452 * gdbarch-selftests.c: New file.
6453 * regcache.h (regcache) <~regcache>: Mark it virtual if
6454 GDB_SELF_TEST.
6455 <raw_write>: Likewise.
6456
e521e87e
YQ
64572017-05-24 Yao Qi <yao.qi@linaro.org>
6458
6459 * regcache.c (current_regcache): Change it to
6460 regcache::current_regcache.
6461 (regcache_observer_target_changed): Update.
6462 (regcache_thread_ptid_changed): Make it a regcache static
6463 method.
6464 (regcache_thread_ptid_changed): Update.
6465 (class regcache_access): New.
6466 (current_regcache_test): Update.
6467 (_initialize_regcache): Update.
6468 * regcache.h: Include forward_list.
6469 (regcache): Declare regcache_thread_ptid_changed and declare
6470 registers_changed_ptid as friend.
6471
d8e07dda
YQ
64722017-05-24 Yao Qi <yao.qi@linaro.org>
6473
6474 * i387-tdep.c (i387_register_to_value): Use register_size
6475 instead of TYPE_LENGTH.
6476 * m68k-tdep.c (m68k_register_to_value): Likewise.
6477
8c8f9122
YQ
64782017-05-24 Yao Qi <yao.qi@linaro.org>
6479
6480 * i387-tdep.c (i387_convert_register_p): Return false if type
6481 code isn't TYPE_CODE_FLT.
6482
68fce50f
YQ
64832017-05-24 Yao Qi <yao.qi@linaro.org>
6484
6485 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6486 length is 4.
6487 (alpha_register_to_value): Remove type length check.
6488 (alpha_value_to_register): Likewise.
6489
88954b49
YQ
64902017-05-24 Yao Qi <yao.qi@linaro.org>
6491
6492 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6493 TYPE_CODE_FLT.
6494
e3ec9b69
YQ
64952017-05-24 Yao Qi <yao.qi@linaro.org>
6496
6497 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6498 TYPE_CODE_FLT or not.
6499
cdd238da
YQ
65002017-05-24 Yao Qi <yao.qi@linaro.org>
6501
6502 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6503 * avr-tdep.c (avr_gdbarch_init): Likewise.
6504 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6505 * cris-tdep.c (cris_gdbarch_init): Likewise.
6506 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6507 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6508 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6510 * mep-tdep.c (mep_gdbarch_init): Likewise.
6511 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6512 * mips-tdep.c (mips_gdbarch_init): Likewise.
6513 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6514 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6515 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6516 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6517 * v850-tdep.c (v850_gdbarch_init): Likewise.
6518
7a3929c4
YQ
65192017-05-24 Yao Qi <yao.qi@linaro.org>
6520
6521 * selftest-arch.c (tests_with_arch): Call registers_changed
6522 and reinit_frame_cache.
6523 * selftest.c (run_self_tests): Likewise.
6524
f4985dba
YQ
65252017-05-24 Yao Qi <yao.qi@linaro.org>
6526
6527 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6528 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6529
ab20fa4a
YQ
65302017-05-24 Yao Qi <yao.qi@linaro.org>
6531
6532 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6533 set_gdbarch_print_insn.
6534
f532ab94
YQ
65352017-05-24 Yao Qi <yao.qi@linaro.org>
6536
6537 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6538 set_gdbarch_print_insn.
6539
39503f82
YQ
65402017-05-24 Yao Qi <yao.qi@linaro.org>
6541
6542 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6543 set_gdbarch_print_insn.
6544 * arc-tdep.c (arc_gdbarch_init): Likewise.
6545 * arch-utils.c: include dis-asm.h.
6546 (default_print_insn): New function.
6547 * arch-utils.h (default_print_insn): Declare.
6548 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6549 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6550 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6551 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6552 * frv-tdep.c (frv_gdbarch_init): Likewise.
6553 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6554 * gdbarch.sh (print_insn): Use default_print_insn.
6555 * gdbarch.c: Regenerated.
6556 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6557 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6558 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6559 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6560 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6561 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6562 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6563 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6564 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6565 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6566 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6567 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6568 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6569 * mt-tdep.c (mt_gdbarch_init): Likewise.
6570 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6571 * nios2-tdep.c (nios2_print_insn): Remove.
6572 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6573 * rx-tdep.c (rx_gdbarch_init): Likewise.
6574 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6575 * score-tdep.c (score_print_insn): Remove.
6576 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6577 * sh-tdep.c (sh_gdbarch_init): Likewise.
6578 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6579 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6580 * tic6x-tdep.c (tic6x_print_insn): Remove.
6581 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6582 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6583 * v850-tdep.c (v850_gdbarch_init): Likewise.
6584 * vax-tdep.c (vax_gdbarch_init): Likewise.
6585 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6586 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6587
f7241d4f
JB
65882017-05-23 John Baldwin <jhb@FreeBSD.org>
6589
6590 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6591 (MIPS_FP0_REGNUM): Remove.
6592 (MIPS_FSR_REGNUM): Remove.
6593 (mips_fbsd_supply_fpregs): Use mips_regnum.
6594 (mips_fbsd_supply_gregs): Likewise.
6595 (mips_fbsd_collect_fpregs): Likewise.
6596 (mips_fbsd_collect_gregs): Likewise.
6597
d489d81d
JB
65982017-05-23 John Baldwin <jhb@FreeBSD.org>
6599
6600 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6601 (getpfpregs_supplies): New function.
6602 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6603 getfpregs_supplies.
6604 (mips_fbsd_store_inferior_registers): Likewise.
6605
e11b3cdc
PA
66062017-05-22 Pedro Alves <palves@redhat.com>
6607
6608 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6609 maintainer.
6610
0f068fb5
AH
66112017-05-22 Alan Hayward <alan.hayward@arm.com>
6612
6613 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6614 (store_register): Likewise.
6615 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6616 (get_decimal_float_return_value): Likewise.
6617 (do_ppc_sysv_return_value): Likewise.
6618 (ppc64_sysv_abi_push_integer): Likewise.
6619 (ppc64_sysv_abi_push_freg): Likewise.
6620 (ppc64_sysv_abi_return_value_base): Likewise.
6621 (ppc64_sysv_abi_return_value): Likewise.
6622 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6623 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6624 * rs6000-nat.c: Likewise.
6625 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6626 (rs6000_value_to_register): Likewise.
6627 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6628
e6cf65f2
TT
66292017-05-21 Tom Tromey <tom@tromey.com>
6630
6631 PR rust/21466:
6632 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6633 arrays as "[T]", not "[T; ]".
6634
43cc5389
TT
66352017-05-19 Tom Tromey <tom@tromey.com>
6636
6637 PR rust/21484:
6638 * rust-lang.c (exp_descriptor_rust): New function.
6639 (rust_language_defn): Use it.
6640 * p-lang.c (pascal_language_defn): Update.
6641 * opencl-lang.c (opencl_language_defn): Update.
6642 * objc-lang.c (objc_language_defn): Update.
6643 * m2-lang.c (m2_language_defn): Update.
6644 * language.h (struct language_defn)
6645 <la_watch_location_expression>: New member.
6646 * language.c (unknown_language_defn, auto_language_defn)
6647 (local_language_defn): Update.
6648 * go-lang.c (go_language_defn): Update.
6649 * f-lang.c (f_language_defn): Update.
6650 * d-lang.c (d_language_defn): Update.
6651 * c-lang.h (c_watch_location_expression): Declare.
6652 * c-lang.c (c_watch_location_expression): New function.
6653 (c_language_defn, cplus_language_defn, asm_language_defn)
6654 (minimal_language_defn): Use it.
6655 * breakpoint.c (watch_command_1): Call
6656 la_watch_location_expression.
6657 * ada-lang.c (ada_language_defn): Update.
6658
7a6e7fcc
RO
66592017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6660
6e7e1744
RO
6661 PR tui/21482
6662 * gdb_curses.h (NOMACROS): Define.
6663 (NCURSES_NOMACROS): Define.
6664
66652017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6666
6667 PR tui/21482
7a6e7fcc
RO
6668 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6669 arg to char *.
6670 * tui/tui-wingeneral.c (box_win): Likewise.
6671 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6672 (tui_show_source_line): Likewise.
6673 (tui_show_exec_info_content): Likewise.
6674
1933fd8e
VM
66752017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6676
6677 * sparc-tdep.c (sparc_structure_return_p)
6678 (sparc_arg_on_registers_p): New functions.
6679 (sparc32_store_arguments): Use them.
6680 * sparc64-tdep.c (sparc64_16_byte_align_p)
6681 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6682 Handle TYPE_CODE_ARRAY.
6683
21873064
YQ
66842017-05-17 Yao Qi <yao.qi@linaro.org>
6685
6686 * cli/cli-decode.c (add_alias_cmd): New function.
6687 * command.h (add_alias_cmd): Declare.
6688 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6689 instead call add_alias_cmd.
6690
2b351b19
PA
66912017-05-17 Pedro Alves <palves@redhat.com>
6692
6693 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6694 (nat_makefile_frag): ... this. All references updated.
6695 * configure.ac: Likewise.
6696 * configure.nat: Likewise. Enhance comments.
6697 * configure: Regenerate.
6698
5f2ad7a3
RO
66992017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6700
6701 * procfs.c (procfs_create_inferior): Change prototype to match
6702 definition.
6703
adf3dde5
EZ
67042017-05-13 Eli Zaretskii <eliz@gnu.org>
6705
6706 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6707 C++ compiler warning.
6708
6830f270
TT
67092017-05-12 Tom Tromey <tom@tromey.com>
6710
6711 PR rust/21483:
6712 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6713 recurse, just call value_struct_elt directly.
6714
68f2f2e3
TT
67152017-05-12 Tom Tromey <tom@tromey.com>
6716
6717 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6718 OP_RUST_ARRAY>: Fix.
6719
256afbc2
TT
67202017-05-12 Tom Tromey <tom@tromey.com>
6721
6722 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6723
94bb8dfe
YQ
67242017-05-09 Yao Qi <yao.qi@linaro.org>
6725
6726 * regcache.c: Include <forward_list>.
6727 (struct regcache_list): Remove.
6728 (current_regcache): Update.
6729 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6730 (regcache_thread_ptid_changed): Likewise.
6731 (registers_changed_ptid): Likewise.
6732 (current_regcache_size): Likewise.
6733
8248946c
YQ
67342017-05-09 Yao Qi <yao.qi@linaro.org>
6735
6736 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6737 (current_regcache_size): New function.
6738 (current_regcache_test): New function.
6739 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6740
313c5961
AH
67412017-05-08 Alan Hayward <alan.hayward@arm.com>
6742
6743 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6744 (print_gp_register_row): Use get_frame_register_value.
6745
27bfc1d1
AH
67462017-05-08 Alan Hayward <alan.hayward@arm.com>
6747
6748 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6749 (mips_supply_fpregset): Likewise.
6750 (mips64_supply_gregset): Likewise.
6751
146e6c5c
AH
67522017-05-08 Alan Hayward <alan.hayward@arm.com>
6753
6754 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6755 regcache->raw_supply_zeroed.
6756
e50f25ec
SDJ
67572017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6758
6759 * configure.nat: Rearrange 'case' statements to match
6760 host before cpu.
6761
21ea5acd
SDJ
67622017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6763
6764 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6765 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6766 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6767 "@nat_extra_makefile_frag@".
6768 (Makefile): Remove dependency on "@frags@".
6769 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6770 (data-directory/Makefile): Likewise.
6771 * config/aarch64/linux.mh: Deleted; moved contents to
6772 "gdb/configure.nat".
6773 * config/alpha/alpha-linux.mh: Likewise.
6774 * config/alpha/nbsd.mh: Likewise.
6775 * config/arm/linux.mh: Likewise.
6776 * config/arm/nbsdelf.mh: Likewise.
6777 * config/i386/cygwin.mh: Likewise.
6778 * config/i386/cygwin64.mh: Likewise.
6779 * config/i386/darwin.mh: Likewise.
6780 * config/i386/fbsd.mh: Likewise.
6781 * config/i386/fbsd64.mh: Likewise.
6782 * config/i386/go32.mh: Likewise.
6783 * config/i386/i386gnu.mh: Likewise.
6784 * config/i386/i386sol2.mh: Likewise.
6785 * config/i386/linux.mh: Likewise.
6786 * config/i386/linux64.mh: Likewise.
6787 * config/i386/mingw.mh: Likewise.
6788 * config/i386/mingw64.mh: Likewise.
6789 * config/i386/nbsd64.mh: Likewise.
6790 * config/i386/nbsdelf.mh: Likewise.
6791 * config/i386/nto.mh: Likewise.
6792 * config/i386/obsd.mh: Likewise.
6793 * config/i386/obsd64.mh: Likewise.
6794 * config/i386/sol2-64.mh: Likewise.
6795 * config/ia64/linux.mh: Likewise.
6796 * config/m32r/linux.mh: Likewise.
6797 * config/m68k/linux.mh: Likewise.
6798 * config/m68k/nbsdelf.mh: Likewise.
6799 * config/m68k/obsd.mh: Likewise.
6800 * config/m88k/obsd.mh: Likewise.
6801 * config/mips/fbsd.mh: Likewise.
6802 * config/mips/linux.mh: Likewise.
6803 * config/mips/nbsd.mh: Likewise.
6804 * config/mips/obsd64.mh: Likewise.
6805 * config/pa/linux.mh: Likewise.
6806 * config/pa/nbsd.mh: Likewise.
6807 * config/pa/obsd.mh: Likewise.
6808 * config/powerpc/aix.mh: Likewise.
6809 * config/powerpc/fbsd.mh: Likewise.
6810 * config/powerpc/linux.mh: Likewise.
6811 * config/powerpc/nbsd.mh: Likewise.
6812 * config/powerpc/obsd.mh: Likewise.
6813 * config/powerpc/ppc64-linux.mh: Likewise.
6814 * config/powerpc/spu-linux.mh: Likewise.
6815 * config/s390/linux.mh: Likewise.
6816 * config/sh/nbsd.mh: Likewise.
6817 * config/sparc/fbsd.mh: Likewise.
6818 * config/sparc/linux.mh: Likewise.
6819 * config/sparc/linux64.mh: Likewise.
6820 * config/sparc/nbsd64.mh: Likewise.
6821 * config/sparc/nbsdelf.mh: Likewise.
6822 * config/sparc/obsd64.mh: Likewise.
6823 * config/sparc/sol2.mh: Likewise.
6824 * config/tilegx/linux.mh: Likewise.
6825 * config/vax/nbsdelf.mh: Likewise.
6826 * config/vax/obsd.mh: Likewise.
6827 * config/xtensa/linux.mh: Likewise.
6828 * config/i386/i386gnu.mn: New file, with excerpts from
6829 "config/i386/i386gnu.mh".
6830 * configure: Regenerate.
6831 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6832 *.mh files under "gdb/config".
6833 * configure.nat: New file, with contents from the
6834 "gdb/config/*/*.mh" files.
6835
7ed1acaf
TW
68362017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6837
6838 * btrace.c (btrace_clear): Free insn vector.
6839
e13cb306
PA
68402017-05-05 Pedro Alves <palves@redhat.com>
6841
6842 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6843 * configure: Regenerate.
6844
5ed8105e
PA
68452017-05-04 Pedro Alves <palves@redhat.com>
6846
6847 * Makefile.in (SFILES): Add progspace-and-thread.c.
6848 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6849 (COMMON_OBS): Add progspace-and-thread.o.
6850 * breakpoint.c: Include "progspace-and-thread.h".
6851 (update_inserted_breakpoint_locations)
6852 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6853 Use scoped_restore_current_pspace_and_thread.
6854 (create_std_terminate_master_breakpoint): Use
6855 scoped_restore_current_program_space.
6856 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6857 (print_breakpoint_location): Use
6858 scoped_restore_current_program_space.
6859 (bp_loc_is_permanent): Use
6860 scoped_restore_current_pspace_and_thread.
6861 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6862 (download_tracepoint_locations): Use
6863 scoped_restore_current_pspace_and_thread.
6864 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6865 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6866 (enum step_over_calls_kind): Moved from inferior.h.
6867 (class scoped_restore_current_thread): New class.
6868 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6869 declaration.
6870 (scoped_restore_current_thread): New class.
6871 * infcmd.c: Include "common/gdb_optional.h".
6872 (continue_1, proceed_after_attach): Use
6873 scoped_restore_current_thread.
6874 (notice_new_inferior): Use scoped_restore_current_thread.
6875 * inferior.c: Include "progspace-and-thread.h".
6876 (restore_inferior, save_current_inferior): Delete.
6877 (add_inferior_command, clone_inferior_command): Use
6878 scoped_restore_current_pspace_and_thread.
6879 * inferior.h (scoped_restore_current_inferior): New class.
6880 * infrun.c: Include "progspace-and-thread.h" and
6881 "common/gdb_optional.h".
6882 (follow_fork_inferior): Use
6883 scoped_restore_current_pspace_and_thread.
6884 (scoped_restore_exited_inferior): New class.
6885 (handle_vfork_child_exec_or_exit): Use
6886 scoped_restore_exited_inferior,
6887 scoped_restore_current_pspace_and_thread,
6888 scoped_restore_current_thread and scoped_restore.
6889 (fetch_inferior_event): Use scoped_restore_current_thread.
6890 * linespec.c (decode_line_full, decode_line_1): Use
6891 scoped_restore_current_program_space.
6892 * mi/mi-main.c: Include "progspace-and-thread.h".
6893 (exec_continue): Use scoped_restore_current_thread.
6894 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6895 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6896 * proc-service.c (ps_pglobal_lookup): Use
6897 scoped_restore_current_program_space.
6898 * progspace-and-thread.c: New file.
6899 * progspace-and-thread.h: New file.
6900 * progspace.c (release_program_space, clone_program_space): Use
6901 scoped_restore_current_program_space.
6902 (restore_program_space, save_current_program_space)
6903 (save_current_space_and_thread): Delete.
6904 (switch_to_program_space_and_thread): Moved to
6905 progspace-and-thread.c.
6906 * progspace.h (save_current_program_space)
6907 (save_current_space_and_thread): Delete declarations.
6908 (scoped_restore_current_program_space): New class.
6909 * remote.c (remote_btrace_maybe_reopen): Use
6910 scoped_restore_current_thread.
6911 * symtab.c: Include "progspace-and-thread.h".
6912 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6913 * thread.c (print_thread_info_1): Use
6914 scoped_restore_current_thread.
6915 (struct current_thread_cleanup): Delete.
6916 (do_restore_current_thread_cleanup)
6917 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6918 (scoped_restore_current_thread::~scoped_restore_current_thread):
6919 ... this new dtor.
6920 (make_cleanup_restore_current_thread): Rename/convert to ...
6921 (scoped_restore_current_thread::scoped_restore_current_thread):
6922 ... this new ctor.
6923 (thread_apply_all_command): Use scoped_restore_current_thread.
6924 (thread_apply_command): Use scoped_restore_current_thread.
6925 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6926 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6927
f6223dbb
PA
69282017-05-04 Pedro Alves <palves@redhat.com>
6929
6930 * thread.c (make_cleanup_restore_current_thread): Move
6931 find_thread_ptid call before the is_stopped call. Assert that the
6932 thread is found. Replace is_stopped call by checking the thread's
6933 state directly. Remove unnecessary NULL-thread check.
6934
3c3ae77e
PA
69352017-05-04 Pedro Alves <palves@redhat.com>
6936
6937 * corelow.c (thread_section_name): New class.
6938 (get_core_register_section, get_core_siginfo): Use it.
6939
45eba0ab
AA
69402017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6941
6942 * corelow.c (sniff_core_bfd): Remove extra semicolon.
6943 (get_core_register_section): Remove xfree of NULL pointer.
6944
f81fdd35
AH
69452017-05-03 Alan Hayward <alan.hayward@arm.com>
6946
6947 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
6948 * regcache.c (regcache::raw_supply_zeroed): New function.
6949 * regcache.h (regcache::raw_supply_zeroed): New declaration.
6950
35837774
SM
69512017-05-03 Simon Marchi <simon.marchi@ericsson.com>
6952
6953 * gdbarch.sh: Remove commented out definition of
6954 TARGET_CHAR_BIT.
6955 * gdbarch.h: Re-generate.
6956
c94fee56
SDJ
69572017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6958
6959 * configure: Regenerate.
6960
d17f7b36
SM
69612017-05-02 Simon Marchi <simon.marchi@ericsson.com>
6962
6963 * solib-target.c (solib_target_relocate_section_addresses):
6964 Remove num_section_bases, num_bases, segment_bases variables.
6965
b560ebd6
SM
69662017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6967
6968 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
6969
f2f46dfc
SM
69702017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6971
6972 * solib-target.c: Include <vector>
6973 (struct lm_info_target) <~lm_info_target>: Remove.
6974 <segment_bases, section_bases>: Change type to
6975 std::vector<CORE_ADDR>.
6976 (library_list_start_segment, library_list_start_section,
6977 library_list_end_library,
6978 solib_target_relocate_section_addresses): Adjust.
6979
a0ff9e1a
SM
69802017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6981
6982 * gdbarch.sh (software_single_step): Change return type to
6983 std::vector<CORE_ADDR>.
6984 * gdbarch.c, gdbarch.h: Re-generate.
6985 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6986 Adjust.
6987 (arm_deal_with_atomic_sequence_raw): Adjust.
6988 (thumb_get_next_pcs_raw): Adjust.
6989 (arm_get_next_pcs_raw): Adjust.
6990 (arm_get_next_pcs): Adjust.
6991 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
6992 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
6993 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
6994 (alpha_software_single_step): Adjust.
6995 * alpha-tdep.h (alpha_software_single_step): Adjust.
6996 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
6997 * arm-tdep.c (arm_software_single_step): Adjust.
6998 (arm_breakpoint_kind_from_current_state): Adjust.
6999 * arm-tdep.h (arm_software_single_step): Adjust.
7000 * breakpoint.c (insert_single_step_breakpoint): Adjust.
7001 * cris-tdep.c (cris_software_single_step): Adjust.
7002 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
7003 (micromips_deal_with_atomic_sequence): Adjust.
7004 (deal_with_atomic_sequence): Adjust.
7005 (mips_software_single_step): Adjust.
7006 * mips-tdep.h (mips_software_single_step): Adjust.
7007 * moxie-tdep.c (moxie_software_single_step): Adjust.
7008 * nios2-tdep.c (nios2_software_single_step): Adjust.
7009 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
7010 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
7011 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
7012 * s390-linux-tdep.c (s390_software_single_step): Adjust.
7013 * sparc-tdep.c (sparc_software_single_step): Adjust.
7014 * spu-tdep.c (spu_software_single_step): Adjust.
7015 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
7016
ea480a30
SM
70172017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7018
7019 * gdbarch.sh: Use semi-colon as field separator instead of colon.
7020 * gdbarch.h: Re-generate.
7021
d050f7d7
TW
70222017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7023
7024 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
7025 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
7026 * python/py-instruction.c, python/py-instruction.h: New file.
7027 * python/py-record.c: Add py-instruction.h include.
7028 (gdbpy_initialize_record): Make gdb.Instruction a super class of
7029 gdb.RecordInstruction.
7030 * python/python-internal.h: Add gdbpy_initialize_instruction
7031 declaration.
7032 * python/python.c (do_start_initialization): Add
7033 gdbpy_initialize_instruction.
7034
14f819c8
TW
70352017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7036
7037 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
7038 Remove.
7039 (btrace_func_from_recpy_func): New function.
7040 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
7041 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
7042 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
7043 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
7044 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
7045 Also, use new helper functions.
7046 (btpy_list_item): Use new helper functions.
7047 (recpy_bt_function_call_history): Use new type name.
7048 (btpy_call_getset): Remove.
7049 (gdbpy_initialize_btrace): Remove code to initialize
7050 gdb.BtraceFunctionCall.
7051 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
7052 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
7053 recpy_bt_func_prev, recpy_bt_func_next): New export.
7054 * python/py-record.c (recpy_func_type): New static object.
7055 (recpy_func_new, recpy_func_level, recpy_func_symbol,
7056 recpy_func_instructions, recpy_func_up, recpy_func_prev,
7057 recpy_func_next): New function.
7058 (recpy_element_hash, recpy_element_richcompare): Updated comment.
7059 (recpy_func_getset): New static object.
7060 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
7061 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
7062
0ed5da75
TW
70632017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7064
7065 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
7066 (btpy_object, btpy_insn_type, btpy_new): Remove.
7067 (btpy_list_object): Use gdb.RecordInstruction type instead of
7068 gdb.BtraceInstruction type.
7069 (btrace_insn_from_recpy_insn): New function.
7070 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
7071 btpy_new.
7072 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
7073 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
7074 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
7075 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
7076 instead of btpy_object.
7077 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7078 btpy_insn_data, btpy_insn_decode): Rename to ...
7079 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
7080 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
7081 recpy_bt_insn_decode): This. Also, use new helper functions.
7082 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
7083 recpy_insn_type.
7084 (btpy_insn_getset): Remove.
7085 (gdbpy_initialize_btrace): Remove code to initialize
7086 gdb.BtraceInstruction. Use recpy_element_object.
7087 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
7088 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
7089 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
7090 * python/py-record.c (recpy_insn_type): New static object.
7091 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
7092 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
7093 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
7094 New function.
7095 (recpy_insn_getset): New static object.
7096 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
7097 * python/py-record.h (recpy_element_object): New typedef.
7098 (recpy_insn_type, recpy_insn_new): New export.
7099
913aeadd
TW
71002017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7101
7102 * py-record-btrace.c (btpy_insn_new): Removed.
7103 (btpy_insn_or_gap_new): New function.
7104 (btpy_insn_error): Removed.
7105 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7106 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
7107 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
7108 btpy_insn_or_gap_new instead of btpy_insn_new.
7109 (btpy_insn_getset): Remove btpy_insn_error.
7110 * py-record.c (recpy_gap_type): New static object.
7111 (recpy_gap_object): New typedef.
7112 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
7113 recpy_gap_reason_string): New function.
7114 (recpy_gap_getset): New static object.
7115 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
7116 * py-record.h (recpy_gap_new): New export.
7117
a3be24ad
TW
71182017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7119
7120 * python/py-record.c (recpy_ptid): Remove.
7121 (recpy_record_getset): Remove recpy_ptid.
7122
ae20e79a
TW
71232017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7124
7125 * btrace.c (btrace_fetch): Set inferior_ptid.
7126 * python/py-record-btrace.c: Add "py-record.h" include.
7127 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
7128 recpy_bt_end, recpy_bt_instruction_history,
7129 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
7130 in gdb.Record object instead of current ptid.
7131 * python/py-record.c: Include new "py-record.h" file.
7132 (recpy_record_object): Moved to py-record.h.
7133 * python/py-record.h: New file.
7134
8d0050ea
TW
71352017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7136
7137 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
7138 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
7139 indentation.
7140
3f380b50
JB
71412017-05-01 Joel Brobecker <brobecker@adacore.com>
7142
7143 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
7144 the past maintainers section.
7145
07495424
YQ
71462017-04-28 Yao Qi <yao.qi@linaro.org>
7147
7148 * infcmd.c (get_return_value): Use regcache ctor, and remove
7149 cleanup.
7150
deb1fa3e
YQ
71512017-04-28 Yao Qi <yao.qi@linaro.org>
7152 Pedro Alves <palves@redhat.com>
7153
7154 * regcache.c (regcache::regcache): New tag dispatch ctor.
7155 (do_cooked_read): Moved above.
7156 (regcache_dup): Use the tag dispatch ctor..
7157 * regcache.h (regcache): Declare ctor, delete copy ctor and
7158 assignment operator, remove friend regcache_dup.
7159
b421c83c
YQ
71602017-04-28 Yao Qi <yao.qi@linaro.org>
7161
7162 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
7163 call method save instead of regcache_cpy.
7164 * regcache.h (struct regcache): Make regcache_dup a friend.
7165
ef79d9a3
YQ
71662017-04-28 Yao Qi <yao.qi@linaro.org>
7167
7168 * regcache.c (struct regcache): Move to regcache.h
7169 (regcache::arch): New method.
7170 (regcache_get_ptid): Update.
7171 (get_regcache_arch): Call arch method.
7172 (get_regcache_aspace): Call method aspace.
7173 (register_buffer): Change it to method.
7174 (regcache_save): Change it to regcache::save.
7175 (regcache_restore): Likewise.
7176 (regcache_cpy_no_passthrough): Remove the declaration.
7177 (regcache_cpy): Call methods restore and cpy_no_passthrough.
7178 (regcache_cpy_no_passthrough): Change it to method
7179 cpy_no_passthrough.
7180 (regcache_register_status): Change it to method
7181 get_register_status.
7182 (regcache_invalidate): Change it to method invalidate.
7183 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
7184 (regcache_raw_update): Change it to method raw_update.
7185 (regcache_raw_read): Likewise.
7186 (regcache_raw_read_signed): Likewise.
7187 (regcache_raw_read_unsigned): Likewise.
7188 (regcache_raw_write_signed): Likewise.
7189 (regcache_raw_write_unsigned): Likewise.
7190 (regcache_cooked_read): Likewise.
7191 (regcache_cooked_read_value): Likewise.
7192 (regcache_cooked_read_signed): Likewise.
7193 (regcache_cooked_read_unsigned): Likewise.
7194 (regcache_cooked_write_signed): Likewise.
7195 (regcache_cooked_write_unsigned): Likewise.
7196 (regcache_raw_set_cached_value): Likewise.
7197 (regcache_raw_write): Likewise.
7198 (regcache_cooked_write): Likewise.
7199 (regcache_xfer_part): Likewise.
7200 (regcache_raw_read_part): Likewise.
7201 (regcache_raw_write_part): Likewise.
7202 (regcache_cooked_read_part): Likewise.
7203 (regcache_cooked_write_part): Likewise.
7204 (regcache_raw_supply): Likewise.
7205 (regcache_raw_collect): Likewise.
7206 (regcache_transfer_regset): Likewise.
7207 (regcache_supply_regset): Likewise.
7208 (regcache_collect_regset): Likewise.
7209 (regcache_debug_print_register): Likewise.
7210 (enum regcache_dump_what): Move it to regcache.h.
7211 (regcache_dump): Change it to method dump.
7212 * regcache.h (enum regcache_dump_what): New.
7213 (class regcache): New.
7214 * target.c (target_fetch_registers): Call method
7215 debug_print_register.
7216 (target_store_registers): Likewise.
7217
f8fdb78e
SM
72182017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7219
7220 * windows-nat.c (struct lm_info_windows): Initialize field.
7221 (windows_make_so): Allocate lm_info_windows with new.
7222 (windows_free_so): Free lm_info_windows with delete.
7223
9ccbfd7b
SM
72242017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7225
7226 * solib-darwin.c (struct lm_info_darwin): Initialize field.
7227 (darwin_current_sos): Allocate lm_info_darwin with new, remove
7228 cleanup.
7229 (darwin_free_so): Free lm_info_darwin with delete.
7230
76e75227
SM
72312017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7232
7233 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
7234 <l_addr_p>: Change type to bool.
7235 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
7236 (svr4_free_so): Free lm_info_svr4 with delete.
7237 (svr4_copy_library_list): Replace memcpy with call to copy
7238 constructor.
7239 (library_list_start_library, svr4_default_sos): Allocate
7240 lm_info_svr4 with new.
7241
51046d9e
SM
72422017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7243
7244 * solib-target.c (struct lm_info_target): Add destructor,
7245 initialize fields.
7246 <name>: Change type to std::string.
7247 (library_list_start_library): Allocate lm_info_target with new.
7248 (solib_target_free_library_list): Free lm_info_target with
7249 delete.
7250 (solib_target_current_sos): Adapt to std::string.
7251 (solib_target_free_so): Free lm_info_target with delete.
7252
4023ae76
SM
72532017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7254
7255 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
7256 fields.
7257 (frv_current_sos): Allocate lm_info_frv with new.
7258 (frv_relocate_main_executable): Free lm_info_frv with delete,
7259 allocate with new.
7260 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
7261
af43057b
SM
72622017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7263
7264 * solib-frv.c (struct lm_info_frv): Fix indentation.
7265
b0911207
SM
72662017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7267
7268 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
7269 map field.
7270 (dsbt_current_sos): Allocate lm_info_dsbt with new.
7271 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
7272 and allocate with new.
7273 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
7274
6c401f72
SM
72752017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7276
7277 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
7278 <filename, member_name>: Change type to std::string.
7279 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
7280 (library_list_start_library): Allocate lm_info_aix with new.
7281 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
7282 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
7283 with copy constructor.
7284
d0e449a1
SM
72852017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7286
7287 * solist.h (struct lm_info): Remove.
7288 (struct lm_info_base): New class.
7289 (struct so_list) <lm_info>: Change type to lm_info_base *.
7290 * nto-tdep.c (struct lm_info): Remove.
7291 (lm_addr): Adjust.
7292 * solib-aix.c (struct lm_info): Rename to ...
7293 (struct lm_info_aix): ... this. Extend lm_info_base.
7294 (lm_info_p): Rename to ...
7295 (lm_info_aix_p): ... this, and adjust.
7296 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
7297 solib_aix_parse_libraries, library_list_start_library,
7298 solib_aix_free_library_list, solib_aix_parse_libraries,
7299 solib_aix_get_library_list,
7300 solib_aix_relocate_section_addresses, solib_aix_free_so,
7301 solib_aix_get_section_offsets,
7302 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
7303 Adjust.
7304 (struct solib_aix_inferior_data) <library_list>: Adjust.
7305 * solib-darwin.c (struct lm_info): Rename to ...
7306 (struct lm_info_darwin): ... this. Extend lm_info_base.
7307 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
7308 * solib-dsbt.c (struct lm_info): Rename to ...
7309 (struct lm_info_dsbt): ... this. Extend lm_info_base.
7310 (struct dsbt_info) <main_executable_lm_info): Adjust.
7311 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
7312 dsbt_relocate_section_addresses): Adjust.
7313 * solib-frv.c (struct lm_info): Rename to ...
7314 (struct lm_info_frv): ... this. Extend lm_info_base.
7315 (main_executable_lm_info): Adjust.
7316 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
7317 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
7318 find_canonical_descriptor_in_load_object,
7319 frv_fdpic_find_canonical_descriptor): Adjust.
7320 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
7321 to lm_info_svr4.
7322 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
7323 svr4_clear_so, svr4_copy_library_list,
7324 library_list_start_library, svr4_default_sos, svr4_read_so_list,
7325 svr4_current_sos, svr4_fetch_objfile_link_map,
7326 solist_update_incremental): Adjust.
7327 * solib-svr4.h (struct lm_info_svr4): Move here from
7328 solib-svr4.c.
7329 * solib-target.c (struct lm_info): Rename to ...
7330 (struct lm_info_target): ... this. Extend lm_info_base.
7331 (lm_info_p): Rename to ...
7332 (lm_info_target_p): ... this.
7333 (solib_target_parse_libraries, library_list_start_segment,
7334 library_list_start_section, library_list_start_library,
7335 library_list_end_library, solib_target_free_library_list,
7336 solib_target_current_sos, solib_target_free_so,
7337 solib_target_relocate_section_addresses): Adjust.
7338 * windows-nat.c (struct lm_info): Rename to ...
7339 (struct lm_info_windows): ... this. Extend lm_info_base.
7340 (windows_make_so, handle_load_dll, handle_unload_dll,
7341 windows_xfer_shared_libraries): Adjust.
7342
434a4023
SM
73432017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7344
7345 * solib-darwin.c (struct darwin_so_list): Remove.
7346 (darwin_current_sos): Allocate an so_list object instead of a
7347 darwin_so_list, separately allocate an lm_info object.
7348 (darwin_free_so): Free lm_info.
7349
428544e8
JB
73502017-04-28 John Baldwin <jhb@FreeBSD.org>
7351
7352 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
7353 with fprintf_filtered.
7354
4621115f
YQ
73552017-04-28 Yao Qi <yao.qi@linaro.org>
7356
7357 * regcache.c (regcache::regcache): New function.
7358 (regcache::~regcache): New function.
7359 (regcache_xmalloc_1): Remove.
7360 (regcache_xmalloc): Call new regcache.
7361 (regcache_xfree): Call delete regcache.
7362 (get_thread_arch_aspace_regcache): Call new regcache.
7363
339053c2
YQ
73642017-04-28 Yao Qi <yao.qi@linaro.org>
7365
7366 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7367 lwp instead of ptid_get_lwp.
7368
7974a605
YQ
73692017-04-28 Yao Qi <yao.qi@linaro.org>
7370
7371 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7372 lwp_info instead of getting from inferior_ptid.
7373
e15c3eb4
KS
73742017-04-27 Keith Seitz <keiths@redhat.com>
7375
7376 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7377 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7378 (CV_CONVERSION_BADNESS): Define.
7379 (rank_one_type): Remove overly restrictive rvalue reference
7380 rank checks.
7381 Add cv-qualifier checks and subranks for type equality.
7382 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7383 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7384 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7385
72bc1d24
SM
73862017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7387
7388 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7389 count when creating the object.
7390
55bcecda
UW
73912017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7392 Ulrich Weigand <uweigand@de.ibm.com>
7393
7394 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7395 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7396 is used in AIX.
7397 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7398 (process_xcoff_symbol): Likewise.
7399 (scan_xcoff_symtab): Likewise.
7400
5c99fcf8
AH
74012017-04-26 Alan Hayward <alan.hayward@arm.com>
7402
7403 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7404 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7405 (ia64_access_reg): Use get_frame_register_unsigned.
7406 (ia64_access_rse_reg): Likewise.
7407 (ia64_libunwind_frame_prev_register): Likewise.
7408
b41c5a85
JW
74092017-04-26 Jiong Wang <jiong.wang@arm.com>
7410
7411 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7412 * gdbarch.c: Regenerated.
7413 * gdbarch.h: Regenerated.
7414 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7415 visibility external.
7416 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7417 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7418 (enum cfa_how_kind): Move to ...
7419 (struct dwarf2_frame_state_reg_info): Likewise.
7420 (struct dwarf2_frame_state): Likewise.
7421 * dwarf2-frame.h: ... here.
7422 (dwarf2_frame_state_alloc_regs): New declaration.
7423 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7424 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7425
c185f580
AH
74262017-04-26 Alan Hayward <alan.hayward@arm.com>
7427
7428 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7429 regcache_raw_read_unsigned.
7430 (xtensa_pseudo_register_write): Likewise.
7431
19c45594
AH
74322017-04-26 Alan Hayward <alan.hayward@arm.com>
7433
7434 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7435 (nds32_pseudo_register_write): Likewise.
7436
4658f12e
YQ
74372017-04-25 Yao Qi <yao.qi@linaro.org>
7438
7439 * regcache.c (struct regcache) <readonly_p>: Change its type
7440 to bool.
7441 (regcache_xmalloc_1): Update parameter type and callers update.
7442
d581dda8
YQ
74432017-04-25 Yao Qi <yao.qi@linaro.org>
7444
7445 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7446 set_gdbarch_wchar_bit.
7447 * arm-tdep.c (arm_gdbarch_init): Likewise.
7448
debed3db
PA
74492017-04-25 Pedro Alves <palves@redhat.com>
7450
7451 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7452 (BothAreRelocatable, memcopy, memmove): Don't define.
7453 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7454 macros.
7455
b0b92aeb
PA
74562017-04-25 Pedro Alves <palves@redhat.com>
7457
7458 * common/common-defs.h: Include "common/poison.h".
7459 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7460 and adjust.
7461 * common/poison.h: New file.
7462 * common/traits.h: Include <type_traits>.
7463 (Not, Or, Requires): New, moved from common/function-view.h.
7464
16c4d54a
PA
74652017-04-25 Pedro Alves <palves@redhat.com>
7466
7467 * breakpoint.h (struct breakpoint): In-class initialize all
7468 fields. Make boolean fields "bool".
7469 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7470 memset call and initializations no longer necessary.
7471
b5c36682
PA
74722017-04-25 Pedro Alves <palves@redhat.com>
7473
7474 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7475 reference.
7476 (pt_btrace_insn): New function.
7477 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7478
5625a286
PA
74792017-04-25 Pedro Alves <palves@redhat.com>
7480
7481 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7482 "base" field and inherit from "bp_location" instead. Add
7483 non-default ctor.
7484 (allocate_location_exception): Use new non-default ctor.
7485 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7486 (init_bp_location): Convert to ...
7487 (bp_location::bp_location): ... this new ctor, and remove memset
7488 call.
7489 (base_breakpoint_allocate_location): Use the new non-default ctor.
7490 * breakpoint.h (bp_location): Now a class. Declare default and
7491 non-default ctors. In-class initialize all members.
7492 (init_bp_location): Remove declaration.
7493
23bcc18f
PA
74942017-04-25 Pedro Alves <palves@redhat.com>
7495
7496 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7497 assignment operator.
7498
e1ba3053
YQ
74992017-04-24 Yao Qi <yao.qi@linaro.org>
7500
7501 * doublest.c (convert_doublest_to_floatformat): Call
7502 floatformat_totalsize_bytes.
7503
10f489e5
TT
75042017-04-22 Tom Tromey <tom@tromey.com>
7505
7506 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7507 ui_out_emit_list.
7508 * stack.c (print_frame): Use ui_out_emit_list.
7509 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7510 ui_out_emit_list.
7511 * mi/mi-main.c (print_one_inferior)
7512 (mi_cmd_data_list_register_names)
7513 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7514 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7515 ui_out_emit_list.
7516 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7517 (mi_output_solib_attribs): Use ui_out_emit_list,
7518 ui_out_emit_tuple.
7519 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7520 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7521 (mi_cmd_stack_list_args, list_args_or_locals): Use
7522 ui_out_emit_list.
7523 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7524 * breakpoint.c (print_solib_event, output_thread_groups): Use
7525 ui_out_emit_list.
7526
0092b74d
TT
75272017-04-22 Tom Tromey <tom@tromey.com>
7528
7529 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7530 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7531 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7532
a14a62dd
TT
75332017-04-22 Tom Tromey <tom@tromey.com>
7534
7535 * tracepoint.c (tvariables_info_1)
7536 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7537
46b9c129
TT
75382017-04-22 Tom Tromey <tom@tromey.com>
7539
7540 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7541 annotate_arg_emitter.
7542 * breakpoint.c (print_mention_watchpoint)
7543 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7544 * annotate.h (struct annotate_arg_emitter): New.
7545
2e783024
TT
75462017-04-22 Tom Tromey <tom@tromey.com>
7547
7548 * record-btrace.c (record_btrace_insn_history)
7549 (record_btrace_insn_history_range, record_btrace_call_history)
7550 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7551 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7552 ui_out_emit_tuple.
7553 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7554 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7555 * skip.c (skip_info): Use ui_out_emit_tuple.
7556 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7557 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7558 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7559 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7560 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7561 ui_out_emit_tuple.
7562 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7563 (output_register, mi_cmd_data_read_memory)
7564 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7565 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7566 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7567 Use ui_out_emit_tuple.
7568 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7569 ui_out_emit_tuple.
7570 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7571 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7572 * linux-thread-db.c (info_auto_load_libthread_db): Use
7573 ui_out_emit_tuple.
7574 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7575 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7576 * disasm.c (do_mixed_source_and_assembly_deprecated)
7577 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7578 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7579 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7580 * breakpoint.c (print_one_breakpoint_location)
7581 (print_one_breakpoint): Use ui_out_emit_tuple.
7582 * auto-load.c (print_script, info_auto_load_cmd): Use
7583 ui_out_emit_tuple.
7584 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7585
9be21bb4
SM
75862017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7587
7588 * thread.c (print_thread_info_1): Remove dead code.
7589
0d4c07af
JK
75902017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7591
7592 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7593 GDB_SELF_TEST.
7594 * arm-tdep.c (selftests::arm_record_test): Likewise.
7595
4daf993d
YQ
75962017-04-21 Yao Qi <yao.qi@linaro.org>
7597
7598 * regcache.c (regcache_restore): Remove argument 2. Replace
7599 argument 3 with regcache. Get register status from
7600 src->register_status and get register contents from
7601 register_buffer (src, regnum).
7602 (regcache_cpy): Update.
7603
a6c21d4a
PA
76042017-04-19 Pedro Alves <palves@redhat.com>
7605
7606 * gdbthread.h (thread): Add missing closing parenthesis in
7607 comment.
7608
3a3fd0fd
PA
76092017-04-19 Pedro Alves <palves@redhat.com>
7610
7611 * common/refcounted-object.h: New file.
7612 * gdbthread.h: Include "common/refcounted-object.h".
7613 (thread_info): Inherit from refcounted_object and add comments.
7614 (thread_info::incref, thread_info::decref)
7615 (thread_info::m_refcount): Delete.
7616 (thread_info::deletable): Use the refcounted_object::refcount()
7617 method.
7618 * inferior.c (current_inferior_): Add comment.
7619 (set_current_inferior): Increment/decrement refcounts.
7620 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7621 not-deletable instead of comparing with the current inferior.
7622 (initialize_inferiors): Increment the initial inferior's refcount.
7623 * inferior.h (struct inferior): Forward declare.
7624 Include "common/refcounted-object.h".
7625 (current_inferior, set_current_inferior): Move declaration to
7626 before struct inferior's definition, and fix comment.
7627 (inferior): Inherit from refcounted_object. Add comments.
7628 * thread.c (switch_to_thread_no_regs): Reference the thread's
7629 inferior pointer directly instead of doing a ptid lookup.
7630 (switch_to_no_thread): New function.
7631 (switch_to_thread(thread_info *)): New function, factored out
7632 from ...
7633 (switch_to_thread(ptid_t)): ... this.
7634 (restore_current_thread): Delete.
7635 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7636 fields, and add 'inf' field.
7637 (do_restore_current_thread_cleanup): Check whether old->inf is
7638 alive instead of looking up an inferior by ptid. Use
7639 switch_to_thread and switch_to_no_thread.
7640 (restore_current_thread_cleanup_dtor): Use old->inf directly
7641 instead of lookup up an inferior by id. Decref the inferior.
7642 Don't restore 'removable'.
7643 (make_cleanup_restore_current_thread): Same the inferior pointer
7644 in old, instead of the inferior number. Incref the inferior.
7645 Don't save/clear 'removable'.
7646
9bcb1f16
PA
76472017-04-19 Pedro Alves <palves@redhat.com>
7648
7649 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7650 unittests/scoped_restore-selftests.c.
7651 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7652 * common/scoped_restore.h (scoped_restore_base): Make "class".
7653 (scoped_restore_base::release): New public method.
7654 (scoped_restore_base::scoped_restore_base): New protected ctor.
7655 (scoped_restore_base::m_saved_var): New protected field.
7656 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7657 scoped_restore_base base class instead of m_saved_var directly.
7658 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7659 (scoped_restore_tmpl::scoped_restore_tmpl(const
7660 scoped_restore_tmpl<T>&)): Likewise.
7661 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7662 method.
7663 (scoped_restore_tmpl::saved_var): New method.
7664 (scoped_restore_tmpl::m_saved_var): Delete.
7665 * inferior.h (inferior::detaching): Now a bool.
7666 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7667 cleanup.
7668 * unittests/scoped_restore-selftests.c: New file.
7669
26fcd539
PA
76702017-04-19 Pedro Alves <palves@redhat.com>
7671
7672 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7673 Re-sort in alphabetic order.
7674
fdd243b0
PA
76752017-04-18 Pedro Alves <palves@redhat.com>
7676
7677 * xml-support.c (obstack_xml_printf): Delete.
7678 * xml-support.h (obstack_xml_printf): Delete.
7679
4895cde2
PA
76802017-04-18 Pedro Alves <palves@redhat.com>
7681
7682 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7683 vdebug, verror, body_text, start_element, end_element, name,
7684 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7685 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7686 is_xinclude>: Make private and add m_ prefix.
7687 (gdb_xml_parser::body_text): New method, based on ...
7688 (gdb_xml_body_text): ... this. Adjust.
7689 (gdb_xml_parser::vdebug): New method, based on ...
7690 (gdb_xml_debug): ... this. Adjust.
7691 (gdb_xml_parser::verror): New method, based on ...
7692 (gdb_xml_error): ... this. Adjust.
7693 (gdb_xml_parser::start_element): New method, based on ...
7694 (gdb_xml_start_element): ... this. Adjust.
7695 (gdb_xml_start_element_wrapper): Defer to
7696 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7697 (gdb_xml_parser::end_element): New method, based on ...
7698 (gdb_xml_end_element_wrapper): ... this. Adjust.
7699 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7700 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7701 (gdb_xml_parser::use_dtd): New method, based on ...
7702 (gdb_xml_use_dtd): ... this. Adjust.
7703 (gdb_xml_parser::parse): New method, based on ...
7704 (gdb_xml_parse): ... this. Adjust.
7705 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7706 (xinclude_start_include): Adjust to call the parser's name method.
7707 (xml_xinclude_default, xml_xinclude_start_doctype)
7708 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7709 method.
7710 (xml_process_xincludes): Adjust to call parser methods.
7711 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7712 declarations.
7713
bd8a901f
PA
77142017-04-18 Pedro Alves <palves@redhat.com>
7715
7716 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7717 gdb::optional<std::string>.
7718 * xml-support.c: Include <string>.
7719 (scope_level::scope_level(scope_level &&))
7720 (scope_level::~scope_level): Delete.
7721 (scope_level::body): Now a std::string.
7722 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7723 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7724 parameter.
7725 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7726 (xinclude_parsing_data::output): Now a std::string reference.
7727 (xinclude_start_include): Adjust.
7728 (xml_xinclude_default): Adjust.
7729 (xml_process_xincludes): Add 'output' parameter, and return bool.
7730 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7731 and return bool.
7732 * xml-tdesc.c: Include <unordered_map> and <string>.
7733 (tdesc_xml_cache): Delete.
7734 (tdesc_xml_cache_s): Delete.
7735 (xml_cache): Now an std::unordered_map.
7736 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7737 (target_fetch_description_xml): Change return type to
7738 gdb::optional<std::string>, and adjust.
7739 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7740 (target_fetch_description_xml): Change return type to
7741 gdb::optional<std::string>.
7742
d35d1958
PA
77432017-04-18 Pedro Alves <palves@redhat.com>
7744
7745 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7746 unittests/optional-selftests.c.
7747 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7748 * unittests/optional-selftests.c: New file.
7749 * unittests/optional/assignment/1.cc: New file.
7750 * unittests/optional/assignment/2.cc: New file.
7751 * unittests/optional/assignment/3.cc: New file.
7752 * unittests/optional/assignment/4.cc: New file.
7753 * unittests/optional/assignment/5.cc: New file.
7754 * unittests/optional/assignment/6.cc: New file.
7755 * unittests/optional/assignment/7.cc: New file.
7756 * unittests/optional/cons/copy.cc: New file.
7757 * unittests/optional/cons/default.cc: New file.
7758 * unittests/optional/cons/move.cc: New file.
7759 * unittests/optional/cons/value.cc: New file.
7760 * unittests/optional/in_place.cc: New file.
7761 * unittests/optional/observers/1.cc: New file.
7762 * unittests/optional/observers/2.cc: New file.
7763
22796e97
PA
77642017-04-18 Pedro Alves <palves@redhat.com>
7765
7766 * common/gdb_optional.h: Include common/traits.h.
7767 (in_place_t): New type.
7768 (in_place): New constexpr variable.
7769 (optional::optional): Remove member initialization of
7770 m_instantiated.
7771 (optional::optional(in_place_t...)): New constructor.
7772 (optional::~optional): Use reset.
7773 (optional::optional(const optional&)): New.
7774 (optional::optional(const optional&&)): New.
7775 (optional::optional(T &)): New.
7776 (optional::optional(T &&)): New.
7777 (operator::operator=(const optional &)): New.
7778 (operator::operator=(optional &&)): New.
7779 (operator::operator= (const T &))
7780 (operator::operator= (T &&))
7781 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7782 (operator::reset): New.
7783 (operator::m_instantiated):: Add in-class initializer.
7784 * common/traits.h: Include <type_traits>.
7785 (struct And): New types.
7786
a7fc9b61
PA
77872017-04-18 Pedro Alves <palves@redhat.com>
7788
7789 * xml-support.c: Include <vector>.
7790 (scope_level::scope_level(const gdb_xml_element *))
7791 (scope_level::scope_level(scope_level&&)): New.
7792 (scope_level::~scope_level): New.
7793 (scope_level_s): Delete.
7794 (gdb_xml_parser::scopes): Now a std::vector.
7795 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7796 Use std::vector.
7797 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7798 scope cleanup code.
7799 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7800 of the scopes member. Use std::vector::emplace_back.
7801
010151c9
PA
78022017-04-18 Pedro Alves <palves@redhat.com>
7803
7804 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7805 a bool.
7806 (gdb_xml_end_element): Change type of first parameter.
7807 (gdb_xml_cleanup): Rename to ...
7808 (gdb_xml_parser::~gdb_xml_parser): ... this.
7809 (gdb_xml_create_parser_and_cleanup): Delete with ...
7810 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7811 to this new ctor.
7812 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7813 using gdb_xml_create_parser_and_cleanup.
7814 (xinclude_parsing_data): Add ctor/dtor.
7815 (xml_xinclude_cleanup): Delete.
7816 (xml_process_xincludes): Create a local xinclude_parsing_data
7817 instead of heap-allocating one. Create a local gdb_xml_parser
7818 instead of heap-allocating one with
7819 gdb_xml_create_parser_and_cleanup.
7820
d56060f0
JB
78212017-04-18 John Baldwin <jhb@FreeBSD.org>
7822
7823 PR threads/20743
7824 * fbsd-nat.c (resume_one_thread_cb): Remove.
7825 (resume_all_threads_cb): Remove.
7826 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7827 iterate_over_threads.
7828
305d16a9
JB
78292017-04-17 Joel Brobecker <brobecker@adacore.com>
7830
7831 * NEWS: Create a new section for the next release branch.
7832 Rename the section of the current branch, now that it has
7833 been cut.
7834
8bb57231
JB
78352017-04-17 Joel Brobecker <brobecker@adacore.com>
7836
7837 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7838 * version.in: Bump version to 8.0.50.DATE-git.
7839
096c92dd
SDJ
78402017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7841
7842 PR gdb/21385
7843 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7844 independently of the host, and fix build breakage on Cygwin.
7845
0550c955
PA
78462017-04-13 Pedro Alves <palves@redhat.com>
7847
7848 * inferior.c (free_inferior): Convert to ...
7849 (inferior::~inferior): ... this dtor.
7850 (inferior::inferior): New ctor, factored out from ...
7851 (add_inferior_silent): ... here. Allocate the inferior with a new
7852 expression.
7853 (delete_inferior): Call delete instead of free_inferior.
7854 * inferior.h (gdb_environ, continuation): Forward declare.
7855 (inferior): Now a class. Add in-class initialization to all
7856 members. Make boolean fields bool, except 'detaching'.
7857 (inferior::inferior): New explicit ctor.
7858 (inferior::~inferior): New.
7859
e3d60dfc
PA
78602017-04-13 Pedro Alves <palves@redhat.com>
7861
7862 * inferior.c (init_inferior_list): Delete.
7863 * inferior.h (init_inferior_list): Delete.
7864
5fd69d0a
PA
78652017-04-13 Pedro Alves <palves@redhat.com>
7866
7867 PR threads/13217
7868 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7869 (top level): Call it twice, with different thread sets.
7870
c6609450
PA
78712017-04-13 Pedro Alves <palves@redhat.com>
7872
7873 * thread.c: Include <algorithm>.
7874 (thread_array_cleanup): Delete.
7875 (scoped_inc_dec_ref): New class.
7876 (live_threads_count): New function.
7877 (set_thread_refcount): Delete.
7878 (tp_array_compar_ascending): Now a bool.
7879 (tp_array_compar): Convert to a std::sort comparison function.
7880 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7881 and live_threads_count.
7882
2a00d7ce
PA
78832017-04-13 Pedro Alves <palves@redhat.com>
7884
7885 * infrun.c (follow_fork_inferior): Also switch the current
7886 inferior.
7887
441d7c93
PA
78882017-04-13 Pedro Alves <palves@redhat.com>
7889
7890 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7891 before calling create_internal_breakpoint.
7892
808480f6
PA
78932017-04-13 Pedro Alves <palves@redhat.com>
7894
7895 * fork-child.c (execv_argv): New class.
7896 (breakup_args): Refactored as ...
7897 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7898 Copy arguments to storage and replace separators with NULL
7899 terminators in place.
7900 (escape_bang_in_quoted_argument): Adjust to return bool.
7901 (execv_argv::execv_argv): New ctor.
7902 (execv_argv::init_for_shell): New method, factored out from
7903 fork_inferior. Don't strdup strings into the vector.
7904 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7905 Remove free_vector_argv call.
7906
ad3d022a
YQ
79072017-04-13 Yao Qi <yao.qi@linaro.org>
7908
7909 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7910 tdep->rx_psw_type.
7911
e6ddc3bf
YQ
79122017-04-13 Yao Qi <yao.qi@linaro.org>
7913
7914 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7915 * rx-tdep.c (rx_gdbarch_init): Likewise.
7916
bfb8cf90
PA
79172017-04-13 Pedro Alves <palves@redhat.com>
7918
7919 * breakpoint.h (struct breakpoint): Reindent.
7920
f5336ca5
PA
79212017-04-13 Pedro Alves <palves@redhat.com>
7922
7923 * breakpoint.c (bp_location): Rename to ...
7924 (bp_locations): ... this. All references updated.
7925 (bp_location_count): Rename to ...
7926 (bp_locations_count): ... this. All references updated.
7927 (bp_location_placed_address_before_address_max): Rename to ...
7928 (bp_locations_placed_address_before_address_max): ... this. All
7929 references updated.
7930 (bp_location_shadow_len_after_address_max): Rename to ...
7931 (bp_locations_shadow_len_after_address_max): ... this. All
7932 references updated.
7933 (bp_location_compare_addrs): Rename to ...
7934 (bp_locations_compare_addrs): ... this. All references updated.
7935 (bp_location_compare):Rename to ...
7936 (bp_locations_compare): ... this. All references updated.
7937 (bp_location_target_extensions_update): Rename to ...
7938 (bp_locations_target_extensions_update): ... this. All references
7939 updated.
7940
be628ab8
SDJ
79412017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7942
7943 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
7944 * common/common.m4: Check headers 'termios.h', 'termio.h' and
7945 'sgtty.h'.
7946 * common/gdb_termios.h: New file, with parts of "terminal.h".
7947 * inflow.c: Include "gdb_termios.h".
7948 * ser-unix.c: Include "gdb_termios.h".
7949 * terminal.h: Move terminal-related defines to
7950 "common/gdb_termios.h".
7951
8e9e35b1
TT
79522017-04-12 Tom Tromey <tom@tromey.com>
7953
7954 * probe.c (parse_probes): Update.
7955 * location.h (delete_event_location): Don't declare.
7956 (event_location_deleter::operator()): Update.
7957 * location.c (event_location_deleter::operator()): Rename from
7958 delete_event_location.
7959 * linespec.h (linespec_result) <location>: Change type to
7960 event_location_up.
7961 * linespec.c (canonicalize_linespec, event_location_to_sals)
7962 (decode_objc): Update.
7963 (linespec_result): Don't call delete_event_location.
7964 * breakpoint.c (create_breakpoints_sal)
7965 (bkpt_probe_create_sals_from_location)
7966 (strace_marker_create_sals_from_location): Update.
7967
16e802b9
TT
79682017-04-12 Tom Tromey <tom@tromey.com>
7969
7970 * linespec.h (struct linespec_result): Add constructor and
7971 destructor.
7972 (init_linespec_result, destroy_linespec_result)
7973 (make_cleanup_destroy_linespec_result): Don't declare.
7974 * linespec.c (init_linespec_result): Remove.
7975 (linespec_result::~linespec_result): Rename from
7976 destroy_linespec_result. Update.
7977 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
7978 Remove.
7979 * breakpoint.c (create_breakpoint, break_range_command)
7980 (decode_location_default): Update.
7981 * ax-gdb.c (agent_command_1): Update.
7982
d28cd78a
TT
79832017-04-12 Tom Tromey <tom@tromey.com>
7984
7985 * remote.c (remote_download_tracepoint): Update.
7986 * python/py-breakpoint.c (bppy_get_location): Update.
7987 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
7988 (gdbscm_breakpoint_location): Update.
7989 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
7990 * breakpoint.h (struct breakpoint) <location, location_range_end>:
7991 Change type to event_location_up.
7992 * breakpoint.c (create_overlay_event_breakpoint)
7993 (create_longjmp_master_breakpoint)
7994 (create_std_terminate_master_breakpoint)
7995 (create_exception_master_breakpoint)
7996 (breakpoint_event_location_empty_p, print_breakpoint_location)
7997 (print_one_breakpoint_location, create_thread_event_breakpoint)
7998 (init_breakpoint_sal, create_breakpoint)
7999 (print_recreate_ranged_breakpoint, break_range_command)
8000 (init_ada_exception_breakpoint, say_where): Update.
8001 (base_breakpoint_dtor): Don't call delete_event_location.
8002 (bkpt_print_recreate, tracepoint_print_recreate)
8003 (dprintf_print_recreate, update_static_tracepoint)
8004 (breakpoint_re_set_default): Update.
8005
711799d5
TT
80062017-04-12 Tom Tromey <tom@tromey.com>
8007
8008 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
8009 type of "to_do". Update.
8010 (compute_stack_depth): Use std::vector.
8011
52d214d3
TT
80122017-04-12 Tom Tromey <tom@tromey.com>
8013
8014 * printcmd.c (find_instruction_backward): Use std::vector.
8015
4c404b8b
TT
80162017-04-12 Tom Tromey <tom@tromey.com>
8017
8018 * symfile.c (objfilep): Remove typedef.
8019 (reread_symbols): Use a std::vector.
8020
156d9eab
TT
80212017-04-12 Tom Tromey <tom@tromey.com>
8022
8023 * mi/mi-main.c (exec_direction_forward): Remove.
8024 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
8025 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
8026 scoped_restore.
8027 * guile/guile.c (guile_repl_command, guile_command)
8028 (gdbscm_execute_gdb_command): Use scoped_restore.
8029 * go-exp.y (go_parse): Use scoped_restore.
8030 * d-exp.y (d_parse): Use scoped_restore.
8031 * cli/cli-decode.c (cmd_func): Use scoped_restore.
8032 * c-exp.y (c_parse): Use scoped_restore.
8033
4d89769a
TT
80342017-04-12 Tom Tromey <tom@tromey.com>
8035
8036 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
8037 (mi_parse): Update return type.
8038 (mi_parse_free): Remove.
8039 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
8040 (mi_parse::~mi_parse): Rename from mi_parse_free.
8041 (mi_parse_cleanup): Remove.
8042 (mi_parse): Return a unique_ptr. Use new.
8043 * mi/mi-main.c (mi_execute_command): Update.
8044
4b217cc7
TT
80452017-04-12 Tom Tromey <tom@tromey.com>
8046
8047 * location.c (explicit_location_lex_one): Return a
8048 unique_xmalloc_ptr.
8049 (string_to_explicit_location): Update. Remove cleanups.
8050
59d3651b
TT
80512017-04-12 Tom Tromey <tom@tromey.com>
8052
8053 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
8054 (compare_value_and_voffset): Change type. Update.
8055 (compute_vtable_size): Change type of "offset_vec".
8056 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
8057 (gnuv3_get_typeid): Remove extraneous declaration.
8058
b24b0d6c
TT
80592017-04-12 Tom Tromey <tom@tromey.com>
8060
8061 * charset.h (wchar_iterator): Fix comment.
8062
80a3b8c5
TT
80632017-04-12 Tom Tromey <tom@tromey.com>
8064
8065 * charset.c (iconv_wrapper): New class.
8066 (cleanup_iconv): Remove.
8067 (convert_between_encodings): Use it.
8068
c83dd867
TT
80692017-04-12 Tom Tromey <tom@tromey.com>
8070
8071 * symfile.h (increment_reading_symtab): Update type.
8072 * symfile.c (decrement_reading_symtab): Remove.
8073 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
8074 * psymtab.c (psymtab_to_symtab): Update.
8075 * dwarf2read.c (dw2_instantiate_symtab): Update.
8076
0e8621a0
TT
80772017-04-12 Tom Tromey <tom@tromey.com>
8078
8079 * jit.c (struct jit_reader): Declare separately. Add constructor
8080 and destructor. Change type of "handle".
8081 (loaded_jit_reader): Define separately.
8082 (jit_reader_load): Update. New "new".
8083 (jit_reader_unload_command): Use "delete".
8084 * gdb-dlfcn.h (struct dlclose_deleter): New.
8085 (gdb_dlhandle_up): New typedef.
8086 (gdb_dlopen, gdb_dlsym): Update types.
8087 (gdb_dlclose): Remove.
8088 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
8089 (gdb_dlsym): Change type of "handle".
8090 (make_cleanup_dlclose): Remove.
8091 (dlclose_deleter::operator()): Rename from gdb_dlclose.
8092 * compile/compile-c-support.c (load_libcc): Update.
8093
67d89901
TT
80942017-04-12 Tom Tromey <tom@tromey.com>
8095
8096 * symtab.h (find_pcs_for_symtab_line): Change return type.
8097 * symtab.c (find_pcs_for_symtab_line): Change return type.
8098 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
8099 type of "vec". Update.
8100 (ltpy_get_pcs_for_line): Update.
8101 * linespec.c (decode_digits_ordinary): Update.
8102
93921405
TT
81032017-04-12 Tom Tromey <tom@tromey.com>
8104
8105 * tracepoint.c (actions_command): Update.
8106 * python/python.c (python_command, python_interactive_command):
8107 Update.
8108 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8109 * guile/guile.c (guile_command): Update.
8110 * defs.h (read_command_lines, read_command_lines_1): Return
8111 command_line_up.
8112 (command_lines_deleter): New struct.
8113 (command_line_up): New typedef.
8114 * compile/compile.c (compile_code_command)
8115 (compile_print_command): Update.
8116 * cli/cli-script.h (get_command_line, copy_command_lines): Return
8117 command_line_up.
8118 (make_cleanup_free_command_lines): Remove.
8119 * cli/cli-script.c (get_command_line, read_command_lines_1)
8120 (copy_command_lines): Return command_line_up.
8121 (while_command, if_command, read_command_lines, define_command)
8122 (document_command): Update.
8123 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
8124 Remove.
8125 * breakpoint.h (breakpoint_set_commands): Change type of
8126 "commands".
8127 * breakpoint.c (breakpoint_set_commands): Change type of
8128 "commands". Update.
8129 (do_map_commands_command, update_dprintf_command_list)
8130 (create_tracepoint_from_upload): Update.
8131
ffc2605c
TT
81322017-04-12 Tom Tromey <tom@tromey.com>
8133
8134 * tracepoint.c (scope_info): Update.
8135 * spu-tdep.c (spu_catch_start): Update.
8136 * python/python.c (gdbpy_decode_line): Update.
8137 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
8138 * python/py-breakpoint.c (bppy_init): Update.
8139 * probe.c (parse_probes): Update.
8140 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
8141 * location.h (event_location_deleter): New struct.
8142 (event_location_up): New typedef.
8143 (new_linespec_location, new_address_location, new_probe_location)
8144 (new_explicit_location, copy_event_location)
8145 (string_to_event_location, string_to_event_location_basic)
8146 (string_to_explicit_location): Update return type.
8147 (make_cleanup_delete_event_location): Remove.
8148 * location.c (new_linespec_location, new_address_location)
8149 (new_probe_location, new_explicit_location, copy_event_location):
8150 Return event_location_up.
8151 (delete_event_location_cleanup)
8152 (make_cleanup_delete_event_location): Remove.
8153 (string_to_explicit_location, string_to_event_location_basic)
8154 (string_to_event_location): Return event_location_up.
8155 * linespec.c (canonicalize_linespec, event_location_to_sals)
8156 (decode_line_with_current_source)
8157 (decode_line_with_last_displayed, decode_objc): Update.
8158 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8159 * completer.c (location_completer): Update.
8160 * cli/cli-cmds.c (edit_command, list_command): Update.
8161 * breakpoint.c (create_overlay_event_breakpoint)
8162 (create_longjmp_master_breakpoint)
8163 (create_std_terminate_master_breakpoint)
8164 (create_exception_master_breakpoint)
8165 (create_thread_event_breakpoint): Update.
8166 (init_breakpoint_sal): Update. Remove some dead code.
8167 (create_breakpoint_sal): Change type of "location". Update.
8168 (create_breakpoints_sal, create_breakpoint, break_command_1)
8169 (dprintf_command, break_range_command, until_break_command)
8170 (init_ada_exception_breakpoint)
8171 (strace_marker_create_sals_from_location)
8172 (update_static_tracepoint, trace_command, ftrace_command)
8173 (strace_command, create_tracepoint_from_upload): Update.
8174 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8175 * ax-gdb.c (agent_command_1): Update.
8176
8f10c932
PA
81772017-04-12 Pedro Alves <palves@redhat.com>
8178
8179 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
8180 * configure.tgt: Handle i[34567]86-*-go32* and
8181 i[34567]86-*-msdosdjgpp*.
8182 * i386-tdep.c (i386_svr4_reg_to_regnum):
8183 Make extern.
8184 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
8185 i386-go32-tdep.c.
8186 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
8187 * i386-go32-tdep.c: New file.
8188 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
8189 declarations.
8190
0a31ccfb
SM
81912017-04-12 Simon Marchi <simon.marchi@ericsson.com>
8192
8193 * aix-thread.c (pd_status2str): Change return type to const char *.
8194
e9bb3fbb
PA
81952017-04-12 Pedro Alves <palves@redhat.com>
8196
8197 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
8198 calls to set_gdbarch_gnu_triplet_regexp.
8199
53375380
PA
82002017-04-12 Pedro Alves <palves@redhat.com>
8201
8202 PR gdb/21323
8203 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
8204 New enum value.
8205 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
8206 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
8207 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
8208 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
8209 * gdbarch.h, gdbarch.c: Regenerate.
8210 * aarch64-tdep.c (aarch64_gdbarch_init): Override
8211 gdbarch_wchar_bit and gdbarch_wchar_signed.
8212 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
8213 * arm-tdep.c (arm_gdbarch_init): Likewise.
8214 * avr-tdep.c (avr_gdbarch_init): Likewise.
8215 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8216 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
8217 * i386-tdep.c (i386_go32_init_abi): Likewise.
8218 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8219 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8220 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8221 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8222 * sh-tdep.c (sh_gdbarch_init): Likewise.
8223 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8224 * sparc64-tdep.c (sparc64_init_abi): Likewise.
8225 * windows-tdep.c (windows_init_abi): Likewise.
8226 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8227
53e710ac
PA
82282017-04-12 Pedro Alves <palves@redhat.com>
8229
8230 PR c++/21323
8231 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
8232 cplus_primitive_type_char32_t>: New enum values.
8233 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
8234 and cplus_primitive_type_char32_t.
8235 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
8236 32, use the archtecture's built-in type for char16_t and char32_t,
8237 respectively. Otherwise, fallback to init_integer_type as before,
8238 but make the type unsigned, and issue a complaint.
8239 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
8240
ab0538b8
AH
82412017-04-12 Alan Hayward <alan.hayward@arm.com>
8242
5e0e0422 8243 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
8244 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
8245
5430098f
SDJ
82462017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8247
8248 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
8249 'const char *'.
8250
7c5ded6a
SDJ
82512017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8252
8253 * common/common-utils.c (free_vector_argv): New function.
8254 * common/common-utils.h: Include <vector>.
8255 (free_vector_argv): New prototype.
8256 * darwin-nat.c (darwin_create_inferior): Rewrite function
8257 prototype in order to constify "exec_file" and accept a
8258 "std::string" for "allargs".
8259 * fork-child.c: Include <vector>.
8260 (breakup_args): Rewrite function, using C++.
8261 (fork_inferior): Rewrite function header, constify "exec_file_arg"
8262 and accept "std::string" for "allargs". Update the code to
8263 calculate "argv" based on "allargs". Update calls to "exec_fun"
8264 and "execvp".
8265 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
8266 order to constify "exec_file" and accept a "std::string" for
8267 "allargs".
8268 * go32-nat.c (go32_create_inferior): Likewise.
8269 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
8270 * infcmd.c (run_command_1): Constify "exec_file". Use
8271 "std::string" for inferior arguments.
8272 * inferior.h (fork_inferior): Update prototype.
8273 * linux-nat.c (linux_nat_create_inferior): Rewrite function
8274 prototype in order to constify "exec_file" and accept a
8275 "std::string" for "allargs".
8276 * nto-procfs.c (procfs_create_inferior): Likewise.
8277 * procfs.c (procfs_create_inferior): Likewise.
8278 * remote-sim.c (gdbsim_create_inferior): Likewise.
8279 * remote.c (extended_remote_run): Update code to accept
8280 "std::string" as argument.
8281 (extended_remote_create_inferior): Rewrite function prototype in
8282 order to constify "exec_file" and accept a "std::string" for
8283 "allargs".
8284 * rs6000-nat.c (super_create_inferior): Likewise.
8285 (rs6000_create_inferior): Likewise.
8286 * target.h (struct target_ops) <to_create_inferior>: Likewise.
8287 * windows-nat.c (windows_create_inferior): Likewise.
8288
ae0eee42
PA
82892017-04-11 Pedro Alves <palves@redhat.com>
8290
8291 * thread.c: Fix whitespace throughout.
8292
a6acac06
PR
82932017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
8294
8295 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
8296
64403bd1
AH
82972017-04-11 Alan Hayward <alan.hayward@arm.com>
8298
8299 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
8300
a5bef50f
SDJ
83012017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
8302
8303 PR gdb/21364
8304 * osdata.c (info_osdata): Check if 'type' is an empty string
8305 instead of NULL.
8306
9295a5a9
PA
83072017-04-10 Pedro Alves <palves@redhat.com>
8308
8309 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
8310 (ptid_to_global_thread_id, in_thread_list)
8311 (do_captured_list_thread_ids, set_resumed, set_running)
8312 (set_executing, set_stop_requested, finish_thread_state)
8313 (validate_registers_access, can_access_registers_ptid)
8314 (print_thread_info_1, switch_to_thread)
8315 (do_restore_current_thread_cleanup)
8316 (make_cleanup_restore_current_thread, thread_command)
8317 (thread_name_command): Use operator== instead of ptid_equal.
8318
996812e3
PA
83192017-04-10 Pedro Alves <palves@redhat.com>
8320
8321 * thread.c (struct current_thread_cleanup) <next>: Delete field.
8322 (current_thread_cleanup_chain): Delete.
8323 (restore_current_thread_cleanup_dtor)
8324 (make_cleanup_restore_current_thread): Remove references to
8325 current_thread_cleanup_chain.
8326
845b344f
AH
83272017-04-10 Alan Hayward <alan.hayward@arm.com>
8328
8329 * msp430-tdep.c (msp430_pseudo_register_read): Never return
8330 REG_UNKNOWN.
8331
803bdfe4
YQ
83322017-04-10 Yao Qi <yao.qi@linaro.org>
8333
8334 PR gdb/19942
8335 * gdbthread.h (thread_info::deletable): New method.
8336 (thread_info::incref): New method.
8337 (thread_info::decref): New method.
8338 (thread_info::refcount): Move it to private.
8339 * infrun.c (save_stop_context): Call inc_refcount.
8340 (release_stop_context_cleanup): Likewise.
8341 * thread.c (set_thread_exited): New function.
8342 (init_thread_list): Delete "tp" only it is deletable, otherwise
8343 call set_thread_exited.
8344 (delete_thread_1): Call set_thread_exited.
8345 (current_thread_cleanup) <inferior_pid>: Remove.
8346 <thread>: New field.
8347 (restore_current_thread_ptid_changed): Removed.
8348 (do_restore_current_thread_cleanup): Adjust.
8349 (restore_current_thread_cleanup_dtor): Don't call
8350 find_thread_ptid.
8351 (set_thread_refcount): Use dec_refcount.
8352 (make_cleanup_restore_current_thread): Adjust.
8353 (thread_apply_all_command): Call inc_refcount.
8354 (_initialize_thread): Don't call
8355 observer_attach_thread_ptid_changed.
8356
8c25b497
YQ
83572017-04-10 Yao Qi <yao.qi@linaro.org>
8358
8359 * thread.c (delete_thread_1): Hoist code on marking thread as
8360 exited.
8361
8473b447
SM
83622017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8363
8364 * windows-nat.c (windows_detach): Initialize ptid with
8365 minus_one_ptid.
8366
6670ec13
SM
83672017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8368
8369 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8370
ba2f91bb
AH
83712017-04-07 Alan Hayward <alan.hayward@arm.com>
8372
8373 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8374 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8375 (bfin_pseudo_register_write): Likewise
8376
436252de
SM
83772017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8378
8379 * common/ptid.h (struct ptid): Change to...
8380 (class ptid_t): ... this.
8381 <ptid_t>: New constructors.
8382 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8383 matches>: New methods.
8384 <make_null, make_minus_one>: New static methods.
8385 <pid>: Rename to...
8386 <m_pid>: ...this.
8387 <lwp>: Rename to...
8388 <m_lwp>: ...this.
8389 <tid>: Rename to...
8390 <m_tid>: ...this.
8391 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8392 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8393 as references, move comment to class ptid_t.
8394 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8395 ptid_t static methods.
8396 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8397 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8398 Take ptid arguments as references, implement using ptid_t methods.
8399 * unittests/ptid-selftests.c: New file.
8400 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8401 unittests/ptid-selftests.c.
8402 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8403
0dedf377
TP
84042017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8405
8406 * python/python.c (python_run_simple_file): Cast mode literal to
8407 non-const char pointer as expected by PyFile_FromString.
8408
4e9868d4
SM
84092017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8410
8411 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8412 minus_one_ptid and null_ptid.
8413
9bf2a700
PA
84142017-04-05 Pedro Alves <palves@redhat.com>
8415
8416 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8417 * configure: Regenerate.
8418
a121b7c1
PA
84192017-04-05 Pedro Alves <palves@redhat.com>
8420
8421 * ada-exp.y (yyerror): Constify.
8422 * ada-lang.c (bound_name, get_selections)
8423 (ada_variant_discrim_type)
8424 (ada_variant_discrim_name, ada_value_struct_elt)
8425 (ada_lookup_struct_elt_type, is_unchecked_variant)
8426 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8427 (catch_ada_exception_command_split)
8428 (catch_ada_assert_command_split, catch_assert_command)
8429 (ada_op_name): Constify.
8430 * ada-lang.h (ada_yyerror, get_selections)
8431 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8432 * arc-tdep.c (arc_print_frame_cache): Constify.
8433 * arm-tdep.c (arm_skip_stub): Constify.
8434 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8435 (gen_aggregate_elt_ref): Constify.
8436 * bcache.c (print_bcache_statistics): Constify.
8437 * bcache.h (print_bcache_statistics): Constify.
8438 * break-catch-throw.c (catch_exception_command_1):
8439 * breakpoint.c (struct ep_type_description::description):
8440 Constify.
8441 (add_solib_catchpoint): Constify.
8442 (catch_fork_command_1): Add cast.
8443 (add_catch_command): Constify.
8444 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8445 Constify.
8446 * bsd-uthread.c (bsd_uthread_state): Constify.
8447 * buildsym.c (patch_subfile_names): Constify.
8448 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8449 Constify.
8450 * c-exp.y (yyerror): Constify.
8451 (token::oper): Constify.
8452 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8453 * c-varobj.c (cplus_describe_child): Constify.
8454 * charset.c (find_charset_names): Add cast.
8455 (find_charset_names): Constify array and add const_cast.
8456 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8457 (edit_command): Constify.
8458 * cli/cli-decode.c (lookup_cmd): Constify.
8459 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8460 Constify.
8461 (struct dump_context): Constify.
8462 (add_dump_command, restore_command): Constify.
8463 * cli/cli-script.c (get_command_line): Constify.
8464 * cli/cli-script.h (get_command_line): Constify.
8465 * cli/cli-utils.c (check_for_argument): Constify.
8466 * cli/cli-utils.h (check_for_argument): Constify.
8467 * coff-pe-read.c (struct read_pe_section_data): Constify.
8468 * command.h (lookup_cmd): Constify.
8469 * common/print-utils.c (decimal2str): Constify.
8470 * completer.c (gdb_print_filename): Constify.
8471 * corefile.c (set_gnutarget): Constify.
8472 * cp-name-parser.y (yyerror): Constify.
8473 * cp-valprint.c (cp_print_class_member): Constify.
8474 * cris-tdep.c (cris_register_name, crisv32_register_name):
8475 Constify.
8476 * d-exp.y (yyerror): Constify.
8477 (struct token::oper): Constify.
8478 * d-lang.h (d_yyerror): Constify.
8479 * dbxread.c (struct header_file_location::name): Constify.
8480 (add_old_header_file, add_new_header_file, last_function_name)
8481 (dbx_next_symbol_text, add_bincl_to_list)
8482 (find_corresponding_bincl_psymtab, set_namestring)
8483 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8484 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8485 * defs.h (command_line_input, print_address_symbolic)
8486 (deprecated_readline_begin_hook): Constify.
8487 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8488 Constify.
8489 * event-top.c (handle_line_of_input): Constify and add cast.
8490 * exceptions.c (catch_errors): Constify.
8491 * exceptions.h (catch_errors): Constify.
8492 * expprint.c (print_subexp_standard, op_string, op_name)
8493 (op_name_standard, dump_raw_expression, dump_raw_expression):
8494 * expression.h (op_name, op_string, dump_raw_expression):
8495 Constify.
8496 * f-exp.y (yyerror): Constify.
8497 (struct token::oper): Constify.
8498 (struct f77_boolean_val::name): Constify.
8499 * f-lang.c (f_word_break_characters): Constify.
8500 * f-lang.h (f_yyerror): Constify.
8501 * fork-child.c (fork_inferior): Add cast.
8502 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8503 (new_variant): Constify.
8504 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8505 * gdbarch.c: Regenerate.
8506 * gdbcore.h (set_gnutarget): Constify.
8507 * go-exp.y (yyerror): Constify.
8508 (token::oper): Constify.
8509 * go-lang.h (go_yyerror): Constify.
8510 * go32-nat.c (go32_sysinfo): Constify.
8511 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8512 * guile/scm-cmd.c (cmdscm_function): Constify.
8513 * guile/scm-param.c (pascm_param_value): Constify.
8514 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8515 (h8300sx_register_name): Constify.
8516 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8517 Constify.
8518 * ia64-tdep.c (ia64_register_names): Constify.
8519 * infcmd.c (construct_inferior_arguments): Constify.
8520 (path_command, attach_post_wait): Constify.
8521 * language.c (show_range_command, show_case_command)
8522 (unk_lang_error): Constify.
8523 * language.h (language_defn::la_error)
8524 (language_defn::la_name_of_this): Constify.
8525 * linespec.c (decode_line_2): Constify.
8526 * linux-thread-db.c (thread_db_err_str): Constify.
8527 * lm32-tdep.c (lm32_register_name): Constify.
8528 * m2-exp.y (yyerror): Constify.
8529 * m2-lang.h (m2_yyerror): Constify.
8530 * m32r-tdep.c (m32r_register_names): Constify and make static.
8531 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8532 * m88k-tdep.c (m88k_register_name): Constify.
8533 * macroexp.c (appendmem): Constify.
8534 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8535 (upgrade_type, parse_external, parse_partial_symbols)
8536 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8537 (new_symbol): Constify.
8538 * memattr.c (mem_info_command): Constify.
8539 * mep-tdep.c (register_name_from_keyword): Constify.
8540 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8541 Constify.
8542 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8543 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8544 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8545 cast.
8546 (mi_execute_async_cli_command): Constify.
8547 * mips-tdep.c (mips_register_name): Constify.
8548 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8549 (am33_register_name, am33_2_register_name)
8550 * moxie-tdep.c (moxie_register_names): Constify.
8551 * nat/linux-osdata.c (osdata_type): Constify fields.
8552 * nto-tdep.c (nto_parse_redirection): Constify.
8553 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8554 (lookup_child_selector): Constify.
8555 (objc_methcall::name): Constify.
8556 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8557 (lookup_struct_typedef): Constify.
8558 * objfiles.c (pc_in_section): Constify.
8559 * objfiles.h (pc_in_section): Constify.
8560 * p-exp.y (struct token::oper): Constify.
8561 (yyerror): Constify.
8562 * p-lang.h (pascal_yyerror): Constify.
8563 * parser-defs.h (op_name_standard): Constify.
8564 (op_print::string): Constify.
8565 (exp_descriptor::op_name): Constify.
8566 * printcmd.c (print_address_symbolic): Constify.
8567 * psymtab.c (print_partial_symbols): Constify.
8568 * python/py-breakpoint.c (stop_func): Constify.
8569 (bppy_get_expression): Constify.
8570 * python/py-cmd.c (cmdpy_completer::name): Constify.
8571 (cmdpy_function): Constify.
8572 * python/py-event.c (evpy_add_attribute)
8573 (gdbpy_initialize_event_generic): Constify.
8574 * python/py-event.h (evpy_add_attribute)
8575 (gdbpy_initialize_event_generic): Constify.
8576 * python/py-evts.c (add_new_registry): Constify.
8577 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8578 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8579 * python/py-inferior.c (get_buffer): Add cast.
8580 * python/py-param.c (parm_constant::name): Constify.
8581 * python/py-unwind.c (fprint_frame_id): Constify.
8582 * python/python.c (gdbpy_parameter_value): Constify.
8583 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8584 * remote.c (memory_packet_config::name): Constify.
8585 (show_packet_config_cmd, remote_write_bytes)
8586 (remote_buffer_add_string):
8587 * reverse.c (exec_reverse_once): Constify.
8588 * rs6000-tdep.c (variant::name, variant::description): Constify.
8589 * rust-exp.y (rustyyerror): Constify.
8590 * rust-lang.c (rust_op_name): Constify.
8591 * rust-lang.h (rustyyerror): Constify.
8592 * serial.h (serial_ops::name): Constify.
8593 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8594 (sh_sh3e_register_name, sh_sh2e_register_name)
8595 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8596 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8597 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8598 (sh_sh4al_dsp_register_name): Constify.
8599 * sh64-tdep.c (sh64_register_name): Constify.
8600 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8601 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8602 * stabsread.c (patch_block_stabs, read_type_number)
8603 (ref_map::stabs, ref_add, process_reference)
8604 (symbol_reference_defined, define_symbol, define_symbol)
8605 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8606 (read_one_struct_field, read_struct_fields, read_baseclasses)
8607 (read_tilde_fields, read_struct_type, read_array_type)
8608 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8609 (read_huge_number, read_range_type, read_args, common_block_start)
8610 (find_name_end): Constify.
8611 * stabsread.h (common_block_start, define_symbol)
8612 (process_one_symbol, symbol_reference_defined, ref_add):
8613 * symfile.c (get_section_index, add_symbol_file_command):
8614 * symfile.h (get_section_index): Constify.
8615 * target-descriptions.c (tdesc_type::name): Constify.
8616 (tdesc_free_type): Add cast.
8617 * target.c (find_default_run_target):
8618 (add_deprecated_target_alias, find_default_run_target)
8619 (target_announce_detach): Constify.
8620 (do_option): Constify.
8621 * target.h (add_deprecated_target_alias): Constify.
8622 * thread.c (print_thread_info_1): Constify.
8623 * top.c (deprecated_readline_begin_hook, command_line_input):
8624 Constify.
8625 (init_main): Add casts.
8626 * top.h (handle_line_of_input): Constify.
8627 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8628 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8629 (tfind_command): Rename to ...
8630 (tfind_command_1): ... this and constify.
8631 (tfind_command): New function.
8632 (tfind_end_command, tfind_start_command): Adjust.
8633 (encode_source_string): Constify.
8634 * tracepoint.h (encode_source_string): Constify.
8635 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8636 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8637 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8638 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8639 * tui/tui-win.c (parse_scrolling_args): Constify.
8640 * tui/tui-windata.c (tui_erase_data_content): Constify.
8641 * tui/tui-windata.h (tui_erase_data_content): Constify.
8642 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8643 * tui/tui.c (tui_enable): Add cast.
8644 * utils.c (defaulted_query): Constify.
8645 (init_page_info): Add cast.
8646 (puts_debug, subset_compare): Constify.
8647 * utils.h (subset_compare): Constify.
8648 * varobj.c (varobj_format_string): Constify.
8649 * varobj.h (varobj_format_string): Constify.
8650 * vax-tdep.c (vax_register_name): Constify.
8651 * windows-nat.c (windows_detach): Constify.
8652 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8653 * xml-support.c (gdb_xml_end_element): Constify.
8654 * xml-tdesc.c (tdesc_start_reg): Constify.
8655 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8656 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8657 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8658
995816ba
PA
86592017-04-05 Pedro Alves <palves@redhat.com>
8660
8661 * proc-api.c (struct trans): Constify.
8662 (procfs_note): Constify.
8663 * proc-events.c (struct trans, syscall_table):
8664 * proc-flags.c (struct trans): Constify.
8665 * proc-utils.h (procfs_note): Constify.
8666 * proc-why.c (struct trans): Constify.
8667 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8668 (procfs_detach): Constify.
8669 * sol-thread.c (struct string_map): Constify.
8670 (td_err_string, td_state_string): Constify.
8671
3e83a920
PA
86722017-04-05 Pedro Alves <palves@redhat.com>
8673
8674 * proc-api.c (procfs_filename): Don't initialize
8675 procfs_filename.
8676 (prepare_to_trace): Assume procfs_filename is non-NULL.
8677 (_initialize_proc_api): Give procfs_filename a default value here.
8678
63160a43
PA
86792017-04-05 Pedro Alves <palves@redhat.com>
8680
8681 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8682 'cond_string' parameter.
8683 (extract_exception_regexp): Constify 'string' parameter.
8684 (catch_exception_command_1): Constify.
8685 * breakpoint.c (init_catchpoint)
8686 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8687 parameter.
8688 (ep_parse_optional_if_clause, catch_fork_command_1)
8689 (catch_exec_command_1): Constify.
8690 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8691 parameter.
8692 (ep_parse_optional_if_clause): Constify.
8693 * cli/cli-utils.c (remove_trailing_whitespace)
8694 (check_for_argument): Constify.
8695 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8696 non-const overload.
8697 (check_for_argument): Likewise.
8698
9b2eba3d
PA
86992017-04-05 Pedro Alves <palves@redhat.com>
8700
8701 * event-top.c (command_line_handler): Add cast to execute_command
8702 call.
8703 * record-btrace.c (cmd_record_btrace_bts_start)
8704 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8705 (cmd_record_btrace_start): Add cast to execute_command call.
8706 * record-full.c (record_full_goto_insn):
8707 * record.c (record_start, record_stop): Add cast to
8708 execute_command_to_string calls.
8709 (cmd_record_start): Add cast to execute_command calls.
8710
2adadf51
PA
87112017-04-05 Pedro Alves <palves@redhat.com>
8712
8713 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8714 static inline function.
8715 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8716 array and use gdb_PyArg_ParseTupleAndKeywords.
8717 * python/py-cmd.c (cmdpy_init): Likewise.
8718 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8719 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8720 (infpy_search_memory): Likewise.
8721 * python/py-objfile.c (objfpy_add_separate_debug_file)
8722 (gdbpy_lookup_objfile): Likewise.
8723 * python/py-symbol.c (gdbpy_lookup_symbol)
8724 (gdbpy_lookup_global_symbol): Likewise.
8725 * python/py-type.c (gdbpy_lookup_type): Likewise.
8726 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8727 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8728 Likewise.
8729
0d1f4ceb
PA
87302017-04-05 Pedro Alves <palves@redhat.com>
8731
8732 * python/python-internal.h (gdb_PyGetSetDef): New type.
8733 * python/py-block.c (block_object_getset)
8734 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8735 * python/py-event.c (event_object_getset)
8736 (finish_breakpoint_object_getset): Likewise.
8737 * python/py-inferior.c (inferior_object_getset): Likewise.
8738 * python/py-infthread.c (thread_object_getset): Likewise.
8739 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8740 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8741 * python/py-objfile.c (objfile_getset): Likewise.
8742 * python/py-progspace.c (pspace_getset): Likewise.
8743 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8744 Likewise.
8745 * python/py-record.c (recpy_record_getset): Likewise.
8746 * python/py-symbol.c (symbol_object_getset): Likewise.
8747 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8748 Likewise.
8749 * python/py-type.c (type_object_getset, field_object_getset):
8750 Likewise.
8751 * python/py-value.c (value_object_getset): Likewise.
8752
4d759979
PA
87532017-04-05 Pedro Alves <palves@redhat.com>
8754
8755 * python/python-internal.h (gdb_PyObject_CallMethod)
8756 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8757 New functions.
8758 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8759 (PySys_GetObject, PySys_SetPath): New macros.
8760
fdf9e36f
PA
87612017-04-05 Pedro Alves <palves@redhat.com>
8762
8763 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8764 info_osdata_command.
8765 * osdata.c (info_osdata_command): Rename to ...
8766 (info_osdata): ... this. Constify 'type' parameter, and remove
8767 the 'from_tty' parameter. Accept NULL TYPE.
8768 (info_osdata_command): New function.
8769 * osdata.h (info_osdata_command): Remove declaration.
8770 (info_osdata): New declaration.
8771
9f33b8b7
PA
87722017-04-05 Pedro Alves <palves@redhat.com>
8773
8774 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8775 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8776 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8777 parameter.
8778 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8779 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8780 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8781 parameter.
8782 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8783 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8784 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8785 (mi_cmd_file_list_exec_source_files)
8786 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8787 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8788 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8789 parameter.
8790 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8791 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8792 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8793 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8794 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8795 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8796 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8797 'command' parameter.
8798 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8799 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8800 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8801 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8802 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8803 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8804 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8805 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8806 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8807 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8808 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8809 parameter.
8810 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8811 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8812 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8813 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8814 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8815 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8816 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8817 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8818 (mi_cmd_data_list_changed_registers)
8819 (mi_cmd_data_write_register_values)
8820 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8821 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8822 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8823 (mi_cmd_list_features, mi_cmd_list_target_features)
8824 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8825 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8826 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8827 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8828 (mi_cmd_trace_frame_collected): Constify 'command'
8829 parameter.
8830 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8831 'command' parameter.
8832
67cb5b2d
PA
88332017-04-05 Pedro Alves <palves@redhat.com>
8834
8835 * ada-lang.c (ada_completer_word_break_characters): Now a const
8836 array.
8837 (ada_get_gdb_completer_word_break_characters): Constify.
8838 * completer.c (gdb_completer_command_word_break_characters)
8839 (gdb_completer_file_name_break_characters)
8840 (gdb_completer_quote_characters): Now const arrays.
8841 (get_gdb_completer_quote_characters): Constify.
8842 (set_rl_completer_word_break_characters): New function.
8843 (set_gdb_completion_word_break_characters)
8844 (complete_line_internal): Use it.
8845 * completer.h (get_gdb_completer_quote_characters): Constify.
8846 (set_rl_completer_word_break_characters): Declare.
8847 * f-lang.c (f_word_break_characters): Constify.
8848 * language.c (default_word_break_characters): Constify.
8849 * language.h (language_defn::la_word_break_characters): Constify.
8850 (default_word_break_characters): Constify.
8851 * top.c (init_main): Use set_rl_completer_word_break_characters.
8852
7a114964
PA
88532017-04-05 Pedro Alves <palves@redhat.com>
8854
8855 * aix-thread.c (aix_thread_pid_to_str)
8856 (aix_thread_extra_thread_info): Constify.
8857 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8858 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8859 (bsd_uthread_pid_to_str): Constify.
8860 * corelow.c (core_pid_to_str): Constify.
8861 * darwin-nat.c (darwin_pid_to_str): Constify.
8862 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8863 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8864 Constify.
8865 * gnu-nat.c (gnu_pid_to_str): Constify.
8866 * go32-nat.c (go32_pid_to_str): Constify.
8867 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8868 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8869 * inferior.c (inferior_pid_to_str): Constify.
8870 * linux-nat.c (linux_nat_pid_to_str): Constify.
8871 * linux-tdep.c (linux_core_pid_to_str): Constify.
8872 * linux-thread-db.c (thread_db_pid_to_str)
8873 (thread_db_extra_thread_info): Constify.
8874 * nto-tdep.c (nto_extra_thread_info): Constify.
8875 * nto-tdep.h (nto_extra_thread_info): Constify.
8876 * obsd-nat.c (obsd_pid_to_str): Constify.
8877 * procfs.c (procfs_pid_to_str): Constify.
8878 * ravenscar-thread.c (ravenscar_extra_thread_info)
8879 (ravenscar_pid_to_str): Constify.
8880 * remote-sim.c (gdbsim_pid_to_str): Constify.
8881 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8882 Constify.
8883 * sol-thread.c (solaris_pid_to_str): Constify.
8884 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8885 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8886 * target.c (default_pid_to_str, target_pid_to_str)
8887 (normal_pid_to_str, default_pid_to_str): Constify.
8888 * target.h (target_ops::to_pid_to_str)
8889 (target_ops::to_extra_thread_info): Constify.
8890 (target_pid_to_str, normal_pid_to_str): Constify.
8891 * windows-nat.c (windows_pid_to_str): Constify.
8892 * gdbarch.sh (core_pid_to_str): Constify.
8893 * target-delegates.c: Regenerate.
8894 * gdbarch.h, gdbarch.c: Regenerate.
8895
69bbf465
PA
88962017-04-05 Pedro Alves <palves@redhat.com>
8897
8898 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8899 the memory of the temporary warning_pre_print override.
8900 * utils.c (warning_pre_print): Constify.
8901 * utils.h (warning_pre_print): Constify.
8902
be47f9e8
PA
89032017-04-05 Pedro Alves <palves@redhat.com>
8904
8905 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8906 (shell_command): New function.
8907 (make_command): Use std::string.
8908 (init_cli_cmds): Register shell_command instead of shell_escape.
8909
bde6261a
PA
89102017-04-05 Pedro Alves <palves@redhat.com>
8911
8912 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8913 * tracepoint.c (default_collect): Don't initialize.
8914
b38ef47f
PA
89152017-04-05 Pedro Alves <palves@redhat.com>
8916
8917 * macroexp.c (macro_buffer::shared): Now a bool.
8918 (init_buffer): Update.
8919 (init_shared_buffer): Constify 'addr' parameter.
8920 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8921 casts.
8922
f995bbe8
PA
89232017-04-05 Pedro Alves <palves@redhat.com>
8924
8925 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8926 * disasm.c (set_disassembler_options): Constify local.
8927 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8928
4a596fe2
SDJ
89292017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8930
8931 PR gdb/21352
8932 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8933 option.
8934
2cad08ea
YQ
89352017-04-05 Yao Qi <yao.qi@linaro.org>
8936
8937 * frame.c (frame_unwind_register_unsigned): Call
8938 frame_unwind_register_value.
8939
55a98976
YQ
89402017-04-05 Yao Qi <yao.qi@linaro.org>
8941
8942 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
8943 Use gdb_test_multiple, and don't match anchor.
8944
4ac40124
PA
89452017-04-05 Pedro Alves <palves@redhat.com>
8946
8947 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
8948 (Write After Approval): Remove Simon Marchi.
8949
c053b654
PA
89502017-04-05 Pedro Alves <palves@redhat.com>
8951
8952 * common/gdb_optional.h (optional::optional): Make constexpr and
8953 initialize m_dummy.
8954
4c7bf4f9
JB
89552017-04-04 John Baldwin <jhb@FreeBSD.org>
8956
8957 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8958 (amd64fbsd_jmp_buf_reg_offset): Remove.
8959 (amd64fbsd_supply_uthread): Remove function.
8960 (amd64fbsd_collect_uthread): Remove function.
8961 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
8962 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
8963 (x86_64-*-freebsd*): Remove bsd-uthread.o.
8964 (fbsd-nat.c): Update comment.
8965 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8966 (i386fbsd_jmp_buf_reg_offset): Remove.
8967 (i386fbsd_supply_uthread): Remove function.
8968 (i386fbsd_collect_uthread): Remove function.
8969 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
8970
1e1a8bef
JB
89712017-04-04 John Baldwin <jhb@FreeBSD.org>
8972
8973 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
8974 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
8975 * NEWS: Mention that support for FreeBSD/alpha was removed.
8976 * alpha-fbsd-tdep.c: Delete file.
8977 * config/alpha/fbsd.mh: Delete file.
8978 * configure.host: Delete alpha*-*-freebsd* and
8979 alpha*-*-kfreebsd*-gnu.
8980 * configure.tgt: Delete alpha*-*-freebsd* and
8981 alpha*-*-kfreebsd*-gnu.
8982
49907934
JB
89832017-04-04 John Baldwin <jhb@FreeBSD.org>
8984
8985 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
8986 amd64bsd_store_inferior_registers): Use ptid from regcache.
8987
6f77053d
PA
89882017-04-04 Pedro Alves <palves@redhat.com>
8989
8990 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
8991 data fields, make them private and add "m_" prefixes.
8992 (lnp_state_machine::lnp_state_machine): New ctor.
8993 (record_line, check_line_address, handle_set_discriminator)
8994 (handle_set_address, handle_advance_pc, handle_special_opcode)
8995 (handle_advance_line, handle_set_file, handle_negate_stmt)
8996 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
8997 (end_sequence, advance_line): New methods.
8998 (m_gdbarch, m_record_lines_p): New fields.
8999 (lnp_reader_state): Delete.
9000 (dwarf_record_line): Rename to ...
9001 (lnp_state_machine::record_line): ... adjust.
9002 (init_lnp_state_machine): Delete.
9003 (lnp_state_machine::lnp_state_machine): New.
9004 (check_line_address): Rename to ...
9005 (lnp_state_machine::check_line_address): This.
9006 (dwarf_decode_lines_1): Remove reference to "reader_state".
9007 Adjust lnp_state_machine having a non-default ctor. Use bool.
9008 State machine internal state manipulation moved to
9009 lnp_state_machine methods.
9010
9c541725
PA
90112017-04-04 Pedro Alves <palves@redhat.com>
9012
9013 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9014 unittests/offset-type-selftests.c.
9015 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
9016 * common/offset-type.h: New file.
9017 * common/preprocessor.h: New file.
9018 * common/traits.h: New file.
9019 * common/valid-expr.h: New file.
9020 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
9021 sect_offset and cu_offset strong typedefs throughout.
9022 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
9023 typedefs throughout.
9024 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
9025 sect_offset and cu_offset strong typedefs throughout.
9026 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
9027 typedefs throughout.
9028 * gdbtypes.h: Include "common/offset-type.h".
9029 (cu_offset): Now an offset type (strong typedef) instead of a
9030 struct.
9031 (sect_offset): Likewise.
9032 (union call_site_parameter_u): Rename "param_offset" field to
9033 "param_cu_off".
9034 * unittests/offset-type-selftests.c: New file.
9035
ecfb656c
PA
90362017-04-04 Pedro Alves <palves@redhat.com>
9037
9038 * common/underlying.h: New file.
9039 * dwarf2read.c: Include "common/gdb_optional.h" and
9040 "common/underlying.h".
9041 (dir_index, file_name_index): New types.
9042 (file_entry): Use them.
9043 (file_entry::include): Use to_underlying.
9044 (line_header::add_file_name): Use dir_index.
9045 (read_formatted_entries): Use gdb::optional. Read form before
9046 writting to file_entry.
9047 (dwarf_decode_line_header): Use dir_index.
9048 (lnp_state_machine::current_file): Use to_underlying.
9049 (lnp_state_machine::file): Change type to file_name_index.
9050 (dwarf_record_line): Use to_underlying.
9051 (init_lnp_state_machine): Use file_name_index.
9052 (dwarf_decode_lines_1): Use dir_index and file_name_index.
9053
d194f1fe
PA
90542017-04-04 Pedro Alves <palves@redhat.com>
9055
9056 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
9057 operator bool, has_value and get methods.
9058
fff8551c
PA
90592017-04-04 Pedro Alves <palves@redhat.com>
9060
9061 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
9062 fields.
9063 (line_header): Initialize all data fields. Change type of
9064 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
9065 Change type of include_dirs to std::vector<const char *>. Remove
9066 num_include_dirs, include_dirs_size. Change type of file_names to
9067 std::vector<file_entry>. Remove num_file_names, file_names_size.
9068 (line_header::line_header): New.
9069 (line_header::add_include_dir, line_header::add_file_name): New
9070 methods.
9071 (line_header::include_dir_at): Remove NULL check.
9072 (line_header::file_name_at): Add const overload.
9073 (line_header_up): New unique_ptr typedef.
9074 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
9075 std::vector. Remove free_line_header call.
9076 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
9077 free_line_header call.
9078 (free_cu_line_header): Delete.
9079 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
9080 (setup_type_unit_groups): Use line_header_up instead of cleanups.
9081 Adjust to use std::vector.
9082 (free_line_header): Delete.
9083 (free_line_header_voidp): Use delete.
9084 (add_include_dir): Replace with ...
9085 (line_header::add_include_dir): ... this method. Use std::vector.
9086 (add_file_name): Replace with ...
9087 (line_header::add_file_name): ... this method. Use std::vector.
9088 (add_include_dir_stub): Delete.
9089 (read_formatted_entries): Remove memset.
9090 (dwarf_decode_line_header): Return a line_header_up instead of a
9091 raw pointer. Remove cleanup handling. Pass lambdas to
9092 read_formatted_entries. Adjust to use line_header methods.
9093 (dwarf_decode_lines_1): Adjust to use line_header methods.
9094 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
9095 use std::vector.
9096
d62a8ae2
SM
90972017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
9098
9099 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
9100 instead of struct ptid.
9101
db3a1dc7
AH
91022017-05-04 Alan Hayward <alan.hayward@arm.com>
9103
9104 * frame.c (get_frame_register_bytes): Unwind using value.
9105 (put_frame_register_bytes): Likewise.
9106
b1b45502
IB
91072017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
9108
9109 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
9110 aggregate-like.
9111
ec13808e
JK
91122017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9113
9114 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
9115
12316564
YQ
91162017-03-29 Yao Qi <yao.qi@linaro.org>
9117
9118 * gdbthread.h (struct thread_info): Declare constructor and
9119 destructor. Add some in-class member initializers.
9120 * thread.c (free_thread): Remove.
9121 (init_thread_list): Call delete instead of free_thread.
9122 (new_thread): Call thread_info constructor.
9123 (thread_info::thread_info): New function.
9124 (thread_info::~thread_info): New function.
9125 (delete_thread_1): Call delete instead of free_thread.
9126 (make_cleanup_restore_current_thread): Move tp and frame to
9127 inner block.
9128
fe5f7374
AK
91292017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9130
9131 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
9132 (arc_skip_prologue): Likewise.
9133 (arc_make_frame_cache): Likewise.
9134 (arc_pv_get_operand): New function.
9135 (arc_is_in_prologue): Likewise.
9136 (arc_analyze_prologue): Likewise.
9137 (arc_print_frame_cache): Likewise.
9138 (MAX_PROLOGUE_LENGTH): New constant.
9139
eea78757
AK
91402017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9141
9142 * configure.tgt: Add arc-insn.o.
9143 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
9144 (dump_arc_instruction_command): New function.
9145 (arc_fprintf_disasm): Likewise.
9146 (arc_disassemble_info): Likewise.
9147 (arc_insn_get_operand_value): Likewise.
9148 (arc_insn_get_operand_value_signed): Likewise.
9149 (arc_insn_get_memory_base_reg): Likewise.
9150 (arc_insn_get_memory_offset): Likewise.
9151 (arc_insn_get_branch_target): Likewise.
9152 (arc_insn_dump): Likewise.
9153 (arc_insn_get_linear_next_pc): Likewise.
9154 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
9155 (arc_disassemble_info): Likewise.
9156 (arc_insn_get_branch_target): Likewise.
9157 (arc_insn_get_linear_next_pc): Likewise.
9158 * NEWS: Mention new "maint print arc arc-instruction".
9159
3be78afd
AK
91602017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9161
9162 * arc-tdep (maintenance_print_arc_list): New variable.
9163 (maintenance_print_arc_command): New function.
9164
296ec4fa
AK
91652017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9166
9167 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
9168 Add "limm" and "reserved".
9169 (arc_cannot_fetch_register, arc_cannot_store_register): Add
9170 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
9171 * arc-tdep.h (arc_regnum): Likewise.
9172
f74f865e
MF
91732017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9174
9175 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9176 for THREADPTR register.
9177 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
9178 register.
9179 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
9180 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
9181 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
9182
0d0bf81a
MF
91832017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9184
9185 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
9186 registers above gdbarch_num_regs (gdbarch) as privileged in
9187 call0 ABI.
9188
0ce4291e
MF
91892017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9190
9191 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9192 for a single specified register or for all registers in
9193 a0_base..a0_base + C0_NREGS range.
9194 (supply_gregset_reg): Call regcache_raw_supply for a single
9195 specified register or for all registers in a0_base..a0_base +
9196 C0_NREGS range.
9197
c56054f9
MF
91982017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9199
9200 * arch/xtensa.h (C0_NREGS): Add definition.
9201 * xtensa-tdep.c (C0_NREGS): Remove definition.
9202
a4398628
MF
92032017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9204
9205 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
9206 Drop xtensa_default_isa initialization.
9207 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
9208
8c43009f
PA
92092017-03-27 Pedro Alves <palves@redhat.com>
9210
9211 * dwarf2read.c (file_entry) <dir_index>: Add comment.
9212 (file_entry::include_dir): New method.
9213 (line_header::include_dir_at, line_header::file_name_at): New
9214 methods.
9215 (setup_type_unit_groups, setup_type_unit_groups)
9216 (psymtab_include_file_name): Simplify using the new methods.
9217 (lnp_state_machine) <the_line_header>: New field.
9218 <file>: Add comment.
9219 (lnp_state_machine::current_file): New method.
9220 (dwarf_record_line): Simplify using the new methods.
9221 (init_lnp_state_machine): Initialize the "the_line_header" field.
9222 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
9223 Simplify using the new methods.
9224
a7e80b9e
PA
92252017-03-27 Pedro Alves <palves@redhat.com>
9226
9227 * cp-name-parser.y (make_empty): Delete.
9228 (demangler_special, nested_name, ptr_operator, array_indicator)
9229 (direct_declarator, declarator_1): Use fill_comp instead of
9230 make_empty.
9231
21047726
PA
92322017-03-27 Pedro Alves <palves@redhat.com>
9233
9234 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
9235 to ATTRIBUTE_PRINTF.
9236 * solib-target.c (library_list_start_list): Print "string" not
9237 "version".
9238 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
9239 gdb_xml_error call.
9240
d721ba37
PA
92412017-03-27 Pedro Alves <palves@redhat.com>
9242
9243 * dwarf2read.c (struct file_and_directory): New.
9244 (dwarf2_get_dwz_file): Adjust to use std::string.
9245 (dw2_get_file_names_reader): Adjust to use file_and_directory.
9246 (find_file_and_directory): Adjust to return a file_and_directory
9247 object.
9248 (read_file_scope): Adjust to use file_and_directory. Remove
9249 make_cleanup/do_cleanups calls.
9250 (open_and_init_dwp_file): Adjust to use std::string. Remove
9251 make_cleanup/do_cleanups calls.
9252 * python/python.c (do_start_initialization): Adjust to ldirname
9253 returning a std::string.
9254 * utils.c (ldirname): Now returns a std::string.
9255 * utils.h (ldirname): Change return type to std::string.
9256 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
9257 returning a std::string.
9258 * xml-tdesc.c (file_read_description_xml): Likewise.
9259
ed771251
AH
92602017-03-24 Alan Hayward <alan.hayward@arm.com>
9261
9262 * regcache.c (regcache_debug_print_register): New function.
9263 * regcache.h (regcache_debug_print_register): New declaration.
9264 * target.c (debug_print_register): Remove.
9265 (target_fetch_registers): Call regcache_debug_print_register.
9266 (target_store_registers): Likewise.
9267
568c1b9f
PB
92682017-03-24 Pádraig Brady <pbrady@fb.com>
9269
9270 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
9271 reference beyond the 'lh->include_dirs' array before accessing to
9272 it.
9273 (psymtab_include_file_name): Likewise.
9274 (dwarf_decode_lines_1): Likewise.
9275 (dwarf_decode_lines): Likewise.
9276 (file_file_name): Likewise.
9277
3e00d44f
SM
92782017-03-23 Simon Marchi <simon.marchi@ericsson.com>
9279
9280 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
9281 inferior_ptid.
9282 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9283 ps_lsetfpregs): Likewise.
9284 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
9285 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9286 ps_lsetfpregs): Likewise.
9287 * target.c (target_fetch_registers, target_store_registers):
9288 Remove asserts.
9289
077ae656
AH
92902017-03-23 Alan Hayward <alan.hayward@arm.com>
9291
9292 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
9293
1e2b521d
YQ
92942017-03-23 Yao Qi <yao.qi@linaro.org>
9295
9296 * aarch64-tdep.c (aarch64_process_record_test): Declare.
9297 (_initialize_aarch64_tdep): Register it.
9298 (aarch64_record_load_store): Handle PRFM instruction.
9299 (aarch64_process_record_test): New function.
9300
33877125
YQ
93012017-03-23 Yao Qi <yao.qi@linaro.org>
9302
9303 * aarch64-tdep.c (aarch64_record_load_store): Fix code
9304 indentation.
9305
a0eef940
YQ
93062017-03-23 Yao Qi <yao.qi@linaro.org>
9307
9308 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
9309
3f2a3564
PR
93102017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9311
9312 python/python.c (do_start_initialization): Fix memory leak.
9313
b67aeab0
SM
93142017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9315
9316 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
9317 using get_ptrace_pid.
9318 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
9319 inferior_ptid.
9320 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
9321 inferior_ptid instead of pid.
9322
ffdbe864
YQ
93232017-03-22 Yao Qi <yao.qi@linaro.org>
9324
9325 * aarch64-tdep.c: Wrap locally used classes in anonymous
9326 namespace.
9327 * arm-tdep.c: Likewise.
9328 * linespec.c: Likewise.
9329 * ui-out.c: Likewise.
9330
9d736fbf
JG
93312017-03-22 Jonah Graham <jonah@kichwacoders.com>
9332
9333 PR gdb/19637
9334 * python/lib/gdb/printer/bound_registers.py: Import sys.
9335
3de88e9a
SM
93362017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9337
9338 * windows-nat.c (do_windows_fetch_inferior_registers): Add
9339 windows_thread_info parameter and use it instead of
9340 current_thread.
9341 (windows_fetch_inferior_registers): Don't set current_thread,
9342 pass the thread to do_windows_fetch_inferior_registers. Use
9343 ptid from regcache instead of inferior_ptid.
9344 (do_windows_store_inferior_registers): Add windows_thread_info
9345 parameter and use it instead of current_thread.
9346 (windows_store_inferior_registers): Don't set current_thread,
9347 pass the thread to do_windows_store_inferior_registers. Use
9348 ptid from regcache instead of inferior_ptid.
9349
0e7b8f61
SM
93502017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9351
9352 * ser-mingw.c (ser_windows_raw): Remove reference to
9353 struct serial::current_timeout.
9354
5badf10a
IR
93552017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
9356
9357 PR tdep/20928
9358 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
9359 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
9360 (sparc64_fsr_type): Fix %fsr decoding.
9361
cee59b3f
TW
93622017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
9363
9364 * python/py-record-btrace.c (btpy_insn_data): Change return type
9365 for Python 2.
9366
639a9038
SM
93672017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9368
9369 * spu-linux-nat.c (spu_fetch_inferior_registers,
9370 spu_store_inferior_registers): Use ptid from regcache, set and
9371 restore inferior_ptid.
9372 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9373 Likewise.
9374
bcc0c096
SM
93752017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9376
9377 * i386-linux-nat.c (fetch_register, store_register,
9378 i386_linux_fetch_inferior_registers,
9379 i386_linux_store_inferior_registers): Use ptid from regcache.
9380 * ia64-linux-nat.c (ia64_linux_fetch_register,
9381 ia64_linux_store_register): Likewise.
9382 * inf-ptrace.c (inf_ptrace_fetch_register,
9383 inf_ptrace_store_register): Likewise.
9384 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9385 m32r_linux_store_inferior_registers): Likewise.
9386 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9387 m68kbsd_store_inferior_registers): Likewise.
9388 * m68k-linux-nat.c (fetch_register, store_register,
9389 m68k_linux_fetch_inferior_registers,
9390 m68k_linux_store_inferior_registers): Likewise.
9391 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9392 m88kbsd_store_inferior_registers): Likewise.
9393 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9394 mips_fbsd_store_inferior_registers): Likewise.
9395 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9396 mips64_linux_regsets_store_registers): Likewise.
9397 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9398 mipsnbsd_store_inferior_registers): Likewise.
9399 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9400 mips64obsd_store_inferior_registers): Likewise.
9401 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9402 Likewise.
9403 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9404 ppcfbsd_store_inferior_registers): Likewise.
9405 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9406 ppc_linux_store_inferior_registers): Likewise.
9407 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9408 ppcnbsd_store_inferior_registers): Likewise.
9409 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9410 ppcobsd_store_registers): Likewise.
9411 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9412 Likewise.
9413 * ravenscar-thread.c (ravenscar_fetch_registers,
9414 ravenscar_store_registers, ravenscar_prepare_to_store):
9415 Likewise.
9416 * record-btrace.c (record_btrace_fetch_registers,
9417 record_btrace_store_registers, record_btrace_prepare_to_store):
9418 Likewise.
9419 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9420 Lookup inferior using ptid from regcache, instead of
9421 current_inferior.
9422 * remote.c (remote_fetch_registers, remote_store_registers): Use
9423 ptid from regcache.
9424 * rs6000-nat.c (fetch_register, store_register): Likewise.
9425 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9426 s390_linux_store_inferior_registers): Likewise.
9427 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9428 shnbsd_store_inferior_registers): Likewise.
9429 * sol-thread.c (sol_thread_fetch_registers,
9430 sol_thread_store_registers): Likewise.
9431 * sparc-nat.c (sparc_fetch_inferior_registers,
9432 sparc_store_inferior_registers): Likewise.
9433 * tilegx-linux-nat.c (fetch_inferior_registers,
9434 store_inferior_registers): Likewise.
9435 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9436 vaxbsd_store_inferior_registers): Likewise.
9437 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9438 store_xtregs): Likewise.
9439
c0f55cc6
AV
94402017-03-20 Artemiy Volkov <artemiyv@acm.org>
9441
9442 PR gdb/14441
9443 * NEWS: Mention support for rvalue references in GDB and python.
9444 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9445 supports both lvalue and rvalue references.
9446
15c0a2a9
AV
94472017-03-20 Artemiy Volkov <artemiyv@acm.org>
9448
9449 PR gdb/14441
9450 * gdbtypes.c (rank_one_type): Implement overloading
9451 resolution rules regarding rvalue references.
9452
aa006118
AV
94532017-03-20 Artemiy Volkov <artemiyv@acm.org>
9454
9455 PR gdb/14441
9456 * aarch64-tdep.c (aarch64_type_align)
9457 (aarch64_extract_return_value, aarch64_store_return_value): Change
9458 lvalue reference type checks to general reference type checks.
9459 * amd64-tdep.c (amd64_classify): Likewise.
9460 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9461 Likewise.
9462 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9463 (arm_store_return_value): Likewise.
9464 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9465 * c-typeprint.c (c_print_type): Likewise.
9466 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9467 (cplus_number_of_children, cplus_describe_child): Likewise.
9468 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9469 * completer.c (expression_completer): Likewise.
9470 * cp-support.c (make_symbol_overload_list_adl_namespace):
9471 Likewise.
9472 * darwin-nat-info.c (info_mach_region_command): Likewise.
9473 * dwarf2loc.c (entry_data_value_coerce_ref)
9474 (value_of_dwarf_reg_entry): Likewise.
9475 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9476 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9477 Likewise.
9478 * findvar.c (extract_typed_address, store_typed_address):
9479 Likewise.
9480 * gdbtypes.c (rank_one_type): Likewise.
9481 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9482 * infcall.c (value_arg_coerce): Likewise.
9483 * language.c (pointer_type): Likewise.
9484 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9485 Likewise.
9486 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9487 * mn10300-tdep.c (mn10300_type_align): Likewise.
9488 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9489 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9490 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9491 Likewise.
9492 * printcmd.c (print_formatted, x_command): Likewise.
9493 * python/py-type.c (typy_get_composite, typy_template_argument):
9494 Likewise.
9495 * python/py-value.c (valpy_referenced_value)
9496 (valpy_get_dynamic_type, value_has_field): Likewise.
9497 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9498 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9499 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9500 * spu-tdep.c (spu_scalar_value_p): Likewise.
9501 * symtab.c (lookup_symbol_aux): Likewise.
9502 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9503 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9504 Likewise.
9505 * valops.c (value_cast_pointers, value_cast)
9506 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9507 (value_struct_elt, value_struct_elt_bitpos)
9508 (value_find_oload_method_list, find_overload_match)
9509 (value_rtti_indirect_type): Likewise.
9510 * valprint.c (val_print_scalar_type_p, generic_val_print):
9511 Likewise.
9512 * value.c (value_actual_type, value_as_address, unpack_long)
9513 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9514 (coerce_ref): Likewise.
9515 * varobj.c (varobj_get_value_type): Likewise.
9516
3fcf899d
AV
95172017-03-20 Artemiy Volkov <artemiyv@acm.org>
9518
9519 PR gdb/14441
9520 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9521 table of constants.
9522 * python/lib/gdb/command/explore.py: Support exploring values
9523 of rvalue reference types.
9524 * python/lib/gdb/types.py: Implement get_basic_type() for
9525 rvalue reference types.
9526 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9527 constant.
9528 * python/py-value.c (valpy_getitem): Add an rvalue reference
9529 check.
9530 (valpy_reference_value): Add new parameter "refcode".
9531 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9532 New wrappers for valpy_reference_value().
9533 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9534 (gdbpy_invoke_xmethod): Likewise.
9535
4297a3f0
AV
95362017-03-20 Artemiy Volkov <artemiyv@acm.org>
9537
9538 PR gdb/14441
9539 * dwarf2read.c (process_die, read_type_die_1): Handle the
9540 DW_TAG_rvalue_reference_type DIE.
9541 (read_tag_reference_type): Add new parameter "refcode".
9542
e1cb3213
AV
95432017-03-20 Artemiy Volkov <artemiyv@acm.org>
9544
9545 PR gdb/14441
9546 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9547 (c_type_print_modifier, c_type_print_varspec_suffix)
9548 (c_type_print_base): Support printing rvalue reference types.
9549 * c-valprint.c (c_val_print, c_value_print): Support printing
9550 rvalue reference values.
9551
e4347c89
AV
95522017-03-20 Artemiy Volkov <artemiyv@acm.org>
9553
9554 PR gdb/14441
9555 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9556 typename.
9557 * cp-support.c (replace_typedefs): Handle
9558 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9559 * python/py-type.c (typy_lookup_type): Likewise.
9560
53cc15f5
AV
95612017-03-20 Artemiy Volkov <artemiyv@acm.org>
9562
9563 PR gdb/14441
9564 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9565 * parse.c (insert_type): Change assert statement.
9566 (follow_types): Handle rvalue reference types.
9567 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9568 constant.
9569
a65cfae5
AV
95702017-03-20 Artemiy Volkov <artemiyv@acm.org>
9571
9572 PR gdb/14441
9573 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9574 value_ref() interface.
9575 * c-valprint.c (c_value_print): Likewise.
9576 * infcall.c (value_arg_coerce): Likewise.
9577 * python/py-value.c (valpy_reference_value): Likewise.
9578 * valops.c (value_cast, value_reinterpret_cast)
9579 (value_dynamic_cast, typecmp): Likewise.
9580 (value_ref): Parameterize by kind of return value reference type.
9581 * value.h (value_ref): Add new parameter "refcode".
9582
3b224330
AV
95832017-03-20 Artemiy Volkov <artemiyv@acm.org>
9584
9585 PR gdb/14441
9586 * dwarf2read.c (read_tag_reference_type): Use
9587 lookup_lvalue_reference_type() instead of lookup_reference_type().
9588 * eval.c (evaluate_subexp_standard): Likewise.
9589 * f-exp.y: Likewise.
9590 * gdbtypes.c (make_reference_type, lookup_reference_type):
9591 Generalize with rvalue reference types.
9592 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9593 convenience wrappers for lookup_reference_type().
9594 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9595 reference kind parameter.
9596 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9597 wrappers for lookup_reference_type().
9598 * guile/scm-type.c (gdbscm_type_reference): Use
9599 lookup_lvalue_reference_type() instead of lookup_reference_type().
9600 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9601 * parse.c (follow_types): Likewise.
9602 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9603 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9604 Likewise.
9605 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9606 (gdbpy_invoke_xmethod): Likewise.
9607 * stabsread.c: Provide extra argument to make_reference_type()
9608 call.
9609 * valops.c (value_ref, value_rtti_indirect_type): Use
9610 lookup_lvalue_reference_type() instead of lookup_reference_type().
9611
f9aeb8d4
AV
96122017-03-20 Artemiy Volkov <artemiyv@acm.org>
9613
9614 PR gdb/14441
9615 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9616 (TYPE_IS_REFERENCE): New macro.
9617 (struct type): Add rvalue_reference_type field.
9618 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9619
51457a05
MAL
96202017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9621
9622 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9623 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9624 New function definition.
9625 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9626 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9627 New function declaration.
9628 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9629 * mi/mi-interp.h: New file.
9630 * solib.c (info_sharedlibrary_command): Replace for loop with
9631 ALL_SO_LIBS macro
9632 * solib.h (update_solib_list): New function declaration.
9633 (so_list_head): Move macro.
9634 * solist.h (ALL_SO_LIBS): New macro.
9635
e696b3ad
MAL
96362017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9637
9638 * infcmd.c (post_create_inferior): Remove unused argument in
9639 call to solib_add.
9640 * remote.c (remote_start_remote): Likewise.
9641 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9642 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9643 (enable_break): Likewise.
9644 * solib.c (update_solib_list): Remove unused target argument
9645 and its documentation.
9646 (solib_add): Remove unused target argument. Remove unused
9647 argument in call to update_solib_list.
9648 (info_sharedlibrary_command): Remove unused argument in call
9649 to update_solib_list.
9650 (sharedlibrary_command): Remove unused argument in call to
9651 solib_add.
9652 (handle_solib_event): Likewise.
9653 (reload_shared_libraries): Likewise.
9654 * solib.h (solib_add): Remove unused target argument.
9655
dcb84eda
AA
96562017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9657
9658 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9659 (s390_displaced_step_fixup): Cover relative branches with the
9660 default fixup handling. This fixes lack of support for some
9661 relative branch instructions.
9662
d9cb6cdc
SM
96632017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9664
9665 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9666 ptid from regcache.
9667
1afaf9f4
SM
96682017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9669
9670 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9671 i386_darwin_store_inferior_registers): Use ptid from regcache.
9672
aac12e24
SM
96732017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9674
9675 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9676 i386bsd_store_inferior_registers): Use ptid from regcache.
9677
bbe1eef1
SM
96782017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9679
9680 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9681 hppaobsd_store_registers): Use ptid from regcache.
9682
10799020
SM
96832017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9684
9685 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9686 hppanbsd_store_registers): Use ptid from regcache.
9687
00204cf7
SM
96882017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9689
9690 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9691 from regcache. Use get_ptrace_pid.
9692
11a33714
SM
96932017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9694
9695 * corelow.c (get_core_register_section): Use ptid from regcache,
9696 update doc.
9697
317cd492
SM
96982017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9699
9700 * bsd-uthread.c (bsd_uthread_fetch_registers,
9701 bsd_uthread_store_registers): Use ptid from regcache, set and
9702 restore inferior_ptid.
9703
9ac8a7c2
SM
97042017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9705
9706 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9707 fetch_fp_regs, store_register, store_regs, store_fp_register,
9708 store_fp_regs): Use ptid from regcache.
9709
4ac4bb6a
SM
97102017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9711
9712 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9713 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9714 store_vfp_regs): Use ptid from regcache.
9715
9bcbdca8
PA
97162017-03-17 Pedro Alves <palves@redhat.com>
9717
9718 PR remote/21188
9719 * ser-base.c (ser_base_wait_for): Add comment.
9720 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9721 version.
9722 * ser-unix.c (hardwire_raw): Remove reference to
9723 scb->current_timeout.
9724 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9725 (hardwire_ops): Install ser_base_readchar instead of
9726 hardwire_readchar.
9727 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9728 Remove fields.
9729
7503099f
JG
97302017-03-17 Jonah Graham <jonah@kichwacoders.com>
9731
9732 PR gdb/19637
9733 * python/lib/gdb/printer/bound_registers.py: Add support for
9734 Python 3.
9735
7942e96e
AA
97362017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9737
9738 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9739 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9740 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9741 byte_offset to subobj_byte_offset. Fix the handling of
9742 DWARF_VALUE_STACK on big-endian targets when coming via an
9743 implicit pointer.
9744 (dwarf2_evaluate_loc_desc): Adjust call to
9745 dwarf2_evaluate_loc_desc_full.
9746 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9747 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9748
ba14f379
YQ
97492017-03-16 Yao Qi <yao.qi@linaro.org>
9750
9751 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9752 and REVSH instructions.
9753
b121eeb9
YQ
97542017-03-16 Yao Qi <yao.qi@linaro.org>
9755
9756 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9757 (arm_record_test): Declare.
9758 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9759 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9760 align with the manual.
9761 (thumb_record_misc): Adjust the code order to align with the
9762 manual.
9763 (thumb2_record_decode_insn_handler): Fix instruction matching.
9764 (instruction_reader_thumb): New class.
9765 (arm_record_test): New function.
9766
728a7913
YQ
97672017-03-16 Yao Qi <yao.qi@linaro.org>
9768
9769 * arm-tdep.c (abstract_memory_reader): New class.
9770 (instruction_reader): New class.
9771 (extract_arm_insn): Add argument 'reader'. Callers updated.
9772 (decode_insn): Likewise.
9773
34b43320
DE
97742017-03-16 Doug Evans <dje@google.com>
9775
a7c0469f
DE
9776 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9777 member. Change type of TYPE member to SCM. All uses updated.
9778 (lsscm_make_lazy_string_smob): Add assert.
9779 (lsscm_make_lazy_string): Flag bad length values.
9780 (lsscm_elt_type): New function.
9781 (gdbscm_lazy_string_to_value): Rewrite to use
9782 lsscm_safe_lazy_string_to_value.
9783 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9784 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9785 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9786 in incoming type.
9787 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9788 * guile/scm-type.c (tyscm_scm_to_type): New function.
9789
97902017-03-15 Doug Evans <dje@google.com>
9791
34b43320
DE
9792 PR python/17728, python/18439, python/18779
9793 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9794 member. Change type of TYPE member to PyObject *. All uses updated.
9795 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9796 (gdbpy_create_lazy_string_object): Flag bad length values.
9797 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9798 Handle typedefs in incoming type.
9799 (stpy_lazy_string_elt_type): New function.
9800 (gdbpy_extract_lazy_string): Call it.
9801 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9802 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9803 typedefs in incoming type.
9804
a3a5fecc
DE
98052017-03-16 Doug Evans <dje@google.com>
9806
9807 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9808 * guile/scm-type.c (tyscm_scm_to_type): New function.
9809
28f1c605
JW
98102017-03-16 Jiong Wang <jiong.wang@arm.com>
9811
9812 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9813 "ULONGEST" for "skip".
9814
87c336f6
AA
98152017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9816
9817 PR gdb/21220
9818 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9819 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9820 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9821 over ptrace peek/poke until end of buffer or error.
9822
cf81cf60
SM
98232017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9824
9825 * parse.c (length_of_subexp): Make static.
9826 * parser-defs.h (length_of_subexp): Remove.
9827
a379284a
AA
98282017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9829
9830 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9831 as well.
9832
8a6200ba
PA
98332017-03-14 Pedro Alves <palves@redhat.com>
9834
9835 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9836 (main): Use std::unique_ptr. Remove calls to
9837 cp_demangled_name_parse_free.
9838
f79ec206
SM
98392017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9840
9841 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9842 alphabsd_store_inferior_registers): Use regcache->ptid instead
9843 of inferior_ptid.
9844
edb5fb00
SM
98452017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9846
9847 * aix-thread.c (aix_thread_fetch_registers,
9848 aix_thread_store_registers): Use regcache->ptid instead of
9849 inferior_ptid.
9850
55119686
SM
98512017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9852
9853 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9854 store_gregs_to_thread, fetch_fpregs_from_thread,
9855 store_fpregs_to_thread): Use regcache->ptid instead of
9856 inferior_ptid.
9857
6a06fbb7
SM
98582017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9859
9860 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9861 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9862 instead of inferior_ptid.
9863
c6386875
SM
98642017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9865
9866 * target.c (target_fetch_registers, target_store_registers): Add
9867 assert.
9868
ddaaf0fb
SM
98692017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9870
9871 * regcache.h (regcache_get_ptid): New function.
9872 * regcache.c (regcache_get_ptid): New function.
9873
b9da89d1 98742017-03-13 Mark Wielaard <mark@klomp.org>
9875
9876 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9877
5f4d1085
KS
98782017-03-10 Keith Seitz <keiths@redhat.com>
9879
9880 PR c++/8218
9881 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9882
c65d6b55
PA
98832017-03-08 Pedro Alves <palves@redhat.com>
9884
9885 PR gdb/18360
9886 * infrun.c (start_step_over, do_target_resume, resume)
9887 (restart_threads): Assert we're not resuming a thread that is
9888 meant to be stopped.
9889 (infrun_thread_stop_requested_callback): Delete.
9890 (infrun_thread_stop_requested): If the thread is internally
9891 stopped, queue a pending stop event and clear the thread's
9892 inline-frame state.
9893 (handle_stop_requested): New function.
9894 (handle_syscall_event, handle_inferior_event_1): Use
9895 handle_stop_requested.
9896 (handle_stop_requested): New function.
9897 (handle_signal_stop): Set the thread's stop_signal here instead of
9898 at caller.
9899 (finish_step_over): Clear step over info unconditionally.
9900 (handle_signal_stop): If the user had interrupted the event
9901 thread, consider the stop a random signal.
9902 (handle_signal_stop) <signal arrived while stepping over
9903 breakpoint>: Don't restart threads here.
9904 (stop_waiting): Don't clear step-over info here.
9905
15c22686
PA
99062017-03-08 Pedro Alves <palves@redhat.com>
9907
9908 PR 21206
9909 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9910 goes to argument 2, not 1.
9911
6e5d74e7
PA
99122017-03-08 Pedro Alves <palves@redhat.com>
9913
9914 PR cli/21218
9915 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9916 display_gdb_prompt.
9917 (command_line_input): Add comment.
9918
9753a2f6
PA
99192017-03-08 Pedro Alves <palves@redhat.com>
9920
9921 PR tui/21216
9922 * tui/tui-file.c (tui_file::write): New.
9923 * tui/tui-file.h (tui_file): Override "write".
9924 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9925 factored out from ...
9926 (tui_puts): ... here.
9927 (tui_putc): Use them.
9928 (tui_write): New function.
9929 * tui/tui-io.h (tui_write): Declare.
9930
1672e0d9
SDJ
99312017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9932
9933 * Makefile.in (SFILES): Replace "environ.c" with
9934 "common/environ.c".
9935 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9936 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9937 to...
9938 * common/environ.c: ... here.
9939 * environ.h: Moved to...
9940 * common/environ.h: ... here.
9941
f7bb4e3a
PB
99422017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9943
9944 * gdbarch.sh (pstring_ptr): New static function.
9945 (gdbarch_disassembler_options): Use it.
9946 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
9947 not valid_disassembler_option->name.
9948 * gdbarch.c: Regenerate.
9949
e45ced6c
PB
99502017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9951
9952 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
9953
5f6fd321
PA
99542017-03-07 Pedro Alves <palves@redhat.com>
9955
9956 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
9957
6dbb839a 99582017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
9959
9960 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
9961 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
9962 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 9963 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 9964
d274ecf4
SM
99652017-03-06 Simon Marchi <simon.marchi@ericsson.com>
9966
9967 * xtensa-linux-nat.c (fetch_gregs): Remove const.
9968
df97be55
SM
99692017-03-03 Simon Marchi <simon.marchi@ericsson.com>
9970
9971 * remote.c (remote_add_target_side_commands): Use range-based
9972 for loop.
9973
7d45f3df
YQ
99742017-03-03 Yao Qi <yao.qi@linaro.org>
9975
9976 PR gdb/21165
9977 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
9978 value is lazy.
9979 * valprint.c (common_val_print): Likewise.
9980
65b48a81
PB
99812017-02-28 Peter Bergner <bergner@vnet.ibm.com>
9982
9983 * NEWS: Mention new set/show disassembler-options commands.
9984 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
9985 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
9986 (prospective_options): New static variable.
9987 (gdb_disassembler::gdb_disassembler): Initialize
9988 m_di.disassembler_options.
9989 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
9990 (get_disassembler_options): New function.
9991 (set_disassembler_options): Likewise.
9992 (set_disassembler_options_sfunc): Likewise.
9993 (show_disassembler_options_sfunc): Likewise.
9994 (disassembler_options_completer): Likewise.
9995 (_initialize_disasm): Likewise.
9996 * disasm.h (get_disassembler_options): New prototype.
9997 (set_disassembler_options): Likewise.
9998 * gdbarch.sh (gdbarch_disassembler_options): New variable.
9999 (gdbarch_verify_disassembler_options): Likewise.
10000 * gdbarch.c: Regenerate.
10001 * gdbarch.h: Likewise.
10002 * arm-tdep.c (num_disassembly_options): Delete.
10003 (set_disassembly_style): Likewise.
10004 (arm_disassembler_options): New static variable.
10005 (set_disassembly_style_sfunc): Convert short style name into long
10006 option name. Call set_disassembler_options.
10007 (show_disassembly_style_sfunc): New function.
10008 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
10009 set_gdbarch_verify_disassembler_options.
10010 (_initialize_arm_tdep): Delete regnames variable and update callers.
10011 (arm_disassembler_options): Initialize.
10012 (disasm_options): New variable.
10013 (num_disassembly_options): Rename from this...
10014 (num_disassembly_styles): ...to this. Compute by scanning through
10015 disasm_options.
10016 (valid_disassembly_styles): Initialize using disasm_options.
10017 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
10018 set_arm_regname_option.
10019 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
10020 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
10021 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
10022 set_gdbarch_verify_disassembler_options.
10023 * s390-tdep.c (s390_disassembler_options): New static variable.
10024 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
10025 set_gdbarch_verify_disassembler_options.
10026
d538e36d
SM
100272017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10028
10029 * remote.c (remote_add_target_side_condition): Remove "struct"
10030 keyword from range-based for loop.
10031
83621223
SM
100322017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10033
10034 * remote.c (remote_add_target_side_condition): Use range-based
10035 for loop. Update comment.
10036
2123df0e
YQ
100372017-02-27 Yao Qi <yao.qi@linaro.org>
10038
10039 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
10040
8e368124
AH
100412017-02-26 Alan Hayward <alan.hayward@arm.com>
10042
10043 * regcache.c (regcache_raw_update): New function.
10044 (regcache_raw_read): Move code to regcache_raw_update.
10045 * regcache.h (regcache_raw_update): New declaration.
10046 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
10047
a49dd8dd
JK
100482017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10049
10050 * dwarf2read.c (create_debug_type_hash_table): Initialize
10051 header.signature and header.type_offset_in_tu.
10052
34e4bae9
PA
100532017-02-24 Pedro Alves <palves@redhat.com>
10054
10055 * symtab.c (make_file_symbol_completion_list_1): Use
10056 add_symtab_completions.
10057
b0e4b369
AH
100582017-02-24 Alan Hayward <alan.hayward@arm.com>
10059
10060 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
10061
975c21ab
AH
100622017-02-24 Alan Hayward <alan.hayward@arm.com>
10063
10064 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
10065 I386_MAX_REGISTER_SIZE.
10066 (i386_pseudo_register_write): Likewise.
10067 (i386_process_record): Likewise.
10068 * i387-tdep.c (i387_supply_xsave): Likewise.
10069 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
10070 (store_register): Likewise.
10071
14bc53a8
PA
100722017-02-23 Pedro Alves <palves@redhat.com>
10073
10074 * ada-lang.c: Include "common/function-view.h".
10075 (ada_iterate_over_symbols): Adjust to use function_view as
10076 callback type.
10077 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
10078 (ada_make_symbol_completion_list): Use a lambda.
10079 (ada_exc_search_name_matches): Delete.
10080 (name_matches_regex): New.
10081 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
10082 * compile/compile-c-support.c: Include "common/function-view.h".
10083 (print_one_macro): Change prototype to accept a ui_file pointer.
10084 (write_macro_definitions): Use a lambda.
10085 * dwarf2read.c: Include "common/function-view.h".
10086 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10087 (dw2_expand_symtabs_matching): Adjust to use function_view as
10088 callback type.
10089 * language.h: Include "common/function-view.h".
10090 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
10091 function_view as callback type.
10092 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
10093 * linespec.c: Include "common/function-view.h".
10094 (collect_info::add_symbol): New method.
10095 (struct symbol_and_data_callback, iterate_inline_only, struct
10096 symbol_matcher_data, iterate_name_matcher): Delete.
10097 (iterate_over_all_matching_symtabs): Adjust to use function_view
10098 as callback type and lambdas.
10099 (iterate_over_file_blocks): Adjust to use function_view as
10100 callback type.
10101 (decode_compound_collector): Now a class with private fields.
10102 (decode_compound_collector::release_symbols): New method.
10103 (collect_one_symbol): Rename to...
10104 (decode_compound_collector::operator()): ... this and adjust.
10105 (lookup_prefix_sym): decode_compound_collector construction bits
10106 move to decode_compound_collector ctor. Pass the
10107 decode_compound_collector object directly as callback. Remove
10108 cleanups and use decode_compound_collector::release_symbols
10109 instead.
10110 (symtab_collector): Now a class with private fields.
10111 (symtab_collector::release_symtabs): New method.
10112 (add_symtabs_to_list): Rename to...
10113 (symtab_collector::operator()): ... this and adjust.
10114 (collect_symtabs_from_filename): symtab_collector construction
10115 bits move to symtab_collector ctor. Pass the symtab_collector
10116 object directly as callback. Remove cleanups and use
10117 symtab_collector::release_symtabs instead.
10118 (collect_symbols): Delete.
10119 (add_matching_symbols_to_info): Use lambdas.
10120 * macrocmd.c (print_macro_callback): Delete.
10121 (info_macro_command): Use a lambda.
10122 (info_macros_command): Pass print_macro_definition as callable
10123 directly.
10124 (print_one_macro): Remove 'ignore' parameter.
10125 (macro_list_command): Adjust.
10126 * macrotab.c (macro_for_each_data::fn): Now a function_view.
10127 (macro_for_each_data::user_data): Delete field.
10128 (foreach_macro): Adjust to call the function_view.
10129 (macro_for_each): Adjust to use function_view as callback type.
10130 (foreach_macro_in_scope): Adjust to call the function_view.
10131 (macro_for_each_in_scope): Adjust to use function_view as callback
10132 type.
10133 * macrotab.h: Include "common/function-view.h".
10134 (macro_callback_fn): Declare a prototype instead of a pointer.
10135 Remove "user_data" parameter.
10136 (macro_for_each, macro_for_each_in_scope): Adjust to use
10137 function_view as callback type.
10138 * psymtab.c (partial_map_expand_apply)
10139 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
10140 Adjust to use function_view as callback type and to return bool.
10141 (psym_expand_symtabs_matching): Adjust to use function_view as
10142 callback types.
10143 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
10144 to use function_view as callback type and to return bool.
10145 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
10146 callback types.
10147 * symfile.c (expand_symtabs_matching): Adjust to use function_view
10148 as callback types.
10149 * symfile.h: Include "common/function-view.h".
10150 (expand_symtabs_file_matcher_ftype)
10151 (expand_symtabs_symbol_matcher_ftype)
10152 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
10153 return bool.
10154 (quick_symbol_functions::map_symtabs_matching_filename)
10155 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
10156 function_view as callback type and return bool.
10157 (expand_symtabs_matching): Adjust to use function_view as callback
10158 type.
10159 (maintenance_expand_name_matcher)
10160 (maintenance_expand_file_matcher): Delete.
10161 (maintenance_expand_symtabs): Use lambdas.
10162 * symtab.c (iterate_over_some_symtabs): Adjust to use
10163 function_view as callback types and return bool.
10164 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
10165 of a cleanup.
10166 (lookup_symtab_callback): Delete.
10167 (lookup_symtab): Use a lambda.
10168 (iterate_over_symbols): Adjust to use function_view as callback
10169 type.
10170 (struct search_symbols_data, search_symbols_file_matches)
10171 (search_symbols_name_matches): Delete.
10172 (search_symbols): Use a pair of lambdas.
10173 (struct add_name_data, add_macro_name, symbol_completion_matcher)
10174 (symtab_expansion_callback): Delete.
10175 (default_make_symbol_completion_list_break_on_1): Use lambdas.
10176 * symtab.h: Include "common/function-view.h".
10177 (iterate_over_some_symtabs): Adjust to use function_view as
10178 callback type and return bool.
10179 (iterate_over_symtabs): Adjust to use function_view as callback
10180 type.
10181 (symbol_found_callback_ftype): Remove 'data' parameter and return
10182 bool.
10183 (iterate_over_symbols): Adjust to use function_view as callback
10184 type.
10185
07e253aa
PA
101862017-02-23 Pedro Alves <palves@redhat.com>
10187
10188 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
10189 (%.o) <unittests/%.c>: New pattern.
10190 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
10191 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
10192 * common/function-view.h: New file.
10193 * unittests/function-view-selftests.c: New file.
10194 * configure: Regenerate.
10195
8eaf5320
SM
101962017-02-23 Simon Marchi <simon.marchi@ericsson.com>
10197
10198 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
10199 inferior_ptid.
10200 * go32-nat.c (go32_thread_alive): Likewise.
10201
38768751
YQ
102022017-02-23 Yao Qi <yao.qi@linaro.org>
10203
10204 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
10205 delete.
10206
0a8beaba
YQ
102072017-02-23 Yao Qi <yao.qi@linaro.org>
10208
10209 * varobj.c (varobj_clear_saved_item): Use delete instead of
10210 xfree.
10211 (update_dynamic_varobj_children): Likewise.
10212
58fdfd2c
JK
102132017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10214
10215 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
10216
1b90b139
SM
102172017-02-21 Simon Marchi <simon.marchi@ericsson.com>
10218
10219 * common/enum-flags.h (enum_flags::enum_flags): Initialize
10220 m_enum_value to 0 in default constructor.
10221
2039d74e
EBM
102222017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10223
10224 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
10225 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
10226 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
10227 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
10228 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
10229 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
10230 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
10231 IS_STORE_CONDITIONAL_INSN.
10232
7814882a
JK
102332017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10234
10235 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
10236
0ae60b63
JK
102372017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10238
10239 * NEWS (Changes since GDB 7.12): Add DWARF-5.
10240
0224619f
JK
102412017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10242
10243 * dwarf2read.c (skip_one_die, read_attribute_value)
10244 (dwarf2_const_value_attr, dump_die_shallow)
10245 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
10246 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
10247
0af92d60
JK
102482017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10249
10250 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
10251 (dwarf_parse_macro_header): Accept DWARF version 5.
10252 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
10253
216f72a1
JK
102542017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10255
10256 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
10257 DW_AT_GNU_*.
10258 * common/common-exceptions.h (enum errors): Likewise.
10259 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
10260 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
10261 (dwarf_expr_context::execute_stack_op): Likewise.
10262 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
10263 Likewise.
10264 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
10265 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10266 (show_entry_values_debug, call_site_to_target_addr)
10267 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
10268 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
10269 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
10270 (value_of_dwarf_block_entry, indirect_pieced_value)
10271 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
10272 (disassemble_dwarf_expression): Likewise.
10273 * dwarf2read.c (process_die, inherit_abstract_dies)
10274 (read_call_site_scope): Likewise.
10275 * gdbtypes.h (struct func_type, struct call_site_parameter)
10276 (struct call_site): Likewise.
10277 * stack.c (read_frame_arg): Likewise.
10278 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
10279
43988095
JK
102802017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10281
10282 * defs.h (read_unsigned_leb128): New declaration.
10283 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
10284 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
10285 (dwarf2_find_location_expression): Call also
10286 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
10287 * dwarf2loc.h (dwarf2_version): New declaration.
10288 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
10289 rnglists.
10290 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
10291 .debug_rnglists.
10292 (struct dwop_section_names): Add loclists_dwo.
10293 (dwop_section_names): Add .debug_loclists.dwo.
10294 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
10295 (struct dwarf2_per_cu_data): Add dwarf_version.
10296 (struct dwo_sections): Add loclists.
10297 (struct attr_abbrev): Add implicit_const.
10298 (read_indirect_line_string): New declaration.
10299 (read_unsigned_leb128): Delete declaration.
10300 (rcuh_kind): New definition.
10301 (read_and_check_comp_unit_head): Change parameter
10302 is_debug_types_section to section_kind.
10303 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
10304 (read_comp_unit_head): Change parameter abfd to section, add parameter
10305 section_kind. Handle DWARF-5.
10306 (error_check_comp_unit_head): Accept also DWARF version 5.
10307 (read_and_check_comp_unit_head): Change parameter
10308 is_debug_types_section to section_kind.
10309 (read_and_check_type_unit_head): Delete function.
10310 (read_abbrev_offset): Handle DWARF-5.
10311 (create_debug_type_hash_table): Add parameter section_kind. Process
10312 only DW_UT_type. Use signature and type_offset_in_tu from struct
10313 comp_unit_head.
10314 (create_debug_types_hash_table): Update create_debug_type_hash_table
10315 caller.
10316 (create_all_type_units): Call create_debug_type_hash_table.
10317 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
10318 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
10319 caller.
10320 (skip_one_die): Handle DW_FORM_implicit_const.
10321 (dwarf2_rnglists_process): New function.
10322 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
10323 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
10324 (read_attribute_value): Handle DW_FORM_implicit_const,
10325 DW_FORM_line_strp.
10326 (read_attribute): Handle DW_FORM_implicit_const.
10327 (read_indirect_string_at_offset_from): New function from
10328 read_indirect_string_at_offset.
10329 (read_indirect_string_at_offset): Call
10330 read_indirect_string_at_offset_from.
10331 (read_indirect_line_string_at_offset): New function.
10332 (read_indirect_string): New function comment.
10333 (read_indirect_line_string): New function.
10334 (read_unsigned_leb128): Make it global.
10335 (dwarf2_string_attr): Handle DWARF-5.
10336 (add_include_dir_stub, read_formatted_entries): New functions.
10337 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
10338 Handle DWARF-5.
10339 (per_cu_header_read_in): Update read_comp_unit_head caller.
10340 (dwarf2_version): New function.
10341 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
10342 rnglists.
10343 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
10344 fields.
10345
22d2f3ab
JK
103462017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10347
10348 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
10349
5f46c5a5
JK
103502017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10351
10352 * dwarf2read.c (dwarf2_ranges_process): New function from
10353 dwarf2_ranges_read.
10354 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
10355 dwarf2_ranges_process.
10356
78d4d2c5
JK
103572017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10358
10359 * dwarf2read.c (create_debug_type_hash_table): New function from
10360 create_debug_types_hash_table.
10361 (create_debug_types_hash_table): Call create_debug_type_hash_table.
10362 (create_all_type_units, open_and_init_dwo_file): Update
10363 create_debug_types_hash_table callers.
10364
1b076f25
SDJ
103652017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10366
10367 PR gdb/16188
10368 * fork-child.c (trace_start_error): Fix thinko. va_end should
10369 refer to 'ap', not 'args'.
10370
0db8980c
SDJ
103712017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10372 Pedro Alves <palves@redhat.com>
10373
10374 PR gdb/16188
10375 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10376 calls succeeded.
10377 * fork-child.c (trace_start_error): New function.
10378 (trace_start_error_with_name): Likewise.
10379 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10380 * inf-ptrace.c (inf_ptrace_me): Likewise.
10381 * inferior.h (trace_start_error): New prototype.
10382 (trace_start_error_with_name): Likewise.
10383
99e8a4f9
SDJ
103842017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10385
10386 PR gdb/21164
10387 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10388 NULL before using it.
10389 * symmisc.c (maintenance_print_symbols): Likewise.
10390 (maintenance_print_msymbols): Likewise.
10391
4e746bb6
TW
103922017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10393
10394 * NEWS: Add record Python bindings entry.
10395
103962017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10397
10398 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10399 py-record-full.o.
10400 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10401 * python/py-record-btrace.c, python/py-record-btrace.h,
10402 python/py-record-full.c, python/py-record-full.h: New file.
10403 * python/py-record.c: Add include for py-record-btrace.h and
10404 py-record-full.h.
10405 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10406 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10407 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10408 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10409 New definition.
10410 (gdbpy_initialize_btrace): New export.
10411 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10412
104132017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10414
10415 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10416 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10417 * python/py-record.c: New file.
10418 * python/python-internal.h (gdbpy_start_recording,
10419 gdbpy_current_recording, gdpy_stop_recording,
10420 gdbpy_initialize_record): New export.
10421 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10422 (python_GdbMethods): Add gdbpy_start_recording,
10423 gdbpy_current_recording and gdbpy_stop_recording.
10424
104252017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10426
10427 * record-btrace.c (record_btrace_record_method): New function.
10428 (init_record_btrace_ops): Initialize to_record_method.
10429 * record-full.c (record_full_record_method): New function.
10430 (init_record_full_ops, init_record_full_core_ops): Add
10431 record_full_record_method.
10432 * record.h (enum record_method): New enum.
10433 * target-debug.h (target_debug_print_enum_record_method: New define.
10434 * target-delegates.c: Regenerate.
10435 * target.c (target_record_method): New function.
10436 * target.h: Include record.h.
10437 (struct target_ops) <to_record_method>: New field.
10438 (target_record_method): New export.
10439
104402017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10441
10442 * record.h (record_start, record_stop): New export.
10443 * record.c (record_start, record_stop): New function.
10444
104452017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10446
10447 * btrace.c (btrace_fetch): Copy function call segments pointer
10448 into a vector.
10449 (btrace_clear): Clear the vector.
10450 (btrace_find_insn_by_number): Use binary search to find the correct
10451 function call segment.
10452 * btrace.h (brace_fun_p): New typedef.
10453 (struct btrace_thread_info) <functions>: New field.
10454
104552017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10456
10457 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10458 * btrace.c (btrace_decode_error): ... here. New function.
10459 * btrace.h (btrace_decode_error): New export.
10460
104612017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10462
10463 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10464 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10465 btrace_find_insn_by_number): Remove special case for gaps.
10466 * btrace.h (btrace_insn_get_error): New export.
10467 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10468 * record-btrace.c (btrace_insn_history): Print number for gaps.
10469 (record_btrace_info, record_btrace_goto): Handle gaps.
10470
3f77c769
TT
104712017-02-14 Tom Tromey <tom@tromey.com>
10472
10473 PR python/13598:
10474 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10475 event.
10476 * python/py-evts.c (gdbpy_initialize_py_events): Add
10477 before_prompt registry.
10478 * python/py-events.h (events_object) <before_prompt>: New field.
10479
4c2c7ac6
MM
104802017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10481
10482 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10483
5cf30ebf
LM
104842017-02-13 Luis Machado <lgustavo@codesourcery.com>
10485
10486 * symfile (_initialize_symfile): Add usage text to the load command's
10487 help text.
10488
26a06916
SM
104892017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10490
10491 * utils.c (defaulted_query): Don't query on secondary UIs.
10492
0b145e37
TT
104932017-02-10 Tom Tromey <tom@tromey.com>
10494
10495 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10496
2d8365c4
TT
104972017-02-10 Tom Tromey <tom@tromey.com>
10498
10499 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10500 "cleanup" local.
10501 * python/py-type.c (typy_legacy_template_argument): Remove
10502 unnecessary "cleanup" local.
10503
2bb8f231
TT
105042017-02-10 Tom Tromey <tom@tromey.com>
10505
10506 * python/python.c (do_start_initialization): New function, from
10507 _initialize_python.
10508 (_initialize_python): Call do_start_initialization.
10509 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10510 goto.
10511
1bdfaf42
TT
105122017-02-10 Tom Tromey <tom@tromey.com>
10513
10514 * python/py-prettyprint.c (pretty_print_one_value): Use
10515 gdbpy_ref.
10516
88b6faea
TT
105172017-02-10 Tom Tromey <tom@tromey.com>
10518
10519 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10520 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10521 gdbpy_ref.
10522 * python/py-type.c (field_new): Use gdbpy_ref.
10523 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10524 gdbpy_ref.
10525 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10526 (py_free_pspace): Likewise.
10527 (pspace_to_pspace_object): Likewise.
10528 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10529 (py_free_objfile): Likewise.
10530 (objfile_to_objfile_object): Likewise.
10531 * python/py-inferior.c (delete_thread_object): Use
10532 gdbpy_ref.
10533 (infpy_read_memory): Likewise.
10534 (py_free_inferior): Likewise.
10535 * python/py-evtregistry.c (create_eventregistry_object): Use
10536 gdbpy_ref.
10537 * python/py-event.c (create_event_object): Use gdbpy_ref.
10538
7780f186
TT
105392017-02-10 Tom Tromey <tom@tromey.com>
10540
10541 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10542 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10543 used.
10544 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10545 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10546 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10547 python/py-framefilter.c, python/py-function.c,
10548 python/py-inferior.c, python/py-infevents.c,
10549 python/py-linetable.c, python/py-newobjfileevent.c,
10550 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10551 python/py-signalevent.c, python/py-stopevent.c,
10552 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10553 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10554 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10555 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10556
d4b0bb18
TT
105572017-02-10 Tom Tromey <tom@tromey.com>
10558
10559 * ui-out.h (ui_out_emit_type): New class.
10560 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10561 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10562 and ui_out_emit_tuple.
10563 (enumerate_locals): Likewise.
10564 (py_mi_print_variables, py_print_locals, py_print_args): Use
10565 ui_out_emit_list.
10566 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10567 ui_out_emit_list.
10568 * common/gdb_optional.h: New file.
10569
f67f945c
MG
105702017-02-10 Martin Galvan <martingalvan@sourceware.org>
10571
10572 * MAINTAINERS (Write After Approval): Update my e-mail address.
10573
18da0c51
MG
105742017-02-10 Martin Galvan <martingalvan@sourceware.org>
10575
10576 PR gdb/21122
10577 * breakpoint.c (_initialize_breakpoint): Update the help description
10578 of the 'commands' command to indicate that it takes a list argument.
10579
62c14536
SM
105802017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10581
10582 * interps.c (current_interp_set_logging): Remove "return".
10583
ff6fa247
GB
105842017-02-09 Gary Benson <gbenson@redhat.com>
10585
10586 * symtab.c (add_symtab_completions): Prevent NULL pointer
10587 dereference.
10588
a474bd8e
PA
105892017-02-08 Pedro Alves <palves@redhat.com>
10590
10591 * interps.c (interp::interp): Remove reference to quiet_p.
10592 (interp_set): Make static. Remove dead "Switching to" output
10593 code.
10594 (interp_quiet_p, interp_set_quiet): Delete.
10595 (interpreter_exec_cmd): Don't set the interpreter quiet.
10596 * interps.h (interp_quiet_p): Make static.
10597 (class interp) <quiet_p>: Remove field
10598
3d7b173c
JG
105992017-02-08 Jerome Guitton <guitton@adacore.com>
10600
604c4576
JG
10601 * cli/cli-decode.c (find_command_name_length): Make it extern.
10602 * cli/cli-decode.h (find_command_name_length): Declare.
10603 * cli/cli-script.c (command_name_equals, line_first_arg):
10604 New functions.
10605 (process_next_line): Use cli-decode to parse command names.
10606 (build_command_line): Make args a constant pointer.
10607
106082017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 10609
3d7b173c
JG
10610 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10611 Remove case-insensitive search.
10612
1291063d
JM
106132017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10614
10615 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10616 at the end of the line. Avoids an ARI warning.
10617
20b477a7
LM
106182017-02-06 Luis Machado <lgustavo@codesourcery.com>
10619
10620 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10621 rdseed instructions.
10622 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10623
3f7b46f2
IR
106242017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10625
10626 PR tdep/20936
10627 Provide and use sparc32 and sparc64 target description XML files.
10628 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10629 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10630 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10631 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10632 * features/sparc/sparc32-solaris.xml: New file.
10633 * features/sparc/sparc64-solaris.xml: New file.
10634 * features/sparc/sparc32-solaris.c: Generated.
10635 * features/sparc/sparc64-solaris.c: Generated.
10636 * sparc-tdep.h: Account for differences in target descriptions.
10637 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10638 (sparc32_register_type): Use target provided registers.
10639 (validate_tdesc_registers): New function.
10640 (sparc32_gdbarch_init): Use tdesc_has_registers.
10641 Set pseudoregister functions.
10642 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10643 (sparc64_register_type): Use target provided registers.
10644 (sparc64_init_abi): Set pseudoregister functions.
10645
f0fd41c1
TT
106462017-02-03 Tom Tromey <tom@tromey.com>
10647
10648 PR rust/21097:
10649 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10650 with a single member.
10651
d6f9b0fb
PA
106522017-02-03 Pedro Alves <palves@redhat.com>
10653
10654 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10655 (cli_interp_base::~cli_interp_base): New.
10656 (cli_interp): New struct.
10657 (as_cli_interp): Cast the interp itself to cli_interp.
10658 (cli_interpreter_pre_command_loop): Rename to ...
10659 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10660 parameter.
10661 (cli_interpreter_init): Rename to ...
10662 (cli_interp::init): ... this. Remove 'self' parameter. Use
10663 boolean. Make extern.
10664 (cli_interpreter_resume): Rename to ...
10665 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10666 extern.
10667 (cli_interpreter_suspend): Rename to ...
10668 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10669 extern.
10670 (cli_interpreter_exec): Rename to ...
10671 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10672 extern.
10673 (cli_interpreter_supports_command_editing): Rename to ...
10674 (cli_interp_base::supports_command_editing): ... this. Remove
10675 'interp' parameter. Make extern.
10676 (cli_ui_out): Rename to ...
10677 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10678 Make extern.
10679 (cli_set_logging): Rename to ...
10680 (cli_interp_base::set_logging): ... this. Remove 'interp'
10681 parameter. Make extern.
10682 (cli_interp_procs): Delete.
10683 (cli_interp_factory): Adjust to use "new".
10684 * cli/cli-interp.h: Include "interps.h".
10685 (struct cli_interp_base): New struct.
10686 * interps.c (struct interp): Delete. Fields moved to interps.h.
10687 (interp_new): Delete.
10688 (interp::interp, interp::~interp): New.
10689 (interp_set): Use bool, and return void. Assume the interpreter
10690 has suspend, init and resume methods, and that the all return
10691 void.
10692 (set_top_level_interpreter): interp_set returns void.
10693 (interp_ui_out): Adapt.
10694 (current_interp_set_logging): Adapt.
10695 (interp_data): Delete.
10696 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10697 (interp_exec): Adapt.
10698 (top_level_interpreter_data): Delete.
10699 * interps.h (interp_init_ftype, interp_resume_ftype)
10700 (interp_suspend_ftype, interp_exec_ftype)
10701 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10702 (class interp): New.
10703 (interp_new): Delete.
10704 (interp_set): Now returns void. Use bool.
10705 (interp_data, top_level_interpreter_data): Delete.
10706 * mi/mi-common.h: Include interps.h.
10707 (class mi_interp): Inherit from interp. Define a ctor. Declare
10708 init, resume, suspect, exec, interp_ui_out, set_logging and
10709 pre_command_loop methods.
10710 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10711 (mi_interpreter_init): Rename to ...
10712 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10713 bool, return void and make extern. Adjust.
10714 (mi_interpreter_resume): ... Rename to ...
10715 (mi_interp::resume): ... this. Remove the 'data' parameter,
10716 return void and make extern. Adjust.
10717 (mi_interpreter_suspend): ... Rename to ...
10718 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10719 return void and make extern. Adjust.
10720 (mi_interpreter_exec): ... Rename to ...
10721 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10722 extern. Adjust.
10723 (mi_interpreter_pre_command_loop): ... Rename to ...
10724 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10725 parameter and make extern.
10726 (mi_on_normal_stop_1): Adjust.
10727 (mi_ui_out): Rename to ...
10728 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10729 parameter and make extern. Adjust.
10730 (mi_set_logging): Rename to ...
10731 (mi_interp::set_logging): ... this. Remove the 'interp'
10732 parameter and make extern. Adjust.
10733 (mi_interp_procs): Delete.
10734 (mi_interp_factory): Adjust to use 'new'.
10735 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10736 (mi_print_exception, mi_execute_command, mi_load_progress):
10737 Adjust.
10738 * tui/tui-interp.c (tui_interp): New class.
10739 (as_tui_interp): Return a tui_interp pointer.
10740 (tui_on_normal_stop, tui_on_signal_received)
10741 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10742 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10743 to use interp::interp_ui_out.
10744 (tui_init): Rename to ...
10745 (tui_interp::init): ... this. Remove the 'self' parameter, use
10746 bool, return void and make extern. Adjust.
10747 (tui_resume): Rename to ...
10748 (tui_interp::resume): ... this. Remove the 'data' parameter,
10749 return void and make extern. Adjust.
10750 (tui_suspend): Rename to ...
10751 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10752 return void and make extern. Adjust.
10753 (tui_ui_out): Rename to ...
10754 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10755 parameter, and make extern. Adjust.
10756 (tui_exec): Rename to ...
10757 (tui_interp::exec): ... this. Remove the 'data' parameter and
10758 make extern.
10759 (tui_interp_procs): Delete.
10760 (tui_interp_factory): Use "new".
10761
65c40c95
TT
107622017-02-02 Tom Tromey <tom@tromey.com>
10763
10764 * rust-exp.y (ends_raw_string, space_then_number)
10765 (rust_identifier_start_p): Return bool.
10766 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10767 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10768 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10769 (rust_chartype_p): Return bool.
10770 (val_print_struct, rust_print_struct_def, rust_print_type):
10771 Update.
10772 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10773 Return bool.
10774
b50f188d
TT
107752017-02-02 Tom Tromey <tom@tromey.com>
10776
10777 * rust-lang.c: Reindent.
10778
03c85b11
TT
107792017-02-02 Tom Tromey <tom@tromey.com>
10780
10781 * rust-lang.h (rust_crate_for_block): Update.
10782 * rust-lang.c (rust_crate_for_block): Return std::string.
10783 (rust_get_disr_info): Use std:;string, not
10784 gdb::unique_xmalloc_ptr.
10785 * rust-exp.y (crate_name): Update.
10786
9b6da501
PA
107872017-02-02 Pedro Alves <palves@redhat.com>
10788
10789 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10790 field out of gdb_disassembler_test and make it static.
10791
ec4cb20b
PA
107922017-02-02 Pedro Alves <palves@redhat.com>
10793
10794 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10795 mi1_interp and mi_interp fields.
10796
5be5dbf0
PA
107972017-02-02 Pedro Alves <palves@redhat.com>
10798
616268b6
PA
10799 * cli/cli-interp.c (struct saved_output_files, saved_output):
10800 Moved from cli/cli-logging.c.
10801 (cli_set_logging): New function.
10802 (cli_interp_procs): Install cli_set_logging.
10803 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10804 Declare.
10805 * cli/cli-logging.c (struct saved_output_files, saved_output):
10806 Moved to cli/cli-interp.c.
10807 (pop_output_files): Don't save outputs here.
10808 (make_logging_output): New function.
10809 (handle_redirections): Don't build tee nor save previous outputs
10810 here.
10811 * interps.c (current_interp_set_logging): Change prototype.
10812 Assume there's always a set_logging_proc method installed.
10813 * interps.h (interp_set_logging_ftype): Change prototype.
10814 (current_interp_set_logging): Change prototype and adjust comment.
10815 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10816 use make_logging_output.
10817 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
108182017-02-02 Pedro Alves <palves@redhat.com>
10819
5be5dbf0
PA
10820 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10821 from ...
10822 (set_logging_overwrite): ... here.
10823 (logging_no_redirect_file): Delete.
10824 (set_logging_redirect): Don't handle redirection on the fly.
10825 Instead warn that "logging off" / "logging on" is necessary.
10826 (pop_output_files): Delete references to logging_no_redirect_file.
10827 (show_logging_command): Always speak in terms of what will happen
10828 once logging is reenabled.
10829
c99cc448
PA
108302017-02-02 Pedro Alves <palves@redhat.com>
10831
10832 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10833
8b172ce7
PA
108342017-02-02 Pedro Alves <palves@redhat.com>
10835
10836 * disasm.c (gdb_pretty_print_insn): Rename to ...
10837 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10838 Remove gdbarch parameter. Adapt to clear the object's buffers
10839 instead of allocating new buffers, and to print using the object's
10840 gdb_disassembler instead of calling gdb_print_insn.
10841 (dump_insns): Use gdb_pretty_print_disassembler.
10842 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10843 (gdb_pretty_print_disassembler): New class.
10844 * record-btrace.c (btrace_insn_history): Use
10845 gdb_pretty_print_disassembler.
10846
d7e74731
PA
108472017-02-02 Pedro Alves <palves@redhat.com>
10848
10849 * ada-lang.c (type_as_string): Use string_file.
10850 * ada-valprint.c (ada_print_floating): Use string_file.
10851 * ada-varobj.c (ada_varobj_scalar_image)
10852 (ada_varobj_get_value_image): Use string_file.
10853 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10854 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10855 * breakpoint.c (update_inserted_breakpoint_locations)
10856 (insert_breakpoint_locations, reattach_breakpoints)
10857 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10858 (print_it_watchpoint): Use string_file.
10859 (save_breakpoints): Use stdio_file.
10860 * c-exp.y (oper): Use string_file.
10861 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10862 tee_file.
10863 (pop_output_files): Use delete.
10864 (handle_redirections): Use stdio_file and tee_file.
10865 * cli/cli-setshow.c (do_show_command): Use string_file.
10866 * compile/compile-c-support.c (c_compute_program): Use
10867 string_file.
10868 * compile/compile-c-symbols.c (generate_vla_size): Take a
10869 'string_file &' instead of a 'ui_file *'.
10870 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10871 of a 'ui_file *'. Use string_file.
10872 (generate_c_for_variable_locations): Take a 'string_file &'
10873 instead of a 'ui_file *'.
10874 * compile/compile-internal.h (generate_c_for_for_one_variable):
10875 Take a 'string_file &' instead of a 'ui_file *'.
10876 * compile/compile-loc2c.c (push, pushf, unary, binary)
10877 (print_label, pushf_register_address, pushf_register)
10878 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10879 'ui_file *'. Adjust.
10880 * compile/compile.c (compile_to_object): Use string_file.
10881 * compile/compile.h (compile_dwarf_expr_to_c)
10882 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10883 'ui_file *'.
10884 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10885 (replace_typedefs_qualified_name): Use string_file and
10886 obstack_copy0.
10887 * disasm.c (gdb_pretty_print_insn): Use string_file.
10888 (gdb_disassembly): Adjust reference the null_stream global.
10889 (do_ui_file_delete): Delete.
10890 (gdb_insn_length): Use null_stream.
10891 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10892 * dwarf2loc.c (dwarf2_compile_property_to_c)
10893 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10894 'string_file &' instead of a 'ui_file *'.
10895 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10896 * dwarf2read.c (do_ui_file_peek_last): Delete.
10897 (dwarf2_compute_name): Use string_file.
10898 * event-top.c (gdb_setup_readline): Use stdio_file.
10899 * gdbarch.sh (verify_gdbarch): Use string_file.
10900 * gdbtypes.c (safe_parse_type): Use null_stream.
10901 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10902 string_file.
10903 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10904 'string_file *' instead of a 'ui_file *'.
10905 (gdbscm_arch_disassemble): Use string_file.
10906 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10907 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10908 inherits from ui_file.
10909 (ioscm_file_port_delete, ioscm_file_port_rewind)
10910 (ioscm_file_port_put): Delete.
10911 (ioscm_file_port_write): Rename to ...
10912 (ioscm_file_port::write): ... this. Remove file_port_magic
10913 checks.
10914 (ioscm_file_port_new): Delete.
10915 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10916 ui_file_up.
10917 * guile/scm-type.c (tyscm_type_name): Use string_file.
10918 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10919 Use string_file.
10920 * infcmd.c (print_return_value_1): Use string_file.
10921 * infrun.c (print_target_wait_results): Use string_file.
10922 * language.c (add_language): Use string_file.
10923 * location.c (explicit_to_string_internal): Use string_file.
10924 * main.c (captured_main_1): Use null_file.
10925 * maint.c (maintenance_print_architecture): Use stdio_file.
10926 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10927 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10928 event_channel>: Change type to mi_console_file pointer.
10929 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10930 (mi_console_file_delete): Delete.
10931 (struct mi_console_file): Delete.
10932 (mi_console_file_magic): Delete.
10933 (mi_console_file_new): Delete.
10934 (mi_console_file::mi_console_file): New.
10935 (mi_console_file_delete): Delete.
10936 (mi_console_file_fputs): Delete.
10937 (mi_console_file::write): New.
10938 (mi_console_raw_packet): Delete.
10939 (mi_console_file::flush): New.
10940 (mi_console_file_flush): Delete.
10941 (mi_console_set_raw): Rename to ...
10942 (mi_console_file::set_raw): ... this.
10943 * mi/mi-console.h (class mi_console_file): New class.
10944 (mi_console_file_new, mi_console_set_raw): Delete.
10945 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
10946 (mi_set_logging): Use delete and tee_file. Adjust.
10947 * mi/mi-main.c (output_register): Use string_file.
10948 (mi_cmd_data_evaluate_expression): Use string_file.
10949 (mi_cmd_data_read_memory): Use string_file.
10950 (mi_cmd_execute, print_variable_or_computed): Use string_file.
10951 * mi/mi-out.c (mi_ui_out::main_stream): New.
10952 (mi_ui_out::rewind): Use main_stream and
10953 string_file.
10954 (mi_ui_out::put): Use main_stream and string_file.
10955 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10956 Allocate a 'string_file' instead.
10957 (mi_out_new): Don't allocate a mem_fileopen stream here.
10958 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10959 (mi_ui_out::main_stream): Declare method.
10960 * printcmd.c (eval_command): Use string_file.
10961 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
10962 * python/py-arch.c (archpy_disassemble): Use string_file.
10963 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
10964 * python/py-frame.c (frapy_str): Use string_file.
10965 * python/py-framefilter.c (py_print_type, py_print_single_arg):
10966 Use string_file.
10967 * python/py-type.c (typy_str): Use string_file.
10968 * python/py-unwind.c (unwind_infopy_str): Use string_file.
10969 * python/py-value.c (valpy_str): Use string_file.
10970 * record-btrace.c (btrace_insn_history): Use string_file.
10971 * regcache.c (regcache_print): Use stdio_file.
10972 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
10973 * remote.c (escape_buffer): Use string_file.
10974 * rust-lang.c (rust_get_disr_info): Use string_file.
10975 * serial.c (serial_open_ops_1): Use stdio_file.
10976 (do_serial_close): Use delete.
10977 * stack.c (print_frame_arg): Use string_file.
10978 (print_frame_args): Remove local mem_fileopen stream, not used.
10979 (print_frame): Use string_file.
10980 * symmisc.c (maintenance_print_symbols): Use stdio_file.
10981 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
10982 Take a 'string_file *' instead of a 'ui_file *'.
10983 * top.c (new_ui): Use stdio_file and stderr_file.
10984 (free_ui): Use delete.
10985 (execute_command_to_string): Use string_file.
10986 (quit_confirm): Use string_file.
10987 * tracepoint.c (collection_list::append_exp): Use string_file.
10988 * tui/tui-disasm.c (tui_disassemble): Use string_file.
10989 * tui/tui-file.c: Don't include "ui-file.h".
10990 (enum streamtype, struct tui_stream): Delete.
10991 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
10992 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
10993 (tui_file::tui_file): New method.
10994 (tui_file_fputs): Delete.
10995 (tui_file_get_strbuf): Delete.
10996 (tui_file::puts): New method.
10997 (tui_file_adjust_strbuf): Delete.
10998 (tui_file_flush): Delete.
10999 (tui_file::flush): New method.
11000 * tui/tui-file.h: Tweak intro comment.
11001 Include ui-file.h.
11002 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
11003 (tui_file_adjust_strbuf): Delete declarations.
11004 (class tui_file): New class.
11005 * tui/tui-io.c (tui_initialize_io): Use tui_file.
11006 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
11007 (tui_register_format): Use string_stream.
11008 * tui/tui-stack.c (tui_make_status_line): Use string_file.
11009 (tui_get_function_from_frame): Use string_file.
11010 * typeprint.c (type_to_string): Use string_file.
11011 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
11012 (null_stream): New global.
11013 (ui_file_delete): Delete.
11014 (ui_file::ui_file): New.
11015 (null_file_isatty): Delete.
11016 (ui_file::~ui_file): New.
11017 (null_file_rewind): Delete.
11018 (ui_file::printf): New.
11019 (null_file_put): Delete.
11020 (null_file_flush): Delete.
11021 (ui_file::putstr): New.
11022 (null_file_write): Delete.
11023 (ui_file::putstrn): New.
11024 (null_file_read): Delete.
11025 (ui_file::putc): New.
11026 (null_file_fputs): Delete.
11027 (null_file_write_async_safe): Delete.
11028 (ui_file::vprintf): New.
11029 (null_file_delete): Delete.
11030 (null_file::write): New.
11031 (null_file_fseek): Delete.
11032 (null_file::puts): New.
11033 (ui_file_data): Delete.
11034 (null_file::write_async_safe): New.
11035 (gdb_flush, ui_file_isatty): Adjust.
11036 (ui_file_put, ui_file_rewind): Delete.
11037 (ui_file_write): Adjust.
11038 (ui_file_write_for_put): Delete.
11039 (ui_file_write_async_safe, ui_file_read): Adjust.
11040 (ui_file_fseek): Delete.
11041 (fputs_unfiltered): Adjust.
11042 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
11043 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
11044 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
11045 (set_ui_file_data): Delete.
11046 (string_file::~string_file, string_file::write)
11047 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
11048 (do_ui_file_as_string, ui_file_as_string): Delete.
11049 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
11050 (struct mem_file): Delete.
11051 (mem_file_new): Delete.
11052 (stdio_file::stdio_file): New.
11053 (mem_file_delete): Delete.
11054 (stdio_file::stdio_file): New.
11055 (mem_fileopen): Delete.
11056 (stdio_file::~stdio_file): New.
11057 (mem_file_rewind): Delete.
11058 (stdio_file::set_stream): New.
11059 (mem_file_put): Delete.
11060 (stdio_file::open): New.
11061 (mem_file_write): Delete.
11062 (stdio_file_magic, struct stdio_file): Delete.
11063 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
11064 (stdio_file::flush): New.
11065 (stdio_file_read): Rename to ...
11066 (stdio_file::read): ... this. Adjust.
11067 (stdio_file_write): Rename to ...
11068 (stdio_file::write): ... this. Adjust.
11069 (stdio_file_write_async_safe): Rename to ...
11070 (stdio_file::write_async_safe) ... this. Adjust.
11071 (stdio_file_fputs): Rename to ...
11072 (stdio_file::puts) ... this. Adjust.
11073 (stdio_file_isatty): Delete.
11074 (stdio_file_fseek): Delete.
11075 (stdio_file::isatty): New.
11076 (stderr_file_write): Rename to ...
11077 (stderr_file::write) ... this. Adjust.
11078 (stderr_file_fputs): Rename to ...
11079 (stderr_file::puts) ... this. Adjust.
11080 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
11081 (stderr_file::stderr_file): New.
11082 (tee_file_magic): Delete.
11083 (struct tee_file): Delete.
11084 (tee_file::tee_file): New.
11085 (tee_file_new): Delete.
11086 (tee_file::~tee_file): New.
11087 (tee_file_delete): Delete.
11088 (tee_file_flush): Rename to ...
11089 (tee_file::flush): ... this. Adjust.
11090 (tee_file_write): Rename to ...
11091 (tee_file::write): ... this. Adjust.
11092 (tee_file::write_async_safe): New.
11093 (tee_file_fputs): Rename to ...
11094 (tee_file::puts): ... this. Adjust.
11095 (tee_file_isatty): Rename to ...
11096 (tee_file::isatty): ... this. Adjust.
11097 * ui-file.h (struct obstack, struct ui_file): Don't
11098 forward-declare.
11099 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
11100 (ui_file_write_ftype)
11101 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
11102 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
11103 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
11104 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
11105 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
11106 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
11107 (set_ui_file_fseek): Delete.
11108 (ui_file_data, ui_file_delete, ui_file_rewind)
11109 (struct ui_file): New.
11110 (ui_file_up): New.
11111 (class null_file): New.
11112 (null_stream): Declare.
11113 (ui_file_write_for_put, ui_file_put): Delete.
11114 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
11115 Delete.
11116 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
11117 (gdb_fopen, tee_file_new): Delete.
11118 (struct string_file): New.
11119 (struct stdio_file): New.
11120 (stdio_file_up): New.
11121 (struct stderr_file): New.
11122 (class tee_file): New.
11123 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
11124 of a 'ui_file *'. Adjust.
11125 * ui-out.h (class ui_out) <field_stream>: Likewise.
11126 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
11127 (null_stream): Delete.
11128 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
11129 Adjust.
11130 * utils.h (struct ui_file): Delete forward declaration..
11131 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
11132 (error_stream): Take a 'string_file &' instead of a
11133 'ui_file *'.
11134 * varobj.c (varobj_value_get_print_value): Use string_file.
11135 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
11136 * gdbarch.c: Regenerate.
11137
187808b0
PA
111382017-02-02 Pedro Alves <palves@redhat.com>
11139
11140 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
11141 (gdb_pretty_print_insn): ... this. Now a free function. Add back
11142 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
11143 Adjust to call gdb_print_insn instead of
11144 gdb_disassembler::print_insn.
11145 (dump_insns, do_mixed_source_and_assembly_deprecated)
11146 (do_mixed_source_and_assembly, do_assembly_only): Add back a
11147 'gdbarch' parameter. Remove gdb_disassembler parameter.
11148 (gdb_disassembly): Don't allocate a gdb_disassembler here.
11149 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
11150 declaration.
11151 (gdb_pretty_print_insn): Re-add declaration.
11152 * record-btrace.c (btrace_insn_history): Don't allocate a
11153 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
11154
7a8eb317
SM
111552017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
11156
11157 * disasm.h (gdb_disassembly): Remove file_string parameter.
11158 * disasm.c (gdb_disassembly): Likewise.
11159 * cli/cli-cmds.c (print_disassembly): Adapt.
11160 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
11161 * stack.c (do_gdb_disassembly): Likewise.
11162
7346ef59
AA
111632017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
11164
11165 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
11166 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
11167 targets. And if the implicit value is longer than needed, extract
11168 the first bytes instead of the "least significant" ones.
11169
cd4007e4
MM
111702017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11171
11172 * btrace.c (btrace_enable): Do not call btrace_add_pc for
11173 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
11174 (btrace_fetch): Assert can_access_registers_ptid.
11175 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
11176 validate_registers_access.
11177
cf77c34e
MM
111782017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11179
11180 * gdbthread.h (can_access_registers_ptid): New.
11181 * thread.c (can_access_registers_ptid): New.
11182
be85ce7d
PA
111832017-02-01 Pedro Alves <palves@redhat.com>
11184
11185 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
11186
29b0b251
PA
111872017-01-31 Pedro Alves <palves@redhat.com>
11188
11189 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
11190 Fix typos.
11191
289b5b24
PA
111922017-01-31 Pedro Alves <palves@redhat.com>
11193
11194 * stack.c (print_frame_args): Remove local mem_fileopen stream,
11195 not used.
11196
b47413b4
PA
111972017-01-31 Pedro Alves <palves@redhat.com>
11198
11199 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
11200
60adb36c
PA
112012017-01-31 Pedro Alves <palves@redhat.com>
11202
11203 * common/scoped_restore.h
11204 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
11205 change the value's parameter type to T2.
11206 (make_scoped_restore): Likewise.
11207
2735833d
WT
112082017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11209 Richard Henderson <rth@redhat.com>
11210
11211 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
11212 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
11213 GS_BASE for older kernels.
11214 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
11215 GS_BASE for older kernels.
11216 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
11217 and GS_BASE to the offset table.
11218 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
11219 system register group.
11220 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
11221 for older kernels.
11222 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
11223 amd64 ABI.
11224 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
11225 AMD64_GSBASE_REGNUM.
11226 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
11227 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
11228 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
11229 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
11230 i386/64bit-segments.xml in those rules.
11231 * features/i386/64bit-segments.xml: New file.
11232 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
11233 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
11234 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
11235 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
11236 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
11237 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
11238 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
11239 * features/i386/amd64-avx-linux.c: Regenerated.
11240 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
11241 * features/i386/amd64-avx-mpx.c: Regenerated.
11242 * features/i386/amd64-avx512-linux.c: Regenerated.
11243 * features/i386/amd64-linux.c: Regenerated.
11244 * features/i386/amd64-mpx-linux.c: Regenerated.
11245 * features/i386/i386-avx-mpx-linux.c: Regenerated.
11246 * features/i386/i386-avx-mpx.c: Regenerated.
11247 * features/i386/x32-avx-linux.c: Regenerated.
11248 * features/i386/x32-avx512-linux.c: Regenerated.
11249 * regformats/i386/amd64-avx-linux.dat: Regenerated.
11250 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
11251 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
11252 * regformats/i386/amd64-linux.dat: Regenerated.
11253 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
11254 * regformats/i386/x32-avx-linux.dat: Regenerated.
11255 * regformats/i386/x32-avx512-linux.dat: Regenerated.
11256 * regformats/i386/x32-linux.dat: Regenerated.
11257
8884e97e
WT
112582017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11259
11260 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
11261 Set to AMD64_NUM_REGS.
11262
7005d26a
WT
112632017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11264
11265 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
11266 that checks validity of a register number.
11267
4bd2e1b2
KC
112682017-01-27 Kees Cook <keescook@google.com>
11269
11270 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
11271 fetch_fpregs if target has fpa registers.
11272 (arm_linux_store_inferior_registers): Call store_fpregs if target
11273 has fpa registers.
11274
7cf1de6c
AA
112752017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
11276
11277 * cris-tdep.c (cris_gdbarch_init): Remove check for
11278 info.byte_order and force it to BFD_ENDIAN_LITTLE.
11279
874a1c8c
AT
112802017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11281
11282 * corelow.c (get_core_register_section): Check for regset
11283 existence before checking for REGSET_VARIABLE_SIZE.
11284
d8b49cf0
YQ
112852017-01-26 Yao Qi <yao.qi@linaro.org>
11286 Pedro Alves <palves@redhat.com>
11287
11288 PR gdb/20939
11289 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
11290 call memory_error, save memaddr instead.
11291 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
11292 negative, cal memory_error.
11293 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
11294
658ca58c
YQ
112952017-01-26 Yao Qi <yao.qi@linaro.org>
11296
11297 * disasm-selftests.c (memory_error_test): New function.
11298 (_initialize_disasm_selftests): Register memory_error_test.
11299
79843d45
YQ
113002017-01-26 Yao Qi <yao.qi@linaro.org>
11301
11302 * Makefile.in (SFILES): Add disasm-selftests.c and
11303 selftest-arch.c.
11304 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
11305 * disasm-selftests.c: New file.
11306 * selftest-arch.c: New file.
11307 * selftest-arch.h: New file.
11308
8cafda32
YQ
113092017-01-26 Yao Qi <yao.qi@linaro.org>
11310
11311 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
11312 to bfd_arch_mep. Don't return 0 if section is not
11313 found. Call print_insn_mep.
11314
e47ad6c0
YQ
113152017-01-26 Pedro Alves <palves@redhat.com>
11316 Yao Qi <yao.qi@linaro.org>
11317
11318 * arm-tdep.c: Include "disasm.h".
11319 (gdb_print_insn_arm): Update code to get gdbarch.
11320 * disasm.c (dis_asm_read_memory): Change it to
11321 gdb_disassembler::dis_asm_read_memory.
11322 (dis_asm_memory_error): Likewise.
11323 (dis_asm_print_address): Likewise.
11324 (gdb_pretty_print_insn): Change it to
11325 gdb_disassembler::pretty_print_insn.
11326 (dump_insns): Add one argument gdb_disassemlber. All
11327 callers updated.
11328 (do_mixed_source_and_assembly_deprecated): Likewise.
11329 (do_mixed_source_and_assembly): Likewise.
11330 (do_assembly_only): Likewise.
11331 (gdb_disassembler::gdb_disassembler): New.
11332 (gdb_disassembler::print_insn): New.
11333 * disasm.h (class gdb_disassembler): New.
11334 (gdb_pretty_print_insn): Remove declaration.
11335 (gdb_disassemble_info): Likewise.
11336 * guile/scm-disasm.c (class gdbscm_disassembler): New.
11337 (gdbscm_disasm_read_memory_worker): Update.
11338 (gdbscm_disasm_read_memory): Update.
11339 (gdbscm_disasm_memory_error): Remove.
11340 (gdbscm_disasm_print_address): Remove.
11341 (gdbscm_disassembler::gdbscm_disassembler): New.
11342 (gdbscm_print_insn_from_port): Update.
11343 * mips-tdep.c: Include disasm.h.
11344 (gdb_print_insn_mips): Update code to get gdbarch.
11345 * record-btrace.c (btrace_insn_history): Update.
11346 * spu-tdep.c: Include disasm.h.
11347 (struct spu_dis_asm_data): Remove.
11348 (struct spu_dis_asm_info): New.
11349 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
11350 SPU id.
11351 (gdb_print_insn_spu): Cast disassemble_info to
11352 spu_dis_asm_info.
11353
80d75874
YQ
113542017-01-26 Yao Qi <yao.qi@linaro.org>
11355
11356 * disasm.c (do_ui_file_delete): Delete.
11357 (gdb_insn_length): Move code creating stream to ...
11358 * utils.c (null_stream): ... here. New function.
11359 * utils.h (null_stream): Declare.
11360
60685cd0
SM
113612017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11362
11363 * python/py-inferior.c (find_thread_object): Return directly
11364 from the loop. Remove "found" variable.
11365
eb1cdb62
JB
113662017-01-21 Joel Brobecker <brobecker@adacore.com>
11367
11368 GDB 7.12.1 released.
11369
b1ce6568
SM
113702017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11371
11372 * python/py-function.c (fnpy_call): Reorder declarations to have
11373 the gdbpy_enter object declared first.
11374 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11375
6f8b0407
SM
113762017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11377
fec93fb1 11378 PR python/21068
6f8b0407
SM
11379 * python/python-internal.h (PyMem_RawMalloc): Define for
11380 Python < 3.4.
11381 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11382 PyMem_RawMalloc instead of PyMem_Malloc.
11383
78cbbba8
LM
113842017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11385 Luis Machado <lgustavo@codesourcery.com>
11386
11387 * NEWS (New commands): Mention flash-erase.
11388 (New MI commands): Mention target-flash-erase.
11389 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11390 command.
11391 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11392 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11393 * target.c (flash_erase_command): New function.
11394 (initialize_targets): Add new flash-erase command.
11395 * target.h (flash_erase_command): New declaration.
11396
2132fe85
JB
113972017-01-20 Joel Brobecker <brobecker@adacore.com>
11398
11399 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11400 HAVE_SYS_PROCFS_H is defined.
11401
d1dff226
AH
114022017-01-18 Alan Hayward <alan.hayward@arm.com>
11403
11404 * remote.c (struct cached_reg): Change data into a pointer.
11405 * (stop_reply_dtr): Free data pointers before deleting vector.
11406 (process_stop_reply): Likewise.
11407 (remote_parse_stop_reply): Allocate space for data
11408
9890e433
AH
114092017-01-18 Alan Hayward <alan.hayward@arm.com>
11410
11411 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11412 MAX_REGISTER_SIZE.
11413 (amd64_pseudo_register_read_value): Likewise.
11414 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11415 (store_register_using_P): Likewise.
11416 * regcache.c (regcache_xfer_part): Likewise.
11417
7a36499a
IR
114182017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11419
11420 Split real and pseudo registers.
11421 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11422 (sparc32_pseudo_regnum): New enum.
11423 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11424 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11425 (SPARC32_CP0_REGISTERS): New macro.
11426 (sparc32_pseudo_register_name): New function.
11427 (sparc32_register_name): Use sparc32_pseudo_register_name.
11428 (sparc32_pseudo_register_type): New function.
11429 (sparc32_register_type): Use sparc32_pseudo_register_type.
11430 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11431 pseudo register numbers.
11432 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11433 (SPARC64_CP0_REGISTERS): New macro.
11434 (sparc64_pseudo_register_name): New function.
11435 (sparc64_register_name): Use sparc64_pseudo_register_name.
11436 (sparc64_pseudo_register_type): New function.
11437 (sparc64_register_type): Use sparc64_pseudo_register_type.
11438 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11439 pseudo register numbers.
11440 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11441 sparc64_store_arguments): Handle pseudo register numbers.
11442
6f8976bf
YQ
114432017-01-13 Yao Qi <yao.qi@linaro.org>
11444
11445 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11446 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11447 output.
11448 (getpkt_or_notif_sane_1): Likewise.
11449
e4241ace
YQ
114502017-01-13 Yao Qi <yao.qi@linaro.org>
11451
11452 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11453 of CC. Pass "-x c++-header" instead of "-x c".
11454
3015c064
SM
114552017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11456
11457 * remote.c (remote_can_async_p): Update comment.
11458
fde1b17d
SM
114592017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11460
11461 * linux-nat.c (linux_nat_can_async_p): Update comment.
11462
ca1ca08b
SM
114632017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11464
11465 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11466
4ad2da73
SM
114672017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11468
11469 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11470
c8b23b3f
TT
114712017-01-10 Tom Tromey <tom@tromey.com>
11472
11473 * python/py-type.c (typy_legacy_template_argument): Update.
11474 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11475 ~demangle_parse_info): Declare new members.
11476 (cp_demangled_name_to_comp): Return unique_ptr.
11477 (cp_demangled_name_parse_free)
11478 (make_cleanup_cp_demangled_name_parse_free)
11479 (cp_new_demangle_parse_info): Remove.
11480 * cp-support.c (do_demangled_name_parse_free_cleanup)
11481 (make_cleanup_cp_demangled_name_parse_free): Remove.
11482 (inspect_type, cp_canonicalize_string_full)
11483 (cp_canonicalize_string): Update.
11484 (mangled_name_to_comp): Change return type.
11485 (cp_class_name_from_physname, method_name_from_physname)
11486 (cp_func_name, cp_remove_params): Update.
11487 * cp-name-parser.y (demangle_parse_info): New constructor, from
11488 cp_new_demangle_parse_info.
11489 (~demangle_parse_info): New destructor, from
11490 cp_demangled_name_parse_free.
11491 (cp_merge_demangle_parse_infos): Update.
11492 (cp_demangled_name_to_comp): Change return type.
11493
1ac32117
TT
114942017-01-10 Tom Tromey <tom@tromey.com>
11495
11496 * top.c (prevent_dont_repeat): Change return type.
11497 * python/python.c (execute_gdb_command): Use std::string.
11498 Update.
11499 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11500 * command.h (prevent_dont_repeat): Change return type.
11501 * breakpoint.c (bpstat_do_actions_1): Update.
11502
0cf08227
TT
115032017-01-10 Tom Tromey <tom@tromey.com>
11504
11505 * value.h (scoped_value_mark::~scoped_value_mark): Call
11506 free_to_mark.
11507 (scoped_value_mark::free_to_mark): New method.
11508 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11509 scoped_value_mark.
11510
eb115069
TT
115112017-01-10 Tom Tromey <tom@tromey.com>
11512
11513 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11514 (valpy_reference_value, valpy_const_value, valpy_get_address)
11515 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11516 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11517 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11518 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11519 scoped_value_mark.
11520 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11521 * value.h (scoped_value_mark): New class.
11522
906768f9
TT
115232017-01-10 Tom Tromey <tom@tromey.com>
11524
11525 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11526 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11527 * psymtab.c (discard_psymtabs_upto): Remove.
11528 (make_cleanup_discard_psymtabs): Remove.
11529 (struct psymtab_state): Remove.
11530
bef155c3
TT
115312017-01-10 Tom Tromey <tom@tromey.com>
11532
11533 * record-full.c (record_full_save_cleanups): Remove.
11534 (record_full_save): Use gdb::unlinker.
11535 * gcore.c (do_bfd_delete_cleanup): Remove.
11536 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11537 cleanups.
11538 * dwarf2read.c (unlink_if_set): Remove.
11539 (write_psymtabs_to_index): Use gdb::unlinker.
11540 * common/gdb_unlinker.h: New file.
11541
192b62ce
TT
115422017-01-10 Tom Tromey <tom@tromey.com>
11543
11544 * windows-tdep.c (windows_xfer_shared_library): Update.
11545 * windows-nat.c (windows_make_so): Update.
11546 * utils.h (make_cleanup_bfd_unref): Remove.
11547 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11548 * symfile.h (symfile_bfd_open)
11549 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11550 * symfile.c (read_symbols, symbol_file_add)
11551 (separate_debug_file_exists): Update.
11552 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11553 (generic_load, reread_symbols): Update.
11554 * symfile-mem.c (symbol_file_add_from_memory): Update.
11555 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11556 (spu_symbol_file_add_from_memory): Update.
11557 * solist.h (struct target_so_ops) <bfd_open>: Return
11558 gdb_bfd_ref_ptr.
11559 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11560 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11561 gdb_bfd_ref_ptr.
11562 (solib_map_sections, reload_shared_libraries_1): Update.
11563 * solib-svr4.c (enable_break): Update.
11564 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11565 * solib-frv.c (enable_break2): Update.
11566 * solib-dsbt.c (enable_break): Update.
11567 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11568 gdb_bfd_ref_ptr.
11569 (darwin_solib_get_all_image_info_addr_at_init): Update.
11570 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11571 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11572 * record-full.c (record_full_save): Update.
11573 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11574 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11575 * minidebug.c (find_separate_debug_file_in_section): Return
11576 gdb_bfd_ref_ptr.
11577 * machoread.c (macho_add_oso_symfile): Change abfd to
11578 gdb_bfd_ref_ptr.
11579 (macho_symfile_read_all_oso): Update.
11580 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11581 (macho_symfile_read): Update.
11582 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11583 (jit_bfd_try_read_symtab): Update.
11584 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11585 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11586 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11587 gdb_bfd_ref_ptr.
11588 (gdb_bfd_ref_policy): New struct.
11589 (gdb_bfd_ref_ptr): New typedef.
11590 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11591 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11592 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11593 gdb_bfd_ref_ptr.
11594 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11595 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11596 (gcore_command): Update.
11597 * exec.c (exec_file_attach): Update.
11598 * elfread.c (elf_symfile_read): Update.
11599 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11600 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11601 (open_and_init_dwo_file): Update.
11602 (open_dwp_file): Return gdb_bfd_ref_ptr.
11603 (open_and_init_dwp_file): Update.
11604 * corelow.c (core_open): Update.
11605 * compile/compile-object-load.c (compile_object_load): Update.
11606 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11607 * coffread.c (coff_symfile_read): Update.
11608 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11609 gdb_bfd_ref_ptr. Rename.
11610 (dump_bfd_file, restore_command): Update.
11611 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11612 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11613 (find_separate_debug_file_by_buildid): Update.
11614
50315b21
TT
116152017-01-10 Tom Tromey <tom@tromey.com>
11616
11617 * common/gdb_ref_ptr.h: New file.
11618 * python/py-ref.h (struct gdbpy_ref_policy): New.
11619 (gdbpy_ref): Now a typedef.
11620
fc4007c9
TT
116212017-01-10 Tom Tromey <tom@tromey.com>
11622
11623 * utils.h (make_cleanup_htab_delete): Don't declare.
11624 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11625 Remove.
11626 * linespec.c (decode_compound_collector): Add constructor,
11627 destructor.
11628 (lookup_prefix_sym): Remove cleanup.
11629 (symtab_collector): Add constructor, destructor.
11630 (collect_symtabs_from_filename): Remove cleanup.
11631 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11632 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11633 Use htab_up.
11634 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11635 * dwarf2read.c (dw2_expand_symtabs_matching)
11636 (dw2_map_symbol_filenames, dwarf_decode_macros)
11637 (write_psymtabs_to_index): Use htab_up.
11638 * dwarf2loc.c (func_verify_no_selftailcall)
11639 (call_site_find_chain_1, func_verify_no_selftailcall)
11640 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11641 std::vector, gdb::unique_xmalloc_ptr.
11642 (call_sitep): Remove typedef.
11643 (dwarf2_locexpr_baton_eval): Remove unused variable.
11644
8dbcee67
TT
116452017-01-10 Tom Tromey <tom@tromey.com>
11646
11647 * python/python-internal.h (make_cleanup_py_decref)
11648 (make_cleanup_py_xdecref): Don't declare.
11649 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11650 (py_xdecref, make_cleanup_py_xdecref): Remove.
11651
13df46cc
TT
116522017-01-10 Tom Tromey <tom@tromey.com>
11653
11654 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11655 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11656
06fc9bf7
TT
116572017-01-10 Tom Tromey <tom@tromey.com>
11658
11659 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11660
830a4934
TT
116612017-01-10 Tom Tromey <tom@tromey.com>
11662
11663 * python/py-utils.c (unicode_to_encoded_string)
11664 (python_string_to_target_string)
11665 (python_string_to_target_python_string)
11666 (python_string_to_host_string, gdbpy_obj_to_string)
11667 (get_addr_from_python): Use gdbpy_ref.
11668
4586d543
TT
116692017-01-10 Tom Tromey <tom@tromey.com>
11670
11671 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11672 gdbpy_ref.
11673
59876f8f
TT
116742017-01-10 Tom Tromey <tom@tromey.com>
11675
11676 * python/python.c (eval_python_command, gdbpy_decode_line)
11677 (gdbpy_run_events, gdbpy_start_type_printers)
11678 (gdbpy_apply_type_printers): Use gdbpy_ref.
11679
97d83487
TT
116802017-01-10 Tom Tromey <tom@tromey.com>
11681
11682 * python/py-param.c (get_doc_string, compute_enum_values): Use
11683 gdbpy_ref.
11684
9205649a
TT
116852017-01-10 Tom Tromey <tom@tromey.com>
11686
11687 * python/py-inferior.c (find_thread_object, build_inferior_list):
11688 Use gdbpy_ref.
11689
74c49d45
TT
116902017-01-10 Tom Tromey <tom@tromey.com>
11691
11692 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11693
16361ffb
TT
116942017-01-10 Tom Tromey <tom@tromey.com>
11695
11696 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11697 gdbpy_ref.
11698
905f2cca
TT
116992017-01-10 Tom Tromey <tom@tromey.com>
11700
11701 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11702 extra incref.
11703 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11704 Use gdbpy_ref.
11705
64081434
TT
117062017-01-10 Tom Tromey <tom@tromey.com>
11707
11708 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11709 gdbpy_ref.
11710
59e9e831
TT
117112017-01-10 Tom Tromey <tom@tromey.com>
11712
11713 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11714 decref results of PyArg_ParseTupleAndKeywords.
11715
9de10f6d
TT
117162017-01-10 Tom Tromey <tom@tromey.com>
11717
11718 * python/python.c (python_run_simple_file): Use
11719 unique_xmalloc_ptr, gdbpy_ref.
11720
2bd5759d
TT
117212017-01-10 Tom Tromey <tom@tromey.com>
11722
11723 * python/py-prettyprint.c (print_stack_unless_memory_error)
11724 (print_string_repr, print_children): Use gdbpy_ref.
11725 (dummy_python_frame): New class.
11726 (dummy_python_frame::dummy_python_frame): Rename from
11727 push_dummy_python_frame.
11728 (py_restore_tstate): Remove.
11729
3b4e0e01
TT
117302017-01-10 Tom Tromey <tom@tromey.com>
11731
11732 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11733
17a22718
TT
117342017-01-10 Tom Tromey <tom@tromey.com>
11735
11736 * python/python.c (ensure_python_env, restore_python_env):
11737 Remove.
11738 * python/python-internal.h (ensure_python_env): Don't declare.
11739 * varobj.h (varobj_ensure_python_env): Don't declare.
11740 * varobj.c (varobj_ensure_python_env): Remove.
11741
68cdc557
TT
117422017-01-10 Tom Tromey <tom@tromey.com>
11743
11744 * varobj.c (varobj_value_get_print_value): Use
11745 gdbpy_enter_varobj.
11746
1eba6383
TT
117472017-01-10 Tom Tromey <tom@tromey.com>
11748
11749 * python/py-prettyprint.c (print_string_repr, print_children):
11750 Update.
11751 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11752 of "encoding".
11753 * varobj.c (varobj_value_get_print_value): Update.
11754 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11755
bde7b3e3
TT
117562017-01-10 Tom Tromey <tom@tromey.com>
11757
11758 * varobj.c (varobj_get_display_hint)
11759 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11760 (varobj_set_visualizer, free_variable): Use
11761 gdbpy_enter_varobj.
11762
a7785f8c
TT
117632017-01-10 Tom Tromey <tom@tromey.com>
11764
11765 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11766 (do_finish_initialization): New function. Use gdbpy_ref.
11767 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11768 do_finish_initialization.
11769
2865bfce
TT
117702017-01-10 Tom Tromey <tom@tromey.com>
11771
11772 * python/py-param.c (get_set_value, get_show_value): Use
11773 gdbpy_enter, gdbpy_ref.
11774
0e9dcc75
TT
117752017-01-10 Tom Tromey <tom@tromey.com>
11776
11777 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11778
12a5cedd
TT
117792017-01-10 Tom Tromey <tom@tromey.com>
11780
11781 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11782
788f2586
TT
117832017-01-10 Tom Tromey <tom@tromey.com>
11784
11785 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11786 Use gdbpy_enter_varobj.
11787
6cd67bea
TT
117882017-01-10 Tom Tromey <tom@tromey.com>
11789
11790 * varobj.c (gdbpy_enter_varobj): New constructor.
11791 * python/python-internal.h (gdbpy_enter_varobj): New class.
11792 * python/py-varobj.c (py_varobj_get_iterator): Use
11793 gdbpy_enter_varobj.
11794
14b122bf
TT
117952017-01-10 Tom Tromey <tom@tromey.com>
11796
11797 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11798 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11799 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11800 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11801 unique_xmalloc_ptr.
11802 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11803
bf1ca3b9
TT
118042017-01-10 Tom Tromey <tom@tromey.com>
11805
11806 * python/py-xmethods.c (invoke_match_method): Use
11807 gdbpy_ref.
11808
572a5524
TT
118092017-01-10 Tom Tromey <tom@tromey.com>
11810
11811 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11812 gdbpy_enter, gdbpy_ref.
11813
396a78b6
TT
118142017-01-10 Tom Tromey <tom@tromey.com>
11815
11816 * python/python.c (python_interactive_command): Use gdbpy_enter.
11817
a88b13c7
TT
118182017-01-10 Tom Tromey <tom@tromey.com>
11819
11820 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11821 gdbpy_ref.
11822
e9f0c363
TT
118232017-01-10 Tom Tromey <tom@tromey.com>
11824
11825 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11826 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11827
6349f452
TT
118282017-01-10 Tom Tromey <tom@tromey.com>
11829
11830 * utils.h (htab_deleter): New struct.
11831 (htab_up): New typedef.
11832 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11833 gdbpy_enter, gdbpy_ref, htab_up.
11834
c0171de6
TT
118352017-01-10 Tom Tromey <tom@tromey.com>
11836
11837 * python/py-unwind.c (pending_frame_invalidate): Remove.
11838 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11839
f18e226f
TT
118402017-01-10 Tom Tromey <tom@tromey.com>
11841
11842 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11843 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11844
c57af3f1
TT
118452017-01-10 Tom Tromey <tom@tromey.com>
11846
11847 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11848
60e600ec
TT
118492017-01-10 Tom Tromey <tom@tromey.com>
11850
11851 * python/python.c (gdbpy_eval_from_control_command)
11852 (gdbpy_source_script, gdbpy_run_events)
11853 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11854 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11855 gdbpy_enter.
11856
bf7da5b0
TT
118572017-01-10 Tom Tromey <tom@tromey.com>
11858
11859 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11860
2d38bced
TT
118612017-01-10 Tom Tromey <tom@tromey.com>
11862
11863 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11864
07bc7329
TT
118652017-01-10 Tom Tromey <tom@tromey.com>
11866
11867 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11868 (python_on_inferior_call_pre, python_on_inferior_call_post)
11869 (python_on_memory_change, python_on_register_change)
11870 (python_inferior_exit, python_new_objfile, add_thread_object)
11871 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11872
6e7c365e
TT
118732017-01-10 Tom Tromey <tom@tromey.com>
11874
11875 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11876 (bpfinishpy_handle_exit): Use gdbpy_enter.
11877
6ba0cd40
TT
118782017-01-10 Tom Tromey <tom@tromey.com>
11879
11880 * python/py-cmd.c (cmdpy_destroyer)
11881 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11882 gdbpy_enter.
11883
de2dc875
TT
118842017-01-10 Tom Tromey <tom@tromey.com>
11885
11886 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11887 gdbpy_enter.
11888 (gdbpy_breakpoint_has_cond): Likewise.
11889
4ecee2c4
TT
118902017-01-10 Tom Tromey <tom@tromey.com>
11891
11892 * python/python.c (gdbpy_enter): New constructor.
11893 (~gdbpy_enter): New destructor.
11894 (restore_python_env, ensure_python_env): Rewrite.
11895 * python/python-internal.h (gdbpy_enter): New class.
11896
37fce74f
TT
118972017-01-10 Tom Tromey <tom@tromey.com>
11898
11899 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11900
53a0cca3
TT
119012017-01-10 Tom Tromey <tom@tromey.com>
11902
11903 * python/py-value.c (value_has_field, get_field_flag)
11904 (get_field_type, valpy_getitem, convert_value_from_python): Use
11905 gdbpy_ref.
11906
ff3724f5
TT
119072017-01-10 Tom Tromey <tom@tromey.com>
11908
11909 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11910 gdbpy_ref.
11911
0700aea5
TT
119122017-01-10 Tom Tromey <tom@tromey.com>
11913
11914 * python/py-prettyprint.c (search_pp_list)
11915 (find_pretty_printer_from_objfiles)
11916 (find_pretty_printer_from_progspace)
11917 (find_pretty_printer_from_gdb, find_pretty_printer)
11918 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11919 gdbpy_ref.
11920
1bb44c9f
TT
119212017-01-10 Tom Tromey <tom@tromey.com>
11922
11923 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11924
87ce03fd
TT
119252017-01-10 Tom Tromey <tom@tromey.com>
11926
11927 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11928 (ltpy_get_all_source_lines): Use gdbpy_ref.
11929
ee0a3fb8
TT
119302017-01-10 Tom Tromey <tom@tromey.com>
11931
11932 * python/py-framefilter.c (extract_sym, extract_value)
11933 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11934 gdbpy_ref.
11935
bf2a52fa
TT
119362017-01-10 Tom Tromey <tom@tromey.com>
11937
11938 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11939
f59fe7f8
TT
119402017-01-10 Tom Tromey <tom@tromey.com>
11941
11942 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
11943
80bd970a
TT
119442017-01-10 Tom Tromey <tom@tromey.com>
11945
11946 * python/py-function.c (convert_values_to_python, fnpy_init): Use
11947 gdbpy_ref.
11948
d1b3de2e
TT
119492017-01-10 Tom Tromey <tom@tromey.com>
11950
11951 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
11952
3bb43384
TT
119532017-01-10 Tom Tromey <tom@tromey.com>
11954
11955 * python/py-type.c (convert_field, make_fielditem, typy_fields)
11956 (typy_range): Use gdbpy_ref.
11957
abf5651e
TT
119582017-01-10 Tom Tromey <tom@tromey.com>
11959
11960 * python/py-threadevent.c (create_thread_event_object): Use
11961 gdbpy_ref.
11962 * python/py-stopevent.c (create_stop_event_object): Simplify.
11963 (emit_stop_event): Use gdbpy_ref.
11964 * python/py-signalevent.c (create_signal_event_object): Use
11965 gdbpy_ref.
11966 * python/py-newobjfileevent.c (create_new_objfile_event_object)
11967 (emit_new_objfile_event, create_clear_objfiles_event_object)
11968 (emit_clear_objfiles_event): Use gdbpy_ref.
11969 * python/py-infevents.c (create_inferior_call_event_object)
11970 (create_register_changed_event_object)
11971 (create_memory_changed_event_object, emit_inferior_call_event)
11972 (emit_memory_changed_event, emit_register_changed_event): Use
11973 gdbpy_ref.
11974 * python/py-exitedevent.c (create_exited_event_object)
11975 (emit_exited_event): Use gdbpy_ref.
11976 * python/py-event.h (evpy_emit_event): Remove
11977 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
11978 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
11979 * python/py-continueevent.c (emit_continue_event): Use
11980 gdbpy_ref.
11981 * python/py-breakpoint.c (gdbpy_breakpoint_created)
11982 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
11983 gdbpy_ref.
11984 * python/py-bpevent.c (create_breakpoint_event_object): Use
11985 gdbpy_ref.
11986
a68ff33e
TT
119872017-01-10 Tom Tromey <tom@tromey.com>
11988
11989 * python/py-ref.h: New file.
11990
7becfd03
SM
119912017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11992
11993 * cli-out.c (cli_ui_out::do_redirect): Change return type to
11994 void.
11995 * cli-out.h (cli_ui_out::do_redirect): Likewise.
11996 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
11997 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
11998 * ui-out.c (ui_out::redirect): Likewise.
11999 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
12000 * cli/cli-logging.c (set_logging_redirect): Update call site of
12001 ui_out::redirect.
12002 (handle_redirections): Likewise.
12003 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
12004 * top.c (execute_command_to_string): Likewise.
12005 * utils.c (do_ui_out_redirect_pop): Likewise.
12006
df294654
SM
120072017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12008
12009 * stack.c (_initialize_stack): Update "frame" command help message.
12010
f5e6296e
IB
120112017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
12012
12013 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
12014
0e2d6fa6
YQ
120152017-01-06 Yao Qi <yao.qi@linaro.org>
12016
12017 * x86-linux-nat.h: Include gdb_proc_service.h.
12018
44d6d3f9
YQ
120192017-01-06 Yao Qi <yao.qi@linaro.org>
12020
12021 * ser-base.h: Include serial.h.
12022
656731fe
YQ
120232017-01-06 Yao Qi <yao.qi@linaro.org>
12024
12025 * ppc-linux-tdep.h: Include ppc-tdep.h.
12026
1ca8f924
YQ
120272017-01-06 Yao Qi <yao.qi@linaro.org>
12028
12029 * nat/amd64-linux-siginfo.h: Include signal.h.
12030
bc3008c4
YQ
120312017-01-06 Yao Qi <yao.qi@linaro.org>
12032
12033 * nat/aarch64-linux-hw-point.h: Include break-common.h.
12034
66c80d03
YQ
120352017-01-06 Yao Qi <yao.qi@linaro.org>
12036
12037 * mi/mi-parse.h: Include mi-cmds.h.
12038
051d2dda
YQ
120392017-01-06 Yao Qi <yao.qi@linaro.org>
12040
12041 * inf-loop.c: Don't include "target.h".
12042 * inf-loop.h: Include it here.
12043
8018d34f
YQ
120442017-01-06 Yao Qi <yao.qi@linaro.org>
12045
12046 * dfp.h: Include "dboulest.h" and "expression.h".
12047
c0b8369c
YQ
120482017-01-06 Yao Qi <yao.qi@linaro.org>
12049
12050 * ax-gdb.h: Include "ax.h".
12051
ad5cba2a
YQ
120522017-01-06 Yao Qi <yao.qi@linaro.org>
12053
12054 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
12055 with nat/gdb_ptrace.h.
12056
1c33cd7f
YQ
120572017-01-05 Yao Qi <yao.qi@linaro.org>
12058
12059 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
12060 new line.
12061 (mips64_fbsd_sigframe_init): Likewise.
12062
c988ac1d
JB
120632017-01-04 John Baldwin <jhb@FreeBSD.org>
12064
12065 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
12066 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
12067
b268007c
JB
120682017-01-04 John Baldwin <jhb@FreeBSD.org>
12069
12070 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
12071 * NEWS: Mention new FreeBSD/mips native configuration.
12072 * config/mips/fbsd.mh: New file.
12073 * configure.host: Add mips*-*-freebsd*.
12074 * mips-fbsd-nat.c: New file.
12075
387360da
JB
120762017-01-04 John Baldwin <jhb@FreeBSD.org>
12077
12078 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
12079 (ALLDEPFILES): Add mips-fbsd-tdep.c.
12080 * NEWS: Mention new FreeBSD/mips target.
12081 * configure.tgt: Add mips*-*-freebsd*.
12082 * mips-fbsd-tdep.c: New file.
12083 * mips-fbsd-tdep.h: New file.
12084
2aaaf250
YQ
120852017-01-04 Yao Qi <yao.qi@linaro.org>
12086
12087 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
12088 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
12089
61baf725
JB
120902017-01-01 Joel Brobecker <brobecker@adacore.com>
12091
6dbb839a 12092 Update copyright year range in all GDB files.
61baf725 12093
c113e7ff 120942017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 12095
c113e7ff 12096 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 12097
c113e7ff 12098For older changes see ChangeLog-2016.
c906108c
SS
12099\f
12100Local Variables:
12101mode: change-log
12102left-margin: 8
12103fill-column: 74
12104version-control: never
57da7796 12105coding: utf-8
c906108c 12106End:
This page took 3.712827 seconds and 4 git commands to generate.