]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Use std::string in gdb_safe_append_history
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8cff8730
TT
12017-10-03 Tom Tromey <tom@tromey.com>
2
3 * top.c (gdb_safe_append_history): Use std::string.
4
895b8f30
TT
52017-10-03 Tom Tromey <tom@tromey.com>
6
7 * event-top.c (stdin_event_handler): Update.
8 * main.c (captured_main_1): Update.
9 * top.h (make_delete_ui_cleanup): Remove.
10 (struct ui): Add constructor and destructor.
11 (new_ui, delete_ui): Remove.
12 * top.c (make_delete_ui_cleanup): Remove.
13 (new_ui_command): Use std::unique_ptr.
14 (delete_ui_cleanup): Remove.
15 (ui::ui): Rename from new_ui. Update.
16 (free_ui): Remove.
17 (ui::~ui): Rename from delete_ui. Update.
18
0efef640
TT
192017-10-03 Tom Tromey <tom@tromey.com>
20
21 * symfile.c (load_progress): Use gdb::byte_vector.
22
245ad7d3
TT
232017-10-03 Tom Tromey <tom@tromey.com>
24
25 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
26 declaration.
27 * printcmd.c (x_command): Remove unused declaration.
28 * symfile.c (symbol_file_command): Remove unused declaration.
29
e05550d7
TT
302017-10-03 Tom Tromey <tom@tromey.com>
31
32 * utils.c (internal_vproblem): Use std::string.
33 (defaulted_query): Likewise.
34
b95de2b7
TT
352017-10-03 Tom Tromey <tom@tromey.com>
36
37 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
38 * top.c (execute_command_to_string): Update.
39 * utils.c (make_cleanup_restore_page_info): Remove.
40 (do_restore_page_info_cleanup): Remove.
41 (set_batch_flag_and_restore_page_info):
42 New.
43 (make_cleanup_restore_page_info): Remove.
44 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
45 (~set_batch_flag_and_restore_page_info): New
46 (make_cleanup_restore_uinteger): Remove.
47 (make_cleanup_restore_integer): Remove.
48 (struct restore_integer_closure): Remove.
49 (restore_integer): Remove.
50 * utils.h (struct set_batch_flag_and_restore_page_info): New
51 class.
52 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
53 (make_cleanup_restore_page_info): Remove.
54 (make_cleanup_restore_uinteger) Remove.
55 (make_cleanup_restore_integer) Remove.
56
07036511
TT
572017-10-03 Tom Tromey <tom@tromey.com>
58
59 * record-full.h (record_full_gdb_operation_disable_set): Return
60 scoped_restore_tmpl<int>.
61 * infrun.c (adjust_pc_after_break): Update.
62 (handle_signal_stop): Update.
63 * record-full.c (record_full_gdb_operation_disable_set): Return
64 scoped_restore_tmpl<int>.
65 (record_full_wait_1, record_full_insert_breakpoint)
66 (record_full_remove_breakpoint, record_full_save)
67 (record_full_goto_insn): Update.
68
45320ffa
TT
692017-10-02 Tom Tromey <tom@tromey.com>
70
71 PR rust/22236:
72 * rust-lang.c (rust_val_print_str): New function.
73 (val_print_struct): Call it.
74 (rust_subscript): Preserve name of slice type.
75
b3e3859b
TT
762017-10-02 Tom Tromey <tom@tromey.com>
77
78 * rust-lang.c (rust_subscript): Handle slices in
79 EVAL_AVOID_SIDE_EFFECTS case.
80
01af5e0d
TT
812017-10-02 Tom Tromey <tom@tromey.com>
82
83 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
84
888e3ddb
TT
852017-10-02 Tom Tromey <tom@tromey.com>
86
87 * rust-lang.h (rust_slice_type): Add "extern".
88
cc536b21
PA
892017-10-02 Tom Tromey <tom@tromey.com>
90 Pedro Alves <palves@redhat.com>
91
92 * ada-lang.h (ada_exc_info::operator<): Make const.
93 (ada_exc_info::operator==): Make const.
94 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
95 Make const.
96
386c8614
TT
972017-09-29 Tom Tromey <tom@tromey.com>
98
99 * target.c (read_whatever_is_readable): Change type of "result".
100 Update.
101 (free_memory_read_result_vector): Remove.
102 (read_memory_robust): Change return type. Update.
103 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
104 bin2hex, std::string.
105 * target.h (memory_read_result_s): Remove typedef.
106 (free_memory_read_result_vector): Remove.
107 (read_memory_robust): Return std::vector.
108
789c4b5e
TT
1092017-09-29 Tom Tromey <tom@tromey.com>
110
111 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
112
ab816a27
TT
1132017-09-29 Tom Tromey <tom@tromey.com>
114
115 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
116 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
117 operator< and operator==.
118 (ada_exceptions_list): Return a std::vector.
119 * ada-lang.c (ada_exc_info::operator<): Rename from
120 compare_ada_exception_info.
121 (ada_exc_info::operator==): New.
122 (sort_remove_dups_ada_exceptions_list): Change type of
123 "exceptions".
124 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
125 (ada_add_global_exceptions): Likewise.
126 (ada_exceptions_list_1): Return a std::vector.
127 (ada_exceptions_list): Likewise.
128
52f9abe4
TT
1292017-09-29 Tom Tromey <tom@tromey.com>
130
131 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
132 'std::set *'.
133 (print_one_inferior): Update.
134 (free_vector_of_ints): Remove.
135 (list_available_thread_groups): Change "ids" to std::set.
136 (mi_cmd_list_thread_groups): Update.
137 (struct collect_cores_data) <core>: Now a std::set.
138 (collect_cores): Update.
139 (unique): Remove.
140 (print_one_inferior): Update.
141
dcd5ddcc
TT
1422017-09-29 Tom Tromey <tom@tromey.com>
143
144 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
145 (mi_execute_async_cli_command): Likewise.
146 (mi_cmd_trace_frame_collected): Use field_fmt.
147
45d288cc
TT
1482017-09-29 Tom Tromey <tom@tromey.com>
149
150 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
151 gdb::byte_vector.
152
6afe2f4a
TT
1532017-09-29 Tom Tromey <tom@tromey.com>
154
155 * mi/mi-parse.c (mi_parse): Remove unused declaration.
156
9813429a
TT
1572017-09-29 Tom Tromey <tom@tromey.com>
158
159 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
160
2d6960b4
TT
1612017-09-29 Tom Tromey <tom@tromey.com>
162
163 * varobj.h (varobj_gen_name): Return std::string.
164 * varobj.c (varobj_gen_name): Return std::string.
165 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
166 (mi_cmd_var_delete): Don't copy "name".
167
784c453a
TT
1682017-09-29 Tom Tromey <tom@tromey.com>
169
170 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
171 (mi_cmd_break_insert_1): Update.
172
a9bc57b9
TT
1732017-09-29 Tom Tromey <tom@tromey.com>
174
175 * target.h (make_scoped_defer_target_commit_resume): Update.
176 * target.c (make_scoped_defer_target_commit_resume): Rename from
177 make_cleanup_defer_target_commit_resume. Return a
178 scoped_restore.
179 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
180
9754d8c4
TT
1812017-09-29 Tom Tromey <tom@tromey.com>
182
183 * main.c (captured_main_1): Remove unused declaration.
184 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
185
99ef965c
TT
1862017-09-29 Tom Tromey <tom@tromey.com>
187
188 * symtab.c (search_symbols): Remove unused outer cleanup.
189 (make_source_files_completion_list): Remove unused declaration.
190
42518ba7
TT
1912017-09-29 Tom Tromey <tom@tromey.com>
192
193 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
194
726b2169
TT
1952017-09-29 Tom Tromey <tom@tromey.com>
196
197 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
198 gdb::byte_vector.
199
55b06432
TT
2002017-09-29 Tom Tromey <tom@tromey.com>
201
202 * complaints.c (vcomplaint): Use std::string.
203
8abcee91
TT
2042017-09-29 Tom Tromey <tom@tromey.com>
205
206 * tracepoint.c (trace_variable_command): Use std::string.
207 (encode_actions_1): Remove unused declarations.
208 (create_tsv_from_upload): Use std::string.
209
6ad94bc7
TT
2102017-09-29 Tom Tromey <tom@tromey.com>
211
212 * cp-support.c (gdb_demangle): Use std::string.
213
2003f3d8
TT
2142017-09-29 Tom Tromey <tom@tromey.com>
215
216 * stack.c (parse_frame_specification): Use std::string
217 (info_frame_command): Use gdb::unique_xmalloc_ptr.
218
8f8accb5
TT
2192017-09-29 Tom Tromey <tom@tromey.com>
220
221 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
222
200aa7b1
TT
2232017-09-29 Tom Tromey <tom@tromey.com>
224
225 * utils.c (vfprintf_maybe_filtered): Use std::string.
226 (vfprintf_unfiltered): Likewise.
227
606aae8a
TT
2282017-09-29 Tom Tromey <tom@tromey.com>
229
230 * event-top.c (top_level_prompt): Return std::string.
231 (display_gdb_prompt): Update.
232
bd413795
TT
2332017-09-29 Tom Tromey <tom@tromey.com>
234
235 * unittests/common-utils-selftests.c (format): New function.
236 (string_vprintf_tests): New function.
237 (_initialize_common_utils_selftests): Register new tests.
238 * common/common-utils.c (string_vprintf): New function.
239 * common/common-utils.h (string_vprintf): Declare.
240
256642e8
PA
2412017-09-29 Pedro Alves <palves@redhat.com>
242
243 * common/rsp-low.c (unpack_varlen_hex): Constify.
244 * common/rsp-low.h (unpack_varlen_hex): Constify.
245 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
246 Constify.
247 * remote.c (remote_set_permissions, read_ptid)
248 (remote_current_thread, remote_get_threads_with_qthreadinfo)
249 (remote_static_tracepoint_marker_at)
250 (remote_static_tracepoint_markers_by_strid)
251 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
252 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
253 (parse_tracepoint_definition, parse_tsv_definition)
254 (parse_static_tracepoint_marker_definition): Constify.
255 * tracepoint.h (parse_static_tracepoint_marker_definition)
256 (parse_trace_status, parse_tracepoint_status)
257 (parse_tracepoint_definition, parse_tsv_definition): Constify.
258
b6bb3468
PA
2592017-09-29 Pedro Alves <palves@redhat.com>
260
261 * remote.c (target_buf, target_buf_size): Delete.
262 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
263 Use the connection's packet buffer instead.
264 All callers adjusted.
265 (_initialize_remote): Remove references to target_buf and
266 target_buf_size.
267
b2f8eb7a
PA
2682017-09-28 Pedro Alves <palves@redhat.com>
269
270 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
271 unittests/common-utils-selftests.c.
272 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
273 (COMMON_OBS): Remove utils-selftests.o.
274 * utils-selftests.c: Move to ...
275 * unittests/common-utils-selftests.c: ... here and rename self
276 test to "string_printf".
277
08302ed2
DE
2782017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
279
280 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
281 having NULL cus or tus.
282
96a5a1d3
UW
2832017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
284
285 * arm-tdep.c: (convert_from_extended): Remove.
286 (convert_to_extended): Likewise.
287 (arm_extract_return_value): Use convert_typed_floating.
288 (arm_store_return_value): Likewise.
289
290 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
291 * sh-tdep.c: Do not include "floatformat.h".
292 (sh_littlebyte_bigword_type): New function.
293 (sh_register_convert_to_virtual): Use convert_typed_floating.
294 (sh_register_convert_to_raw): Likewise.
295 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
296 (sh64_littlebyte_bigword_type): New function.
297 (sh64_extract_return_value): Use convert_typed_floating.
298 (sh64_register_convert_to_virtual): Likewise.
299 (sh64_register_convert_to_raw): Likewise.
300
0db7851f
UW
3012017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
302
303 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
304 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
305
306 * gdbtypes.h (union type_specific): Make field floatformat hold
307 just a single struct floatformat, not an array.
308 (floatformat_from_type): Move here.
309 * gdbtypes.c (floatformat_from_type): Move here. Update to
310 changed TYPE_FLOATFORMAT definition.
311 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
312 (recursive_dump_type): Likewise.
313 (init_float_type): Install correct floatformat for byte order.
314 (arch_float_type): Likewise.
315
77b7c781
UW
3162017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
317
318 * gdbtypes.c (init_type): Change incoming argument from
319 length-in-bytes to length-in-bits. Assert length is a
320 multiple of TARGET_CHAR_BITS.
321 (arch_type, arch_flags_type): Likewise.
322 (init_integer_type): Update call to init_type.
323 (init_character_type): Likewise.
324 (init_boolean_type): Likewise.
325 (init_float_type): Likewise.
326 (init_decfloat_type): Likewise.
327 (init_complex_type): Likewise.
328 (init_pointer_type): Likewise.
329 (objfile_type): Likewise.
330 (arch_integer_type): Update call to arch_type.
331 (arch_character_type): Likewise.
332 (arch_boolean_type): Likewise.
333 (arch_float_type): Likewise.
334 (arch_decfloat_type): Likewise.
335 (arch_complex_type): Likewise.
336 (arch_pointer_type): Likewise.
337 (gdbtypes_post_init): Likewise.
338
339 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
340 (read_base_type): Likewise.
341 * mdebugread.c (basic_type): Likewise.
342 * stabsread.c (dbx_init_float_type): Likewise.
343 (rs6000_builtin_type): Likewise.
344 (read_range_type): Likewise. Also, fix call to init_integer_type
345 with erroneous length argument.
346
347 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
348 * d-lang.c (build_d_types): Likewise.
349 * f-lang.c (build_fortran_types): Likewise.
350 * go-lang.c (build_go_types): Likewise.
351 * opencl-lang.c (build_opencl_types): Likewise.
352 * jit.c (finalize_symtab): Likewise.
353 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
354 (build_std_type_info_type): Likewise.
355 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
356 update call to arch_flags_type.
357
358 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
359 arch_type.
360 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
361 * windows-tdep.c (windows_get_tlb_type): Likewise.
362
363 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
364 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
365 * m32c-tdep.c (make_types): Likewise.
366 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
367 (rl78_psw_type): Update call to arch_flags_type.
368 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
369 * rx-tdep.c (rx_psw_type): Likewise.
370 (rx_fpsw_type): Likewise.
371 * sparc-tdep.c (sparc_psr_type): Likewise.
372 (sparc_fsr_type): Likewise.
373 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
374 (sparc64_ccr_type): Likewise.
375 (sparc64_fsr_type): Likewise.
376 (sparc64_fprs_type): Likewise.
377
f21b4d5c
TT
3782017-09-27 Tom Tromey <tom@tromey.com>
379
380 * findcmd.c (find_command): Constify.
381
643c2ffa
TT
3822017-09-27 Tom Tromey <tom@tromey.com>
383
384 * ada-tasks.c (task_command_1, task_command): Constify.
385
510e5e56
TT
3862017-09-27 Tom Tromey <tom@tromey.com>
387
388 * symtab.c (maintenance_print_symbol_cache)
389 (maintenance_flush_symbol_cache)
390 (maintenance_print_symbol_cache_statistics): Constify.
391
e503b191
TT
3922017-09-27 Tom Tromey <tom@tromey.com>
393
394 * inferior.c (detach_inferior_command, kill_inferior_command)
395 (inferior_command): Constify.
396
4e001312
TT
3972017-09-27 Tom Tromey <tom@tromey.com>
398
399 * regcache.c (regcache_print, maintenance_print_registers)
400 (maintenance_print_raw_registers)
401 (maintenance_print_cooked_registers)
402 (maintenance_print_register_groups)
403 (maintenance_print_remote_registers): Constify.
404
77763700
TT
4052017-09-27 Tom Tromey <tom@tromey.com>
406
407 * printcmd.c (map_display_numbers, undisplay_command)
408 (enable_disable_display_command, enable_display_command)
409 (disable_display_command): Constify.
410
4495129a
TT
4112017-09-27 Tom Tromey <tom@tromey.com>
412
413 * breakpoint.h (delete_command): Don't declare.
414 * breakpoint.c (delete_command, enable_once_command)
415 (enable_count_command, enable_delete_command, breakpoint_1)
416 (maintenance_info_breakpoints, stopin_command, stopat_command)
417 (delete_command, delete_trace_command, save_breakpoints)
418 (save_breakpoints_command, save_tracepoints_command): Constify.
419
3088cf40
TT
4202017-09-27 Tom Tromey <tom@tromey.com>
421
422 * macrocmd.c (macro_expand_command, macro_expand_once_command)
423 (skip_ws, extract_identifier, macro_define_command)
424 (macro_undef_command, macro_list_command): Constify.
425
69f476a3
TT
4262017-09-27 Tom Tromey <tom@tromey.com>
427
428 * infcmd.c (environment_info, set_environment_command)
429 (unset_environment_command, path_info, info_proc_cmd_1)
430 (info_proc_cmd_mappings, info_proc_cmd_stat)
431 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
432 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
433
c4a3e68e
TT
4342017-09-27 Tom Tromey <tom@tromey.com>
435
436 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
437 Constify.
438
c9d31bd6
TT
4392017-09-27 Tom Tromey <tom@tromey.com>
440
441 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
442
1f3f85eb
TT
4432017-09-27 Tom Tromey <tom@tromey.com>
444
445 * demangle.c (demangle_command): Constify.
446
9c504b5d
TT
4472017-09-27 Tom Tromey <tom@tromey.com>
448
449 * progspace.c (maintenance_info_program_spaces_command):
450 Constify.
451
6663cf91
TT
4522017-09-27 Tom Tromey <tom@tromey.com>
453
454 * compile/compile.c (check_raw_argument, compile_file_command)
455 (compile_code_command, compile_print_command): Constify.
456
34e5fa26
TT
4572017-09-27 Tom Tromey <tom@tromey.com>
458
459 * reggroups.c (maintenance_print_reggroups): Constify.
460
8384c356
TT
4612017-09-27 Tom Tromey <tom@tromey.com>
462
463 * dwarf2read.c (save_gdb_index_command): Constify.
464
884beb0c
TT
4652017-09-27 Tom Tromey <tom@tromey.com>
466
467 * stap-probe.c (info_probes_stap_command): Constify.
468
e0b2930c
TT
4692017-09-27 Tom Tromey <tom@tromey.com>
470
471 * fork-child.c (unset_exec_wrapper_command): Constify.
472
f938677d
TT
4732017-09-27 Tom Tromey <tom@tromey.com>
474
475 * btrace.c (get_uint, get_context_size, no_chunk)
476 (maint_btrace_packet_history_cmd)
477 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
478 (maint_info_btrace_cmd): Constify.
479
8949cb87
TT
4802017-09-27 Tom Tromey <tom@tromey.com>
481
482 * reverse.c (delete_bookmark_command): Constify.
483
ac88e2de
TT
4842017-09-27 Tom Tromey <tom@tromey.com>
485
486 * remote.c (set_memory_packet_size)
487 (set_memory_write_packet_size, show_memory_write_packet_size)
488 (set_memory_read_packet_size, show_memory_read_packet_size)
489 (compare_sections_command, packet_command, remote_put_command)
490 (remote_get_command, remote_delete_command): Constify.
491
bd4c9dfe
TT
4922017-09-27 Tom Tromey <tom@tromey.com>
493
494 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
495 (set_mipsfpu_double_command, set_mipsfpu_none_command)
496 (set_mipsfpu_auto_command): Constify.
497
5e93d4c6
TT
4982017-09-27 Tom Tromey <tom@tromey.com>
499
500 * cli/cli-cmds.h (cd_command): Constify.
501 * cli/cli-cmds.c (cd_command): Constify.
502
fc41a75b
TT
5032017-09-27 Tom Tromey <tom@tromey.com>
504
505 * thread.c (thread_name_command, thread_find_command): Constify.
506
67810076
TT
5072017-09-27 Tom Tromey <tom@tromey.com>
508
509 * probe.c (enable_probes_command, disable_probes_command):
510 Constify.
511
1d8b34a7
TT
5122017-09-27 Tom Tromey <tom@tromey.com>
513
514 * symfile.c (symbol_file_command): Constify.
515 * gdbcore.h (deprecated_file_changed_hook): Constify.
516 * exec.c (deprecated_file_changed_hook, exec_file_command)
517 (file_command): Constify.
518 * defs.h (symbol_file_command): Constify.
519
442019e1
TT
5202017-09-27 Tom Tromey <tom@tromey.com>
521
522 * remote-fileio.c (set_system_call_allowed)
523 (show_system_call_allowed): Constify.
524
2983f7cb
TT
5252017-09-27 Tom Tromey <tom@tromey.com>
526
527 * tracepoint.c (delete_trace_variable_command)
528 (tfind_end_command, tfind_start_command, tfind_pc_command)
529 (tfind_tracepoint_command, tfind_line_command)
530 (tfind_range_command, tfind_outside_command): Constify.
531
4fd41b24
TT
5322017-09-27 Tom Tromey <tom@tromey.com>
533
534 * ax-gdb.c (maint_agent_printf_command, agent_command)
535 (agent_eval_command): Constify.
536
f2fc3015
TT
5372017-09-27 Tom Tromey <tom@tromey.com>
538
539 * tracepoint.c (info_scope_command): Constify.
540 * python/python.c (gdbpy_decode_line): Constify.
541 * python/py-breakpoint.c (bppy_init): Constify.
542 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
543 * location.h: (new_linespec_location)
544 (string_to_event_location_basic, string_to_event_location):
545 Constify.
546 * location.c (new_linespec_location)
547 (string_to_event_location_basic, string_to_event_location):
548 Constify.
549 * linespec.h (decode_line_with_current_source)
550 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
551 * linespec.c (linespec_lex_to_end)
552 (decode_line_with_current_source)
553 (decode_line_with_last_displayed): Constify.
554 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
555 Constify.
556 * cli/cli-cmds.c (edit_command, list_command): Constify.
557 * breakpoint.h (until_break_command, watch_command_wrapper)
558 (awatch_command_wrapper, rwatch_command_wrapper)
559 (init_ada_exception_breakpoint): Constify.
560 * breakpoint.c (break_command_1, dprintf_command)
561 (break_range_command, watch_command_wrapper)
562 (rwatch_command_wrapper, awatch_command_wrapper)
563 (until_break_command, init_ada_exception_breakpoint)
564 (strace_marker_create_sals_from_location, trace_command)
565 (ftrace_command, strace_command, struct tracepoint): Constify.
566 * ax-gdb.c (agent_command_1): Constify.
567 * ada-lang.c (ada_exception_sal): Constify.
568
8c2f95f4
TT
5692017-09-27 Tom Tromey <tom@tromey.com>
570
571 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
572 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
573 (get_context_size, no_chunk, get_insn_history_modifiers)
574 (cmd_record_insn_history, get_call_history_modifiers)
575 (cmd_record_call_history): Constify.
576
a0d65762
TT
5772017-09-27 Tom Tromey <tom@tromey.com>
578
579 * source.c (show_substitute_path_command)
580 (unset_substitute_path_command, set_substitute_path_command):
581 Constify.
582
58971144
TT
5832017-09-27 Tom Tromey <tom@tromey.com>
584
585 * typeprint.c (maintenance_print_type): Constify.
586 * maint.c (maintenance_dump_me, maintenance_demangle)
587 (maintenance_time_display, maintenance_info_sections)
588 (maintenance_print_statistics, maintenance_deprecate)
589 (maintenance_undeprecate): Constify.
590 (maintenance_do_deprecate): Constify. Use std::string.
591 (maintenance_selftest): Constify.
592 * gdbtypes.h (maintenance_print_type): Constify.
593
c482f52c
TT
5942017-09-27 Tom Tromey <tom@tromey.com>
595
596 * hppa-tdep.c (unwind_command): Constify.
597
e100df1a
TT
5982017-09-27 Tom Tromey <tom@tromey.com>
599
600 * target-descriptions.c (unset_tdesc_filename_cmd)
601 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
602 Constify.
603
31d56ade
TT
6042017-09-27 Tom Tromey <tom@tromey.com>
605
606 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
607
b961da0b
TT
6082017-09-27 Tom Tromey <tom@tromey.com>
609
610 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
611
e2d8ae16
TT
6122017-09-27 Tom Tromey <tom@tromey.com>
613
614 * tui/tui-regs.c (tui_reg_command): Constify.
615
863779b0
TT
6162017-09-27 Tom Tromey <tom@tromey.com>
617
618 * skip.c (skip_file_command, skip_function_command)
619 (skip_enable_command, skip_disable_command, skip_delete_command):
620 Constify.
621
cdb34d4a
TT
6222017-09-27 Tom Tromey <tom@tromey.com>
623
624 * record-btrace.c (cmd_record_btrace_bts_start)
625 (cmd_record_btrace_pt_start): Constify.
626
e99c83e7
TT
6272017-09-27 Tom Tromey <tom@tromey.com>
628
629 * symmisc.c (maintenance_print_symbols)
630 (maintenance_print_msymbols, maintenance_print_objfiles)
631 (maintenance_info_symtabs, maintenance_check_symtabs)
632 (maintenance_expand_symtabs, maintenance_info_line_tables):
633 Constify.
634
32faf971
TT
6352017-09-27 Tom Tromey <tom@tromey.com>
636
637 * top.c (new_ui_command): Constify.
638
2cf311eb
TT
6392017-09-27 Tom Tromey <tom@tromey.com>
640
641 * symfile.c (add_symbol_file_command)
642 (remove_symbol_file_command, list_overlays_command)
643 (map_overlay_command, unmap_overlay_command)
644 (overlay_auto_command, overlay_manual_command)
645 (overlay_off_command, overlay_load_command): Constify.
646
e6738699
TT
6472017-09-27 Tom Tromey <tom@tromey.com>
648
649 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
650 (info_spu_mailbox_command, info_spu_dma_command)
651 (info_spu_proxydma_command): Constify.
652
aa360cd5
TT
6532017-09-27 Tom Tromey <tom@tromey.com>
654
655 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
656
898241a5
TT
6572017-09-27 Tom Tromey <tom@tromey.com>
658
659 * cli/cli-script.c (user_defined_command): Constify.
660
2d0ac106
TT
6612017-09-27 Tom Tromey <tom@tromey.com>
662
663 * cli/cli-dump.c (dump_memory_command, dump_value_command)
664 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
665 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
666 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
667 (dump_binary_value, append_binary_memory, append_binary_value):
668 Constify.
669 (struct dump_context) <func>: Constify.
670 (add_dump_command): Update.
671
dede02ce
TT
6722017-09-27 Tom Tromey <tom@tromey.com>
673
674 * cli/cli-cmds.c (show_version, show_configuration)
675 (source_command, show_user): Constify.
676
d3cb6b99
TT
6772017-09-27 Tom Tromey <tom@tromey.com>
678
679 * target.c (maintenance_print_target_stack): Constify.
680
1970a12f
TT
6812017-09-27 Tom Tromey <tom@tromey.com>
682
683 * interps.c (interpreter_exec_cmd): Constify.
684
41243651
TT
6852017-09-27 Tom Tromey <tom@tromey.com>
686
687 * record-full.c (cmd_record_full_restore): Constify.
688
4465d9db
TT
6892017-09-27 Tom Tromey <tom@tromey.com>
690
691 * memattr.c (enable_mem_command, disable_mem_command)
692 (delete_mem_command): Constify.
693
ad25e423
TT
6942017-09-27 Tom Tromey <tom@tromey.com>
695
696 * value.c (show_convenience): Constify.
697
d64097b1
TT
6982017-09-27 Tom Tromey <tom@tromey.com>
699
700 * gdbcore.h (core_file_command): Update.
701 * corefile.c (core_file_command): Constify.
702
4d4589ef
TT
7032017-09-27 Tom Tromey <tom@tromey.com>
704
705 * user-regs.c (maintenance_print_user_registers): Constify.
706
32a7bf17
TT
7072017-09-27 Tom Tromey <tom@tromey.com>
708
709 * cp-namespace.c (maintenance_cplus_namespace): Constify.
710
4a475551
TT
7112017-09-27 Tom Tromey <tom@tromey.com>
712
713 * cp-support.c (first_component_command): Constify.
714
990b9f9f
TT
7152017-09-27 Tom Tromey <tom@tromey.com>
716
717 * psymtab.c (maintenance_print_psymbols)
718 (maintenance_info_psymtabs, maintenance_check_psymtabs):
719 Constify.
720
c281872e
TT
7212017-09-27 Tom Tromey <tom@tromey.com>
722
723 * windows-tdep.c (display_tib): Constify.
724
5b64bf74
TT
7252017-09-27 Tom Tromey <tom@tromey.com>
726
727 * linux-fork.c (delete_checkpoint_command)
728 (detach_checkpoint_command): Constify.
729
4ada038f
TT
7302017-09-27 Tom Tromey <tom@tromey.com>
731
732 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
733
57f5a81b
TT
7342017-09-27 Tom Tromey <tom@tromey.com>
735
736 * arc-tdep.c (dump_arc_instruction_command): Constify.
737
b0a8e6c4
TT
7382017-09-27 Tom Tromey <tom@tromey.com>
739
740 * valprint.c (set_radix, show_radix): Constify.
741
8d97dc1c
TT
7422017-09-27 Tom Tromey <tom@tromey.com>
743
744 * dtrace-probe.c (info_probes_dtrace_command): Constify.
745
eb7c454d
TT
7462017-09-27 Tom Tromey <tom@tromey.com>
747
748 * command.h (not_just_help_class_command): Update.
749 * cli/cli-decode.h (not_just_help_class_command): Update.
750 * cli/cli-decode.c (not_just_help_class_command): Constify.
751
e4e33335
TT
7522017-09-27 Tom Tromey <tom@tromey.com>
753
754 * gdb_bfd.c (maintenance_info_bfds): Constify.
755
0450cc4c
TT
7562017-09-27 Tom Tromey <tom@tromey.com>
757
758 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
759 overloads.
760 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
761 (do_const_cfunc): New function.
762 (cmd_cfunc_eq): New overload.
763 (cli_user_command_p): Check do_const_cfunc.
764 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
765 const_cfunc.
766 * command.h (add_cmd): Add const overload and no-function
767 overload.
768 (set_cmd_cfunc): Add const overload.
769 (cmd_const_cfunc_ftype): Declare.
770 (cmd_cfunc_eq): Add const overload.
771 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
772 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
773 overload.
774
a9bbfbd8
TT
7752017-09-27 Tom Tromey <tom@tromey.com>
776
777 * macroexp.c (get_next_token_for_substitution): New function.
778 (substitute_args): Call it. Check for __VA_OPT__.
779
5230b05a
WT
7802017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
781 Pedro Alves <palves@redhat.com>
782
783 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
784 producer_is_icc_lt_14.
785 (producer_is_icc_lt_14): New function.
786 (check_producer): Add code for checking version of ICC.
787 (producer_is_icc): Move to producer.c.
788 (read_structure_type): Restrict ICC workaround to ICC<14.
789 * producer.c: Include selftest.h.
790 (producer_is_icc, producer_parsing_tests, _initialize_producer):
791 New functions.
792 * producer.h (producer_is_icc): New declaration.
793
b32b108a
WT
7942017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
795
796 * Makefile.in (SFILES): Add producer.c.
797 (COMMON_OBS): Add producer.o
798 * amd64-tdep.c (producer.h): Add new include.
799 * dwarf2read.c (producer.h): Add new include.
800 * producer.c: New file.
801 * producer.h: New file.
802 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
803 producer.c.
804 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
805 producer.h.
806
5007d765
MK
8072017-09-26 Matthias Klose <doko@ubuntu.com>
808
809 * configure.ac: Search ncursesw before ncurses.
810 Check ncursesw/ncurses.h before ncurses/ncurses.h.
811 * gdb_curses.h: Include <ncursesw/ncurses.h>
812 * config.in, configure: Regenerate.
813
281c4447
RO
8142017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
815
816 PR gdb/22185
817 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
818 obsolete.
819 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
820 Remove i386sol2 support.
821 * configure.nat <i386sol2>: Remove.
822 <sol2-64>: Fold into ...
823 <sol2>: ... this.
824 Move common settings to default section.
825 Add sol-thread.o.
826 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
827 x86_64-*-solaris2.1[0-9]*>: Rename to ...
828 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
829 <i[34567]86-*-solaris*>: Remove.
830 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
831
832 * configure.ac: Remove wctype in libw check.
833 (_MSE_INT_H): Don't define on Solaris 7-9.
834 <solaris*>: Remove libthread_db.so.1 check.
835 * configure: Regenerate.
836 * config.in: Regenerate.
837
838 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
839 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
840 (gdb_ps_size_t): Remove.
841 Use base types in users.
842 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
843
844 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
845
39b06c20
RO
8462017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
847
848 PR build/22206
849 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
850 (adi_is_addr_mapped): Likewise.
851 (PSR_ICC): Don't redefine.
852 (PSR_IMPL): Likewise.
853
6c3e20f1
TT
8542017-09-25 Tom Tromey <tom@tromey.com>
855
856 * regcache.c (regcache::dump): Use string_printf.
857
b292235f
TT
8582017-09-25 Tom Tromey <tom@tromey.com>
859
860 * regcache.c (class regcache_invalidator): New.
861 (struct register_to_invalidate): Remove.
862 (make_cleanup_regcache_invalidate): Remove.
863 (regcache::raw_write): Use regcache_invalidator.
864
9ac86b52
TT
8652017-09-25 Tom Tromey <tom@tromey.com>
866
867 * spu-tdep.c (spu2ppu_sniffer): Update.
868 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
869 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
870 Remove.
871 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
872 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
873 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
874 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
875 (frame_pop): Update.
876
c0e383c6
TT
8772017-09-25 Tom Tromey <tom@tromey.com>
878
879 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
880 * regcache.h (regcache_xfree): Don't declare.
881 * regcache.c (regcache_xfree): Remove.
882 (do_regcache_xfree): Use delete.
883 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
884 * linux-fork.c (free_fork): Use delete.
885 (fork_save_infrun_state): Likewise.
886 * jit.c (jit_dealloc_cache): Use delete.
887 * infrun.c (discard_infcall_suspend_state): Use delete.
888
791199cc
TT
8892017-09-25 Tom Tromey <tom@tromey.com>
890
891 * regcache.h (regcache_xmalloc): Don't declare.
892 (regcache_raw_set_cached_value): Update comment.
893 * regcache.c (regcache_xmalloc): Remove.
894 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
895 * jit.c (jit_frame_sniffer): Use new.
896 * frame.c (frame_save_as_regcache): Use new.
897
289e23aa
AA
8982017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
899
900 * NEWS: Advertise support for guarded-storage registers on IBM z.
901
1b63490c
AA
9022017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
903
904 * s390-linux-nat.c (have_regset_gs): New static variable.
905 (s390_linux_fetch_inferior_registers): Handle guarded-storage
906 control block and guarded-storage broadcast control regsets.
907 (s390_read_description): Detect whether the target has
908 guarded-storage support, return appropriate tdesc.
909 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
910 (features/s390x-gs-linux64.c): Likewise.
911 (struct gdbarch_tdep) <have_gs>: New field.
912 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
913 (s390_gsbc_regset): New variables.
914 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
915 and s390_gsbc_regset, if applicable.
916 (s390_core_read_description): Check whether core file was from a
917 target with guarded-storage support; include appropriate regsets.
918 (s390_gdbarch_init): Add registers for guarded-storage support.
919 (_initialize_s390_tdep): Initialize new target descriptions that
920 include registers for guarded-storage support.
921 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
922 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
923 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
924 (S390_NUM_REGS): Adjust macro definition.
925 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
926 (tdesc_s390x_gs_linux64): New declarations.
927
96235dc1
AA
9282017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
929
930 * features/s390-gs-linux64.xml: New file.
931 * features/s390-gs.xml: New file.
932 * features/s390-gsbc.xml: New file.
933 * features/s390x-gs-linux64.xml: New file.
934 * features/Makefile (WHICH): Add s390-gs-linux64 and
935 s390x-gs-linux64.
936 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
937 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
938 * features/s390-gs-linux64.c: New generated file.
939 * features/s390x-gs-linux64.c: New file.
940 * regformats/s390-gs-linux64.dat: New file.
941 * regformats/s390x-gs-linux64.dat: New file.
942
b4a7c699
TT
9432017-09-23 Tom Tromey <tom@tromey.com>
944
945 * defs.h (make_cleanup_override_quit_handler): Don't declare.
946
c2f97536
TT
9472017-09-22 Tom Tromey <tom@tromey.com>
948
949 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
950 type to scoped_restore_tmpl.
951 <scoped_input_handler>: Initialize m_quit_handler directly.
952
43573013
SDJ
9532017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
954
955 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
956 (cd_command): Likewise. Free "current_directory" before
957 assigning to it.
958 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
959 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
960 * top.c (gdb_dirbuf): Remove global declaration.
961 * top.h (gdb_dirbuf): Likewise.
962
6ec2e0f5
SDJ
9632017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
964
965 * gnulib/aclocal.m4: Regenerate.
966 * gnulib/config.in: Regenerate.
967 * gnulib/configure: Regenerate.
968 * gnulib/import/Makefile.am: Regenerate.
969 * gnulib/import/Makefile.in: Regenerate.
970 * gnulib/import/assure.h: New file.
971 * gnulib/import/at-func.c: Likewise
972 * gnulib/import/chdir-long.c: New file.
973 * gnulib/import/chdir-long.h: New file.
974 * gnulib/import/cloexec.c: New file.
975 * gnulib/import/cloexec.h: New file.
976 * gnulib/import/close.c: New file.
977 * gnulib/import/closedir.c: New file.
978 * gnulib/import/dirent-private.h: New file.
979 * gnulib/import/dup-safer.c: New file.
980 * gnulib/import/dup.c: New file.
981 * gnulib/import/dup2.c: New file.
982 * gnulib/import/error.c: New file.
983 * gnulib/import/error.h: New file.
984 * gnulib/import/exitfail.c: New file.
985 * gnulib/import/exitfail.h: New file.
986 * gnulib/import/fchdir.c: New file.
987 * gnulib/import/fcntl.c: New file.
988 * gnulib/import/fcntl.in.h: New file.
989 * gnulib/import/fd-hook.c: New file.
990 * gnulib/import/fd-hook.h: New file.
991 * gnulib/import/fd-safer.c: New file.
992 * gnulib/import/fdopendir.c: New file.
993 * gnulib/import/filename.h: New file.
994 * gnulib/import/filenamecat-lgpl.c: New file.
995 * gnulib/import/filenamecat.h: New file.
996 * gnulib/import/fstat.c: New file.
997 * gnulib/import/fstatat.c: New file.
998 * gnulib/import/getcwd-lgpl.c: New file.
999 * gnulib/import/getcwd.c: New file.
1000 * gnulib/import/getdtablesize.c: New file.
1001 * gnulib/import/getlogin_r.c: New file.
1002 * gnulib/import/getprogname.c: New file.
1003 * gnulib/import/getprogname.h: New file.
1004 * gnulib/import/gettext.h: New file.
1005 * gnulib/import/glob-libc.h: New file.
1006 * gnulib/import/glob.c: New file.
1007 * gnulib/import/glob.in.h: New file.
1008 * gnulib/import/intprops.h: New file.
1009 * gnulib/import/m4/chdir-long.m4: New file.
1010 * gnulib/import/m4/close.m4: New file.
1011 * gnulib/import/m4/closedir.m4: New file.
1012 * gnulib/import/m4/d-ino.m4: New file.
1013 * gnulib/import/m4/d-type.m4: New file.
1014 * gnulib/import/m4/dup.m4: New file.
1015 * gnulib/import/m4/dup2.m4: New file.
1016 * gnulib/import/m4/error.m4: New file.
1017 * gnulib/import/m4/fchdir.m4: New file.
1018 * gnulib/import/m4/fcntl.m4: New file.
1019 * gnulib/import/m4/fcntl_h.m4: New file.
1020 * gnulib/import/m4/fdopendir.m4: New file.
1021 * gnulib/import/m4/filenamecat.m4: New file.
1022 * gnulib/import/m4/fstat.m4: New file.
1023 * gnulib/import/m4/fstatat.m4: New file.
1024 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
1025 * gnulib/import/m4/getcwd-path-max.m4: New file.
1026 * gnulib/import/m4/getcwd.m4: New file.
1027 * gnulib/import/m4/getdtablesize.m4: New file.
1028 * gnulib/import/m4/getlogin_r.m4: New file.
1029 * gnulib/import/m4/getprogname.m4: New file.
1030 * gnulib/import/m4/glob.m4: New file.
1031 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1032 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1033 * gnulib/import/m4/mempcpy.m4: New file.
1034 * gnulib/import/m4/memrchr.m4: New file.
1035 * gnulib/import/m4/mode_t.m4: New file.
1036 * gnulib/import/m4/msvc-inval.m4: New file.
1037 * gnulib/import/m4/msvc-nothrow.m4: New file.
1038 * gnulib/import/m4/open.m4: New file.
1039 * gnulib/import/m4/openat.m4: New file.
1040 * gnulib/import/m4/opendir.m4: New file.
1041 * gnulib/import/m4/readdir.m4: New file.
1042 * gnulib/import/m4/realloc.m4: New file.
1043 * gnulib/import/m4/rewinddir.m4: New file.
1044 * gnulib/import/m4/save-cwd.m4: New file.
1045 * gnulib/import/m4/strdup.m4: New file.
1046 * gnulib/import/m4/strerror.m4: New file.
1047 * gnulib/import/m4/unistd-safer.m4: New file.
1048 * gnulib/import/mempcpy.c: New file.
1049 * gnulib/import/memrchr.c: New file.
1050 * gnulib/import/msvc-inval.c: New file.
1051 * gnulib/import/msvc-inval.h: New file.
1052 * gnulib/import/msvc-nothrow.c: New file.
1053 * gnulib/import/msvc-nothrow.h: New file.
1054 * gnulib/import/open.c: New file.
1055 * gnulib/import/openat-die.c: New file.
1056 * gnulib/import/openat-priv.h: New file.
1057 * gnulib/import/openat-proc.c: New file.
1058 * gnulib/import/openat.c: New file.
1059 * gnulib/import/openat.h: New file.
1060 * gnulib/import/opendir.c: New file.
1061 * gnulib/import/pipe-safer.c: New file.
1062 * gnulib/import/readdir.c: New file.
1063 * gnulib/import/realloc.c: New file.
1064 * gnulib/import/rewinddir.c: New file.
1065 * gnulib/import/save-cwd.c: New file.
1066 * gnulib/import/save-cwd.h: New file.
1067 * gnulib/import/strdup.c: New file.
1068 * gnulib/import/strerror-override.c: New file.
1069 * gnulib/import/strerror-override.h: New file.
1070 * gnulib/import/strerror.c: New file.
1071 * gnulib/import/unistd--.h: New file.
1072 * gnulib/import/unistd-safer.h: New file.
1073 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1074 "getcwd" and "glob".
1075 * ser-tcp.c: Undefine "close" before redefining it.
1076
432ae719
SM
10772017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1078
1079 * guile/scm-value.c (gdbscm_value_address): Initialize address,
1080 get rid of res_val.
1081
4fa7574e
RO
10822017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1083
1084 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
1085 <sol2,sparc>: Likewise.
1086 <sol2-64,i386>: Likewise.
1087
1088 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
1089 -Wdeprecated-declarations on *-*-solaris*.
1090 * configure: Regenerate.
1091
1092 * procfs.c: Include "nat/inferior.h".
1093 (procfs_info_proc): Fix typo.
1094
f6327dcb
KB
10952017-09-21 Kevin Buettner <kevinb@redhat.com>
1096
1097 * remote.c (vector): Include.
1098 (struct private_thread_info): Add field, thread_handle.
1099 (free_private_thread_info): Deallocate storage associated with
1100 thread handle.
1101 (get_private_info_thread): Initialize `thread_handle' field.
1102 (struct thread_item): Add field, thread_handle.
1103 (clear_threads_listing_context): Deallocate storage associated
1104 with thread handle.
1105 (start_thread): Add support for "handle" attribute.
1106 (thread_attributes): Add "handle".
1107 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
1108 field.
1109 (remote_update_thread_list): Update thread_handle.
1110 (remote_thread_handle_to_thread_info): New function.
1111 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
1112
fbbe5337
KB
11132017-09-21 Kevin Buettner <kevinb@redhat.com>
1114
1115 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
1116 function.
1117 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
1118 * python/python-internal.h (thread_object_type): Declare.
1119
e04ee09e
KB
11202017-09-21 Kevin Buettner <kevinb@redhat.com>
1121
1122 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
1123 (target_thread_handle_to_thread_info): Declare.
1124 * target.c (target_thread_handle_to_thread_info): New function.
1125 * target-delegates.c: Regenerate.
1126 * gdbthread.h (find_thread_by_handle): Declare.
1127 * thread.c (find_thread_by_handle): New function.
1128 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
1129 function.
1130 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
1131
1e5b66ed
SM
11322017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1133
1134 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
1135
ebe48ba0
SM
11362017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1137
1138 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
1139
0a0bf5dc
YQ
11402017-09-21 Yao Qi <yao.qi@linaro.org>
1141
1142 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
1143 to gdb_target_obs.
1144
d1b0a7bf
TT
11452017-09-20 Tom Tromey <tom@tromey.com>
1146
1147 * breakpoint.c (struct counted_command_line): Remove.
1148 (breakpoint_commands): Update.
1149 (alloc_counted_command_line, incref_counted_command_line)
1150 (decref_counted_command_line, do_cleanup_counted_command_line)
1151 (make_cleanup_decref_counted_command_line): Remove.
1152 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
1153 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
1154 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
1155 (save_breakpoints): Update.
1156 * breakpoint.h (counted_command_line): Now a typedef to
1157 shared_ptr.
1158 (struct breakpoint) <commands>: Now a counted_command_line.
1159 (struct bpstats) <command>: Likewise.
1160
48649e1b
TT
11612017-09-20 Tom Tromey <tom@tromey.com>
1162
1163 * breakpoint.c (struct commands_info, do_map_commands_command):
1164 Remove.
1165 (commands_command_1): Update.
1166 (iterate_over_related_breakpoints): Take a function_view.
1167 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
1168 (delete_command): Update.
1169 (map_breakpoint_numbers): Take a function_view.
1170 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
1171 (disable_command): Update.
1172 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
1173 (enable_command): Update.
1174 (struct disp_data, do_enable_breakpoint_disp)
1175 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
1176 (do_map_enable_delete_breakpoint): Remove.
1177 (enable_once_command, enable_count_command, enable_delete_command)
1178 (delete_trace_variable_command): Update.
1179
04afa70c
TT
11802017-09-20 Tom Tromey <tom@tromey.com>
1181
1182 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
1183 (bpstat_clear): Use delete.
1184 (bpstats): New constructors.
1185 (bpstat_copy, bpstat_stop_status): Use new.
1186 (dprintf_after_condition_true): Update.
1187 * breakpoint.h (bpstats::bpstats): Add constructors.
1188 (bpstats::~bpstats): Add destructor.
1189
c83833f4
PA
11902017-09-20 Pedro Alves <palves@redhat.com>
1191
1192 * eval.c (make_params): Delete, refactored as ...
1193 (class fake_method): ... this new type's ctor.
1194 (fake_method::~fake_method): New.
1195 (evaluate_subexp_standard): Use 'fake_method'.
1196
223ffa71
TT
11972017-09-20 Tom Tromey <tom@tromey.com>
1198
1199 * windows-nat.c (get_windows_debug_event, windows_wait)
1200 (do_initial_windows_stuff, windows_attach): Update.
1201 * utils.c (vwarning, internal_vproblem): Update.
1202 (ui_unregister_input_event_handler_cleanup)
1203 (prepare_to_handle_input): Remove.
1204 (class scoped_input_handler): New.
1205 (defaulted_query, prompt_for_continue): Update.
1206 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1207 Update.
1208 * top.c (undo_terminal_modifications_before_exit): Update.
1209 * target/target.h (target_terminal_init, target_terminal_inferior)
1210 (target_terminal_ours): Don't declare.
1211 (class target_terminal): New.
1212 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
1213 (target_terminal_ours_for_output)
1214 (make_cleanup_restore_target_terminal): Don't declare.
1215 (target_terminal_info): Remove.
1216 * target.c (enum terminal_state, terminal_state): Remove.
1217 (target_terminal::terminal_state): Define.
1218 (target_terminal::init): Rename from target_terminal_init.
1219 (target_terminal::inferior): Rename from
1220 target_terminal_inferior.
1221 (target_terminal::ours): Rename from target_terminal_ours.
1222 (target_terminal::ours_for_output): Rename from
1223 target_terminal_ours_for_output.
1224 (target_terminal::info): New method.
1225 (cleanup_restore_target_terminal)
1226 (make_cleanup_restore_target_terminal): Remove.
1227 * solib.c (handle_solib_event): Update.
1228 * remote.c (remote_serial_quit_handler): Update.
1229 (remote_terminal_inferior, remote_wait_as): Update.
1230 * record-full.c (record_full_wait_1): Update.
1231 * nto-procfs.c (procfs_create_inferior): Update.
1232 * nat/fork-inferior.c (startup_inferior): Update.
1233 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1234 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1235 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1236 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1237 (mi_breakpoint_created, mi_breakpoint_deleted)
1238 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
1239 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
1240 (mi_user_selected_context_changed, report_initial_inferior):
1241 Update.
1242 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
1243 (linux_nat_terminal_inferior): Update.
1244 * infrun.c (follow_fork_inferior)
1245 (handle_vfork_child_exec_or_exit, do_target_resume)
1246 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
1247 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
1248 Update.
1249 * inflow.c (child_terminal_init, info_terminal_command): Update.
1250 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
1251 (attach_command): Update.
1252 * infcall.c (call_thread_fsm_should_stop): Update.
1253 * gnu-nat.c (gnu_attach): Update.
1254 * extension.c (struct active_ext_lang_state)
1255 (restore_active_ext_lang): Update.
1256 * exceptions.c (print_flush): Update.
1257 * event-top.c (async_enable_stdin, default_quit_handler): Update.
1258 (struct quit_handler_cleanup_data, restore_quit_handler)
1259 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
1260 Remove.
1261 * cp-support.c (gdb_demangle): Update.
1262 * breakpoint.c (update_inserted_breakpoint_locations)
1263 (insert_breakpoint_locations, handle_jit_event)
1264 (disable_breakpoints_in_unloaded_shlib): Update.
1265 * annotate.c (annotate_breakpoints_invalid)
1266 (annotate_frames_invalid): Update.
1267
013af3fc
TT
12682017-09-20 Tom Tromey <tom@tromey.com>
1269
1270 * main.c (catch_command_errors): Rename from
1271 catch_command_errors_const.
1272 (captured_main_1): Update.
1273
06871ae8
PA
12742017-09-20 Pedro Alves <palves@redhat.com>
1275
1276 * cli/cli-cmds.c (list_command): Use print_sal_location.
1277 (print_sal_location): New function.
1278 (ambiguous_line_spec): Use print_sal_location.
1279 * linespec.c (symbol_to_sal): Record the symbol in the sal.
1280 * symtab.c (find_function_start_sal): Likewise.
1281 * symtab.h (symtab_and_line::symbol): New field.
1282
e5f25bc5
PA
12832017-09-20 Pedro Alves <palves@redhat.com>
1284
1285 * linespec.c (minsym_found): Handle non-text minsyms.
1286 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
1287
1b7fa39e
WT
12882017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1289
1290 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
1291 backslash.
1292
37dd0825
WT
12932017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1294
1295 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
1296 vmovups instead vmovaps.
1297 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
1298
4e5a4f58
JB
12992017-09-19 John Baldwin <jhb@FreeBSD.org>
1300
1301 * NEWS (Changes since GDB 8.0): Add starti.
1302 * infcmd.c (enum run_break): New.
1303 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
1304 case.
1305 (run_command): Use enum run_how.
1306 (start_command): Likewise.
1307 (starti_command): New function.
1308 (RUN_ARGS_HELP): New macro.
1309 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
1310 commands. Add starti command.
1311
aa70c9f1
YQ
13122017-09-19 Yao Qi <yao.qi@linaro.org>
1313
1314 * Makefile.in (monitor.o): Remove the rule.
1315
d6541620
YQ
13162017-09-19 Yao Qi <yao.qi@linaro.org>
1317
1318 * annotate.h (struct annotate_arg_emitter): Use
1319 DISABLE_COPY_AND_ASSIGN.
1320 * common/refcounted-object.h (refcounted_object): Likewise.
1321 * completer.h (struct completion_result): Likewise.
1322 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
1323 * filename-seen-cache.h (filename_seen_cache): Likewise.
1324 * gdbcore.h (thread_section_name): Likewise.
1325 * gdb_regex.h (compiled_regex): Likewise.
1326 * gdbthread.h (scoped_restore_current_thread): Likewise.
1327 * inferior.h (scoped_restore_current_inferior): Likewise.
1328 * jit.c (jit_reader): Likewise.
1329 * linespec.h (struct linespec_result): Likewise.
1330 * mi/mi-parse.h (struct mi_parse): Likewise.
1331 * nat/fork-inferior.c (execv_argv): Likewise.
1332 * progspace.h (scoped_restore_current_program_space): Likewise.
1333 * python/python-internal.h (class gdbpy_enter): Likewise.
1334 * regcache.h (regcache): Likewise.
1335 * target-descriptions.c (struct tdesc_reg): Likewise.
1336 (struct tdesc_type): Likewise.
1337 (struct tdesc_feature): Likewise.
1338 * ui-out.h (ui_out_emit_type): Likewise.
1339
0615127c
SM
13402017-09-18 Simon Marchi <simon.marchi@ericsson.com>
1341
1342 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
1343 label abort_expression.
1344
5e187554
SM
13452017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1346
1347 * common/buffer.c (buffer_xml_printf): Adjust.
1348 * common/xml-utils.c (xml_escape_text): Change return type to
1349 std::string, update code accordingly.
1350 * common/xml-utils.h (xml_escape_text): Change return type to
1351 std::string.
1352 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
1353 * windows-tdep.c (windows_xfer_shared_library): Adjust.
1354 * unittests/xml-utils-selftests.c (test_xml_escape_text):
1355 Adjust.
1356
c3d7b541
SM
13572017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1358
1359 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
1360 (SUBDIR_UNITTESTS_OBS): Add new object file.
1361 * unittests/xml-utils-selftests.c: New file.
1362
1526853e
SM
13632017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1364
1365 * common/selftest.h (selftest): New struct/interface.
1366 (register_test): Add name parameter, add new overload.
1367 (run_tests): Add filter parameter.
1368 (for_each_selftest_ftype): New typedef.
1369 (for_each_selftest): New declaration.
1370 * common/selftest.c (tests): Change type to
1371 map<string, unique_ptr<selftest>>.
1372 (simple_selftest): New struct.
1373 (register_test): New function.
1374 (register_test): Add name parameter and use it.
1375 (run_tests): Add filter parameter and use it. Add prints.
1376 Adjust to vector -> map change.
1377 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
1378 registering selftests.
1379 * arm-tdep.c (_initialize_arm_tdep): Likewise.
1380 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
1381 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
1382 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
1383 * findvar.c (_initialize_findvar): Likewise.
1384 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
1385 * maint.c (maintenance_selftest): Update call to run_tests.
1386 (maintenance_info_selftests): New function.
1387 (_initialize_maint_cmds): Register "maintenance info selftests"
1388 command. Update "maintenance selftest" doc.
1389 * regcache.c (_initialize_regcache): Add names when registering
1390 selftests.
1391 * rust-exp.y (_initialize_rust_exp): Likewise.
1392 * selftest-arch.c (gdbarch_selftest): New struct.
1393 (gdbarch_tests): Remove.
1394 (register_test_foreach_arch): Add name parameter. Call
1395 register_test.
1396 (tests_with_arch): Remove, move most content to
1397 gdbarch_selftest::operator().
1398 (_initialize_selftests_foreach_arch): Remove.
1399 * selftest-arch.h (register_test_foreach_arch): Add name
1400 parameter.
1401 (run_tests_with_arch): New declaration.
1402 * utils-selftests.c (_initialize_utils_selftests): Add names
1403 when registering selftests.
1404 * utils.c (_initialize_utils): Likewise.
1405 * unittests/array-view-selftests.c
1406 (_initialize_array_view_selftests): Likewise.
1407 * unittests/environ-selftests.c (_initialize_environ_selftests):
1408 Likewise.
1409 * unittests/function-view-selftests.c
1410 (_initialize_function_view_selftests): Likewise.
1411 * unittests/offset-type-selftests.c
1412 (_initialize_offset_type_selftests): Likewise.
1413 * unittests/optional-selftests.c
1414 (_initialize_optional_selftests): Likewise.
1415 * unittests/scoped_restore-selftests.c
1416 (_initialize_scoped_restore_selftests): Likewise.
1417 * NEWS: Document "maintenance selftest" and "maint info
1418 selftests".
1419
5846367a
SM
14202017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1421
1422 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
1423 scoped_restore.
1424
bd77e8ff
SM
14252017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1426
1427 * mi/mi-main.c (mi_load_progress): Make uiout variable
1428 a unique_ptr.
1429
26a67918
PA
14302017-09-15 Pedro Alves <palves@redhat.com>
1431
1432 * compile/compile-c-types.c (convert_enum, convert_int)
1433 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
1434
3f8a7804
SM
14352017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1436
1437 * dwarf2read.c (copy_string): Remove.
1438 (parse_macro_definition): Replace copy_string with savestring.
1439
8d200706
YQ
14402017-09-15 Yao Qi <yao.qi@linaro.org>
1441
1442 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
1443 gdb_target_obs.
1444 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
1445 Likewise.
1446 (i[34567]86-*-linux*): Likewise.
1447
d185219d
SM
14482017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1449
1450 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1451 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1452 <stack>: Change type to std::vector.
1453 <stack_len, stack_allocated>: Remove.
1454 <grow_stack>: Remove.
1455 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1456 (dwarf_expr_context::~dwarf_expr_context): Remove.
1457 (dwarf_expr_context::grow_stack): Remove.
1458 (dwarf_expr_context::push): Adjust.
1459 (dwarf_expr_context::pop): Adjust.
1460 (dwarf_expr_context::fetch): Adjust.
1461 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1462 (dwarf_expr_context::stack_empty_p): Adjust.
1463 (dwarf_expr_context::execute_stack_op): Adjust.
1464
eccd80d6
SM
14652017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1466
1467 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1468 return type to bool.
1469 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1470
69009882
SM
14712017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1472
1473 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1474 Change type to bool.
1475 (dwarf_stack_value) <in_stack_memory>: Likewise.
1476 (dwarf_expr_context) <push_address>: Change parameter type to
1477 bool.
1478 <fetch_in_stack_memory>: Change return type to bool.
1479 <push>: Change parameter type to bool.
1480 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1481 to bool.
1482 (dwarf_expr_context::push_address): Likewise.
1483 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1484 to bool.
1485 (dwarf_expr_context::execute_stack_op): Adjust.
1486 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1487
1e467161
SM
14882017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1489
1490 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1491 (struct dwarf_expr_context) <n_pieces>: Remove.
1492 <pieces>: Change type to std::vector.
1493 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1494 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1495 pieces.
1496 (dwarf_expr_context::add_piece): Adjust.
1497 * dwarf2loc.c (struct piece_closure): Initialize fields.
1498 <n_pieces>: Remove.
1499 <pieces>: Change type to std::vector.
1500 (allocate_piece_closure): Adjust, change parameter to
1501 std::vector rvalue and std::move it to piece_closure.
1502 (rw_pieced_value): Adjust.
1503 (check_pieced_synthetic_pointer): Adjust.
1504 (indirect_synthetic_pointer): Adjust.
1505 (coerce_pieced_ref): Adjust.
1506 (free_pieced_value_closure): Adjust. Use delete to free
1507 piece_closure.
1508 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1509 to allocate_piece_closure.
1510 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1511
0782db84
SM
15122017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1513
1514 * probe.h (probe_ops_cp): Remove typedef.
1515 (DEF_VEC_P (probe_ops_cp)): Remove.
1516 (all_probe_ops): Change type to std::vector.
1517 * probe.c (info_probes_for_ops): Adjust to vector change.
1518 (probe_linespec_to_ops): Likewise.
1519 (all_probe_ops): Change type to std::vector.
1520 (_initialize_probe): Adjust to vector change.
1521 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1522 * elfread.c (elf_get_probes): Likewise.
1523 * stap-probe.c (_initialize_stap_probe): Likewise.
1524
1eac6bea
SM
15252017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1526
1527 * probe.h (struct bound_probe): Define constructors.
1528 * probe.c (bound_probe_s): Remove typedef.
1529 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1530 (collect_probes): Change return type to std::vector, remove
1531 cleanup.
1532 (compare_probes): Return bool, change parameter type. Change
1533 semantic to "less than".
1534 (gen_ui_out_table_header_info): Change parameter to std::vector
1535 and update.
1536 (exists_probe_with_pops): Likewise.
1537 (info_probes_for_ops): Update to std::vector change.
1538 (enable_probes_command): Likewise.
1539 (disable_probes_command): Likewise.
1540
aaa63a31
SM
15412017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1542
1543 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1544 vec to std::vector.
1545 * probe.c (parse_probes_in_pspace): Update.
1546 (find_probes_in_objfile): Update.
1547 (find_probe_by_pc): Update.
1548 (collect_probes): Update.
1549 (probe_any_get_probes): Update.
1550 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1551 return type to reference to std::vector.
1552 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1553 std::vector and update.
1554 (dtrace_process_dof): Likewise.
1555 (dtrace_get_probes): Likewise.
1556 * elfread.c (elf_get_probes): Change return type to std::vector,
1557 store an std::vector in bfd_data.
1558 (probe_key_free): Update to std::vector.
1559 * stap-probe.c (handle_stap_probe): Change parameter to
1560 std::vector and update.
1561 (stap_get_probes): Likewise.
1562 * symfile-debug.c (debug_sym_get_probes): Change return type to
1563 std::vector and update.
1564
cb85b21b
TT
15652017-09-11 Tom Tromey <tom@tromey.com>
1566
1567 * breakpoint.c (program_breakpoint_here_p): Update.
1568 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1569 from make_show_memory_breakpoints_cleanup. Return a
1570 scoped_restore_tmpl<int>.
1571 (restore_show_memory_breakpoints): Remove.
1572 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1573 * mem-break.c (memory_validate_breakpoint): Update.
1574 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1575 (ia64_memory_remove_breakpoint): Update.
1576 (ia64_breakpoint_from_pc): Update.
1577 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1578 from make_show_memory_breakpoints_cleanup.
1579
8fbc99ef
TT
15802017-09-11 Tom Tromey <tom@tromey.com>
1581
1582 * d-namespace.c (d_lookup_symbol): Use std::string.
1583 (find_symbol_in_baseclass): Likewise.
1584
50feb4bd
TT
15852017-09-11 Tom Tromey <tom@tromey.com>
1586
1587 * ctf.c (ctf_start): Use std::string.
1588
c6dc63a1
TT
15892017-09-11 Tom Tromey <tom@tromey.com>
1590
1591 * ada-lang.c (is_known_support_routine): Update.
1592 (ada_unhandled_exception_name_addr_from_raise): Update.
1593 * guile/scm-frame.c (gdbscm_frame_name): Update.
1594 * python/py-frame.c (frapy_name): Update.
1595 (frapy_function): Update.
1596 * stack.h (find_frame_funname): Update.
1597 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1598 (print_frame): Update.
1599
d6b9b80f
TT
16002017-09-11 Tom Tromey <tom@tromey.com>
1601
1602 * findcmd.c (put_bits): Take a gdb::byte_vector.
1603 (parse_find_args): Return gdb::byte_vector. "args" now const.
1604 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1605 cleanups.
1606 (find_command): Update.
1607
a9921622
TT
16082017-09-11 Tom Tromey <tom@tromey.com>
1609
1610 * cli/cli-script.c (class scoped_restore_hook_in): New.
1611 (clear_hook_in_cleanup): Remove.
1612 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1613 scoped_restore_hook_in.
1614
be0d7abb
TT
16152017-09-11 Tom Tromey <tom@tromey.com>
1616
1617 * cli/cli-script.c (restore_interp): Remove.
1618 (read_command_lines): Use scoped_restore_interp.
1619 * interps.c (scoped_restore_interp::set_temp): Rename from
1620 interp_set_temp.
1621 * interps.h (class scoped_restore_interp): New.
1622 (interp_set_temp): Remove.
1623
00f675ff
TT
16242017-09-11 Tom Tromey <tom@tromey.com>
1625
1626 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1627 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1628 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1629 scoped_restore.
1630 (mi_cmd_break_insert_1): Update.
1631 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1632 scoped_restore.
1633
cb791d59
TT
16342017-09-11 Tom Tromey <tom@tromey.com>
1635
1636 * demangle.c (demangle_command): Update.
1637 * breakpoint.c (disable_command): Update.
1638 (enable_command): Update.
1639 (find_location_by_number): Make "number" const. Use
1640 get_number_trailer.
1641 * cli/cli-utils.c (extract_arg): Return std::string.
1642 * probe.c (parse_probe_linespec): Update. Change types.
1643 (collect_probes): Take string arguments.
1644 (parse_probe_linespec): Likewise.
1645 (info_probes_for_ops): Update.
1646 (enable_probes_command): Update.
1647 (disable_probes_command): Update.
1648 * break-catch-sig.c (catch_signal_split_args): Update.
1649 * mi/mi-parse.c (mi_parse): Update.
1650
2039bd9f
TT
16512017-09-11 Tom Tromey <tom@tromey.com>
1652
1653 * language.h (language_enum): Make argument const.
1654 * language.c (language_enum): Make argument const.
1655
f1735a53
TT
16562017-09-11 Tom Tromey <tom@tromey.com>
1657
1658 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1659 as function.
1660 (skip_to_space): Rename from skip_to_space_const.
1661 * common/common-utils.c (skip_to_space): New function.
1662 (skip_to_space): Rename from skip_to_space_const.
1663 * cli/cli-utils.h (get_number): Rename from get_number_const.
1664 (extract_arg): Rename from extract_arg_const.
1665 * cli/cli-utils.c (get_number): Rename from get_number_const.
1666 (extract_arg): Rename from extract_arg_const.
1667 (number_or_range_parser::get_number): Use ::get_number.
1668 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1669 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1670 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1671 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1672 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1673 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1674 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1675 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1676
7d221d74
TT
16772017-09-11 Tom Tromey <tom@tromey.com>
1678
1679 * python/python.c (do_start_initialization): Use
1680 py-event-types.def to initialize types.
1681 Define all object type structures.
1682 * python/python-internal.h: Don't declare event initialization
1683 functions.
1684 * python/py-threadevent.c (thread_event_object_type): Don't
1685 define.
1686 * python/py-stopevent.c (stop_event_object_type): Don't define.
1687 * python/py-signalevent.c (signal_event_object_type): Don't
1688 declare or define.
1689 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1690 (clear_objfiles_event_object_type): Don't declare or define.
1691 * python/py-infevents.c (inferior_call_pre_event_object_type)
1692 (inferior_call_post_event_object_type)
1693 (register_changed_event_object_type)
1694 (memory_changed_event_object_type): Don't declare or define.
1695 * python/py-inferior.c (new_thread_event_object_type)
1696 (new_inferior_event_object_type)
1697 (inferior_deleted_event_object_type): Don't declare or define.
1698 * python/py-exitedevent.c (exited_event_object_type): Don't
1699 declare or define.
1700 * python/py-evts.c (gdbpy_initialize_py_events): Use
1701 py-all-events.def.
1702 * python/py-events.h (thread_event_object_type): Don't declare.
1703 (events_object): Use py-all-events.def.
1704 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1705 py-event-types.def.
1706 * python/py-event-types.def: New file.
1707 * python/py-continueevent.c (create_continue_event_object): Don't
1708 declare or define.
1709 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1710 declare or define.
1711 * python/py-all-events.def: New file.
1712
35c61a1d
TT
17132017-09-11 Tom Tromey <tom@tromey.com>
1714
1715 * python/py-threadevent.c (create_thread_event_object): Return
1716 gdbpy_ref.
1717 * python/py-stopevent.h (create_stop_event_object)
1718 (create_breakpoint_event_object, create_signal_event_object):
1719 Update.
1720 * python/py-stopevent.c (create_stop_event_object): Return
1721 gdbpy_ref.
1722 (emit_stop_event): Update.
1723 * python/py-signalevent.c (create_signal_event_object): Return
1724 gdbpy_ref.
1725 * python/py-infevents.c (create_inferior_call_event_object):
1726 Update.
1727 * python/py-event.h (create_event_object)
1728 (create_thread_event_object): Update.
1729 * python/py-event.c (create_event_object): Return gdbpy_ref.
1730 * python/py-continueevent.c: Return gdbpy_ref.
1731 * python/py-bpevent.c (create_breakpoint_event_object): Return
1732 gdbpy_ref.
1733
7c96f8c1
TT
17342017-09-11 Tom Tromey <tom@tromey.com>
1735
1736 PR python/15622:
1737 * NEWS: Add entry.
1738 * python/python.c (do_start_initialization): Initialize new event
1739 types.
1740 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1741 (gdbpy_initialize_inferior_deleted_event)
1742 (gdbpy_initialize_new_thread_event): Declare.
1743 * python/py-threadevent.c (create_thread_event_object): Add option
1744 "thread" parameter.
1745 * python/py-inferior.c (new_thread_event_object_type)
1746 (new_inferior_event_object_type)
1747 (inferior_deleted_event_object_type): Declare.
1748 (python_new_inferior, python_inferior_deleted): New functions.
1749 (add_thread_object): Emit new_thread event.
1750 (gdbpy_initialize_inferior): Attach new functions to corresponding
1751 observers.
1752 (new_thread, new_inferior, inferior_deleted): Define new event
1753 types.
1754 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1755 registries.
1756 * python/py-events.h (events_object) <new_inferior,
1757 inferior_deleted, new_thread>: New fields.
1758 * python/py-event.h (create_thread_event_breakpoint): Add optional
1759 "thread" parameter.
1760
72542b8e
AB
17612017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1762
1763 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1764 check current_ui instead.
1765 (internal_vproblem): Likewise.
1766
0d64823e
SM
17672017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1768
1769 * thread.c (print_thread_info_1): Remove unnecessary calls to
1770 uiout->is_mi_like_p.
1771
eb1e02fd
TT
17722017-09-09 Tom Tromey <tom@tromey.com>
1773
1774 * namespace.h (add_using_directive): Update.
1775 * namespace.c (add_using_directive): Change type of excludes to
1776 std::vector.
1777 * dwarf2read.c (read_import_statement): Use std::vector.
1778 (read_namespace): Update.
1779 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1780
0fc21fd8
TT
17812017-09-09 Tom Tromey <tom@tromey.com>
1782
1783 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1784
49663d05
TT
17852017-09-09 Tom Tromey <tom@tromey.com>
1786
1787 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1788
0b868b60
TT
17892017-09-09 Tom Tromey <tom@tromey.com>
1790
1791 * stack.c (func_command): Use gdb::def_vector.
1792
c0470d48
TT
17932017-09-09 Tom Tromey <tom@tromey.com>
1794
1795 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1796 ui_out_emit_list, ui_out_emit_tuple.
1797 (mi_cmd_var_update): Likewise.
1798
ca5909c7
TT
17992017-09-09 Tom Tromey <tom@tromey.com>
1800
1801 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1802 ui_out_redirect_pop.
1803 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1804 ui_out_redirect_pop.
1805 * utils.c (do_ui_out_redirect_pop)
1806 (make_cleanup_ui_out_redirect_pop): Remove.
1807 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1808 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1809 * ui-out.h (ui_out_redirect_pop): New class.
1810
e6a2252a
TT
18112017-09-09 Tom Tromey <tom@tromey.com>
1812
1813 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1814 (list_available_thread_groups, mi_cmd_list_thread_groups)
1815 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1816 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1817 Likewise.
1818
393702cd
TT
18192017-09-09 Tom Tromey <tom@tromey.com>
1820
1821 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1822 ui_out_emit_tuple.
1823
76f9c9cf
TT
18242017-09-09 Tom Tromey <tom@tromey.com>
1825
1826 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1827 * stack.c (print_frame): Use ui_out_emit_tuple.
1828 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1829 (info_spu_mailbox_command, info_spu_dma_command)
1830 (info_spu_proxydma_command): Likewise.
1831 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1832 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1833 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1834 ui_out_emit_tuple.
1835 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1836
dc9fe180
TT
18372017-09-09 Tom Tromey <tom@tromey.com>
1838
1839 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1840 (class ui_out_emit_table): Update comment.
1841 * ui-out.c (do_cleanup_table_end)
1842 (make_cleanup_ui_out_table_begin_end): Remove.
1843 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1844 (info_spu_dma_cmdlist): Likewise.
1845 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1846 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1847 ui_out_emit_table.
1848
f8cc3da6
TT
18492017-09-09 Tom Tromey <tom@tromey.com>
1850
1851 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1852 ui_out_emit_list, gdb::optional.
1853
481695ed
JB
18542017-09-09 John Baldwin <jhb@FreeBSD.org>
1855
1856 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1857 prototype.
1858 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1859 prototype.
1860 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1861 prototype.
1862 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1863 * ada-exp.y: Remove _initialize_ada_exp prototype.
1864 * ada-lang.c: Remove _initialize_ada_language prototype.
1865 * ada-tasks.c: Remove _initialize_tasks prototype.
1866 * addrmap.c: Remove _initialize_addrmap prototype.
1867 * agent.c: Remove _initialize_agent prototype.
1868 * aix-thread.c: Remove _initialize_aix_thread prototype.
1869 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1870 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1871 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1872 prototype.
1873 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1874 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1875 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1876 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1877 prototype.
1878 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1879 prototype.
1880 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1881 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1882 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1883 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1884 prototype.
1885 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1886 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1887 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1888 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1889 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1890 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1891 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1892 prototype.
1893 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1894 prototype.
1895 * annotate.c: Remove _initialize_annotate prototype.
1896 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1897 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1898 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1899 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1900 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1901 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1902 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1903 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1904 prototype.
1905 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1906 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1907 * auto-load.c: Remove _initialize_auto_load prototype.
1908 * auxv.c: Remove _initialize_auxv prototype.
1909 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1910 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1911 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1912 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1913 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1914 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1915 prototype.
1916 * break-catch-throw.c: Remove _initialize_break_catch_throw
1917 prototype.
1918 * breakpoint.c: Remove _initialize_breakpoint prototype.
1919 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1920 * btrace.c: Remove _initialize_btrace prototype.
1921 * charset.c: Remove _initialize_charset prototype.
1922 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1923 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1924 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1925 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1926 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1927 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1928 * coffread.c: Remove _initialize_coffread prototype.
1929 * compile/compile.c: Remove _initialize_compile prototype.
1930 * complaints.c: Remove _initialize_complaints prototype.
1931 * completer.c: Remove _initialize_completer prototype.
1932 * copying.awk: Remove _initialize_copying prototype.
1933 * copying.c: Regenerate.
1934 * core-regset.c: Remove _initialize_core_regset prototype.
1935 * corefile.c: Remove _initialize_core prototype.
1936 * corelow.c: Remove _initialize_corelow prototype.
1937 * cp-abi.c: Remove _initialize_cp_abi prototype.
1938 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1939 * cp-support.c: Remove _initialize_cp_support prototype.
1940 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1941 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1942 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1943 * ctf.c: Remove _initialize_ctf prototype.
1944 * d-lang.c: Remove _initialize_d_language prototype.
1945 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1946 prototype.
1947 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1948 * dbxread.c: Remove _initialize_dbxread prototype.
1949 * dcache.c: Remove _initialize_dcache prototype.
1950 * demangle.c: Remove _initialize_demangler prototype.
1951 * disasm-selftests.c: Remove _initialize_disasm_selftests
1952 prototype.
1953 * disasm.c: Remove _initialize_disasm prototype.
1954 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1955 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1956 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1957 prototype.
1958 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1959 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1960 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1961 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1962 * elfread.c: Remove _initialize_elfread prototype.
1963 * exec.c: Remove _initialize_exec prototype.
1964 * extension.c: Remove _initialize_extension prototype.
1965 * f-lang.c: Remove _initialize_f_language prototype.
1966 * f-valprint.c: Remove _initialize_f_valprint prototype.
1967 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1968 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1969 * filesystem.c: Remove _initialize_filesystem prototype.
1970 * findcmd.c: Remove _initialize_mem_search prototype.
1971 * fork-child.c: Remove _initialize_fork_child prototype.
1972 * frame-base.c: Remove _initialize_frame_base prototype.
1973 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1974 * frame.c: Remove _initialize_frame prototype.
1975 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1976 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1977 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1978 * gcore.c: Remove _initialize_gcore prototype.
1979 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1980 * gdbarch.c: Regenerate.
1981 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1982 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1983 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1984 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1985 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1986 * go-lang.c: Remove _initialize_go_language prototype.
1987 * go32-nat.c: Remove _initialize_go32_nat prototype.
1988 * guile/guile.c: Remove _initialize_guile prototype.
1989 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1990 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1991 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1992 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1993 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1994 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1995 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1996 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1997 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1998 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1999 prototype.
2000 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
2001 prototype.
2002 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
2003 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
2004 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
2005 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
2006 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
2007 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
2008 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
2009 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
2010 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
2011 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
2012 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
2013 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
2014 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
2015 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2016 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
2017 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
2018 prototype.
2019 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
2020 prototype.
2021 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
2022 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
2023 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
2024 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
2025 * infcall.c: Remove _initialize_infcall prototype.
2026 * infcmd.c: Remove _initialize_infcmd prototype.
2027 * inferior.c: Remove _initialize_inferiors prototype.
2028 * inflow.c: Remove _initialize_inflow prototype.
2029 * infrun.c: Remove _initialize_infrun prototype.
2030 * interps.c: Remove _initialize_interpreter prototype.
2031 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
2032 * jit.c: Remove _initialize_jit prototype.
2033 * language.c: Remove _initialize_language prototype.
2034 * linux-fork.c: Remove _initialize_linux_fork prototype.
2035 * linux-nat.c: Remove _initialize_linux_nat prototype.
2036 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
2037 * linux-thread-db.c: Remove _initialize_thread_db prototype.
2038 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
2039 * m2-lang.c: Remove _initialize_m2_language prototype.
2040 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
2041 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
2042 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
2043 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
2044 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
2045 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2046 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2047 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
2048 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
2049 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
2050 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2051 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2052 * machoread.c: Remove _initialize_machoread prototype.
2053 * macrocmd.c: Remove _initialize_macrocmd prototype.
2054 * macroscope.c: Remove _initialize_macroscope prototype.
2055 * maint.c: Remove _initialize_maint_cmds prototype.
2056 * mdebugread.c: Remove _initialize_mdebugread prototype.
2057 * memattr.c: Remove _initialize_mem prototype.
2058 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
2059 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
2060 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
2061 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
2062 * mi/mi-main.c: Remove _initialize_mi_main prototype.
2063 * microblaze-linux-tdep.c: Remove
2064 _initialize_microblaze_linux_tdep prototype.
2065 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
2066 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
2067 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
2068 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
2069 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
2070 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
2071 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
2072 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
2073 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
2074 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
2075 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
2076 prototype.
2077 * mipsread.c: Remove _initialize_mipsread prototype.
2078 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
2079 prototype.
2080 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
2081 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
2082 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
2083 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
2084 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
2085 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
2086 prototype.
2087 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
2088 * nto-procfs.c: Remove _initialize_procfs prototype.
2089 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
2090 * objc-lang.c: Remove _initialize_objc_language prototype.
2091 * objfiles.c: Remove _initialize_objfiles prototype.
2092 * observer.c: Remove observer_test_first_notification_function,
2093 observer_test_second_notification_function,
2094 observer_test_third_notification_function, and
2095 _initialize_observer prototypes.
2096 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
2097 * osabi.c: Remove _initialize_gdb_osabi prototype.
2098 * osdata.c: Remove _initialize_osdata prototype.
2099 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
2100 * parse.c: Remove _initialize_parse prototype.
2101 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
2102 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
2103 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
2104 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
2105 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
2106 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
2107 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
2108 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
2109 * printcmd.c: Remove _initialize_printcmd prototype.
2110 * probe.c: Remove _initialize_probe prototype.
2111 * proc-api.c: Remove _initialize_proc_api prototype.
2112 * proc-events.c: Remove _initialize_proc_events prototype.
2113 * proc-service.c: Remove _initialize_proc_service prototype.
2114 * procfs.c: Remove _initialize_procfs prototype.
2115 * psymtab.c: Remove _initialize_psymtab prototype.
2116 * python/python.c: Remove _initialize_python prototype.
2117 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
2118 * record-btrace.c: Remove _initialize_record_btrace prototype.
2119 * record-full.c: Remove _initialize_record_full prototype.
2120 * record.c: Remove _initialize_record prototype.
2121 * regcache.c: Remove _initialize_regcache prototype.
2122 * reggroups.c: Remove _initialize_reggroup prototype.
2123 * remote-notif.c: Remove _initialize_notif prototype.
2124 * remote-sim.c: Remove _initialize_remote_sim prototype.
2125 * remote.c: Remove _initialize_remote prototype.
2126 * reverse.c: Remove _initialize_reverse prototype.
2127 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
2128 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
2129 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
2130 prototype.
2131 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
2132 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
2133 * rust-exp.y: Remove _initialize_rust_exp prototype.
2134 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
2135 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
2136 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
2137 * score-tdep.c: Remove _initialize_score_tdep prototype.
2138 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
2139 prototype.
2140 * ser-go32.c: Remove _initialize_ser_dos prototype.
2141 * ser-mingw.c: Remove _initialize_ser_windows prototype.
2142 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
2143 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
2144 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
2145 * serial.c: Remove _initialize_serial prototype.
2146 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
2147 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
2148 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
2149 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
2150 * skip.c: Remove _initialize_step_skip prototype.
2151 * sol-thread.c: Remove _initialize_sol_thread prototype.
2152 * solib-aix.c: Remove _initialize_solib_aix prototype.
2153 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
2154 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
2155 * solib-frv.c: Remove _initialize_frv_solib prototype.
2156 * solib-spu.c: Remove _initialize_spu_solib prototype.
2157 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
2158 * solib-target.c: Remove _initialize_solib_target prototype.
2159 * solib.c: Remove _initialize_solib prototype.
2160 * source.c: Remove _initialize_source prototype.
2161 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
2162 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
2163 prototype.
2164 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
2165 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
2166 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
2167 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
2168 prototype.
2169 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
2170 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
2171 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
2172 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
2173 prototype.
2174 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
2175 prototype.
2176 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
2177 prototype.
2178 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
2179 prototype.
2180 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
2181 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
2182 prototype.
2183 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
2184 prototype.
2185 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
2186 prototype.
2187 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
2188 prototype.
2189 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
2190 prototype.
2191 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
2192 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
2193 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
2194 * stabsread.c: Remove _initialize_stabsread prototype.
2195 * stack.c: Remove _initialize_stack prototype.
2196 * stap-probe.c: Remove _initialize_stap_probe prototype.
2197 * std-regs.c: Remove _initialize_frame_reg prototype.
2198 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
2199 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
2200 * symfile.c: Remove _initialize_symfile prototype.
2201 * symmisc.c: Remove _initialize_symmisc prototype.
2202 * symtab.c: Remove _initialize_symtab prototype.
2203 * target-dcache.c: Remove _initialize_target_dcache prototype.
2204 * target-descriptions.c: Remove _initialize_target_descriptions
2205 prototype.
2206 * thread.c: Remove _initialize_thread prototype.
2207 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
2208 prototype.
2209 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
2210 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
2211 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
2212 prototype.
2213 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
2214 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
2215 * tracefile.c: Remove _initialize_tracefile prototype.
2216 * tracepoint.c: Remove _initialize_tracepoint prototype.
2217 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
2218 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
2219 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
2220 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
2221 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
2222 * tui/tui-win.c: Remove _initialize_tui_win prototype.
2223 * tui/tui.c: Remove _initialize_tui prototype.
2224 * typeprint.c: Remove _initialize_typeprint prototype.
2225 * user-regs.c: Remove _initialize_user_regs prototype.
2226 * utils.c: Remove _initialize_utils prototype.
2227 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
2228 * valarith.c: Remove _initialize_valarith prototype.
2229 * valops.c: Remove _initialize_valops prototype.
2230 * valprint.c: Remove _initialize_valprint prototype.
2231 * value.c: Remove _initialize_values prototype.
2232 * varobj.c: Remove _initialize_varobj prototype.
2233 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
2234 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
2235 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
2236 * windows-nat.c: Remove _initialize_windows_nat,
2237 _initialize_check_for_gdb_ini, and _initialize_loadable
2238 prototypes.
2239 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
2240 * xcoffread.c: Remove _initialize_xcoffread prototype.
2241 * xml-support.c: Remove _initialize_xml_support prototype.
2242 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
2243 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
2244 prototype.
2245 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
2246 prototype.
2247 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
2248
a611b5cb
KS
22492017-09-08 Keith Seitz <keiths@redhat.com>
2250
2251 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
2252 field.
2253
469412dd
CW
22542017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
2255
2256 * f-valprint.c (f_val_print): Remove check for one byte
2257 sized integers. Remove printing of character type.
2258
a5ad232b
FP
22592017-09-08 Frank Penczek <frank.penczek@intel.com>
2260 Christoph Weinmann <christoph.t.weinmann@intel.com>
2261 Bernhard Heckel <bernhard.heckel@intel.com>
2262
2263 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
2264 to maintain proper indentation when printing pointers/refs.
2265
e5014227
JB
22662017-09-07 Joel Brobecker <brobecker@adacore.com>
2267
2268 GDB 8.0.1 released.
2269
63c99141
JB
22702017-09-07 Joel Brobecker <brobecker@adacore.com>
2271
2272 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
2273
69c1e056
TT
22742017-09-05 Tom Tromey <tom@tromey.com>
2275
2276 * parse.c (funcall_chain): Now a std::vector.
2277 (start_arglist, end_arglist): Simplify.
2278 (free_funcalls): Remove.
2279 (parse_exp_in_context_1): Remove cleanup.
2280
fef704bf
TT
22812017-09-05 Tom Tromey <tom@tromey.com>
2282
2283 * go-exp.y (go_parse): Don't create a cleanup.
2284
5613c585
TT
22852017-09-05 Tom Tromey <tom@tromey.com>
2286
2287 * d-exp.y (PrimaryExpression): Use std::string.
2288 (d_parse): Don't create a cleanup.
2289
eae49211
TT
22902017-09-05 Tom Tromey <tom@tromey.com>
2291
2292 * utils.c (do_clear_parser_state): Remove.
2293 (make_cleanup_clear_parser_state): Remove.
2294 * p-exp.y (pascal_parse): Use scoped_restore.
2295 * m2-exp.y (m2_parse): Use scoped_restore.
2296 * f-exp.y (f_parse): Use scoped_restore.
2297 * d-exp.y (d_parse): Use scoped_restore.
2298 * c-exp.y (c_parse): Use scoped_restore.
2299 * ada-exp.y (ada_parse): Use scoped_restore.
2300 * utils.h (make_cleanup_clear_parser_state): Remove.
2301
73b9be8b
KS
23022017-09-06 Keith Seitz <keiths@redhat.com>
2303
2304 * dwarf2read.c (dw2_linkage_name_attr): New function.
2305 (dw2_linkage_name): New function.
2306 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
2307 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
2308 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
2309
a102602b
KR
23102017-09-06 Kamil Rytarowski <n54@gmx.com>
2311
2312 * config/djgpp/djconfig.sh: Correct shell portability issue.
2313
28ad437d
KR
23142017-09-06 Kamil Rytarowski <n54@gmx.com>
2315
2316 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
2317
351787dd
JB
23182017-09-06 John Baldwin <jhb@FreeBSD.org>
2319
2320 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2321 * NEWS: Mention new FreeBSD/mips native configuration.
2322 * configure.host: Add aarch64*-*-freebsd*.
2323 * configure.nat: Likewise.
2324 * aarch64-fbsd-nat.c: New file.
2325
c0f84956
JB
23262017-09-06 John Baldwin <jhb@FreeBSD.org>
2327
2328 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
2329 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
2330 * NEWS: Mention new FreeBSD/aarch64 target.
2331 * configure.tgt: Add aarch64*-*-freebsd*.
2332 * aarch64-fbsd-tdep.c: New file.
2333 * aarch64-fbsd-tdep.h: New file.
2334
7610297a
KR
23352017-09-06 Kamil Rytarowski <n54@gmx.com>
2336
2337 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
2338
fbd1b771
JK
23392017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2340
2341 * parse.c (find_minsym_type_and_address): Don't relocate addresses
2342 of TLS symbols.
2343
5ca79eae
PW
23442017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2345
2346 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
2347 call.
2348
bf93d7ba
SM
23492017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2350
2351 * infrun.c (follow_exec): Call add_thread after
2352 target_find_description.
2353
1bb7c059
SM
23542017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2355
2356 * infrun.c (handle_inferior_event_1): When exec'ing, read
2357 stop_pc after follow_exec.
2358
fc809827
SM
23592017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2360
2361 * remote.c (process_g_packet): Update error message.
2362
d2fcdd85
YQ
23632017-09-05 Yao Qi <yao.qi@linaro.org>
2364
2365 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
2366 targets.
2367
e69570ee
PA
23682017-09-05 Pedro Alves <palves@redhat.com>
2369
2370 * eval.c (eval_call, evaluate_funcall): New functions, factored
2371 out from ...
2372 (evaluate_subexp_standard): ... this.
2373
22916b07
YQ
23742017-09-05 Yao Qi <yao.qi@linaro.org>
2375
2376 * amd64-tdep.c (amd64_target_description): Create target
2377 descriptions.
2378 (_initialize_amd64_tdep): Don't call functions
2379 initialize_tdesc_amd64_*. Add self tests.
2380 * arch/amd64.c (amd64_create_target_description): Add parameter
2381 is_linux. Call set_tdesc_osabi if is_linux is true.
2382 * arch/amd64.h (amd64_create_target_description): Update the
2383 declaration.
2384 * arch/i386.c (i386_create_target_description): Add parameter
2385 is_linux. Call set_tdesc_osabi if is_linux is true.
2386 * arch/i386.h (i386_create_target_description): Update
2387 declaration.
2388 * configure.tgt: Add i386.o to gdb_target_obs.
2389 * features/Makefile (XMLTOC): Remove i386/*.xml.
2390 * features/i386/amd64-avx-avx512.c: Remove.
2391 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
2392 * features/i386/amd64-avx-mpx.c: Remove.
2393 * features/i386/amd64-avx.c: Remove.
2394 * features/i386/amd64-mpx.c: Remove.
2395 * features/i386/amd64.c: Remove.
2396 * features/i386/i386-avx-avx512.c: Remove.
2397 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
2398 * features/i386/i386-avx-mpx.c: Remove.
2399 * features/i386/i386-avx.c: Remove.
2400 * features/i386/i386-mmx.c: Remove.
2401 * features/i386/i386-mpx.c: Remove.
2402 * features/i386/i386.c: Remove.
2403 * i386-tdep.c: Don't include features/i386/i386*.c., include
2404 target-descriptions.h and arch/i386.h.
2405 (i386_target_description): Create target descriptions.
2406 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
2407 functions. Do self tests.
2408
0854b7b1
YQ
24092017-09-05 Yao Qi <yao.qi@linaro.org>
2410
2411 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
2412 * features/i386/amd64-avx-avx512-linux.c: Removed.
2413 * features/i386/amd64-avx-linux.c: Removed.
2414 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
2415 * features/i386/amd64-avx-mpx-linux.c: Removed.
2416 * features/i386/amd64-linux.c: Removed.
2417 * features/i386/amd64-mpx-linux.c: Removed.
2418 * features/i386/x32-avx-avx512-linux.c: Removed.
2419 * features/i386/x32-avx-linux.c: Removed.
2420 * features/i386/x32-linux.c: Removed.
2421
b4570e4b
YQ
24222017-09-05 Yao Qi <yao.qi@linaro.org>
2423
2424 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
2425 features/i386/*.c.
2426 (amd64_linux_read_description): Call
2427 amd64_create_target_description.
2428 * arch/amd64.c: New file.
2429 * arch/amd64.h: New file.
2430 * configure.tgt (x86_64-*-linux*): Append amd64.o.
2431 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
2432
6c73f67f
YQ
24332017-09-05 Yao Qi <yao.qi@linaro.org>
2434
2435 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
2436 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
2437 (amd64_linux_read_description): Create target descriptions.
2438 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
2439 functions. Add unit tests.
2440 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
2441 x32-core.xml.
2442 * features/i386/64bit-avx.c: Generated.
2443 * features/i386/64bit-avx512.c: Generated.
2444 * features/i386/64bit-core.c: Generated.
2445 * features/i386/64bit-linux.c: Generated.
2446 * features/i386/64bit-mpx.c: Generated.
2447 * features/i386/64bit-pkeys.c: Generated.
2448 * features/i386/64bit-segments.c: Generated.
2449 * features/i386/64bit-sse.c: Generated.
2450 * features/i386/x32-core.c: Generated.
2451 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2452 c files for amd64-linux and x32-linux.
2453
9d3d478b
YQ
24542017-09-05 Yao Qi <yao.qi@linaro.org>
2455
2456 * amd64-linux-tdep.c (amd64_linux_read_description): New
2457 function.
2458 (amd64_linux_core_read_description): Call
2459 amd64_linux_read_description.
2460 (amd64_linux_init_abi): Likewise.
2461 (amd64_x32_linux_init_abi): Likewise.
2462 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2463 * x86-linux-nat.c (x86_linux_read_description): Call
2464 amd64_linux_read_description.
2465
b9f1d50f
YQ
24662017-09-05 Yao Qi <yao.qi@linaro.org>
2467
2468 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2469 comments.
2470
188c9e6d
YQ
24712017-09-05 Yao Qi <yao.qi@linaro.org>
2472
2473 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2474 * features/i386/i386-avx-avx512-linux.c: Remove.
2475 * features/i386/i386-avx-linux.c: Remove.
2476 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2477 * features/i386/i386-avx-mpx-linux.c: Remove.
2478 * features/i386/i386-linux.c: Remove.
2479 * features/i386/i386-mmx-linux.c: Remove.
2480 * features/i386/i386-mpx-linux.c: Remove.
2481
5f035c07
YQ
24822017-09-05 Yao Qi <yao.qi@linaro.org>
2483
2484 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2485 (SFILES): Add arch/i386.c.
2486 (HFILES_NO_SRCDIR): Add arch/i386.h.
2487 * arch/i386.c: New file.
2488 * arch/i386.h: New file.
2489 * arch/tdesc.h (allocate_target_description): Declare.
2490 (set_tdesc_architecture): Declare.
2491 (set_tdesc_osabi): Declare.
2492 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2493 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2494 include arch/i386.h.
2495 (i386_linux_read_description): Remove code and call
2496 i386_create_target_description.
2497 (set_tdesc_architecture): New function.
2498 (set_tdesc_osabi): New function.
2499 * target-descriptions.h (allocate_target_description): Remove.
2500
0abe8a89
YQ
25012017-09-05 Yao Qi <yao.qi@linaro.org>
2502
2503 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2504 * target-descriptions.c (tdesc_create_feature): Likewise, and
2505 adjust code.
2506 * features/i386/32bit-avx.c: Re-generated.
2507 * features/i386/32bit-avx512.c: Re-generated.
2508 * features/i386/32bit-core.c: Re-generated.
2509 * features/i386/32bit-linux.c: Re-generated.
2510 * features/i386/32bit-mpx.c: Re-generated.
2511 * features/i386/32bit-pkeys.c: Re-generated.
2512 * features/i386/32bit-sse.c: Re-generated.
2513
0a188386
YQ
25142017-09-05 Yao Qi <yao.qi@linaro.org>
2515
2516 * regformats/regdef.h (struct reg): Override operator == and !=.
2517
f49ff000
YQ
25182017-09-05 Yao Qi <yao.qi@linaro.org>
2519
2520 * arch/tdesc.h: New file.
2521 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2522 * target-descriptions.c: Update comments.
2523 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2524 declarations.
2525 * features/i386/32bit-avx.c: Re-generated.
2526 * features/i386/32bit-avx512.c: Re-generated.
2527 * features/i386/32bit-core.c: Re-generated.
2528 * features/i386/32bit-linux.c: Re-generated.
2529 * features/i386/32bit-mpx.c: Re-generated.
2530 * features/i386/32bit-pkeys.c: Re-generated.
2531 * features/i386/32bit-sse.c: Re-generated.
2532
f7000548
YQ
25332017-09-05 Yao Qi <yao.qi@linaro.org>
2534
2535 * regformats/regdat.sh: Update generated code.
2536
c9a5e2a5
YQ
25372017-09-05 Yao Qi <yao.qi@linaro.org>
2538
2539 * regformats/regdat.sh: Adjust code order.
2540
d6b687ac
SM
25412017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2542
2543 * expprint.c (dump_subexp_body_standard): Use constant format
2544 string in fprintf_filtered call.
2545
a379bfd0
JB
25462017-09-04 John Baldwin <jhb@FreeBSD.org>
2547
2548 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2549 NetBSD/i386.
2550 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2551
f7efc967
JB
25522017-09-04 John Baldwin <jhb@FreeBSD.org>
2553
2554 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2555
c49fbc6c
JB
25562017-09-04 John Baldwin <jhb@FreeBSD.org>
2557
2558 * bsd-kvm.o: Define _KMEMUSER.
2559 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2560 * configure: Regenerate.
2561
26562e73
JB
25622017-09-04 John Baldwin <jhb@FreeBSD.org>
2563
2564 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2565 * i386-fbsd-nat.c: Likewise.
2566
31cf1487
JB
25672017-09-04 John Baldwin <jhb@FreeBSD.org>
2568
2569 * unittests/array-view-selftests.c: Add include of <array>.
2570
5b9f8a7c
JB
25712017-09-04 John Baldwin <jhb@FreeBSD.org>
2572
2573 * spu-tdep.c (flush_ea_cache): Add missing argument to
2574 call_function_by_hand.
2575
d69cf9b2
PA
25762017-09-04 Pedro Alves <palves@redhat.com>
2577
2578 * NEWS (Safer support for debugging with no debug info): New.
2579
3693fdb3
PA
25802017-09-04 Pedro Alves <palves@redhat.com>
2581
2582 * c-exp.y (function_method, function_method_void): Add current
2583 instance flags to TYPE_INSTANCE.
2584 * dwarf2read.c (check_modifier): New.
2585 (compute_delayed_physnames): Assert that only C++ adds delayed
2586 physnames. Mark fn_fields as const/volatile depending on
2587 physname.
2588 * eval.c (make_params): New type_instance_flags parameter. Use
2589 it as the new type's instance flags.
2590 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2591 flags element and pass it to make_params.
2592 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2593 instance flags element.
2594 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2595 * gdbtypes.h: Include "enum-flags.h".
2596 (type_instance_flags): New enum-flags type.
2597 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2598 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2599 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2600 (follow_type_instance_flags): New function.
2601 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2602 * parser-defs.h (follow_type_instance_flags): Declare.
2603 * valops.c (value_struct_elt_for_reference): const/volatile must
2604 match too.
2605
e68cb8e0
PA
26062017-09-04 Pedro Alves <palves@redhat.com>
2607
2608 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2609 function/method scopes; lookup the nested name as a function local
2610 static variable.
2611
858be34c
PA
26122017-09-04 Pedro Alves <palves@redhat.com>
2613
2614 (%type <voidval>): Add function_method.
2615 * c-exp.y (exp): New production for calls with no arguments.
2616 (function_method, function_method_void_or_typelist): New
2617 productions.
2618 (exp): New production for "method()::static_var".
2619 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2620 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2621 Handle OP_FUNC_STATIC_VAR.
2622 * parse.c (operator_length_standard):
2623 Handle OP_FUNC_STATIC_VAR.
2624
dd5901a6
PA
26252017-09-04 Pedro Alves <palves@redhat.com>
2626
2627 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2628 handling.
2629 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2630 Ditto.
2631 * parse.c (operator_length_standard, operator_check_standard):
2632 Ditto.
2633 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2634
46a4882b
PA
26352017-09-04 Pedro Alves <palves@redhat.com>
2636
2637 * ax-gdb.c: Include "typeprint.h".
2638 (gen_expr_for_cast): New function.
2639 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2640 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2641 type is unknown.
2642 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2643 nodebug_data_symbol.
2644 * eval.c: Include "typeprint.h".
2645 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2646 Error out if symbol has unknown type.
2647 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2648 evaluate_subexp_for_cast.
2649 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2650 OP_VAR_MSYM_VALUE.
2651 (evaluate_subexp_for_cast): New function.
2652 * gdbtypes.c (init_nodebug_var_type): New function.
2653 (objfile_type): Use it to initialize types of variables with no
2654 debug info.
2655 * typeprint.c (error_unknown_type): New.
2656 * typeprint.h (error_unknown_type): New declaration.
2657 * compile/compile-c-types.c (convert_type_basic): Handle
2658 TYPE_CODE_ERROR; warn and fallback to int for variables with
2659 unknown type.
2660
fe13dfec
PA
26612017-09-04 Pedro Alves <palves@redhat.com>
2662
2663 * eval.c (evaluate_var_value): New function, factored out from ...
2664 (evaluate_subexp_standard): ... here.
2665
d008ee21
PA
26662017-09-04 Pedro Alves <palves@redhat.com>
2667
2668 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2669 Remove useless assignments to 'op'.
2670
827d0c51
PA
26712017-09-04 Pedro Alves <palves@redhat.com>
2672
2673 * eval.c (eval_skip_value): New function.
2674 (evaluate_subexp_standard): Use it.
2675
2c5a2be1
PA
26762017-09-04 Pedro Alves <palves@redhat.com>
2677
2678 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2679 function name from symbol/minsym and pass it to
2680 error_call_unknown_return_type.
2681
74ea4be4
PA
26822017-09-04 Pedro Alves <palves@redhat.com>
2683
2684 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2685 * ax-gdb.c (gen_msym_var_ref): New function.
2686 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2687 * eval.c (evaluate_var_msym_value): New function.
2688 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2689 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2690 to call_function_by_hand.
2691 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2692 Handle OP_VAR_MSYM_VALUE.
2693 (union exp_element) <msymbol>: New field.
2694 * minsyms.h (struct type): Forward declare.
2695 (find_minsym_type_and_address): Declare.
2696 * parse.c (write_exp_elt_msym): New function.
2697 (write_exp_msymbol): Delete, refactored as ...
2698 (find_minsym_type_and_address): ... this new function.
2699 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2700 (operator_length_standard, operator_check_standard): Handle
2701 OP_VAR_MSYM_VALUE.
2702 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2703
7022349d
PA
27042017-09-04 Pedro Alves <palves@redhat.com>
2705
2706 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2707 TYPE_GNU_IFUNC specially here. Throw error if return type is
2708 unknown.
2709 * ada-typeprint.c (print_func_type): Handle functions with unknown
2710 return type.
2711 * c-typeprint.c (c_type_print_base): Handle functions and methods
2712 with unknown return type.
2713 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2714 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2715 * compile/compile-c-types.c: Include "objfiles.h".
2716 (convert_func): For functions with unknown return type, warn and
2717 default to int.
2718 * compile/compile-object-run.c (compile_object_run): Adjust call
2719 to call_function_by_hand_dummy.
2720 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2721 call_function_by_hand.
2722 * eval.c (evaluate_subexp_standard): Adjust calls to
2723 call_function_by_hand. Handle functions and methods with unknown
2724 return type. Pass expect_type to call_function_by_hand.
2725 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2726 return type.
2727 * gcore.c (call_target_sbrk): Adjust call to
2728 call_function_by_hand.
2729 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2730 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2731 an integer address type instead of nodebug.
2732 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2733 call_function_by_hand.
2734 * infcall.c (error_call_unknown_return_type): New function.
2735 (call_function_by_hand): New "default_return_type" parameter.
2736 Pass it down.
2737 (call_function_by_hand_dummy): New "default_return_type"
2738 parameter. Use it instead of defaulting to int. If there's no
2739 default and the return type is unknown, throw an error. If
2740 there's a default return type, and the called function has no
2741 debug info, then assume the function is prototyped.
2742 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2743 New "default_return_type" parameter.
2744 (error_call_unknown_return_type): New declaration.
2745 * linux-fork.c (call_lseek): Cast return type of lseek.
2746 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2747 call_function_by_hand.
2748 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2749 calls to call_function_by_hand.
2750 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2751 return type.
2752 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2753 (value_nsstring, print_object_command): Adjust calls to
2754 call_function_by_hand.
2755 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2756 functions with unknown return type.
2757 (pascal_type_print_func_varspec_suffix): New function.
2758 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2759 TYPE_CODE_METHOD>: Use it.
2760 * python/py-value.c (valpy_call): Adjust call to
2761 call_function_by_hand.
2762 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2763 call_function_by_hand.
2764 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2765 call_function_by_hand.
2766 * valops.c (value_allocate_space_in_inferior): Adjust call to
2767 call_function_by_hand.
2768 * typeprint.c (type_print_unknown_return_type): New function.
2769 * typeprint.h (type_print_unknown_return_type): New declaration.
2770
54990598
PA
27712017-09-04 Pedro Alves <palves@redhat.com>
2772
2773 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2774 types with more than one parameter as prototyped.
2775
9a24775b
PA
27762017-09-04 Pedro Alves <palves@redhat.com>
2777
2778 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2779 (disassemble_command): Use gdb_disassembly_flags instead of bare
2780 int.
2781 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2782 (dump_insns, do_mixed_source_and_assembly_deprecated)
2783 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2784 Use gdb_disassembly_flags instead of bare int.
2785 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2786 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2787 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2788 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2789 (enum gdb_disassembly_flag): ... values of this new enumeration.
2790 (gdb_disassembly_flags): Define.
2791 (gdb_disassembly)
2792 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2793 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2794 gdb_disassembly_flags instead of bare int.
2795 * record-btrace.c (btrace_insn_history)
2796 (record_btrace_insn_history, record_btrace_insn_history_range)
2797 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2798 instead of bare int.
2799 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2800 Use gdb_disassembly_flags instead of bare int.
2801 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2802 Define.
2803 * target-delegates.c: Regenerate.
2804 * target.c (target_insn_history, target_insn_history_from)
2805 (target_insn_history_range): Use gdb_disassembly_flags instead of
2806 bare int.
2807 * target.h: Include "disasm.h".
2808 (struct target_ops) <to_insn_history, to_insn_history_from,
2809 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2810 int.
2811 (target_insn_history, target_insn_history_from)
2812 (target_insn_history_range): Use gdb_disassembly_flags instead of
2813 bare int.
2814
80a65e9b
SM
28152017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2816
2817 * cli/cli-script.c (build_command_line): For if/while commands,
2818 check whether args is empty.
2819
6b66338c
SM
28202017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2821
2822 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2823 (enum command_control_type): Likewise.
2824 (struct command_line): Likewise.
2825 (free_command_lines): Likewise.
2826 (struct command_lines_deleter): Likewise.
2827 (command_line_up): Likewise.
2828 (read_command_lines): Likewise.
2829 (read_command_lines_1): Likewise.
2830 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2831 (enum command_control_type): Likewise.
2832 (struct command_line): Likewise.
2833 (free_command_lines): Likewise.
2834 (struct command_lines_deleter): Likewise.
2835 (command_line_up): Likewise.
2836 (read_command_lines): Likewise.
2837 (read_command_lines_1): Likewise.
2838 * breakpoint.h: Include cli/cli-script.h.
2839 * extension-priv.h: Likewise.
2840 * gdbcmd.h: Likewise.
2841
51abb421
PA
28422017-09-04 Pedro Alves <palves@redhat.com>
2843
2844 * ada-lang.c (is_known_support_routine): Move sal declaration to
2845 where it is initialized.
2846 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2847 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2848 (clear_command, update_static_tracepoint): Remove init_sal
2849 references. Move declarations closer to initializations.
2850 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2851 initializations.
2852 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2853 references. Move sal declarations closer to initializations.
2854 * frame.c (find_frame_sal): Return a symtab_and_line via function
2855 return instead of output parameter. Remove init_sal references.
2856 * frame.h (find_frame_sal): Return a symtab_and_line via function
2857 return instead of output parameter.
2858 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2859 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2860 instead of memset.
2861 (gdbscm_find_pc_line): Remove init_sal reference.
2862 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2863 references. Move declarations closer to initializations.
2864 * infcmd.c (set_step_frame): Update. Move declarations closer to
2865 initializations.
2866 (finish_backward): Remove init_sal references. Move declarations
2867 closer to initializations.
2868 * infrun.c (process_event_stop_test, handle_step_into_function)
2869 (insert_hp_step_resume_breakpoint_at_frame)
2870 (insert_step_resume_breakpoint_at_caller): Likewise.
2871 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2872 (symbol_to_sal): Likewise.
2873 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2874 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2875 to its initialization.
2876 * reverse.c (save_bookmark_command): Use new/delete. Remove
2877 init_sal references. Move declarations closer to initializations.
2878 * source.c (get_current_source_symtab_and_line): Remove brace
2879 initialization.
2880 (set_current_source_symtab_and_line): Now takes the sal by const
2881 reference. Remove brace initialization.
2882 (line_info): Remove init_sal reference.
2883 * source.h (set_current_source_symtab_and_line): Now takes a
2884 symtab_and_line via const reference.
2885 * stack.c (set_current_sal_from_frame): Adjust.
2886 (print_frame_info): Adjust.
2887 (get_last_displayed_sal): Return the sal via function return
2888 instead of via output parameter. Simplify.
2889 (frame_info): Adjust.
2890 * stack.h (get_last_displayed_sal): Return the sal via function
2891 return instead of via output parameter.
2892 * symtab.c (init_sal): Delete.
2893 (find_pc_sect_line): Remove init_sal references. Move
2894 declarations closer to initializations.
2895 (find_function_start_sal): Remove init_sal references. Move
2896 declarations closer to initializations.
2897 * symtab.h (struct symtab_and_line): In-class initialize all
2898 fields.
2899 * tracepoint.c (set_traceframe_context)
2900 (print_one_static_tracepoint_marker): Remove init_sal references.
2901 Move declarations closer to initializations.
2902 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2903 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2904 declarations closer to initializations.
2905 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2906 init_sal references. Adjust.
2907
6c5b2ebe
PA
29082017-09-04 Pedro Alves <palves@redhat.com>
2909
2910 * ax-gdb.c (agent_command_1): Use range-for.
2911 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2912 * breakpoint.c: Include "common/array-view.h".
2913 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2914 parameter from struct symtabs_and_lines to
2915 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2916 (breakpoint_sals_to_pc): Change sals parameter from struct
2917 symtabs_and_lines to std::vector reference.
2918 (check_fast_tracepoint_sals): Change sals parameter from struct
2919 symtabs_and_lines to std::array_view. Use range-for.
2920 (decode_static_tracepoint_spec): Return a std::vector instead of
2921 symtabs_and_lines. Update.
2922 (create_breakpoint): Update.
2923 (break_range_command, until_break_command, clear_command): Update.
2924 (base_breakpoint_decode_location, bkpt_decode_location)
2925 (bkpt_probe_create_sals_from_location)
2926 (bkpt_probe_decode_location, tracepoint_decode_location)
2927 (tracepoint_probe_decode_location)
2928 (strace_marker_create_sals_from_location): Return a std::vector
2929 instead of symtabs_and_lines.
2930 (strace_marker_create_breakpoints_sal): Update.
2931 (strace_marker_decode_location): Return a std::vector instead of
2932 symtabs_and_lines. Update.
2933 (update_breakpoint_locations): Change struct symtabs_and_lines
2934 parameters to gdb::array_view. Adjust.
2935 (location_to_sals): Return a std::vector instead of
2936 symtabs_and_lines. Update.
2937 (breakpoint_re_set_default): Use std::vector instead of struct
2938 symtabs_and_lines.
2939 (decode_location_default): Return a std::vector instead of
2940 symtabs_and_lines. Update.
2941 * breakpoint.h: Include "common/array-view.h".
2942 (struct breakpoint_ops) <decode_location>: Now returns a
2943 std::vector instead of returning a symtabs_and_lines via output
2944 parameter.
2945 (update_breakpoint_locations): Change sals parameters to use
2946 gdb::array_view.
2947 * cli/cli-cmds.c (edit_command, list_command): Update to use
2948 std::vector and gdb::array_view.
2949 (ambiguous_line_spec): Adjust to use gdb::array_view and
2950 range-for.
2951 (compare_symtabs): Rename to ...
2952 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2953 const reference and adjust.
2954 (filter_sals): Rewrite using std::vector and standard algorithms.
2955 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2956 (jump_command): Update to use std::vector.
2957 * linespec.c (struct linespec_state) <canonical_names>: Update
2958 comment.
2959 (add_sal_to_sals_basic): Delete.
2960 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2961 (decode_line_2, create_sals_line_offset)
2962 (convert_address_location_to_sals, convert_linespec_to_sals)
2963 (convert_explicit_location_to_sals, parse_linespec)
2964 (event_location_to_sals, decode_line_full, decode_line_1)
2965 (decode_line_with_current_source)
2966 (decode_line_with_last_displayed, decode_objc)
2967 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2968 (linespec_result::~linespec_result): Adjust to use std::vector
2969 instead of symtabs_and_lines.
2970 * linespec.h (linespec_sals::sals): Now a std::vector.
2971 (struct linespec_result): Use std::vector, bool, and in-class
2972 initialization.
2973 (decode_line_1, decode_line_with_current_source)
2974 (decode_line_with_last_displayed): Return std::vector.
2975 * macrocmd.c (info_macros_command): Use std::vector.
2976 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2977 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2978 std::vector.
2979 * probe.h (parse_probes): Return a std::vector.
2980 * python/python.c (gdbpy_decode_line): Use std::vector and
2981 gdb::array_view.
2982 * source.c (select_source_symtab, line_info): Use std::vector.
2983 * stack.c (func_command): Use std::vector.
2984 * symtab.h (struct symtabs_and_lines): Delete.
2985 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2986
7c44b49c
PA
29872017-09-04 Pedro Alves <palves@redhat.com>
2988
2989 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2990 unittests/array-view-selftests.c.
2991 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2992 * common/array-view.h: New file.
2993 * unittests/array-view-selftests.c: New file.
2994
e439fa14
PA
29952017-09-04 Pedro Alves <palves@redhat.com>
2996
2997 * cli/cli-cmds.c (edit_command): Pass message to
2998 ambiguous_line_spec.
2999 (list_command): Pass message to ambiguous_line_spec. Say
3000 "first"/"last" instead of "start" and "end" to be consistent with
3001 the manual.
3002 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
3003 them to print formatted message.
3004
7525b645
PA
30052017-09-04 Pedro Alves <palves@redhat.com>
3006
3007 * btrace.c (ftrace_add_pt): Pass btrace_insn to
3008 ftrace_update_insns by reference instead of pointer.
3009
badc0020
YQ
30102017-09-04 Yao Qi <yao.qi@linaro.org>
3011
3012 * i386-go32-tdep.c: Include x86-xstate.h.
3013 (i386_go32_init_abi): Call i386_target_description.
3014 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
3015 if xcr0 is X86_XSTATE_X87_MASK.
3016 * i386-tdep.h (tdesc_i386): Remove the declaration.
3017 (tdesc_i386_mmx): Likewise.
3018
d78bdb54
YQ
30192017-09-04 Yao Qi <yao.qi@linaro.org>
3020
3021 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
3022 X86_XSTATE_SSE_MASK instead of 0.
3023
ca1fa5ee
YQ
30242017-09-04 Yao Qi <yao.qi@linaro.org>
3025
3026 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
3027 i386_target_description.
3028 * i386-fbsd-nat.c (i386fbsd_read_description): Call
3029 i386_target_description.
3030 * i386-tdep.c (i386_gdbarch_init): Likewise.
3031
2434b019
YQ
30322017-09-04 Yao Qi <yao.qi@linaro.org>
3033
3034 * amd64-darwin-tdep.c: Include "x86-xstate.h".
3035 (x86_darwin_init_abi_64): Call amd64_target_description.
3036 * amd64-dicos-tdep.c: Likewise.
3037 * amd64-fbsd-nat.c: Likewise.
3038 * amd64-fbsd-tdep.c: Likewise.
3039 * amd64-nbsd-tdep.c: Likewise.
3040 * amd64-obsd-tdep.c: Likewise.
3041 * amd64-sol2-tdep.c: Likewise.
3042 * amd64-windows-tdep.c: Likewise.
3043 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
3044
0860c437
SM
30452017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3046
3047 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
3048 (btrace_function) <insn>: Change type to use std::vector.
3049 * btrace.c (ftrace_debug, ftrace_call_num_insn,
3050 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
3051 ftrace_update_insns, ftrace_compute_global_level_offset,
3052 btrace_stitch_bts, btrace_clear, btrace_insn_get,
3053 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
3054 change to std::vector.
3055 (ftrace_update_insns): Adjust to change to std::vector, change
3056 type of INSN parameter.
3057 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
3058 * record-btrace.c (btrace_call_history_insn_range,
3059 btrace_compute_src_line_range,
3060 record_btrace_frame_prev_register): Adjust to change to
3061 std::vector.
3062 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
3063 to change to std::vector.
3064
0638b7f9
TT
30652017-09-03 Tom Tromey <tom@tromey.com>
3066
3067 * corefile.c (reopen_exec_file): Use std::string.
3068
8f84fb0e
TT
30692017-09-03 Tom Tromey <tom@tromey.com>
3070
3071 * compile/compile.c (compile_register_name_mangled): Return
3072 std::string.
3073 * compile/compile-loc2c.c (pushf_register_address): Update.
3074 (pushf_register): Update.
3075 * compile/compile-c-types.c (convert_array): Update.
3076 * compile/compile-c-symbols.c (generate_vla_size): Update.
3077 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
3078 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
3079 (convert_one_symbol): Update.
3080 (generate_c_for_for_one_variable): Update.
3081 * compile/compile-c-support.c (c_get_range_decl_name): Return a
3082 std::string.
3083 (generate_register_struct): Update.
3084 * compile/compile-internal.h (c_get_range_decl_name): Return a
3085 std::string.
3086 (compile_register_name_mangled): Return std::string.
3087
18e9961f
TT
30882017-09-03 Tom Tromey <tom@tromey.com>
3089
3090 * utils.c (perror_string): Return a std::string.
3091 (throw_perror_with_name, perror_warning_with_name): Update.
3092
45343786
TT
30932017-09-03 Tom Tromey <tom@tromey.com>
3094
3095 * demangle.c (demangle_command): Use std::string,
3096 unique_xmalloc_ptr.
3097
b57af503
TT
30982017-09-03 Tom Tromey <tom@tromey.com>
3099
3100 * cli/cli-setshow.c (do_set_command): Use std::string.
3101
6eecf35f
TT
31022017-09-03 Tom Tromey <tom@tromey.com>
3103
3104 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
3105
56496dd4
TT
31062017-09-03 Tom Tromey <tom@tromey.com>
3107
3108 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
3109
e91a1fa7
TT
31102017-09-03 Tom Tromey <tom@tromey.com>
3111
3112 * mi/mi-cmd-env.c (env_execute_cli_command): Use
3113 gdb::unique_xmalloc_ptr.
3114
7ffd83d7
TT
31152017-09-03 Tom Tromey <tom@tromey.com>
3116
3117 * thread.c (print_thread_info_1): Use string_printf.
3118 (thread_apply_command, thread_apply_all_command): Use
3119 std::string.
3120
1ccbe998
TT
31212017-09-03 Tom Tromey <tom@tromey.com>
3122
3123 * valprint.c (val_print_string): Update.
3124 * gdbcore.h (memory_error_message): Return std::string.
3125 * corefile.c (memory_error_message): Return std::string.
3126 (memory_error): Update.
3127 * breakpoint.c (insert_bp_location): Update.
3128
23fdd69e
SM
31292017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3130
3131 * target/waitstatus.h (target_waitstatus_to_string): Change
3132 return type to std::string.
3133 * target/waitstatus.c (target_waitstatus_to_string): Return
3134 std::string.
3135 * target.h (target_waitstatus_to_string): Remove declaration.
3136 * infrun.c (resume, clear_proceed_status_thread,
3137 print_target_wait_results, do_target_wait, save_waitstatus,
3138 stop_all_threads): Adjust.
3139 * record-btrace.c (record_btrace_wait): Adjust.
3140 * target-debug.h
3141 (target_debug_print_struct_target_waitstatus_p): Adjust.
3142
5c811d30
JK
31432017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3144
3145 PR gdb/22046
3146 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
3147 detection.
3148
0a2dde4a
SDJ
31492017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3150
3151 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
3152 for setting/unsetting environment variables on the remote target.
3153 (New remote packets): Add entries for QEnvironmentHexEncoded,
3154 QEnvironmentUnset and QEnvironmentReset.
3155 * common/environ.c (gdb_environ::operator=): Extend method to
3156 handle m_user_set_env_list and m_user_unset_env_list.
3157 (gdb_environ::clear): Likewise.
3158 (match_var_in_string): Change type of first parameter from 'char
3159 *' to 'const char *'.
3160 (gdb_environ::set): Extend method to handle
3161 m_user_set_env_list and m_user_unset_env_list.
3162 (gdb_environ::unset): Likewise.
3163 (gdb_environ::clear_user_set_env): New method.
3164 (gdb_environ::user_set_envp): Likewise.
3165 (gdb_environ::user_unset_envp): Likewise.
3166 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
3167 m_user_unset_env_list on move constructor/assignment.
3168 (unset): Add new default parameter 'update_unset_list = true'.
3169 (clear_user_set_env): New method.
3170 (user_set_envp): Likewise.
3171 (user_unset_envp): Likewise.
3172 (m_user_set_env_list): New std::set.
3173 (m_user_unset_env_list): Likewise.
3174 * common/rsp-low.c (hex2str): New function.
3175 (bin2hex): New overload for bin2hex function.
3176 * common/rsp-low.c (hex2str): New prototype.
3177 (str2hex): New overload prototype.
3178 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
3179 QEnvironmentUnset and QEnvironmentReset.
3180 (remote_protocol_features): Add QEnvironmentHexEncoded,
3181 QEnvironmentUnset and QEnvironmentReset packets.
3182 (send_environment_packet): New function.
3183 (extended_remote_environment_support): Likewise.
3184 (extended_remote_create_inferior): Call
3185 extended_remote_environment_support.
3186 (_initialize_remote): Add QEnvironmentHexEncoded,
3187 QEnvironmentUnset and QEnvironmentReset packet configs.
3188 * unittests/environ-selftests.c (gdb_selftest_env_var):
3189 New variable.
3190 (test_vector_initialization): New function.
3191 (test_init_from_host_environ): Likewise.
3192 (test_reinit_from_host_environ): Likewise.
3193 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
3194 Likewise.
3195 (test_unset_set_empty_vector): Likewise.
3196 (test_vector_clear): Likewise.
3197 (test_std_move): Likewise.
3198 (test_move_constructor):
3199 (test_self_move): Likewise.
3200 (test_set_unset_reset): Likewise.
3201 (run_tests): Rewrite in terms of the functions above.
3202
654670a4
WP
32032017-08-31 Weimin Pan <weimin.pan@oracle.com>
3204
3205 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
3206 (adi_available): Use a temp variable of type CORE_ADDR as argument
3207 3 when calling target_auxv_search.
3208 (adi_normalize_address): Use masks and xor operators to calculate
3209 normalized address.
3210 (adi_read_versions, adi_write_versions, adi_print_versions)
3211 (do_examine, do_assign): Use paddress.
3212
7755ddb7
JB
32132017-08-29 John Baldwin <jhb@FreeBSD.org>
3214
3215 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
3216 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
3217 out of loop and add supply of FIR.
3218 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
3219 add collect of FIR.
3220
fd437cbc
SM
32212017-08-28 Simon Marchi <simon.marchi@ericsson.com>
3222
3804a343 3223 PR gdb/21827
fd437cbc
SM
3224 * cli/cli-script.c (define_command): Don't convert command name
3225 to lower case.
3226
988f6b3d
JB
32272017-08-25 Joel Brobecker <brobecker@adacore.com>
3228
3229 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
3230 Update all callers accordingly. Remove all code blocks handling
3231 the case where DISPP is not NULL.
3232
663c44ac
JK
32332017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3234
3235 PR symtab/22003
3236 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
3237 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3238 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
3239
f1902523
JK
32402017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3241
3242 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
3243 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
3244 (read_comp_units_from_section): New parameter abbrev_section, use
3245 read_and_check_comp_unit_head, allocate signatured_type if needed.
3246 (create_all_comp_units): Update read_comp_units_from_section caller.
3247
87215ad1
SDJ
32482017-08-23 Pedro Alves <palves@redhat.com>
3249
3250 PR remote/21852
3251 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
3252 to null_ptid and switch to thread without reading the registers
3253 after adding the inferior.
3254
6e41ddec
JK
32552017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3256
3257 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
3258 compile-gcc.
3259 * compile/compile.c (compile_gcc, show_compile_gcc): New.
3260 (compile_to_object): Implement compile_gcc.
3261 (_initialize_compile): Install "set compile-gcc". Initialize
3262 compile_gcc.
3263
e68c32d5
JK
32642017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3265
3266 * compile/compile.c (compile_to_object): Conditionally call
3267 set_verbose. Conditionally call compile or compile_v0.
3268
58afddc6
WP
32692017-08-07 Weimin Pan <weimin.pan@oracle.com>
3270
3271 * sparc64-tdep.h: (adi_normalize_address): New export.
3272 * sparc-nat.h: (open_adi_tag_fd): New export.
3273 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
3274 * sparc64-linux-tdep.c:
3275 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
3276 (sparc64_linux_handle_segmentation_fault): New function.
3277 (sparc64_linux_init_abi): Register
3278 sparc64_linux_handle_segmentation_fault
3279 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
3280 (sparc64_addr_bits_remove): New function.
3281 (sparc64_init_abi): Register sparc64_addr_bits_remove.
3282 (MAX_PROC_NAME_SIZE): New macro.
3283 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
3284 (sparc64adilist): New variable.
3285 (adi_proc_list): New variable.
3286 (find_adi_info): New function.
3287 (add_adi_info): New function.
3288 (get_adi_info_proc): New function.
3289 (get_adi_info): New function.
3290 (info_adi_command): New function.
3291 (read_maps_entry): New function.
3292 (adi_available): New function.
3293 (adi_normalize_address): New function.
3294 (adi_align_address): New function.
3295 (adi_convert_byte_count): New function.
3296 (adi_tag_fd): New function.
3297 (adi_is_addr_mapped): New function.
3298 (adi_read_versions): New function.
3299 (adi_write_versions): New function.
3300 (adi_print_versions): New function.
3301 (do_examine): New function.
3302 (do_assign): New function.
3303 (adi_examine_command): New function.
3304 (adi_assign_command): New function.
3305 (_initialize_sparc64_adi_tdep): New function.
3306
11db9430
SM
33072017-08-22 Simon Marchi <simon.marchi@ericsson.com>
3308
3309 * breakpoint.c (breakpoints_info): Rename to ...
3310 (info_breakpoints_command): ... this.
3311 (watchpoints_info): Rename to ...
3312 (info_watchpoints_command): ... this.
3313 (tracepoints_info): Rename to ...
3314 (info_tracepoints_command): ... this.
3315 (_initialize_breakpoint): Adjust.
3316 * dcache.c (dcache_info): Rename to ...
3317 (info_display_command): ... this.
3318 (_initialize_dcache): Adjust.
3319 * frame.h (args_info): Rename to ...
3320 (info_args_command): ... this.
3321 (locals_info): Rename to ...
3322 (info_locals_command): ... this.
3323 * infcmd.c (nofp_registers_info): Rename to ...
3324 (info_registers_command): ... this.
3325 (float_info): Rename to ...
3326 (info_float_command): ... this.
3327 (program_info): Rename to ...
3328 (info_program_command): ... this.
3329 (all_registers_info): Rename to ...
3330 (info_all_registers_command): ... this.
3331 (vector_info): Rename to ...
3332 (info_vector_command): ... this.
3333 (float_info): Rename to ...
3334 (info_float_command): ... this.
3335 (_initialize_infcmd): Adjust.
3336 * inferior.h (term_info): Rename to ...
3337 (info_terminal_command): ... this.
3338 * inflow.c (term_info): Rename to ...
3339 (info_terminal_command): ... this.
3340 (_initialize_inflow): Adjust.
3341 * infrun.c (signals_info): Rename to ...
3342 (info_signals_command): ... this.
3343 (_initialize_infrun): Adjust.
3344 * objc-lang.c (classes_info): Rename to ...
3345 (info_classes_command): ... this.
3346 (selectors_info): Rename to ...
3347 (info_selectors_command): ... this.
3348 (_initialize_objc_language): Adjust.
3349 * printcmd.c (sym_info): Rename to ...
3350 (info_symbol_command): ... this.
3351 (address_info): Rename to ...
3352 (info_address_command): ... this.
3353 (display_info): Rename to ...
3354 (info_display_command): ... this.
3355 (_initialize_printcmd): Adjust.
3356 * reverse.c (bookmarks_info): Rename to ...
3357 (info_breakpoints_command): ... this.
3358 (_initialize_reverse): Adjust.
3359 * ser-go32.c (dos_info): Rename to ...
3360 (info_serial_command): ... this.
3361 (_initialize_ser_dos): Adjust.
3362 * skip.c (skip_info): Rename to ...
3363 (info_skip_command): ... this.
3364 (_initialize_step_skip): Adjust.
3365 * source.c (line_info): Rename to ...
3366 (info_line_command): ... this.
3367 (source_info): Rename to ...
3368 (info_source_command)
3369 * stack.c (frame_info): Rename to ...
3370 (info_frame_command): ... this.
3371 (locals_info): Rename to ...
3372 (info_locals_command): ... this.
3373 (args_info): Rename to ...
3374 (info_args_command): ... this.
3375 (_initialize_stack): Adjust.
3376 * symtab.c (sources_info): Rename to ...
3377 (info_sources_command): ... this.
3378 (variables_info): Rename to ...
3379 (info_variables_command): ... this.
3380 (functions_info): Rename to ...
3381 (info_functions_command): ... this.
3382 (types_info): Rename to ...
3383 (info_types_command): ... this.
3384 (_initialize_symtab): Adjust.
3385 * target.c (target_info): Rename to ...
3386 (info_target_command): ... this.
3387 (initialize_targets): Adjust.
3388 * tracepoint.c (tvariables_info): Rename to ...
3389 (info_tvariables_command): ... this.
3390 (scope_info): Rename to ...
3391 (info_scope_command): ... this.
3392 (trace_dump_actions): Adjust.
3393 (_initialize_tracepoint): Adjust.
3394
b270e6f9
TT
33952017-08-22 Tom Tromey <tom@tromey.com>
3396
3397 * breakpoint.h (install_breakpoint): Update.
3398 * breakpoint.c (add_solib_catchpoint): Update.
3399 (install_breakpoint): Change argument to a std::unique_ptr.
3400 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
3401 (create_breakpoint_sal, create_breakpoint): Update.
3402 (watch_command_1, catch_exec_command_1)
3403 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
3404 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
3405 Return the breakpoint.
3406 (set_raw_breakpoint_without_location, set_raw_breakpoint)
3407 (new_single_step_breakpoint): Update.
3408 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
3409 std::unique_ptr.
3410 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3411 std::unique_ptr.
3412 * break-catch-sig.c (create_signal_catchpoint): Use
3413 std::unique_ptr.
3414 * ada-lang.c (create_ada_exception_catchpoint): Use
3415 std::unique_ptr.
3416
36bd8eaa
TT
34172017-08-22 Tom Tromey <tom@tromey.com>
3418
3419 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
3420
56f37645
TT
34212017-08-22 Tom Tromey <tom@tromey.com>
3422
3423 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
3424 (lookup_partial_symbol): Update.
3425
0b581c69
TT
34262017-08-22 Tom Tromey <tom@tromey.com>
3427
3428 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
3429 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
3430 (find_and_open_source, symtab_to_fullname): Update.
3431 * psymtab.c (psymtab_to_fullname): Update.
3432
14278e1f
TT
34332017-08-22 Tom Tromey <tom@tromey.com>
3434
3435 * exec.c (exec_file_attach): Update.
3436 * linux-thread-db.c (try_thread_db_load): Update.
3437 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
3438 * utils.c (gdb_realpath): Change return type.
3439 (gdb_realpath_keepfile): Update.
3440 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
3441 (_initialize_utils): Register the new self test.
3442 * source.c (openp): Update.
3443 (find_and_open_source): Update.
3444 * nto-tdep.c (nto_find_and_open_solib): Update.
3445 * main.c (set_gdb_data_directory): Update.
3446 (captured_main_1): Update.
3447 * dwarf2read.c (dwarf2_get_dwz_file): Update
3448 (dw2_map_symbol_filenames): Update.
3449 * auto-load.c (auto_load_safe_path_vec_update): Update.
3450 (filename_is_in_auto_load_safe_path_vec): Change type of
3451 "filename_realp".
3452 (auto_load_objfile_script): Update.
3453 (file_is_auto_load_safe): Update. Use std::string.
3454 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3455
4971c9a7
TT
34562017-08-22 Tom Tromey <tom@tromey.com>
3457
3458 * utils.c (gdb_realpath_keepfile): Return a
3459 gdb::unique_xmalloc_ptr.
3460 * exec.c (exec_file_attach): Update.
3461 * utils.h (gdb_realpath_keepfile): Return a
3462 gdb::unique_xmalloc_ptr.
3463
e3e41d58
TT
34642017-08-22 Tom Tromey <tom@tromey.com>
3465
3466 * compile/compile.c (compile_file_command): Use
3467 gdb::unique_xmalloc_ptr, std::string.
3468 * utils.c (gdb_abspath): Change return type.
3469 * source.c (openp): Update.
3470 * objfiles.c (allocate_objfile): Update.
3471 * main.c (set_gdb_data_directory): Update.
3472 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3473
0d999a6e
ZZ
34742017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3475
3476 * cli-cmds.c (list_commands): List actual code around more than
3477 one location.
3478
329d5e7e
JB
34792017-08-21 John Baldwin <jhb@FreeBSD.org>
3480
3481 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3482
bf223d3e
PA
34832017-08-21 Pedro Alves <palves@redhat.com>
3484
3485 PR gdb/19487
3486 * c-exp.y (variable production): Handle function aliases.
3487 * minsyms.c (msymbol_is_text): New function.
3488 * minsyms.h (msymbol_is_text): Declare.
3489 * symtab.c (find_function_alias_target): New function.
3490 * symtab.h (find_function_alias_target): Declare.
3491
c973d0aa
PA
34922017-08-21 Pedro Alves <palves@redhat.com>
3493
3494 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3495 typedefs.
3496 * typeprint.c (whatis_exp): If handling "whatis", and expression
3497 is OP_TYPE, strip one typedef level. Otherwise don't strip
3498 typedefs here.
3499 * valops.c (value_cast): Save "to" type before resolving
3500 stubs/typedefs. Use that type as resulting value's type.
3501
2989a365
TT
35022017-08-18 Tom Tromey <tom@tromey.com>
3503 Pedro Alves <palves@redhat.com>
3504
3505 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3506 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3507 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3508 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3509 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3510 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3511 (linux_get_siginfo_data): Add "thread" argument. Use
3512 scoped_restore.
3513 * linux-nat.c (linux_child_follow_fork)
3514 (check_stopped_by_watchpoint): Use scoped_restore.
3515 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3516 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3517 (restore_inferior_ptid, save_inferior_ptid): Remove.
3518 * btrace.c (btrace_fetch): Use scoped_restore.
3519 * bsd-uthread.c (bsd_uthread_fetch_registers)
3520 (bsd_uthread_store_registers): Use scoped_restore.
3521 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3522 scoped_restore.
3523 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3524 (aix_thread_xfer_partial): Use scoped_restore.
3525 * inferior.h (save_inferior_ptid): Remove.
3526
e60eb288
YQ
35272017-08-18 Yao Qi <yao.qi@linaro.org>
3528
3529 PR tdep/21818
3530 * arm-tdep.c (gdb_print_insn_arm): Mark
3531 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3532
6d580b63
YQ
35332017-08-18 Yao Qi <yao.qi@linaro.org>
3534
3535 * NEWS: Mention GDBserver's new option "--selftest".
3536 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3537 * selftest.c: Move it to common/selftest.c.
3538 * selftest.h: Move it to common/selftest.h.
3539 * selftest-arch.c (reset): New function.
3540 (tests_with_arch): Call reset.
3541
86dcbf50
YQ
35422017-08-18 Yao Qi <yao.qi@linaro.org>
3543
3544 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3545 instead of exception_fprintf and printf_filtered.
3546
7649770c
YQ
35472017-08-18 Yao Qi <yao.qi@linaro.org>
3548
3549 * selftest.c (register_self_test): Rename it to
3550 selftests::register_test.
3551 (run_self_tests): selftest::run_tests.
3552 * selftest.h: Update declarations.
3553 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3554 selftests::register_test_foreach_arch.
3555 * selftest-arch.h: Update declaration.
3556 * aarch64-tdep.c: Update.
3557 * arm-tdep.c: Likewise.
3558 * disasm-selftests.c: Likewise.
3559 * dwarf2loc.c: Likewise.
3560 * dwarf2-frame.c: Likewise.
3561 * findvar.c: Likewise.
3562 * gdbarch-selftests.c: Likewise.
3563 * maint.c (maintenance_selftest): Likewise.
3564 * regcache.c: Likewise.
3565 * rust-exp.y: Likewise.
3566 * selftest-arch.c: Likewise.
3567 * unittests/environ-selftests.c: Likewise.
3568 * unittests/function-view-selftests.c: Likewise.
3569 * unittests/offset-type-selftests.c: Likewise.
3570 * unittests/optional-selftests.c: Likewise.
3571 * unittests/scoped_restore-selftests.c: Likewise.
3572 * utils-selftests.c: Likewise.
3573
b0cba12e
PA
35742017-08-17 Pedro Alves <palves@redhat.com>
3575
3576 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3577 local.
3578
4c8aa72d
PA
35792017-08-17 Pedro Alves <palves@redhat.com>
3580
3581 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3582 field.
3583 (reset_die_in_process): Delete, replaced by ...
3584 (process_die_scope): ... this new class. Make it responsible for
3585 freeing cu->line_header too.
3586 (process_die): Use process_die_scope.
3587 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3588 cu->line_header_die_owner. Don't release the line header if it's
3589 owned by the CU.
3590 (setup_type_unit_groups): Make the CU/DIE own the line header.
3591 Don't release the line header here.
3592
ba713918
AL
35932017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3594
3595 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3596
44d0fb3a
RK
35972017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3598
3599 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3600 Single-Key mode
3601
a5afdb16
RK
36022017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3603
3604 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3605 mode command list.
3606
47613aeb
SH
36072017-08-15 Stafford Horne <shorne@gmail.com>
3608
3609 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3610
9c3cc999
SH
36112017-08-15 Stafford Horne <shorne@gmail.com>
3612
3613 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3614
206726fb
SDJ
36152017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3616
3617 PR gdb/21954
3618 * infcmd.c (unset_environment_command): Use the 'clear' method on
3619 the environment instead of resetting it.
3620
0335ac6d
JB
36212017-08-15 John Baldwin <jhb@FreeBSD.org>
3622
3623 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3624 platforms.
3625
d3abe1c8
TT
36262017-08-14 Tom Tromey <tom@tromey.com>
3627
3628 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3629 (print_binary_chars): Likewise.
3630 (BITS_IN_BYTES): Remove.
3631
d6382fff
TT
36322017-08-14 Tom Tromey <tom@tromey.com>
3633
3634 PR gdb/21675
3635 * valprint.c (LOW_ZERO): Change value to 034.
3636 (print_octal_chars): Add static_asserts for octal constants.
3637 * printcmd.c (print_scalar_formatted): Add 'd' case.
3638
f978cb06
TT
36392017-08-11 Tom Tromey <tom@tromey.com>
3640
3641 * symfile.c (add_symbol_file_command): Use std::vector.
3642
2f5404b3
TT
36432017-08-14 Tom Tromey <tom@tromey.com>
3644
3645 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3646 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3647 std::move.
3648 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3649
de7985c3
PA
36502017-08-11 Pedro Alves <palves@redhat.com>
3651
3652 * infrun.c (process_event_stop_test): Adjust
3653 function_name_is_marked_for_skip call.
3654 * skip.c: Include <list>.
3655 (skiplist_entry): Make it a class with private fields, and
3656 getters/setters.
3657 (skiplist_entry_chain): Delete.
3658 (skiplist_entries): New.
3659 (skiplist_entry_count): Delete.
3660 (highest_skiplist_entry_num): New.
3661 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3662 (add_skiplist_entry): Delete.
3663 (skiplist_entry::skiplist_entry): New.
3664 (skiplist_entry::add_entry): New.
3665 (skip_file_command, skip_function): Adjust.
3666 (compile_skip_regexp): Delete.
3667 (skip_command): Don't compile regexp here. Adjust to use
3668 skiplist_entry::add_entry.
3669 (skip_info): Adjust to use range-for and getters.
3670 (skip_enable_command, skip_disable_command): Adjust to use
3671 range-for and setters.
3672 (skip_delete_command): Adjust to use std::list.
3673 (add_skiplist_entry): Delete.
3674 (skip_file_p): Delete, refactored as ...
3675 (skiplist_entry::do_skip_file_p): ... this new method.
3676 (skip_gfile_p): Delete, refactored as ...
3677 (skiplist_entry::do_gskip_file_p): ... this new method.
3678 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3679 (skiplist_entry::skip_function_p): ... this new method.
3680 (function_name_is_marked_for_skip): Now returns bool, and takes
3681 the function sal by const reference. Adjust to use range-for and
3682 skiplist_entry methods.
3683 (_initialize_step_skip): Remove references to
3684 skiplist_entry_chain, skiplist_entry_count.
3685 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3686 takes the function sal by const reference.
3687
be7d3cd5
YQ
36882017-08-11 Yao Qi <yao.qi@linaro.org>
3689
3690 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3691 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3692 (dwarf2_frame_cache):
3693 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3694 RETURN_MASK_ALL and set *this_case to NULL.
3695 * frame-unwind.h: Update comments.
3696
1c90d9f0
YQ
36972017-08-11 Yao Qi <yao.qi@linaro.org>
3698
3699 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3700 (dwarf2_frame_state_copy_regs): Remove.
3701 (dwarf2_frame_state_free_regs): Remove.
3702 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3703 (dwarf2_restore_rule): Call method .alloc_regs instead of
3704 dwarf2_frame_state_alloc_regs.
3705 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3706 constructor. Call std::move.
3707 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3708 (dwarf2_frame_cache): Likewise.
3709
3710 [GDB_SELF_TEST]: Include selftest.h and
3711 selftest-arch.h.
3712 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3713 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3714 execute_cfa_program_test.
3715
3716 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3717 copy ctor, assignment operator, move assignment.
3718 <alloc_regs>: New method.
3719 <swap>: New method.
3720 (struct dwarf2_frame_state): Delete dtor.
3721 (dwarf2_frame_state_alloc_regs): Remove declaration.
3722 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3723 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3724
afe37d6b
YQ
37252017-08-11 Yao Qi <yao.qi@linaro.org>
3726
3727 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3728 (dwarf2_frame_state::dwarf2_frame_state): New.
3729 (dwarf2_frame_state::~dwarf2_frame_state): New.
3730 (dwarf2_fetch_cfa_info): Update.
3731 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3732 rather than a pointer. Update code.
3733 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3734 dtor.
3735 <data_align, code_align, retaddr_column>: Change them to const.
3736 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3737 to bool.
3738
b348037f
YQ
37392017-08-11 Yao Qi <yao.qi@linaro.org>
3740
3741 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3742 <loc.exp>: New field.
3743 * dwarf2-frame.c (execute_cfa_program): Update.
3744 (dwarf2_frame_prev_register): Update.
3745
e7c9de26
PA
37462017-08-10 Pedro Alves <palves@redhat.com>
3747
3748 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3749
e8c6b620
JB
37502017-08-09 John Baldwin <jhb@FreeBSD.org>
3751
3752 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3753 (fbsd_pending_children): Use std::list.
3754 (fbsd_remember_child): Likewise.
3755 (fbsd_is_child_pending): Likewise.
3756 (fbsd_pending_vfork_done): Use std::forward_list.
3757 (fbsd_add_vfork_done): Likewise.
3758 (fbsd_is_vfork_done_pending): Likewise.
3759 (fbsd_next_vfork_done): Likewise.
3760
e4a26669
JB
37612017-08-09 John Baldwin <jhb@FreeBSD.org>
3762
3763 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3764 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3765 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3766 for `mapfilename'.
3767 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 3768 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 3769
142311d3
JB
37702017-08-09 John Baldwin <jhb@FreeBSD.org>
3771
3772 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3773 "filestuff.h".
3774 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3775
42fa2e0e
TT
37762017-08-09 Tom Tromey <tom@tromey.com>
3777
3778 * skip.c (skiplist_entry): New constructor.
3779 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3780 (skiplist_entry::file_is_glob): Now bool.
3781 (skiplist_entry::file, skiplist_entry::function): Now
3782 std::string.
3783 (make_skip_entry): Return a unique_ptr. Use new.
3784 (free_skiplist_entry, free_skiplist_entry_cleanup)
3785 (make_free_skiplist_entry_cleanup): Remove.
3786 (skip_command, skip_disable_command, add_skiplist_entry)
3787 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3788 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3789 (function_name_is_marked_for_skip): Update.
3790 (skip_delete_command): Update. Use delete.
3791
cd3af38d
JW
37922017-08-09 Jiong Wang <jiong.wang@arm.com>
3793
3794 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3795 (aarch64_linux_core_read_description): New function.
3796 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3797
29592bde
PA
37982017-08-09 Pedro Alves <palves@redhat.com>
3799
3800 * cp-name-parser.y (cp_comp_to_string): Return a
3801 gdb::unique_xmalloc_ptr<char>.
3802 * cp-support.c (replace_typedefs_qualified_name)
3803 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3804 (cp_canonicalize_string_full): Use op= instead of explicit
3805 convertion.
3806 (cp_class_name_from_physname, method_name_from_physname)
3807 (cp_func_name, cp_remove_params): Adjust to use
3808 gdb::unique_xmalloc_ptr<char>.
3809 * cp-support.h (cp_comp_to_string): Return a
3810 gdb::unique_xmalloc_ptr<char>.
3811 * python/py-type.c (typy_lookup_type): Adjust to use
3812 gdb::unique_xmalloc_ptr<char>.
3813
b3340438
L
38142017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3815
3816 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3817
e88e8651
YQ
38182017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3819 Yao Qi <yao.qi@linaro.org>
3820
3821 * cp-support.c (cp_canonicalize_string_full): Use
3822 gdb::unique_xmalloc_ptr<char>.
3823 (cp_canonicalize_string): Likewise.
3824
f5a29eb0
YQ
38252017-08-09 Yao Qi <yao.qi@linaro.org>
3826
3827 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3828 * regformats/i386/amd64-avx-avx512.dat: Remove.
3829 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3830 * regformats/i386/amd64-avx-mpx.dat:Remove.
3831 * regformats/i386/amd64-avx.dat: Remove.
3832 * regformats/i386/amd64-mpx.dat: Remove.
3833 * regformats/i386/i386-avx-avx512.dat: Remove.
3834 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3835 * regformats/i386/i386-avx-mpx.dat: Remove.
3836 * regformats/i386/i386-mmx.dat: Remove.
3837 * regformats/i386/i386-mpx.dat: Remove.
3838
57757c2f
YQ
38392017-08-09 Yao Qi <yao.qi@linaro.org>
3840
3841 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3842 * amd64-tdep.c: Don't include features/i386/x32*.c.
3843 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3844 functions.
3845 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3846 and i386/x32-avx-avx512.
3847 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3848 and i386/x32.xml.
3849 * features/i386/x32-avx-avx512.c: Removed.
3850 * features/i386/x32-avx-avx512.xml: Removed.
3851 * features/i386/x32-avx.c: Removed.
3852 * features/i386/x32-avx.xml: Removed.
3853 * features/i386/x32.c: Removed.
3854 * features/i386/x32.xml: Removed.
3855 * regformats/i386/x32-avx-avx512.dat: Removed.
3856 * regformats/i386/x32-avx.dat: Removed.
3857 * regformats/i386/x32.dat: Removed.
3858
ba7b109b
MR
38592017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3860
3861 PR breakpoints/21886
3862 * mem-break.c (default_memory_insert_breakpoint): Use
3863 `->placed_address' rather than `->reqstd_address' for the
3864 breakpoint location.
3865
e347efc3
MR
38662017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3867
3868 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3869 assertions.
3870
0dba2a6c
MR
38712017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3872
3873 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3874 a union of `tdep_info', `tdesc_data' and `id'.
3875 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3876 rather than `info.tdep_info'.
3877 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3878 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3879 * i386-tdep.c (i386_gdbarch_init): Likewise.
3880 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3881 * mips-tdep.c (mips_gdbarch_init): Likewise.
3882 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3883 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3884 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3885 `info.tdep_info'.
3886 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3887 `info.tdep_info'.
3888 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3889 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3890 `info.tdep_info'.
3891 * spu-tdep.c (spu_gdbarch_init): Likewise.
3892 * gdbarch.h: Regenerate.
3893
16eb6b2d
LS
38942017-08-07 Leszek Swirski <leszeks@google.com>
3895
7b005726 3896 PR symtab/20899
16eb6b2d
LS
3897 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3898
74cbb09e
SM
38992017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3900
3901 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3902 (gdbsim_open): Rename gdb_argv args object to argv.
3903
ee0c3293
TT
39042017-08-05 Tom Tromey <tom@tromey.com>
3905
3906 * compile/compile-object-load.c (compile_object_load): Use
3907 gdb::unique_xmalloc_ptr.
3908 * cli/cli-dump.c (scan_filename): Rename from
3909 scan_filename_with_cleanup. Change return type.
3910 (scan_expression): Rename from scan_expression_with_cleanup.
3911 Change return type.
3912 (dump_memory_to_file, dump_value_to_file, restore_command):
3913 Use gdb::unique_xmalloc_ptr. Update.
3914 * cli/cli-cmds.c (find_and_open_script): Use
3915 gdb::unique_xmalloc_ptr.
3916 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3917 * symmisc.c (maintenance_print_symbols)
3918 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3919 * symfile.c (symfile_bfd_open, generic_load)
3920 (add_symbol_file_command, remove_symbol_file_command): Use
3921 gdb::unique_xmalloc_ptr.
3922 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3923 * psymtab.c (maintenance_print_psymbols): Use
3924 gdb::unique_xmalloc_ptr.
3925 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3926 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3927 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3928 (reload_shared_libraries_1): Likewise.
3929
3232fabd
TT
39302017-08-05 Tom Tromey <tom@tromey.com>
3931
3932 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3933 (rust_op_vector, rust_set_vector): New typedefs.
3934 (current_parser): New global.
3935 (work_obstack): Change to pointer type. Update all users.
3936 (rust_ast, pstate): Remove globals.
3937 (struct rust_parser): New.
3938 (%union) <params, field_inits>: Change type.
3939 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3940 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3941 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3942 (convert_params_to_types, convert_params_to_expression): Change
3943 type of "params".
3944 (ast_string): Change type of "fields".
3945 (rust_parse): Make a rust_parser. Remove cleanups.
3946 (rust_lex_tests): Make and install an auto_obstack.
3947
f02fd774
YQ
39482017-08-04 Yao Qi <yao.qi@linaro.org>
3949
3950 * configure.srv (ipa_x32_linux_regobj): New.
3951 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3952 instead of X86_TDESC_AVX512.
3953 (initialize_low_tracepoint): Call
3954 init_registers_x32_avx_avx512_linux.
3955
91975afd
YQ
39562017-08-04 Yao Qi <yao.qi@linaro.org>
3957
3958 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3959
2331fa3a
RK
39602017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3961
3962 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3963
744e4fe1
TT
39642017-08-03 Tom Tromey <tom@tromey.com>
3965
3966 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3967 Remove.
3968 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3969
1c034b67
TT
39702017-08-03 Tom Tromey <tom@tromey.com>
3971
3972 * python/py-param.c (compute_enum_values): Use gdb_argv.
3973
773a1edc
TT
39742017-08-03 Tom Tromey <tom@tromey.com>
3975
3976 * utils.h (struct gdb_argv_deleter): New.
3977 (gdb_argv): New class.
3978 * utils.c (gdb_argv::reset): New method.
3979 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3980 * tracefile.c (tsave_command): Use gdb_argv.
3981 * top.c (new_ui_command): Use gdb_argv.
3982 * symmisc.c (maintenance_print_symbols)
3983 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3984 * symfile.c (symbol_file_command, generic_load)
3985 (remove_symbol_file_command): Use gdb_argv.
3986 * stack.c (backtrace_command): Use gdb_argv.
3987 * source.c (add_path, show_substitute_path_command)
3988 (unset_substitute_path_command, set_substitute_path_command):
3989 Use gdb_argv.
3990 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3991 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3992 * remote.c (extended_remote_run, remote_put_command)
3993 (remote_get_command, remote_delete_command): Use gdb_argv.
3994 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3995 (gdbsim_open): Use gdb_argv.
3996 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3997 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3998 * procfs.c (procfs_info_proc): Use gdb_argv.
3999 * interps.c (interpreter_exec_cmd): Use gdb_argv.
4000 * infrun.c (handle_command): Use gdb_argv.
4001 * inferior.c (add_inferior_command, clone_inferior_command):
4002 Use gdb_argv.
4003 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
4004 * exec.c (exec_file_command): Use gdb_argv.
4005 * cli/cli-cmds.c (alias_command): Use gdb_argv.
4006 * compile/compile.c (build_argc_argv): Use gdb_argv.
4007
0d50bde3
TT
40082017-08-03 Tom Tromey <tom@tromey.com>
4009
4010 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
4011
7f968c89
TT
40122017-08-03 Tom Tromey <tom@tromey.com>
4013
4014 * python/python.c (compute_python_string): Return std::string.
4015 (gdbpy_eval_from_control_command): Update.
4016 (do_start_initialization): Use std::string.
4017 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
4018 xstrprintf.
4019 * python/py-breakpoint.c (local_setattro): Use string_printf, not
4020 xstrprintf.
4021
3c9ebddd
TT
40222017-08-03 Tom Tromey <tom@tromey.com>
4023
4024 * top.h (do_restore_instream_cleanup): Remove.
4025 * top.c (do_restore_instream_cleanup): Remove.
4026 (read_command_file): Use scoped_restore.
4027 * cli/cli-script.c (execute_user_command): Use scoped_restore.
4028
b51b225e
TT
40292017-08-03 Tom Tromey <tom@tromey.com>
4030
4031 * cli/cli-script.c (execute_user_command)
4032 (execute_control_command): Use scoped_restore.
4033
ac991630
TT
40342017-08-03 Tom Tromey <tom@tromey.com>
4035
4036 * cli/cli-script.c (do_restore_user_call_depth): Remove.
4037 (execute_user_command): Remove user_call_depth; use
4038 user_args_stack's size instead.
4039
898e0c8e
TT
40402017-08-03 Tom Tromey <tom@tromey.com>
4041
4042 * top.h (in_user_command): Remove.
4043 * top.c (in_user_command): Remove.
4044 * cli/cli-script.c (do_restore_user_call_depth)
4045 (execute_user_command): Update.
4046
26fcd5d7
TT
40472017-08-03 Tom Tromey <tom@tromey.com>
4048
4049 * valops.c (search_struct_method): Use gdb::byte_vector.
4050 * valarith.c (value_concat): Use std::vector.
4051 * target.c (memory_xfer_partial): Use gdb::byte_vector.
4052 (simple_search_memory): Likewise.
4053 * printcmd.c (find_string_backward): Use gdb::byte_vector.
4054 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
4055 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
4056 * elfread.c (elf_rel_plt_read): Use std::string.
4057 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
4058 * cli/cli-dump.c (restore_section_callback): Use
4059 gdb::byte_vector.
4060
7c218e6c
TT
40612017-08-03 Tom Tromey <tom@tromey.com>
4062
4063 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
4064
31b68d4a
TT
40652017-08-03 Tom Tromey <tom@tromey.com>
4066
4067 * tui/tui-regs.c (tui_restore_gdbout): Remove.
4068 (tui_register_format): Use scoped_restore.
4069
2ec845e7
TT
40702017-08-03 Tom Tromey <tom@tromey.com>
4071
4072 * reverse.c (exec_direction_default): Remove.
4073 (exec_reverse_once): Use scoped_restore.
4074 * remote.c (restore_remote_timeout): Remove.
4075 (remote_flash_erase, remote_flash_write, remote_flash_done)
4076 (readchar, remote_serial_write): Use scoped_restore.
4077 * cli/cli-script.c (struct source_cleanup_lines_args)
4078 (source_cleanup_lines): Remove.
4079 (script_from_file): Use scoped_restore.
4080 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
4081 (source_command): Use scoped_restore.
4082
b3bc8453
TT
40832017-08-03 Tom Tromey <tom@tromey.com>
4084
4085 * utils.h (make_cleanup_free_so): Remove.
4086 * utils.c (do_free_so, make_cleanup_free_so): Remove.
4087 * solist.h (struct so_deleter): New.
4088 (so_list_up): New typedef.
4089 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
4090
e3ad2841
TT
40912017-08-03 Tom Tromey <tom@tromey.com>
4092
4093 * utils.h (make_cleanup_restore_current_language): Remove.
4094 * utils.c (do_restore_current_language)
4095 (make_cleanup_restore_current_language): Remove.
4096 * parse.c (parse_exp_in_context_1)
4097 (parse_expression_with_language): Use
4098 scoped_restore_current_language.
4099 * mi/mi-main.c (mi_cmd_execute): Use
4100 scoped_restore_current_language.
4101 * language.h (scoped_restore_current_language): New class.
4102
b80cf838
TT
41032017-08-03 Tom Tromey <tom@tromey.com>
4104
4105 * compile/compile.c (cleanup_unlink_file): Remove.
4106 (compile_to_object): Use gdb::unlinker.
4107 (eval_compile_command): Likewise.
4108
fad0444a
TT
41092017-08-03 Tom Tromey <tom@tromey.com>
4110
4111 * utils.h (make_cleanup_fclose): Remove.
4112 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
4113
6e7bc05c
TT
41142017-08-03 Tom Tromey <tom@tromey.com>
4115
4116 * top.c (open_terminal_stream): Return gdb_file_up.
4117 (new_ui_command): Update.
4118
4a45905b
TT
41192017-08-03 Tom Tromey <tom@tromey.com>
4120
4121 * source.c (print_source_lines_base, forward_search_command)
4122 (reverse_search_command): Use gdb_file_up.
4123
7cd06d6e
TT
41242017-08-03 Tom Tromey <tom@tromey.com>
4125
4126 * fbsd-nat.c (fbsd_find_memory_regions): Update.
4127
ed166945
TT
41282017-08-03 Tom Tromey <tom@tromey.com>
4129
4130 * cli/cli-cmds.c (find_and_open_script): Change return type.
4131 Remove "streamp" and "full_path" parameters.
4132 (source_script_with_search): Update.
4133 * auto-load.c (source_script_file): Update.
4134 * cli/cli-cmds.h (find_and_open_script): Change type.
4135 (open_script): New struct.
4136
d419f42d
TT
41372017-08-03 Tom Tromey <tom@tromey.com>
4138
4139 * xml-support.c (xml_fetch_content_from_file): Update.
4140 * ui-file.c (stdio_file::open): Update.
4141 * tracefile-tfile.c (tfile_start): Update.
4142 * remote.c (remote_file_put, remote_file_get): Update.
4143 * nat/linux-procfs.c (linux_proc_get_int)
4144 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
4145 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
4146 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
4147 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4148 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
4149 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
4150 * linux-nat.c (linux_proc_pending_signals): Update.
4151 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
4152 (file_closer): Remove.
4153 * compile/compile.c (compile_to_object): Update.
4154 * common/filestuff.h (struct gdb_file_deleter): New.
4155 (gdb_file_up): New typedef.
4156 (gdb_fopen_cloexec): Change return type.
4157 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
4158 * cli/cli-dump.c (fopen_with_cleanup): Remove.
4159 (dump_binary_file, restore_binary_file): Update.
4160 * auto-load.c (auto_load_objfile_script_1): Update.
4161
4a2b031d
TT
41622017-08-03 Tom Tromey <tom@tromey.com>
4163
4164 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
4165 (info_static_tracepoint_markers_command): Likewise.
4166 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
4167 * skip.c (skip_info): Use ui_out_emit_table.
4168 * progspace.c (print_program_space): Use ui_out_emit_table.
4169 * osdata.c (info_osdata): Use ui_out_emit_table.
4170 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
4171 ui_out_emit_table.
4172 * linux-thread-db.c (info_auto_load_libthread_db): Use
4173 ui_out_emit_table.
4174 * inferior.c (print_inferior): Use ui_out_emit_table.
4175 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
4176 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
4177 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
4178 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
4179 * ui-out.h (class ui_out_emit_table): New.
4180
a4f320fd
MR
41812017-08-02 Maciej W. Rozycki <macro@imgtec.com>
4182
4183 * mips-tdep.c (mips_fpu_type_str): New function.
4184 (mips_dump_tdep): Call it.
4185
a2f1f308
MR
41862017-08-01 Maciej W. Rozycki <macro@imgtec.com>
4187
4188 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
4189 `->mips_fpu_type'.
4190
7e5ed83b
XR
41912017-07-31 Xavier Roirand <roirand@adacore.com>
4192
4193 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4194
4c9dc811
XR
41952017-07-27 Xavier Roirand <roirand@adacore.com>
4196
4197 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
4198
27d41eac
YQ
41992017-07-26 Yao Qi <yao.qi@linaro.org>
4200
4201 * cli/cli-cmds.c (maintenancechecklist): New variable.
4202 * gdbcmd.h (maintenancechecklist): Declare it.
4203 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
4204 Call i386_linux_read_description with different masks.
4205 * maint.c (maintenance_check_command): New function.
4206 (_initialize_maint_cmds): Call add_prefix_cmd.
4207 * target-descriptions.c (tdesc_reg): override operator != and ==.
4208 (tdesc_type): Likewise.
4209 (tdesc_feature): Likewise.
4210 (target_desc): Likewise.
4211 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
4212 (maintenance_check_xml_descriptions): New function.
4213 (_initialize_target_descriptions) Add command "xml-descriptions".
4214 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
4215
ea03d0d3
YQ
42162017-07-26 Yao Qi <yao.qi@linaro.org>
4217
4218 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
4219 Include features/i386/32bit-*.c.
4220 (i386_linux_read_description): Generate target description if it
4221 doesn't exist.
4222 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
4223 functions.
4224 * features/i386/32bit-linux.c: Re-generated.
4225 * features/i386/32bit-sse.c: Likewise.
4226 * target-descriptions.c (print_c_feature::visit): Print code to
4227 set register number if needed.
4228 (print_c_feature) <m_next_regnum>: New field.
4229
25aa13e5
YQ
42302017-07-26 Yao Qi <yao.qi@linaro.org>
4231
4232 * features/Makefile (CFILES): Rename with TDESC_CFILES.
4233 (FEATURE_XMLFILES): New.
4234 (FEATURE_CFILES): New.
4235 New rules.
4236 (clean-cfiles): Remove generated c files.
4237 * features/i386/32bit-avx.c: Generated.
4238 * features/i386/32bit-avx512.c: Generated.
4239 * features/i386/32bit-core.c: Generated.
4240 * features/i386/32bit-linux.c: Generated.
4241 * features/i386/32bit-mpx.c: Generated.
4242 * features/i386/32bit-pkeys.c: Generated.
4243 * features/i386/32bit-sse.c: Generated.
4244 * target-descriptions.c: Include algorithm.
4245 (tdesc_element_visitor): Add method visit_end.
4246 (print_c_tdesc): Implement visit_end.
4247 (print_c_tdesc:: m_filename_after_features): Move it to
4248 protected.
4249 (print_c_feature): New class.
4250 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
4251 name starts with "i386/32bit-".
4252
6eb1e6a8
YQ
42532017-07-26 Yao Qi <yao.qi@linaro.org>
4254
4255 * target-descriptions.c (tdesc_element_visitor): New class.
4256 (tdesc_element): New class.
4257 (tdesc_reg): Inherit from tdesc_element.
4258 (tdesc_reg::accept): New function.
4259 (tdesc_type): Inherit from tdesc_element.
4260 (tdesc_type::accept): New function.
4261 (tdesc_feature): Inherit from tdesc_element.
4262 (tdesc_feature::accept): New function.
4263 (target_desc): Inherit from tdesc_element.
4264 (target_desc::target_desc): New.
4265 (target_desc::~target_desc): New.
4266 (target_desc::accept): New.
4267 (allocate_target_description): Use new.
4268 (free_target_description): Use delete.
4269 (print_c_tdesc): New class.
4270 (maint_print_c_tdesc_cmd): Adjust.
4271
4272 * features/aarch64.c: Re-generated.
4273 * features/arc-arcompact.c: Re-generated.
4274 * features/arc-v2.c: Re-generated.
4275 * features/arm/arm-with-iwmmxt.c: Re-generated.
4276 * features/arm/arm-with-m.c: Re-generated.
4277 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
4278 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
4279 * features/arm/arm-with-neon.c: Re-generated.
4280 * features/arm/arm-with-vfpv2.c: Re-generated.
4281 * features/arm/arm-with-vfpv3.c: Re-generated.
4282 * features/i386/amd64-avx-avx512.c: Re-generated.
4283 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4284 * features/i386/amd64-avx.c: Re-generated.
4285 * features/i386/amd64-avx-linux.c: Re-generated.
4286 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
4287 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4288 * features/i386/amd64-avx-mpx.c: Re-generated.
4289 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
4290 * features/i386/amd64.c: Re-generated.
4291 * features/i386/amd64-linux.c: Re-generated.
4292 * features/i386/amd64-mpx.c: Re-generated.
4293 * features/i386/amd64-mpx-linux.c: Re-generated.
4294 * features/i386/i386-avx-avx512.c: Re-generated.
4295 * features/i386/i386-avx-avx512-linux.c: Re-generated.
4296 * features/i386/i386-avx.c: Re-generated.
4297 * features/i386/i386-avx-linux.c: Re-generated.
4298 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
4299 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
4300 * features/i386/i386-avx-mpx.c: Re-generated.
4301 * features/i386/i386-avx-mpx-linux.c: Re-generated.
4302 * features/i386/i386.c: Re-generated.
4303 * features/i386/i386-linux.c: Re-generated.
4304 * features/i386/i386-mmx.c: Re-generated.
4305 * features/i386/i386-mmx-linux.c: Re-generated.
4306 * features/i386/i386-mpx.c: Re-generated.
4307 * features/i386/i386-mpx-linux.c: Re-generated.
4308 * features/i386/x32-avx-avx512.c: Re-generated.
4309 * features/i386/x32-avx-avx512-linux.c: Re-generated.
4310 * features/i386/x32-avx.c: Re-generated.
4311 * features/i386/x32-avx-linux.c: Re-generated.
4312 * features/i386/x32.c: Re-generated.
4313 * features/i386/x32-linux.c: Re-generated.
4314 * features/microblaze.c: Re-generated.
4315 * features/microblaze-with-stack-protect.c: Re-generated.
4316 * features/mips64-dsp-linux.c: Re-generated.
4317 * features/mips64-linux.c: Re-generated.
4318 * features/mips-dsp-linux.c: Re-generated.
4319 * features/mips-linux.c: Re-generated.
4320 * features/nds32.c: Re-generated.
4321 * features/nios2.c: Re-generated.
4322 * features/nios2-linux.c: Re-generated.
4323 * features/rs6000/powerpc-32.c: Re-generated.
4324 * features/rs6000/powerpc-32l.c: Re-generated.
4325 * features/rs6000/powerpc-403.c: Re-generated.
4326 * features/rs6000/powerpc-403gc.c : Re-generated.
4327 * features/rs6000/powerpc-405.c: Re-generated.
4328 * features/rs6000/powerpc-505.c: Re-generated.
4329 * features/rs6000/powerpc-601.c: Re-generated.
4330 * features/rs6000/powerpc-602.c: Re-generated.
4331 * features/rs6000/powerpc-603.c: Re-generated.
4332 * features/rs6000/powerpc-604.c: Re-generated.
4333 * features/rs6000/powerpc-64.c: Re-generated.
4334 * features/rs6000/powerpc-64l.c: Re-generated.
4335 * features/rs6000/powerpc-7400.c: Re-generated.
4336 * features/rs6000/powerpc-750.c: Re-generated.
4337 * features/rs6000/powerpc-860.c: Re-generated.
4338 * features/rs6000/powerpc-altivec32.c: Re-generated.
4339 * features/rs6000/powerpc-altivec32l.c: Re-generated.
4340 * features/rs6000/powerpc-altivec64.c: Re-generated.
4341 * features/rs6000/powerpc-altivec64l.c: Re-generated.
4342 * features/rs6000/powerpc-cell32l.c: Re-generated.
4343 * features/rs6000/powerpc-cell64l.c: Re-generated.
4344 * features/rs6000/powerpc-e500.c: Re-generated.
4345 * features/rs6000/powerpc-e500l.c: Re-generated.
4346 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
4347 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
4348 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
4349 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
4350 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
4351 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
4352 * features/rs6000/powerpc-vsx32.c: Re-generated.
4353 * features/rs6000/powerpc-vsx32l.c: Re-generated.
4354 * features/rs6000/powerpc-vsx64.c: Re-generated.
4355 * features/rs6000/powerpc-vsx64l.c: Re-generated.
4356 * features/rs6000/rs6000.c: Re-generated.
4357 * features/s390-linux32.c: Re-generated.
4358 * features/s390-linux32v1.c: Re-generated.
4359 * features/s390-linux32v2.c: Re-generated.
4360 * features/s390-linux64.c: Re-generated.
4361 * features/s390-linux64v1.c: Re-generated.
4362 * features/s390-linux64v2.c: Re-generated.
4363 * features/s390-te-linux64.c: Re-generated.
4364 * features/s390-tevx-linux64.c: Re-generated.
4365 * features/s390-vx-linux64.c: Re-generated.
4366 * features/s390x-linux64.c: Re-generated.
4367 * features/s390x-linux64v1.c: Re-generated.
4368 * features/s390x-linux64v2.c: Re-generated.
4369 * features/s390x-te-linux64.c: Re-generated.
4370 * features/s390x-tevx-linux64.c: Re-generated.
4371 * features/s390x-vx-linux64.c: Re-generated.
4372 * features/sparc/sparc32-solaris.c: Re-generated.
4373 * features/sparc/sparc64-solaris.c: Re-generated.
4374 * features/tic6x-c62x.c: Re-generated.
4375 * features/tic6x-c62x-linux.c: Re-generated.
4376 * features/tic6x-c64x.c: Re-generated.
4377 * features/tic6x-c64x-linux.c: Re-generated.
4378 * features/tic6x-c64xp.c: Re-generated.
4379 * features/tic6x-c64xp-linux.c: Re-generated.
4380
35b4818d
YQ
43812017-07-26 Yao Qi <yao.qi@linaro.org>
4382
4383 * i386-linux-tdep.c (i386_linux_read_description): New function.
4384 (i386_linux_core_read_description): Call
4385 i386_linux_read_description.
4386 * i386-linux-tdep.h (i386_linux_read_description): Declare.
4387 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
4388 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
4389 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
4390 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
4391 * x86-linux-nat.c (x86_linux_read_description): Call
4392 i386_linux_read_description.
4393
8e2141c6
YQ
43942017-07-26 Yao Qi <yao.qi@linaro.org>
4395
4396 * NEWS: Mention it.
4397 * features/Makefile (%.c: %.xml): Pass the xml file name to
4398 command "maint print c-tdesc".
4399 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
4400 name from 'arg'.
4401
b468ff4c
YQ
44022017-07-26 Yao Qi <yao.qi@linaro.org>
4403
4404 * target-descriptions.c (target_desc): Add ctor and dtor. Do
4405 in-class initialization.
4406 (tdesc_create_feature): Call new instead of XCNEW.
4407 (free_target_description): Ue delete.
4408
b9c0e1b4
JB
44092017-07-25 John Baldwin <jhb@FreeBSD.org>
4410
4411 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
4412
a04b5337
YQ
44132017-07-25 Yao Qi <yao.qi@linaro.org>
4414
4415 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
4416 constant.
4417 (amd64_x32_init_abi): Likewise.
4418 * amd64-tdep.h (amd64_init_abi): Update declaration.
4419 (amd64_x32_init_abi): Likewise.
4420
02ad7fc2
YQ
44212017-07-25 Yao Qi <yao.qi@linaro.org>
4422
4423 PR tdep/21717
4424 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
4425 condition for FPSCR.
4426 (arm_linux_store_inferior_registers): Likewise.
4427
b6f48cb0
TT
44282017-07-22 Tom Tromey <tom@tromey.com>
4429
4430 * break-catch-syscall.c (struct catch_syscall_inferior_data)
4431 <syscalls_counts>: Now a std::vector.
4432 (get_catch_syscall_inferior_data): Use "new".
4433 (catch_syscall_inferior_data_cleanup): Use "delete".
4434 (insert_catch_syscall, remove_catch_syscall)
4435 (clear_syscall_counts): Update.
4436
e12c9b7a
TT
44372017-07-22 Tom Tromey <tom@tromey.com>
4438
4439 * break-catch-syscall.c (syscall_catchpoint)
4440 <syscalls_to_be_caught>: Now a std::vector<int>
4441 (~syscall_catchpoint): Remove.
4442 (insert_catch_syscall, remove_catch_syscall)
4443 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4444 (print_mention_catch_syscall, print_recreate_catch_syscall):
4445 Update.
4446 (create_syscall_event_catchpoint): Change type of "filter"
4447 parameter.
4448 (catch_syscall_split_args): Return a std::vector.
4449 (catch_syscall_command_1, catching_syscall_number_1): Update.
4450
4fa8aeac
TT
44512017-07-22 Tom Tromey <tom@tromey.com>
4452
4453 * break-catch-throw.c (struct exception_catchpoint)
4454 <exception_rx>: Now a std::string.
4455 (~exception_catchpoint): Remove.
4456 (print_one_detail_exception_catchpoint): Update.
4457 (handle_gnu_v3_exceptions): Change type of except_rx.
4458 (extract_exception_regexp): Return a std::string.
4459 (catch_exception_command_1): Update.
4460
f746a154
TT
44612017-07-22 Tom Tromey <tom@tromey.com>
4462
4463 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4464 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4465 std::vector.
4466 <catch_all>: Now a bool.
4467 (~signal_catchpoint): Remove.
4468 (signal_catchpoint_insert_location)
4469 (signal_catchpoint_remove_location)
4470 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4471 (signal_catchpoint_print_mention)
4472 (signal_catchpoint_print_recreate)
4473 (signal_catchpoint_explains_signal): Update.
4474 (create_signal_catchpoint): Change type of "filter" and
4475 "catch_all".
4476 (catch_signal_split_args): Return a std::vector. Change type of
4477 "catch_all".
4478 (catch_signal_command): Update.
4479
47e77640
PA
44802017-07-20 Pedro Alves <palves@redhat.com>
4481
4482 * ada-lang.c (ada_language_defn): Make extern.
4483 (_initialize_ada_language): Remove add_language call.
4484 * c-lang.c (c_language_defn, cplus_language_defn)
4485 (asm_language_defn, minimal_language_defn): Make extern.
4486 (_initialize_c_language): Delete.
4487 * completer.c (compare_cstrings): Delete, moved to utils.h.
4488 * d-lang.c (d_language_defn): Make extern.
4489 (_initialize_d_language): Remove add_language calls.
4490 * defs.h (enum language): Add comment.
4491 * f-lang.c (f_language_defn): Make extern.
4492 (_initialize_f_language): Remove add_language call.
4493 * go-lang.c (go_language_defn): Make extern.
4494 (_initialize_go_language): Remove add_language call.
4495 * language.c: Include <algorithm>.
4496 (languages): Redefine as const array.
4497 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4498 (set_language_command): Handle "local". Use for-range loop.
4499 (set_language): Remove loop.
4500 (language_enum): Rewrite.
4501 (language_def, language_str): Remove loops.
4502 (add_language): Delete.
4503 (add_set_language_command): New, based on add_languages.
4504 (skip_language_trampoline): Adjust.
4505 (local_language_defn): Delete.
4506 (language_gdbarch_post_init): Adjust.
4507 (_initialize_language): Remove add_language calls. Call
4508 add_set_language_command.
4509 * language.h (add_language): Delete.
4510 (auto_language_defn)
4511 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4512 (asm_language_defn, c_language_defn, cplus_language_defn)
4513 (d_language_defn, f_language_defn, go_language_defn)
4514 (m2_language_defn, objc_language_defn, opencl_language_defn)
4515 (pascal_language_defn, rust_language_defn): Declare.
4516 * m2-lang.c (m2_language_defn): Make extern.
4517 (_initialize_m2_language): Remove add_language call.
4518 * objc-lang.c (objc_language_defn): Make extern.
4519 (_initialize_objc_language): Remove add_language call.
4520 * opencl-lang.c (opencl_language_defn): Make extern.
4521 (_initialize_opencl_language): Remove add_language call.
4522 * p-lang.c (pascal_language_defn): Make extern.
4523 (_initialize_pascal_language): Delete.
4524 * rust-lang.c (rust_language_defn): Make extern.
4525 (_initialize_rust_language): Delete.
4526 * utils.h (compare_cstrings): New static inline function.
4527
edb0c9cb
PA
45282017-07-20 Pedro Alves <palves@redhat.com>
4529
4530 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4531 (get_var_value): Constify parameters.
4532 (get_int_var_value): Change prototype.
4533 (to_fixed_range_type): Adjust.
4534 * ada-lang.h (get_int_var_value): Change prototype.
4535
a778f165
PA
45362017-07-20 Pedro Alves <palves@redhat.com>
4537
4538 * dwarf2read.c (dw2_lookup_symbol): Use
4539 SYMBOL_MATCHES_SEARCH_NAME.
4540 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4541
42edd901
PA
45422017-07-20 Pedro Alves <palves@redhat.com>
4543
4544 * block.c (block_iter_name_step, block_iter_name_first)
4545 (block_iter_name_next): Delete.
4546 (block_lookup_symbol_primary): Adjust to use
4547 dict_iter_match_first/dict_iter_match_next.
4548 * block.h (block_iter_name_first, block_iter_name_next): Delete
4549 declarations.
4550 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4551 dict_iter_match_first/dict_iter_match_next.
4552
cf325299
PA
45532017-07-20 Pedro Alves <palves@redhat.com>
4554
4555 * cp-support.c (cp_find_first_component_aux): Add missing case for
4556 end of string.
4557
c5ed0576
DB
45582017-07-18 David Blaikie <dblaikie@gmail.com>
4559
4560 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4561 of dwo_cu's dwo_file.
4562
27841e76
YQ
45632017-07-18 Yao Qi <yao.qi@linaro.org>
4564
4565 * remote.c (store_registers_using_G): Remove one line comment.
4566
cfb7e58b
YQ
45672017-07-18 Yao Qi <yao.qi@linaro.org>
4568
4569 * regcache.c (regcache_cpy): Simplify it.
4570 (regcache::cpy_no_passthrough): Remove it.
4571 * regcache.h (cpy_no_passthrough): Remove it.
4572 (regcache_dup, regcache_cpy): Update comments.
4573
386535dd
PA
45742017-07-18 Pedro Alves <palves@redhat.com>
4575
4576 * remote-sim.c (sim_command_completer): Adjust to work with a
4577 completion_tracker instead of a VEC.
4578
c45ec17c
PA
45792017-07-17 Pedro Alves <palves@redhat.com>
4580
4581 * completer.c (complete_source_filenames): New function.
4582 (complete_address_and_linespec_locations): New function.
4583 (location_completer): Use complete_address_and_linespec_locations.
4584 (completion_tracker::build_completion_result): Honor the tracker's
4585 request to suppress append.
4586 * completer.h (completion_tracker::suppress_append_ws)
4587 (completion_tracker::set_suppress_append_ws): New methods.
4588 (completion_tracker::m_suppress_append_ws): New field.
4589 (complete_source_filenames): New declaration.
4590 * linespec.c (linespec_complete_what): New.
4591 (struct ls_parser) <complete_what, completion_word,
4592 completion_quote_char, completion_quote_end, completion_tracker>:
4593 New fields.
4594 (string_find_incomplete_keyword_at_end): New.
4595 (linespec_lexer_lex_string): Record quote char. If in completion
4596 mode, don't throw.
4597 (linespec_lexer_consume_token): Advance the completion word point.
4598 (linespec_lexer_peek_token): Save/restore completion info.
4599 (save_stream_and_consume_token): New.
4600 (set_completion_after_number): New.
4601 (linespec_parse_basic): Set what to complete next depending on
4602 token. Handle function and label completions specially.
4603 (parse_linespec): Disable objc shortcut in completion mode. Set
4604 what to complete next depending on token type. Skip keyword if in
4605 completion mode.
4606 (complete_linespec_component, linespec_complete): New.
4607 * linespec.h (linespec_complete): Declare.
4608
be966d42
PA
46092017-07-17 Pedro Alves <palves@redhat.com>
4610
4611 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4612 Handle 'operator<' / 'operator<<'.
4613
a2459270
PA
46142017-07-17 Pedro Alves <palves@redhat.com>
4615
4616 * completer.c (collect_explicit_location_matches): Handle
4617 MATCH_LABEL.
4618 (convert_explicit_location_to_linespec): New, factored out from
4619 ...
4620 (convert_explicit_location_to_sals): ... this.
4621 (complete_label): New.
4622 (linespec_complete_label, find_label_symbols_in_block): New.
4623 (find_label_symbols): Add completion_mode parameter and adjust to
4624 call find_label_symbols_in_block.
4625 * linespec.h (linespec_complete_label): Declare.
4626
c6756f62
PA
46272017-07-17 Pedro Alves <palves@redhat.com>
4628
4629 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4630 complete_symbol_mode parameter.
4631 * cli/cli-cmds.c (complete_command): Get the completion result out
4632 of the handle_brkchars tracker if used a custom word point.
4633 * completer.c: Include "linespec.h".
4634 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4635 (advance_to_expression_complete_word_point): New.
4636 (completion_tracker::completes_to_completion_word): New.
4637 (complete_files_symbols): Pass down
4638 complete_symbol_mode::EXPRESSION.
4639 (explicit_options, probe_options): New.
4640 (collect_explicit_location_matches): Complete on the
4641 explictit_loc->foo instead of word. Use
4642 linespec_complete_function. Handle MATCH_LINE. Handle offering
4643 keyword and options completions.
4644 (backup_text_ptr): Delete.
4645 (skip_keyword): New.
4646 (complete_explicit_location): Remove 'word' parameter. Add
4647 language, quoted_arg_start and quoted_arg_end parameters.
4648 Rewrite, parsing left to right.
4649 (location_completer): Rewrite.
4650 (location_completer_handle_brkchars): New function.
4651 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4652 (enum complete_line_internal_reason): Adjust comments.
4653 (completion_tracker::discard_completions): New.
4654 (completer_handle_brkchars_func_for_completer): Handle
4655 location_completer.
4656 (gdb_custom_word_point_brkchars)
4657 (gdb_org_rl_basic_quote_characters): New.
4658 (gdb_completion_word_break_characters_throw)
4659 (completion_find_completion_word): Handle trackers that use a
4660 custom word point.
4661 (completion_tracker::advance_custom_word_point_by): New.
4662 (completion_tracker::build_completion_result): Don't rely on
4663 readline appending the quote char.
4664 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4665 use a custom word point.
4666 (gdb_rl_attempted_completion_function): Restore
4667 rl_basic_quote_characters.
4668 * completer.h (class completion_tracker): Extend intro comment.
4669 (completion_tracker::set_quote_char)
4670 (completion_tracker::quote_char)
4671 (completion_tracker::set_use_custom_word_point)
4672 (completion_tracker::use_custom_word_point)
4673 (completion_tracker::custom_word_point)
4674 (completion_tracker::set_custom_word_point)
4675 (completion_tracker::advance_custom_word_point_by)
4676 (completion_tracker::completes_to_completion_word)
4677 (completion_tracker::discard_completions): New methods.
4678 (completion_tracker::m_quote_char)
4679 (completion_tracker::m_use_custom_word_point)
4680 (completion_tracker::m_custom_word_point): New fields.
4681 (advance_to_expression_complete_word_point): Declare.
4682 * f-lang.c (f_collect_symbol_completion_matches): Add
4683 complete_symbol_mode parameter.
4684 * language.h (struct language_defn)
4685 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4686 parameter.
4687 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4688 (linespec_complete_function): New function.
4689 (linespec_lexer_lex_keyword): Adjust.
4690 * linespec.h (linespec_keywords, linespec_complete_function): New
4691 declarations.
4692 * location.c (find_end_quote): New function.
4693 (explicit_location_lex_one): Add explicit_completion_info
4694 parameter. Save quoting info. Don't throw if being called for
4695 completion. Don't handle Ada operators here.
4696 (is_cp_operator, skip_op_false_positives, first_of)
4697 (explicit_location_lex_one_function): New function.
4698 (string_to_explicit_location): Replace 'dont_throw' parameter with
4699 an explicit_completion_info pointer parameter. Handle it. Don't
4700 use explicit_location_lex_one to lex function names. Use
4701 explicit_location_lex_one_function instead.
4702 * location.h (struct explicit_completion_info): New.
4703 (string_to_explicit_location): Replace 'dont_throw' parameter with
4704 an explicit_completion_info pointer parameter.
4705 * symtab.c (default_collect_symbol_completion_matches_break_on):
4706 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4707 (default_collect_symbol_completion_matches)
4708 (collect_symbol_completion_matches): Add complete_symbol_mode
4709 parameter.
4710 (collect_symbol_completion_matches_type): Pass down
4711 complete_symbol_mode::EXPRESSION.
4712 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4713 parameter. Handle LINESPEC mode.
4714 * symtab.h (complete_symbol_mode): New.
4715 (default_collect_symbol_completion_matches_break_on)
4716 (default_collect_symbol_completion_matches)
4717 (collect_symbol_completion_matches)
4718 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4719 parameter.
4720
1d550c82
PA
47212017-07-17 Pedro Alves <palves@redhat.com>
4722
4723 * utils.c (enum class strncmp_iw_mode): New.
4724 (strcmp_iw): Rename to ...
4725 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4726 parameters. Handle them.
4727 (strncmp_iw): New.
4728 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4729 * utils.h (strncmp_iw): Declare.
4730 (strcmp_iw): Move describing comments here.
4731
8090b426
PA
47322017-07-17 Pedro Alves <palves@redhat.com>
4733
4734 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4735 CP_OPERATOR_STR.
4736 * c-typeprint.c (is_type_conversion_operator): Use
4737 CP_OPERATOR_STR.
4738 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4739 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4740 CP_OPERATOR_LEN.
4741 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4742 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4743 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4744 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4745 CP_OPERATOR_STR.
4746 * location.c: Include "cp-support.h".
4747 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4748 CP_OPERATOR_STR.
4749 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4750 CP_OPERATOR_LEN.
4751
6a2c1b87
PA
47522017-07-17 Pedro Alves <palves@redhat.com>
4753
4754 * cli/cli-cmds.c (complete_command): Use a completion tracker
4755 along with completion_find_completion_word for handle_brkchars
4756 phase.
4757 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4758 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4759 (struct gdb_rl_completion_word_info): New.
4760 (gdb_rl_find_completion_word): New.
4761 (completion_find_completion_word): New.
4762 * completer.h (completion_find_completion_word): Declare.
4763
eb3ff9a5
PA
47642017-07-17 Pedro Alves <palves@redhat.com>
4765
4766 * ada-lang.c (symbol_completion_match): Adjust comments.
4767 (symbol_completion_add): Replace vector parameter with
4768 completion_tracker parameter. Use it.
4769 (ada_make_symbol_completion_list): Rename to...
4770 (ada_collect_symbol_completion_matches): ... this. Add
4771 completion_tracker parameter and use it.
4772 (ada_language_defn): Adjust.
4773 * break-catch-syscall.c (catch_syscall_completer): Adjust
4774 prototype and work with completion_tracker instead of VEC.
4775 * breakpoint.c (condition_completer): Adjust prototype and work
4776 with completion_tracker instead of VEC.
4777 * c-lang.c (c_language_defn, cplus_language_defn)
4778 (asm_language_defn, minimal_language_defn): Adjust to renames.
4779 * cli/cli-cmds.c (complete_command): Rework using
4780 completion_tracker. Catch exceptions when completing.
4781 * cli/cli-decode.c (integer_unlimited_completer)
4782 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4783 with completion_tracker instead of VEC.
4784 * command.h (struct completion_tracker): Forward declare.
4785 (completer_ftype, completer_handle_brkchars_ftype): Change
4786 types.
4787 (complete_on_cmdlist, complete_on_enum): Adjust.
4788 * completer.c: Include <algorithm>.
4789 (struct gdb_completer_state): New.
4790 (current_completion): New global.
4791 (readline_line_completion_function): Delete.
4792 (noop_completer, filename_completer)
4793 (filename_completer_handle_brkchars, complete_files_symbols)
4794 (linespec_location_completer): Adjust to work with a
4795 completion_tracker instead of a VEC.
4796 (string_or_empty): New.
4797 (collect_explicit_location_matches): Adjust to work with a
4798 completion_tracker instead of a VEC.
4799 (explicit_location_completer): Rename to ...
4800 (complete_explicit_location): ... this and adjust to work with a
4801 completion_tracker instead of a VEC.
4802 (location_completer): Adjust to work with a completion_tracker
4803 instead of a VEC.
4804 (add_struct_fields): Adjust to work with a completion_list instead
4805 of VEC.
4806 (expression_completer): Rename to ...
4807 (complete_expression): ... this and adjust to work with a
4808 completion_tracker instead of a VEC. Use complete_files_symbols.
4809 (expression_completer): Reimplement on top of complete_expression.
4810 (symbol_completer): Adjust to work with a completion_tracker
4811 instead of a VEC.
4812 (enum complete_line_internal_reason): Add describing comments.
4813 (complete_line_internal_normal_command): Adjust to work with a
4814 completion_tracker instead of a VEC.
4815 (complete_line_internal): Rename to ...
4816 (complete_line_internal_1): ... this and adjust to work with a
4817 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4818 handle_brkchars phase.
4819 (new_completion_tracker): Delete.
4820 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4821 complete_line_internal_1.
4822 (free_completion_tracker): Delete.
4823 (INITIAL_COMPLETION_HTAB_SIZE): New.
4824 (completion_tracker::completion_tracker)
4825 (completion_tracker::~completion_tracker): New.
4826 (maybe_add_completion): Delete.
4827 (completion_tracker::maybe_add_completion)
4828 (completion_tracker::add_completion)
4829 (completion_tracker::add_completions): New.
4830 (throw_max_completions_reached_error): Delete.
4831 (complete_line): Adjust to work with a completion_tracker instead
4832 of a VEC. Don't create a completion_tracker_t or check for max
4833 completions here.
4834 (command_completer, command_completer_handle_brkchars)
4835 (signal_completer, reg_or_group_completer_1)
4836 (reg_or_group_completer, default_completer_handle_brkchars):
4837 Adjust to work with a completion_tracker.
4838 (gdb_completion_word_break_characters_throw): New.
4839 (gdb_completion_word_break_characters): Reimplement.
4840 (line_completion_function): Delete.
4841 (completion_tracker::recompute_lowest_common_denominator)
4842 (expand_preserving_ws)
4843 (completion_tracker::build_completion_result)
4844 (completion_result::completion_result)
4845 (completion_result::completion_result)
4846 (completion_result::~completion_result)
4847 (completion_result::completion_result)
4848 (completion_result::release_match_list, compare_cstrings)
4849 (completion_result::sort_match_list)
4850 (completion_result::reset_match_list)
4851 (gdb_rl_attempted_completion_function_throw)
4852 (gdb_rl_attempted_completion_function): New.
4853 * completer.h (completion_list, struct completion_result)
4854 (class completion_tracker): New.
4855 (complete_line): Add completion_tracker parameter.
4856 (readline_line_completion_function): Delete.
4857 (gdb_rl_attempted_completion_function): New.
4858 (noop_completer, filename_completer, expression_completer)
4859 (location_completer, symbol_completer, command_completer)
4860 (signal_completer, reg_or_group_completer): Update prototypes.
4861 (completion_tracker_t, new_completion_tracker)
4862 (make_cleanup_free_completion_tracker): Delete.
4863 (enum maybe_add_completion_enum): Delete.
4864 (maybe_add_completion): Delete.
4865 (throw_max_completions_reached_error): Delete.
4866 * corefile.c (complete_set_gnutarget): Adjust to work with a
4867 completion_tracker instead of a VEC.
4868 * cp-abi.c (cp_abi_completer): Adjust to work with a
4869 completion_tracker instead of a VEC.
4870 * d-lang.c (d_language_defn): Adjust.
4871 * disasm.c (disassembler_options_completer): Adjust to work with a
4872 completion_tracker instead of a VEC.
4873 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4874 (f_collect_symbol_completion_matches): ... this. Adjust to work
4875 with a completion_tracker instead of a VEC.
4876 (f_language_defn): Adjust.
4877 * go-lang.c (go_language_defn): Adjust.
4878 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4879 Adjust to work with a completion_tracker instead of a VEC.
4880 * infrun.c (handle_completer): Likewise.
4881 * interps.c (interpreter_completer): Likewise.
4882 * interps.h (interpreter_completer): Likewise.
4883 * language.c (unknown_language_defn, auto_language_defn)
4884 (local_language_defn): Adjust.
4885 * language.h (language_defn::la_make_symbol_completion_list):
4886 Rename to ...
4887 (language_defn::la_collect_symbol_completion_matches): ... this
4888 and adjust to work with a completion_tracker instead of a VEC.
4889 * m2-lang.c (m2_language_defn): Adjust.
4890 * objc-lang.c (objc_language_defn): Adjust.
4891 * opencl-lang.c (opencl_language_defn): Adjust.
4892 * p-lang.c (pascal_language_defn): Adjust.
4893 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4894 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4895 with a completion_tracker.
4896 * rust-lang.c (rust_language_defn): Adjust.
4897 * symtab.c (free_completion_list, do_free_completion_list)
4898 (return_val, completion_tracker): Delete.
4899 (completion_list_add_name, completion_list_add_symbol)
4900 (completion_list_add_msymbol, completion_list_objc_symbol)
4901 (completion_list_add_fields, add_symtab_completions): Add
4902 completion_tracker parameter and use it.
4903 (default_make_symbol_completion_list_break_on_1): Rename to...
4904 (default_collect_symbol_completion_matches_break_on): ... this.
4905 Add completion_tracker parameter and use it instead of allocating
4906 a completion tracker here.
4907 (default_make_symbol_completion_list_break_on): Delete old
4908 implementation.
4909 (default_make_symbol_completion_list): Delete.
4910 (default_collect_symbol_completion_matches): New.
4911 (make_symbol_completion_list): Delete.
4912 (collect_symbol_completion_matches): New.
4913 (make_symbol_completion_type): Rename to ...
4914 (collect_symbol_completion_matches_type): ... this. Add
4915 completion_tracker parameter and use it instead of VEC.
4916 (make_file_symbol_completion_list_1): Rename to...
4917 (collect_file_symbol_completion_matches): ... this. Add
4918 completion_tracker parameter and use it instead of VEC.
4919 (make_file_symbol_completion_list): Delete.
4920 (add_filename_to_list): Use completion_list instead of a VEC.
4921 (add_partial_filename_data::list): Now a completion_list.
4922 (make_source_files_completion_list): Work with a completion_list
4923 instead of a VEC.
4924 * symtab.h: Include "completer.h".
4925 (default_make_symbol_completion_list_break_on)
4926 (default_make_symbol_completion_list, make_symbol_completion_list)
4927 (make_symbol_completion_type, make_file_symbol_completion_list)
4928 (make_source_files_completion_list): Delete.
4929 (default_collect_symbol_completion_matches_break_on)
4930 (default_collect_symbol_completion_matches)
4931 (collect_symbol_completion_matches)
4932 (collect_symbol_completion_matches_type)
4933 (collect_file_symbol_completion_matches)
4934 (make_source_files_completion_list): New.
4935 * top.c (init_main): Don't install a rl_completion_entry_function
4936 hook. Install a rl_attempted_completion_function hook instead.
4937 * tui/tui-layout.c (layout_completer): Adjust to work with a
4938 completion_tracker.
4939 * tui/tui-regs.c (tui_reggroup_completer):
4940 * tui/tui-win.c (window_name_completer, focus_completer)
4941 (winheight_completer): Adjust to work with a completion_tracker.
4942 * value.c: Include "completer.h".
4943 (complete_internalvar): Adjust to work with a completion_tracker.
4944 * value.h (complete_internalvar): Likewise.
4945
6e1dbf8c
PA
49462017-07-17 Pedro Alves <palves@redhat.com>
4947
4948 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4949 renames.
4950 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4951 comments to completer_ftype's declaration.
4952 <completer_handle_brkchars>: Change type to
4953 completer_handle_brkchars_ftype.
4954 * command.h (completer_ftype): Add describing comment and give
4955 names to parameters.
4956 (completer_ftype_void): Rename to ...
4957 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4958 (set_cmd_completer_handle_brkchars): Adjust.
4959 * completer.c (filename_completer_handle_brkchars): New function.
4960 (complete_line_internal_normal_command): New function, factored
4961 out from ...
4962 (complete_line_internal): ... here.
4963 (command_completer_handle_brkchars)
4964 (default_completer_handle_brkchars)
4965 (completer_handle_brkchars_func_for_completer): New functions.
4966 * completer.h (set_gdb_completion_word_break_characters): Delete
4967 declaration.
4968 (completer_handle_brkchars_func_for_completer): New declaration.
4969 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4970 completer_handle_brkchars_func_for_completer.
4971
78b13106
PA
49722017-07-17 Pedro Alves <palves@redhat.com>
4973
4974 * completer.c (symbol_completer): New function, based on
4975 make_symbol_completion_list_fn.
4976 * completer.h (symbol_completer): New declaration.
4977 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4978 * python/py-cmd.c (completers): Adjust.
4979 * symtab.c (make_symbol_completion_list_fn): Delete.
4980 * symtab.h (make_symbol_completion_list_fn): Delete.
4981 * cli/cli-decode.c (add_cmd): Adjust.
4982
bbf2f4df
PA
49832017-07-17 Pedro Alves <palves@redhat.com>
4984
4985 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4986 * dwarf2read.c: Include "filename-seen-cache.h".
4987 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4988 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4989 * filename-seen-cache.c: New file.
4990 * filename-seen-cache.h: New file.
4991 * symtab.c: Include "filename-seen-cache.h".
4992 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4993 (create_filename_seen_cache, clear_filename_seen_cache)
4994 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4995 to filename-seen-cache.h/filename-seen-cache.c.
4996 (output_source_filename, sources_info)
4997 (maybe_add_partial_symtab_filename)
4998 (make_source_files_completion_list): Adjust to use
4999 filename_seen_cache.
5000
330cdd98
PA
50012017-07-17 Pedro Alves <palves@redhat.com>
5002
5003 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
5004 fields.
5005 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
5006 dwarf2_debug_sections*)): New.
5007 (dwarf2_per_objfile::dwarf2_per_objfile(const
5008 dwarf2_per_objfile&)): Declare as deleted.
5009 (dwarf2_per_objfile::operator=): Declare as deleted.
5010 (dwarf2_per_objfile::dwarf2_per_objfile)
5011 (dwarf2_per_objfile::~dwarf2_per_objfile)
5012 (dwarf2_per_objfile::free_cached_comp_units): New.
5013 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
5014 ctor. Call dwarf2_per_objfile's ctor manually.
5015 (dwarf2_locate_sections): Deleted/refactored as ...
5016 (dwarf2_per_objfile::locate_sections): ... this new method.
5017 (free_cached_comp_units): Defer to
5018 dwarf2_per_objfile::free_cached_comp_units.
5019 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
5020
8880f2a9
TT
50212017-07-14 Tom Tromey <tom@tromey.com>
5022
5023 PR rust/21764:
5024 * rust-exp.y (convert_ast_to_expression): Add "want_type"
5025 parameter.
5026 <UNOP_SIZEOF>: Split into separate case.
5027 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
5028
65547233
TT
50292017-07-14 Tom Tromey <tom@tromey.com>
5030
5031 PR rust/21763:
5032 * symtab.c (symbol_matches_domain): Add language_rust to special
5033 case.
5034 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
5035 treat LOC_TYPEDEF symbols as variables.
5036
8f14146e
PA
50372017-07-14 Pedro Alves <palves@redhat.com>
5038
5039 * symtab.c (make_file_symbol_completion_list_1): Iterate over
5040 symtabs matching all symtabs with SRCFILE as file name instead of
5041 only considering the first hit, with lookup_symtab.
5042
2347965c
SM
50432017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5044
5045 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
5046 operator_name parameters.
5047 (gen_expr): Update function call.
5048
40f4af28
SM
50492017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5050
5051 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
5052 parameter.
5053 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
5054 Likewise.
5055 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
5056 parameter, use agent_expr::gdbarch instead, update function
5057 calls.
5058 (locexpr_tracepoint_var_ref): Likewise.
5059 (loclist_tracepoint_var_ref): Likewise.
5060 * ax-gdb.c (gen_trace_static_fields): Likewise.
5061 (gen_traced_pop): Likewise.
5062 (gen_frame_args_address): Likewise.
5063 (gen_frame_locals_address): Likewise.
5064 (gen_var_ref): Likewise.
5065 (gen_struct_ref_recursive): Likewise.
5066 (gen_static_field): Likewise.
5067 (gen_maybe_namespace_elt): Likewise.
5068 (gen_expr): Likewise.
5069 (gen_trace_for_var): Likewise.
5070 (gen_trace_for_expr): Likewise.
5071 (gen_trace_for_return_address): Likewise.
5072
053f8057
SM
50732017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5074
5075 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
5076 parameter.
5077 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
5078
6661ad48
SM
50792017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5080
5081 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
5082 from ax, update calls.
5083 (gen_usual_arithmetic): Likewise.
5084 (gen_integral_promotions): Likewise.
5085 (gen_bitfield_ref): Likewise.
5086 (gen_primitive_field): Likewise.
5087 (gen_struct_ref_recursive): Likewise.
5088 (gen_struct_ref): Likewise.
5089 (gen_maybe_namespace_elt): Likewise.
5090 (gen_struct_elt_for_reference): Likewise.
5091 (gen_namespace_elt): Likewise.
5092 (gen_aggregate_elt_ref): Likewise.
5093 (gen_expr): Get gdbarch from ax, update calls.
5094 (gen_expr_binop_rest): Likewise.
5095
c55a47e7
PA
50962017-07-13 Pedro Alves <palves@redhat.com>
5097
5098 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
5099 as default tdesc.
5100 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
5101 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
5102 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
5103 tdesc_amd64_linux as default tdesc. Get final tdesc from the
5104 tdep.
5105 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
5106 Get final tdesc from the tdep.
5107 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
5108 default tdesc.
5109 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5110 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5111 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
5112 Use it as default tdesc.
5113 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
5114 down to amd_init_abi. No longer handle fallback tdesc here.
5115 * amd64-tdep.h (tdesc_x32): Declare.
5116 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
5117 parameter.
5118 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
5119 as default tdesc.
5120
55efceab
AA
51212017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5122
5123 * s390-linux-tdep.c (s390_process_record): Add support for
5124 instructions new in arch12.
5125
0aa37b65
JB
51262017-07-11 John Baldwin <jhb@FreeBSD.org>
5127
5128 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5129 PT_GETFSBASE and PT_GETGSBASE.
5130 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
5131 PT_SETGSBASE.
5132
48aeef91
JB
51332017-07-11 John Baldwin <jhb@FreeBSD.org>
5134
5135 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
5136 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
5137 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
5138 those rules.
5139 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
5140 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
5141 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
5142 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
5143 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
5144 * features/i386/amd64.xml: Add 64bit-segments.xml.
5145 * features/i386/amd64-avx-avx512.c: Regenerated.
5146 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
5147 * features/i386/amd64-avx-mpx.c: Regenerated.
5148 * features/i386/amd64-avx.c: Regenerated.
5149 * features/i386/amd64-mpx.c: Regenerated.
5150 * features/i386/amd64.c: Regenerated.
5151 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
5152 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5153 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
5154 * regformats/i386/amd64-avx.dat: Regenerated.
5155 * regformats/i386/amd64-mpx.dat: Regenerated.
5156 * regformats/i386/amd64.dat: Regenerated.
5157
77c501bc
YQ
51582017-07-10 Yao Qi <yao.qi@linaro.org>
5159
5160 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
5161 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
5162
6dc8d757
AK
51632017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
5164
5165 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
5166 unsetenv.
5167 * gnulib/aclocal.m4: Regenerate.
5168 * gnulib/config.in: Regenerate.
5169 * gnulib/configure: Regenerate.
5170 * gnulib/import/Makefile.am: Regenerate.
5171 * gnulib/import/Makefile.in: Regenerate.
5172 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5173 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5174 * gnulib/import/m4/environ.m4: New file.
5175 * gnulib/import/m4/setenv.m4: New file.
5176 * gnulib/import/setenv.c: New file.
5177 * gnulib/import/unsetenv.c: New file.
5178
266934d1
SM
51792017-07-09 Simon Marchi <simon.marchi@ericsson.com>
5180
5181 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
5182 address when op is DW_OP_addr.
5183
03278692
TT
51842017-07-09 Tom Tromey <tom@tromey.com>
5185
5186 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
5187 check and apply to outer type.
5188
4b654465
JB
51892017-07-07 John Baldwin <jhb@FreeBSD.org>
5190
5191 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
5192 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
5193 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
5194 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
5195
2af9fc44
JB
51962017-07-07 John Baldwin <jhb@FreeBSD.org>
5197
5198 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
5199
382b69bb
JB
52002017-07-07 John Baldwin <jhb@FreeBSD.org>
5201
5202 * corelow.c (get_core_siginfo): Remove.
5203 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
5204 instead of get_core_siginfo.
5205 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
5206 * gdbarch.h: Re-generate.
5207 * gdbarch.c: Re-generate.
5208 * linux-tdep.c (linux_core_xfer_siginfo): New.
5209 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
5210
6e5eab33
JB
52112017-07-07 John Baldwin <jhb@FreeBSD.org>
5212
5213 * corelow.c (thread_section_name): Move to ...
5214 * gdbcore.h (thread_section_name): ... here.
5215
929edea9
JB
52162017-07-07 John Baldwin <jhb@FreeBSD.org>
5217
5218 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
5219 (struct siginfo32): New.
5220 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
5221 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
5222 via ptrace(PT_LWPINFO).
5223
762c974a
JB
52242017-07-07 John Baldwin <jhb@FreeBSD.org>
5225
5226 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
5227 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
5228 (fbsd_get_siginfo_type): New.
5229 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5230 (_initialize_fbsd_tdep): New.
5231
33c5cd75
DB
52322017-07-06 David Blaikie <dblaikie@gmail.com>
5233
5234 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
5235 a singular dwo_unit*) to support multiple CUs in the same way that
5236 multiple TUs are supported.
5237 (create_cus_hash_table): Replace create_dwo_cu with a function for
5238 parsing multiple CUs from a DWO file.
5239 (open_and_init_dwo_file): Use create_cus_hash_table rather than
5240 create_dwo_cu.
5241 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
5242 htab_find, rather than comparing the signature to a singleton CU in
5243 the dwo_file.
5244
8455d262
PA
52452017-07-06 Pedro Alves <palves@redhat.com>
5246
5247 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
5248
4da3eb35
PA
52492017-07-04 Pedro Alves <palves@redhat.com>
5250
5251 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
5252 * gdbtypes.h (TYPE_STATIC): Delete.
5253 (struct fn_field) <is_public, is_abstract, is_static, is_final,
5254 is_synchronized, is_native>: Delete.
5255 <dummy>: Bump.
5256 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
5257 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
5258 (TYPE_FN_FIELD_ABSTRACT): Delete.
5259
5bfd255c
SM
52602017-07-03 Simon Marchi <simon.marchi@ericsson.com>
5261
5262 * buffer.h (buffer_finish): Fix spelling mistakes.
5263
25c54127
EZ
52642017-07-01 Eli Zaretskii <eliz@gnu.org>
5265
5266 * .dir-locals.el: Automatically switch to C-style comments in
5267 versions of Emacs that support the feature.
5268
dc4bde35
SDJ
52692017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5270 Pedro Alves <palves@redhat.com>
5271
5272 PR cli/21688
5273 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
5274 (process_next_line): New variable 'inline_cmd'.
5275 Adjust 'if' clauses for "python", "compile" and "guile" to use
5276 'command_name_equals' and check for '!inline_cmd'.
5277
51ed89aa
SDJ
52782017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5279
5280 PR cli/21688
5281 * cli/cli-script.c (command_name_equals_not_inline): New function.
5282 (process_next_line): Adjust 'if' clauses for "python", "compile"
5283 and "guile" to use command_name_equals_not_inline.
5284
eb17d413
PA
52852017-06-29 Pedro Alves <palves@redhat.com>
5286
5287 * completer.c (expression_completer): Call
5288 linespec_location_completer instead of location_completer.
5289
195bcdd5
PA
52902017-06-29 Pedro Alves <palves@redhat.com>
5291
5292 * completer.c (expression_completer): Remove code that recomputes
5293 'text' from 'word'.
5294
adc764e7
YQ
52952017-06-29 Yao Qi <yao.qi@linaro.org>
5296
5297 * regformats/regdat.sh: Generate code with
5298 "ifndef IN_PROCESS_AGENT".
5299
6e75794e
PA
53002017-06-28 Pedro Alves <palves@redhat.com>
5301
5302 * command.h: Include "common/scoped_restore.h".
5303
bc491f2e
YQ
53042017-06-28 Yao Qi <yao.qi@linaro.org>
5305
5306 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
5307 instead of obstack_grow.
5308
41664b45
DG
53092017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
5310
5311 PR gdb/21337
5312 * symfile.c (reread_symbols): Call objfiles_changed just before
5313 read_symbols.
5314
6da67eb1
PA
53152017-06-27 Pedro Alves <palves@redhat.com>
5316
5317 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
5318 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
5319 (completion_list_add_symbol, completion_list_add_msymbol):
5320 ... these new functions.
5321 (add_symtab_completions)
5322 (default_make_symbol_completion_list_break_on_1): Adjust.
5323
23732b1e
PA
53242017-06-27 Pedro Alves <palves@redhat.com>
5325
5326 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
5327 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
5328 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
5329 dtor.
5330 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
5331 'storage_obstack' field an auto_obstack. In-class initialize all
5332 non-bitfield fields. Make minsyms_read bool.
5333 * symfile.c (read_symbols): Adjust.
5334
a4d1e79a
AH
53352017-06-27 Alan Hayward <alan.hayward@arm.com>
5336
5337 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
5338 (gdbsim_store_register): Likewise.
5339
8268c778
PA
53402017-06-27 Pedro Alves <palves@redhat.com>
5341
5342 * c-exp.y (name_obstack): Now an auto_obstack.
5343 (yylex): Use auto_obstack::clear.
5344 (c_parse): Use auto_obstack::clear instead of reinitializing and
5345 freeing the obstack.
5346 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
5347 * d-exp.y (name_obstack): Now an auto_obstack.
5348 (yylex): Use auto_obstack::clear.
5349 (d_parse): Use auto_obstack::clear instead of reinitializing and
5350 freeing the obstack.
5351 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
5352 auto_obstack.
5353 * dwarf2read.c (create_addrmap_from_index)
5354 (dwarf2_build_psymtabs_hard)
5355 (update_enumeration_type_from_children): Likewise.
5356 * gdb_obstack.h (auto_obstack): New type.
5357 * go-exp.y (name_obstack): Now an auto_obstack.
5358 (build_packaged_name): Use auto_obstack::clear.
5359 (go_parse): Use auto_obstack::clear instead of reinitializing and
5360 freeing the obstack.
5361 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
5362 auto_obstack.
5363 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
5364 * rust-exp.y (work_obstack): Now an auto_obstack.
5365 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
5366 reinitializing and freeing the obstack.
5367 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
5368 (host_char_to_target): Use auto_obstack.
5369 * utils.h (make_cleanup_obstack_free): Delete declaration.
5370 * valprint.c (generic_emit_char, generic_printstr): Use
5371 auto_obstack.
5372
db665f42
SM
53732017-06-27 Simon Marchi <simon.marchi@ericsson.com>
5374
5375 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
5376 thread.
5377 (darwin_init_thread_list): Don't update dummy thread.
5378 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
5379
873c0814
SM
53802017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5381
5382 * record-full.c (netorder16): Remove.
5383
8b5a7a6e
SM
53842017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5385
5386 * common/diagnostics.h: Define macros for GCC.
5387 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
5388 * common/vec.h: Include diagnostics.h.
5389 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
5390 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
5391 warning.
5392
d1435379
SM
53932017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5394
5395 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
5396 New macro.
5397 * ada-lex.l: Ignore deprecated register warnings.
5398
cc75e0fd
SM
53992017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5400
5401 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
5402 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
5403
07809eaf
SM
54042017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5405
5406 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
5407 its own line.
5408
f076f034
SM
54092017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5410
5411 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
5412
0dd5cbc5
AH
54132017-06-23 Alan Hayward <alan.hayward@arm.com>
5414
5415 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
5416 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
5417 (xtensa_register_read_masked): Likewise.
5418
d4c6ce5b
SDJ
54192017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
5420
5421 * common/environ.c (gdb_environ::unset): Update comment.
5422
16892a03
AH
54232017-06-22 Alan Hayward <alan.hayward@arm.com>
5424
5425 * python/py-unwind.c (pyuw_sniffer): Allocate space for
5426 registers.
5427
d7dcbefc
AH
54282017-06-22 Alan Hayward <alan.hayward@arm.com>
5429
5430 * record-full.c (record_full_exec_insn): Use byte_vector.
5431
b30ff123
YQ
54322017-06-22 Yao Qi <yao.qi@linaro.org>
5433
5434 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
5435 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5436
4fa847d7
AH
54372017-06-22 Alan Hayward <alan.hayward@arm.com>
5438
5439 * remote.c (cached_reg): Move from here...
5440 * regcache.h (cached_reg): ...to here.
5441 * python/py-unwind.c (struct reg_info): Remove.
5442 (cached_frame_info): Use cached_reg_t.
5443 (pyuw_prev_register): Likewise.
5444 (pyuw_sniffer): Use cached_reg_t and allocate registers.
5445 (pyuw_dealloc_cache): Free all registers.
5446
f4906a9a
PA
54472017-06-22 Pedro Alves <palves@redhat.com>
5448 Simon Marchi <simon.marchi@ericsson.com>
5449
5450 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5451 warning.
5452 * common/diagnostics.h: New file.
5453
b45a1208
PA
54542017-06-22 Pedro Alves <palves@redhat.com>
5455
5456 * common/agent.h: Add include guards.
5457
e4da2c61
SM
54582017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5459
5460 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5461 talk about addressable units instead of bytes.
5462
96160d60
SDJ
54632017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5464
5465 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5466 of '::const_iterator'.
5467
9a6c7d9c
SDJ
54682017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5469
5470 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5471 'unittests/environ-selftests.c'.
5472 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5473 * charset.c (find_charset_names): Declare object 'iconv_env'.
5474 Update code to use 'iconv_env' object. Remove call to
5475 'free_environ'.
5476 * common/environ.c: Include <utility>.
5477 (make_environ): Delete function.
5478 (free_environ): Delete function.
5479 (gdb_environ::clear): New function.
5480 (gdb_environ::operator=): New function.
5481 (gdb_environ::get): Likewise.
5482 (environ_vector): Delete function.
5483 (set_in_environ): Delete function.
5484 (gdb_environ::set): New function.
5485 (unset_in_environ): Delete function.
5486 (gdb_environ::unset): New function.
5487 (gdb_environ::envp): Likewise.
5488 * common/environ.h: Include <vector>.
5489 (struct gdb_environ): Delete; transform into...
5490 (class gdb_environ): ... this class.
5491 (free_environ): Delete prototype.
5492 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5493 environ_vector): Likewise.
5494 * infcmd.c (run_command_1): Update code to call
5495 'envp' from 'gdb_environ' class.
5496 (environment_info): Update code to call methods from 'gdb_environ'
5497 class.
5498 (unset_environment_command): Likewise.
5499 (path_info): Likewise.
5500 (path_command): Likewise.
5501 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5502 (inferior::inferior): Initialize 'environment' using the host's
5503 information.
5504 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5505 Include "environ.h".
5506 (class inferior) <environment>: Change type from 'struct
5507 gdb_environ' to 'gdb_environ'.
5508 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5509 methods from 'gdb_environ' class.
5510 * solib.c (solib_find_1): Likewise
5511 * unittests/environ-selftests.c: New file.
5512
75c554cf
YQ
55132017-06-20 Yao Qi <yao.qi@linaro.org>
5514
5515 * features/i386/i386-linux.xml: Exchange the order of including
5516 32bit-linux.xml and 32bit-sse.xml.
5517 * features/i386/i386-linux.c: Regenerated.
5518
72ddacb7
YQ
55192017-06-20 Yao Qi <yao.qi@linaro.org>
5520
5521 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5522 Delete copy ctor and assignment operator.
5523 (tdesc_type): Likewise.
5524 (tdesc_feature): Likewise.
5525 (tdesc_free_reg): Remove.
5526 (tdesc_create_reg): Use new.
5527 (tdesc_free_type): Remove.
5528 (tdesc_create_vector): Use new.
5529 (tdesc_create_union): Likewise.
5530 (tdesc_create_flags): Likewise.
5531 (tdesc_create_enum): Likewise.
5532 (tdesc_free_feature): Delete.
5533 (free_target_description): Use delete.
5534
325c9fd4
JB
55352017-06-19 John Baldwin <jhb@FreeBSD.org>
5536
5537 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5538 registers.
5539
16b7a719
PA
55402017-06-19 Pedro Alves <palves@redhat.com>
5541
5542 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5543 after gdb::unlinker.
5544
1c8e01c9
SDJ
55452017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5546
5547 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5548 gdb_environ to access an environment variable.
5549
ffce45d2
TP
55502017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5551
5552 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5553 gdb_byte*.
5554
1d4fbac9
SM
55552017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5556
5557 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5558
8465943a
SM
55592017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5560
5561 * configure: Re-generate.
5562 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5563
3e019bdc
SM
55642017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5565
5566 * configure: Re-generate.
5567 * warning.m4: Pass -Werror to compiler when checking for
5568 supported warning flags.
5569
cf0dd6f0
SM
55702017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5571
5572 * Makefile.in (COMPILE.pre): Add "-x c++".
5573
6f98355c
YQ
55742017-06-16 Alan Hayward <alan.hayward@arm.com>
5575 Pedro Alves <palves@redhat.com>
5576 Yao Qi <yao.qi@linaro.org>
5577
5578 * defs.h (RequireLongest): New.
5579 (extract_integer): Declare function template.
5580 (extract_signed_integer): Remove the declaration, but define it
5581 static inline.
5582 (extract_unsigned_integer): Likewise.
5583 (store_integer): Declare function template.
5584 (store_signed_integer): Remove the declaration, but define it
5585 static inline.
5586 (store_unsigned_integer): Likewise.
5587 * findvar.c (extract_integer): New function template.
5588 (extract_signed_integer): Remove.
5589 (extract_unsigned_integer): Remove.
5590 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5591 instantiations.
5592 (store_integer): New function template.
5593 (store_signed_integer): Remove.
5594 (store_unsigned_integer): Remove.
5595 (store_integer): Explicit instantiations.
5596 * regcache.c (regcache_raw_read_signed): Update.
5597 (regcache::raw_read): New function.
5598 (regcache::raw_read_signed): Remove.
5599 (regcache::raw_read_unsigned): Remove.
5600 (regcache_raw_read_unsigned): Update.
5601 (regcache_raw_write_unsigned): Update.
5602 (regcache::raw_write_signed): Remove.
5603 (regcache::raw_write): New function.
5604 (regcache_cooked_read_signed): Update.
5605 (regcache::raw_write_unsigned): Remove.
5606 (regcache::cooked_read_signed): Remove.
5607 (regcache_cooked_read_unsigned): Update.
5608 (regcache::cooked_read_unsigned): Remove.
5609 (regcache_cooked_write_signed): Update.
5610 (regcache_cooked_write_unsigned): Update.
5611 * regcache.h (regcache) <raw_read_signed>: Remove.
5612 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5613 <raw_read, raw_write>: New.
5614 <cooked_read_signed, cooked_write_signed>: Remove.
5615 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5616 <cooked_read, cooked_write>: New.
5617 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5618 (sh64_pseudo_register_write): Update.
5619
a87dc45a
AK
56202017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5621
5622 * arc-tdep.c (arc_disassembler_options): New variable.
5623 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5624 of default_print_insn.
5625 (arc_delayed_print_insn): Set info->section when needed,
5626 use default_print_insn to retrieve a disassembler.
5627
45159d6a
SDJ
56282017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5629
5630 PR gdb/21574
5631 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5632 to mention $SHELL and startup-with-shell.
5633
b46c4cf0
MF
56342017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5635
5636 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5637
6394c606
YQ
56382017-06-14 Yao Qi <yao.qi@linaro.org>
5639
5640 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5641 default_print_insn instead of print_insn_aarch64.
5642 * arm-tdep.c (gdb_print_insn_arm): Call
5643 default_print_insn instead of print_insn_big_arm
5644 and print_insn_little_arm.
5645 * i386-tdep.c (i386_print_insn): Call default_print_insn
5646 instead of print_insn_i386.
5647 * ia64-tdep.c (ia64_print_insn): Call
5648 default_print_insn instead of print_insn_ia64.
5649 * mips-tdep.c (gdb_print_insn_mips): Call
5650 default_print_insn instead of print_insn_big_mips
5651 and print_insn_little_mips.
5652 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5653 instead of print_insn_spu.
5654
d5722aa2
PA
56552017-06-14 Pedro Alves <palves@redhat.com>
5656
5657 * ada-lang.c: Include "common/byte-vector.h".
5658 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5659 * charset.c (wchar_iterator::iterate): Resize the vector instead
5660 of reserving it.
5661 * common/byte-vector.h: Include "common/def-vector.h".
5662 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5663 * cli/cli-dump.c: Include "common/byte-vector.h".
5664 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5665 * common/byte-vector.h: New file.
5666 * common/def-vector.h: New file.
5667 * common/default-init-alloc.h: New file.
5668 * dwarf2loc.c: Include "common/byte-vector.h".
5669 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5670 instead of reserving it.
5671 * dwarf2read.c: Include "common/byte-vector.h".
5672 (data_buf::m_vec): Now a gdb::byte_vector.
5673 * gdb_regex.c: Include "common/def-vector.h".
5674 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5675 * mi/mi-main.c: Include "common/byte-vector.h".
5676 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5677 * printcmd.c: Include "common/byte-vector.h".
5678 (print_scalar_formatted): Use gdb::byte_vector.
5679 * valprint.c: Include "common/byte-vector.h".
5680 (maybe_negate_by_bytes, print_decimal_chars): Use
5681 gdb::byte_vector.
5682
01ec7a27
SM
56832017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5684
5685 * darwin-nat.c: Include "nat/fork-inferior.h".
5686
848d9074
SM
56872017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5688
5689 * configure.nat: Factor out Darwin bits that are not
5690 architecture-specific. Add fork-inferior.o.
5691
3b912944
SM
56922017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5693
5694 * configure.nat: Factor out AIX bits that are not
5695 architecture-specific. Add fork-inferior.o.
5696
55acdf22
AA
56972017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5698
5699 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5700 (read_pieced_value, write_pieced_value): ...here. Reduce to
5701 wrappers that just call rw_pieced_value.
5702
f65e2044
AA
57032017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5704
5705 * dwarf2loc.c (write_pieced_value): When writing the data for a
5706 memory piece, use write_memory_with_notification instead of
5707 write_memory.
5708
23f945bf
AA
57092017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5710
5711 * valops.c (read_value_memory): Change embedded_offset to
5712 represent a bit offset instead of a byte offset.
5713 * value.h (read_value_memory): Adjust comment.
5714
f236533e
AA
57152017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5716
5717 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5718 dest_offset_bits and source_offset_bits.
5719 (write_pieced_value): Likewise.
5720
65d84b76
AA
57212017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5722
5723 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5724 given by DW_OP_bit_piece.
5725 (write_pieced_value): Likewise.
5726
242d31ab
AA
57272017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5728
5729 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5730 some other preparations to the places where sufficient information
5731 is available.
5732 (write_pieced_value): Likewise.
5733
03c8af18
AA
57342017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5735
5736 * dwarf2loc.c (bits_to_bytes): New function.
5737 (read_pieced_value): Fix offset calculations for register pieces
5738 on big-endian targets.
5739 (write_pieced_value): Likewise.
5740
840989c1
AA
57412017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5742
5743 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5744 (write_pieced_value): Likewise.
5745
359b19bb
AA
57462017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5747
5748 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5749 transfer the source value's least significant bits, instead of its
5750 lowest-addressed ones. Rename type_len to max_offset.
5751 (read_pieced_value): Mirror above changes to write_pieced_value as
5752 applicable.
5753
07c9ca3b
AA
57542017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5755
5756 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5757 truncate full bytes from dest_offset_bits before using it as an
5758 offset into the buffer.
5759
f1cc9874
AA
57602017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5761
5762 * dwarf2loc.c (write_pieced_value): Include transfer size in
5763 byte-wise check.
5764
cdaac320
AA
57652017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5766
5767 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5768 calculation of this_size.
5769
af547a96
AA
57702017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5771
5772 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5773 when targeting a bit-field.
5774 (write_pieced_value): Likewise.
5775
ddd7882a
AA
57762017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5777
5778 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5779 (allocate_piece_closure): Drop addr_size parameter.
5780 (dwarf2_evaluate_loc_desc_full): Adjust call to
5781 allocate_piece_closure.
5782
e9352324
AA
57832017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5784
5785 PR gdb/21226
5786 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5787 the LSB end, independent of endianness.
5788
d5d1163e
AA
57892017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5790
5791 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5792 size capping.
5793
032bb6ea
YQ
57942017-06-13 Yao Qi <yao.qi@linaro.org>
5795
5796 * mips-linux-nat.c: Move include features/mips*-linux.c to
5797 mips-linux-tdep.c.
5798 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5799 to mips-linux-tdep.c.
5800 * mips-linux-tdep.c: Include features/mips*-linux.c
5801 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5802 functions.
5803 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5804 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5805 (tdesc_mips64_dsp_linux): Declare.
5806
f12f6bad
TT
58072017-06-12 Tom Tromey <tom@tromey.com>
5808
5809 * valprint.h (val_print_type_code_int): Remove.
5810 * valprint.c (generic_val_print_int): Always call
5811 val_print_scalar_formatted.
5812 (val_print_type_code_int): Remove.
5813 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5814 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5815 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5816 * ada-valprint.c (ada_val_print_num): Use
5817 val_print_scalar_formatted.
5818
d9109c80
TT
58192017-06-12 Tom Tromey <tom@tromey.com>
5820
5821 * printcmd.c (print_scalar_formatted): Unify the two switches.
5822 Don't convert scalars to LONGEST.
5823
4ac0cb1c
TT
58242017-06-12 Tom Tromey <tom@tromey.com>
5825
5826 PR exp/16225:
5827 * valprint.h (print_decimal_chars): Update.
5828 * valprint.c (maybe_negate_by_bytes): New function.
5829 (print_decimal_chars): Add "is_signed" argument.
5830 * printcmd.c (print_scalar_formatted): Update.
5831
30a25466
TT
58322017-06-12 Tom Tromey <tom@tromey.com>
5833
5834 PR exp/16225:
5835 * valprint.h (print_binary_chars, print_hex_chars): Update.
5836 * valprint.c (val_print_type_code_int): Update.
5837 (print_binary_chars): Add "zero_pad" argument.
5838 (emit_octal_digit): New function.
5839 (print_octal_chars): Don't zero-pad.
5840 (print_decimal_chars): Likewise.
5841 (print_hex_chars): Add "zero_pad" argument.
5842 * sh64-tdep.c (sh64_do_fp_register): Update.
5843 * regcache.c (regcache::dump): Update.
5844 * printcmd.c (print_scalar_formatted): Update.
5845 * infcmd.c (default_print_one_register_info): Update.
5846
b3464d03
PA
58472017-06-12 Pedro Alves <palves@redhat.com>
5848 Alan Hayward <alan.hayward@arm.com>
5849
5850 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5851 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5852 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5853 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5854 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5855
4b76cda9
PA
58562017-06-12 Pedro Alves <palves@redhat.com>
5857
5858 * dwarf2read.c (mapped_symtab::data): Now a vector of
5859 symtab_index_entry instead of vector of
5860 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5861 whether an element's name is NULL instead of checking whether the
5862 element itself is NULL.
5863 (find_slot): Change return type. Adjust.
5864 (hash_expand, , add_index_entry, uniquify_cu_indices)
5865 (write_hash_table): Adjust.
5866
e8f8bcb3
PA
58672017-06-12 Pedro Alves <palves@redhat.com>
5868
5869 * dwarf2read.c (recursively_count_psymbols): New function.
5870 (write_psymtabs_to_index): Call it to compute number of psyms and
5871 pass estimate size of psyms_seen to unordered_set's ctor.
5872
70a1152b
PA
58732017-06-12 Pedro Alves <palves@redhat.com>
5874
5875 * dwarf2read.c (write_hash_table): Check if key already exists
5876 before emplacing.
5877
c2f134ac
PA
58782017-06-12 Pedro Alves <palves@redhat.com>
5879
5880 * dwarf2read.c (data_buf::append_space): Rename to...
5881 (data_buf::grow): ... this, and make private. Adjust all callers.
5882 (data_buf::append_uint): New method.
5883 (add_address_entry, write_one_signatured_type)
5884 (write_psymtabs_to_index): Use it.
5885
a81e6d4d
PA
58862017-06-12 Pedro Alves <palves@redhat.com>
5887
5888 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5889 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5890 (data_buf::file_write): Call ::fwrite directly.
5891
6fd931f2
PA
58922017-06-12 Pedro Alves <palves@redhat.com>
5893
5894 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5895 std::vector::erase.
5896
bc8f2430
JK
58972017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5898
5899 Code cleanup: C++ify .gdb_index producer.
5900 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5901 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5902 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5903 (create_strtab, add_string): Remove.
5904 (file_write, data_buf): New.
5905 (struct symtab_index_entry): Use std::vector for cu_indices.
5906 (struct mapped_symtab): Use std::vector for data.
5907 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5908 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5909 Remove.
5910 (find_slot): Change return type. Update it to the new data structures.
5911 (hash_expand, add_index_entry): Update it to the new data structures.
5912 (offset_type_compare): Remove.
5913 (uniquify_cu_indices): Update it to the new data structures.
5914 (c_str_view, c_str_view_hasher, vector_hasher): New.
5915 (add_indices_to_cpool): Remove.
5916 (write_hash_table): Update it to the new data structures.
5917 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5918 (eq_psymtab_cu_index): Remove.
5919 (psym_index_map): New typedef.
5920 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5921 reference and std::unordered_map for cu_index_htab.
5922 (add_address_entry, add_address_entry_worker, write_address_map)
5923 (write_psymbols): Update it to the new data structures.
5924 (write_obstack): Remove.
5925 (struct signatured_type_index_data): Change types_list to a data_buf
5926 reference and psyms_seen to a std::unordered_set reference.
5927 (write_one_signatured_type, recursively_write_psymbols)
5928 (write_psymtabs_to_index): Update it to the new data structures.
5929
c4dcb155
SM
59302017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5931
5932 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5933 separate-debug-file commands.
5934 * symfile.h (separate_debug_file_debug): New global.
5935 * symfile.c (separate_debug_file_debug): New global.
5936 (separate_debug_file_exists, find_separate_debug_file): Add
5937 debug output.
5938 (_initialize_symfile): Add "set debug separate-debug-file"
5939 command.
5940 * build-id.c (build_id_to_debug_bfd,
5941 find_separate_debug_file_by_buildid): Add debug output.
5942
6d45d4b4
SM
59432017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5944
5945 * gdbarch.sh (displaced_step_free_closure): Remove.
5946 * gdbarch.h, gdbarch.c: Re-generate.
5947 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5948 displaced_step_free_closure.
5949 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5950 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5951 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5952 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5953 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5954 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5955 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5956 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5957 * infrun.c (displaced_step_clear): Call xfree instead of
5958 gdbarch_displaced_step_free_closure.
5959
2f91880f
SDJ
59602017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5961
5962 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5963 NULL".
5964
b8b6e72f
AH
59652017-06-08 Alan Hayward <alan.hayward@arm.com>
5966
5967 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5968 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5969 (mn10300_push_dummy_call): Likewise.
5970
5369082e
AH
59712017-06-08 Alan Hayward <alan.hayward@arm.com>
5972
5973 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5974
ff4ca5ac
AH
59752017-06-08 Alan Hayward <alan.hayward@arm.com>
5976
5977 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5978
aefd8b33
SDJ
59792017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5980
5981 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5982 able to start inferiors using a shell.
5983 (New remote packets): Announce new packet "QStartupWithShell".
5984 * remote.c: Add PACKET_QStartupWithShell.
5985 (extended_remote_create_inferior): Handle new
5986 PACKET_QStartupWithShell.
5987 (remote_protocol_features) <QStartupWithShell>: New entry for
5988 PACKET_QStartupWithShell.
5989 (_initialize_remote): Call "add_packet_config_cmd" for
5990 QStartupShell.
5991
2090129c
SDJ
59922017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5993 Pedro Alves <palves@redhat.com>
5994
5995 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5996 and "nat/fork-inferior.h".
5997 * common/common-inferior.h: New file, with contents from
5998 "gdb/inferior.h".
5999 * commom/common-utils.c: Include "common-utils.h".
6000 (stringify_argv): New function.
6001 * common/common-utils.h (stringify_argv): New prototype.
6002 * configure.nat: Add "fork-inferior.o" as a dependency for
6003 "*linux*", "fbsd*" and "nbsd*" hosts.
6004 * corefile.c (get_exec_file): Update comment.
6005 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
6006 instead of "startup_inferior".
6007 (darwin_create_inferior): Call "add_thread_silent" after
6008 "fork_inferior".
6009 * fork-child.c: Cleanup unnecessary includes.
6010 (SHELL_FILE): Move to "common/common-fork-child.c".
6011 (environ): Likewise.
6012 (exec_wrapper): Initialize.
6013 (get_exec_wrapper): New function.
6014 (breakup_args): Move to "common/common-fork-child.c"; rename to
6015 "breakup_args_for_exec".
6016 (escape_bang_in_quoted_argument): Move to
6017 "common/common-fork-child.c".
6018 (saved_ui): New variable.
6019 (prefork_hook): New function.
6020 (postfork_hook): Likewise.
6021 (postfork_child_hook): Likewise.
6022 (gdb_startup_inferior): Likewise.
6023 (fork_inferior): Move to "common/common-fork-child.c". Update
6024 function to support gdbserver.
6025 (startup_inferior): Likewise.
6026 * gdbcore.h (get_exec_file): Remove declaration.
6027 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
6028 instead of "startup_inferior". Call "add_thread_silent" after
6029 "fork_inferior".
6030 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
6031 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
6032 instead of "startup_inferior". Call "add_thread_silent" after
6033 "fork_inferior".
6034 * inferior.h: Include "common-inferior.h".
6035 (trace_start_error): Move to "common/common-utils.h".
6036 (trace_start_error_with_name): Likewise.
6037 (fork_inferior): Move prototype to "nat/fork-inferior.h".
6038 (startup_inferior): Likewise.
6039 (gdb_startup_inferior): New prototype.
6040 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
6041 * nat/fork-inferior.h: New file.
6042 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
6043 instead of "startup_inferior". Call "add_thread_silent" after
6044 "fork_inferior".
6045 * target.h (target_terminal_init): Move prototype to
6046 "target/target.h".
6047 (target_terminal_inferior): Likewise.
6048 (target_terminal_ours): Likewise.
6049 * target/target.h (target_terminal_init): New prototype, moved
6050 from "target.h".
6051 (target_terminal_inferior): Likewise.
6052 (target_terminal_ours): Likewise.
6053 * utils.c (gdb_flush_out_err): New function.
6054
043a4934
SDJ
60552017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6056
6057 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
6058 * common/common-gdbthread.h: New file, with parts from
6059 "gdb/gdbthread.h".
6060 * gdbthread.h: Include "common-gdbthread.h".
6061 (switch_to_thread): Moved to "common/common-gdbthread.h".
6062
15652511
SDJ
60632017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6064
6065 * Makefile.in (SFILES): Add "common/job-control.c".
6066 (HFILES_NO_SRCDIR): Add "common/job-control.h".
6067 (COMMON_OBS): Add "job-control.o".
6068 * common/job-control.c: New file, with contents from
6069 "gdb/inflow.c".
6070 * common/job-control.h: New file, with contents from "terminal.h".
6071 * fork-child.c: Include "job-control.h".
6072 * inflow.c: Include "job-control.h".
6073 (gdb_setpgid): Move to "common/common-inflow.c".
6074 (_initialize_inflow): Move setting of "job_control" to
6075 "handle_job_control".
6076 * terminal.h (job_control): Moved to "common/common-terminal.h".
6077 (gdb_setpgid): Likewise.
6078 * top.c: Include "job_control.h".
6079 * utils.c: Likewise.
6080 (job_control): Moved to "job-control.c".
6081
2d7cc5c7
PA
60822017-06-07 Pedro Alves <palves@redhat.com>
6083
6084 * Makefile.in (SFILES): Add gdb_regex.c.
6085 (COMMON_OBS): Add gdb_regex.o.
6086 * ada-lang.c (ada_add_standard_exceptions)
6087 (ada_add_exceptions_from_frame, name_matches_regex)
6088 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
6089 parameter type to compiled_regex. Adjust.
6090 (ada_exceptions_list): Use compiled_regex.
6091 * break-catch-throw.c (exception_catchpoint::pattern): Now a
6092 std::unique_ptr<compiled_regex>.
6093 (exception_catchpoint::~exception_catchpoint): Remove regfree
6094 call.
6095 (check_status_exception_catchpoint): Adjust to use compiled_regex.
6096 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
6097 * breakpoint.c (solib_catchpoint::compiled): Now a
6098 std::unique_ptr<compiled_regex>.
6099 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
6100 (check_status_catch_solib): Adjust to use compiled_regex.
6101 (add_solib_catchpoint): Adjust to use compiled_regex.
6102 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
6103 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
6104 compiled_regex reference. Adjust to use it.
6105 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
6106 declaration. Include "gdb_regex.h".
6107 (apropos_cmd): Change regex parameter to compiled_regex reference.
6108 * gdb_regex.c: New file.
6109 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
6110 declarations.
6111 (class compiled_regex): New.
6112 * linux-tdep.c: Include "common/gdb_optional.h".
6113 (struct mapping_regexes): New, factored out from
6114 mapping_is_anonymous_p, and adjusted to use compiled_regex.
6115 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
6116 gdb::optional and remove cleanups. Adjust to compiled_regex.
6117 * probe.c: Include "common/gdb_optional.h".
6118 (collect_probes): Use compiled_regex and gdb::optional and remove
6119 cleanups.
6120 * skip.c: Include "common/gdb_optional.h".
6121 (skiplist_entry::compiled_function_regexp): Now a
6122 gdb::optional<compiled_regex>.
6123 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
6124 (free_skiplist_entry): Remove regfree call.
6125 (compile_skip_regexp, skip_rfunction_p): Adjust to use
6126 compiled_regex and gdb::optional.
6127 * symtab.c: Include "common/gdb_optional.h".
6128 (search_symbols): Use compiled_regex and gdb::optional.
6129 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
6130 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
6131 to gdb_regex.c.
6132
50d6adef
AH
61332017-06-07 Alan Hayward <alan.hayward@arm.com>
6134
6135 * regcache.c (regcache::save): Avoid buffer use.
6136 (regcache::dump): Likewise.
6137
4a8a33c8
AH
61382017-06-07 Alan Hayward <alan.hayward@arm.com>
6139
6140 * sh-tdep.c (sh_pseudo_register_read): Remove
6141 MAX_REGISTER_SIZE.
6142 (sh_pseudo_register_write): Likewise.
6143 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
6144 (sh64_pseudo_register_write): Likewise
6145
d1be909e
AH
61462017-06-07 Alan Hayward <alan.hayward@arm.com>
6147
6148 * aarch64-tdep.c (aarch64_store_return_value): Use
6149 V_REGISTER_SIZE.
6150 (aarch64_pseudo_read_value): Likewise.
6151 (aarch64_pseudo_write): Likewise.
6152
f4a65042
YQ
61532017-06-06 Yao Qi <yao.qi@linaro.org>
6154
6155 * regformats/regdef.h (set_register_cache): Remove the
6156 declaration.
6157
9f7fb0aa
AH
61582017-06-06 Alan Hayward <alan.hayward@arm.com>
6159
6160 * frame.c (frame_unwind_register_signed): Use
6161 frame_unwind_register_value.
6162
e1e01040
PA
61632017-06-06 Pedro Alves <palves@redhat.com>
6164
6165 PR breakpoints/21553
6166 * breakpoint.c (create_breakpoints_sal_default)
6167 (init_breakpoint_sal, create_breakpoint_sal): Use
6168 gdb::unique_xmalloc_ptr for string parameters.
6169 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6170 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
6171 (base_breakpoint_create_breakpoints_sal)
6172 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
6173 (strace_marker_create_breakpoints_sal)
6174 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
6175 string parameters.
6176 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
6177 gdb::unique_xmalloc_ptr for string parameters.
6178 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6179 parameters.
6180
fbe654c8
AH
61812017-06-06 Alan Hayward <alan.hayward@arm.com>
6182
6183 * alpha-tdep.c (alpha_register_to_value): Use
6184 get_frame_register_value.
6185 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
6186
ae0d01d6
AH
61872017-06-06 Alan Hayward <alan.hayward@arm.com>
6188
6189 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
6190 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
6191 (ia64_value_to_register): Likewise.
6192 (ia64_extract_return_value): Likewise.
6193 (ia64_store_return_value): Likewise.
6194 (ia64_push_dummy_call): Likewise.
6195
49cf576c
JB
61962017-06-04 Joel Brobecker <brobecker@adacore.com>
6197
6198 GDB 8.0 released.
6199
26b6a6ab
SM
62002017-06-03 Simon Marchi <simon.marchi@ericsson.com>
6201
6202 * x86-linux-nat.c (struct arch_lwp_info): Remove.
6203
22827c51
SM
62042017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
6205
6206 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
6207 parameter.
6208 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
6209
0e05cf3a
SM
62102017-06-02 Simon Marchi <simon.marchi@ericsson.com>
6211
6212 * event-loop.c (poll_timers): Unallocate timer using delete
6213 instead of xfree.
6214
c1fc2657
SM
62152017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6216
6217 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
6218 (struct breakpoint) <~breakpoint>: New.
6219 (struct watchpoint): Inherit from breakpoint.
6220 <~watchpoint>: New.
6221 <base>: Remove.
6222 (struct tracepoint): Inherit from breakpoint.
6223 <base>: Remove.
6224 * breakpoint.c (longjmp_breakpoint_ops): Remove.
6225 (struct longjmp_breakpoint): Inherit from breakpoint.
6226 <~longjmp_breakpoint>: New.
6227 <base>: Remove.
6228 (new_breakpoint_from_type): Remove casts.
6229 (watchpoint_in_thread_scope): Remove reference to base field.
6230 (watchpoint_del_at_next_stop): Likewise.
6231 (update_watchpoint): Likewise.
6232 (watchpoint_check): Likewise.
6233 (bpstat_check_watchpoint): Likewise.
6234 (set_longjmp_breakpoint): Likewise.
6235 (struct fork_catchpoint): Inherit from breakpoint.
6236 <base>: Remove.
6237 (struct solib_catchpoint): Inherit from breakpoint.
6238 <~solib_catchpoint>: New.
6239 <base>: Remove.
6240 (dtor_catch_solib): Change to ...
6241 (solib_catchpoint::~solib_catchpoint): ... this.
6242 (breakpoint_hit_catch_solib): Remove reference to base field.
6243 (add_solib_catchpoint): Likewise.
6244 (create_fork_vfork_event_catchpoint): Likewise.
6245 (struct exec_catchpoint): Inherit from breakpoint.
6246 <~exec_catchpoint>: New.
6247 <base>: Remove.
6248 (dtor_catch_exec): Change to ...
6249 (exec_catchpoint::~exec_catchpoint): ... this.
6250 (dtor_watchpoint): Change to ...
6251 (watchpoint::~watchpoint): ... this.
6252 (watch_command_1): Remove reference to base field.
6253 (catch_exec_command_1): Likewise.
6254 (base_breakpoint_dtor): Change to ...
6255 (breakpoint::~breakpoint): ... this.
6256 (base_breakpoint_ops): Remove dtor field value.
6257 (longjmp_bkpt_dtor): Change to ...
6258 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
6259 (strace_marker_create_breakpoints_sal): Remove reference to base
6260 field.
6261 (delete_breakpoint): Don't manually call breakpoint destructor.
6262 (create_tracepoint_from_upload): Remove reference to base field.
6263 (trace_pass_set_count): Likewise.
6264 (initialize_breakpoint_ops): Don't initialize
6265 momentary_breakpoint_ops, don't set dtors.
6266 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
6267 <~ada_catchpoint>: New.
6268 <base>: Remove.
6269 (create_excep_cond_exprs): Remove reference to base field.
6270 (dtor_exception): Change to ...
6271 (ada_catchpoint::~ada_catchpoint): ... this.
6272 (dtor_catch_exception): Remove.
6273 (dtor_catch_exception_unhandled): Remove.
6274 (dtor_catch_assert): Remove.
6275 (create_ada_exception_catchpoint): Remove reference to base
6276 field.
6277 (initialize_ada_catchpoint_ops): Don't set dtors.
6278 * break-catch-sig.c (struct signal_catchpoint): Inherit from
6279 breakpoint.
6280 <~signal_catchpoint>: New.
6281 <base>: Remove.
6282 (signal_catchpoint_dtor): Change to ...
6283 (signal_catchpoint::~signal_catchpoint): ... this.
6284 (create_signal_catchpoint): Remove reference to base field.
6285 (initialize_signal_catchpoint_ops): Don't set dtor.
6286 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
6287 from breakpoint.
6288 <~syscall_catchpoint>: New.
6289 <base>: Remove.
6290 (dtor_catch_syscall): Change to ...
6291 (syscall_catchpoint::~syscall_catchpoint): ... this.
6292 (create_syscall_event_catchpoint): Remove reference to base
6293 field.
6294 (initialize_syscall_catchpoint_ops): Don't set dtor.
6295 * break-catch-throw.c (struct exception_catchpoint): Inherit
6296 from breakpoint.
6297 <~exception_catchpoint>: New.
6298 <base>: Remove.
6299 (dtor_exception_catchpoint): Change to ...
6300 (exception_catchpoint::~exception_catchpoint): ... this.
6301 (handle_gnu_v3_exceptions): Remove reference to base field.
6302 (initialize_throw_catchpoint_ops): Don't set dtor.
6303 * ctf.c (ctf_get_traceframe_address): Remove reference to base
6304 field.
6305 * remote.c (remote_get_tracepoint_status): Likewise.
6306 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
6307 * tracefile.c (tracefile_fetch_registers): Likewise.
6308 * tracepoint.c (actions_command): Likewise.
6309 (validate_actionline): Likewise.
6310 (tfind_1): Likewise.
6311 (get_traceframe_location): Likewise.
6312 (find_matching_tracepoint_location): Likewise.
6313 (parse_tracepoint_status): Likewise.
6314 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
6315
3b0871f4
SM
63162017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6317
6318 * breakpoint.c (struct longjmp_breakpoint): New struct.
6319 (is_tracepoint_type): Change return type to bool.
6320 (is_longjmp_type): New function.
6321 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
6322 (set_raw_breakpoint_without_location): Use
6323 new_breakpoint_from_type.
6324 (set_raw_breakpoint): Likewise.
6325
a5e364af
SM
63262017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6327
6328 * breakpoint.c (new_breakpoint_from_type): New function.
6329 (create_breakpoint_sal): Use new_breakpoint_from_type and
6330 unique_ptr.
6331 (create_breakpoint): Likewise.
6332
ae3b3f34
SM
63332017-05-31 Simon Marchi <simon.marchi@ericsson.com>
6334
6335 * memattr.c (mem_info_command): Rename to ...
6336 (info_mem_command): ... this.
6337 (mem_enable_command): Rename to ...
6338 (enable_mem_command): ... this.
6339 (mem_disable_command): Rename to ...
6340 (disable_mem_command): ... this.
6341 (mem_delete_command): Rename to ...
6342 (delete_mem_command): ... this.
6343 (_initialize_mem): Adjust function names.
6344
13ace077
MM
63452017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6346
6347 * btrace.c (handle_pt_insn_events): New.
6348 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
6349 STATUS. Split into this and ...
6350 (handle_pt_insn_event_flags): ... this.
6351
c56ccc05
MM
63522017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6353
6354 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
6355 and struct pt_insn.resynced.
6356 * configure: Regenerated.
6357 * config.in: Regenerated.
6358
08c3f6d2
TW
63592017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6360
6361 * btrace.c (ftrace_find_call_by_number): New function.
6362 (ftrace_new_function): Store objects, not pointers.
6363 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
6364 ftrace_new_gap, ftrace_update_function,
6365 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
6366 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
6367 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
6368 btrace_ends_with_single_insn, btrace_call_get): Account for
6369 btrace_thread_info::functions now storing objects.
6370 * btrace.h (struct btrace_thread_info): Add constructor.
6371 (struct btrace_thread_info) <functions>: Make std::vector.
6372 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
6373 Initialize with default values.
6374 * record-btrace.c (record_btrace_frame_sniffer): Account for
6375 btrace_thread_info::functions now storing objects.
6376
8ffd39f2
TW
63772017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6378
6379 * btrace.c: Remove typedef bfun_s.
6380 (ftrace_new_gap): Directly add gaps to the list of gaps.
6381 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
6382 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
6383 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
6384 instead of gdb VEC.
6385
4aeb0dfc
TW
63862017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6387
6388 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
6389 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
6390 with btrace_thread_info::next_segment and
6391 btrace_thread_info::prev_segment.
6392 * btrace.h: Remove struct btrace_func_link.
6393 (struct btrace_function): Replace pair of function segment pointers
6394 with pair of indices.
6395 * python/py-record-btrace.c (btpy_call_prev_sibling,
6396 btpy_call_next_sibling): Replace references to
6397 btrace_thread_info::segment with btrace_thread_info::next_segment and
6398 btrace_thread_info::prev_segment.
6399 * record-btrace.c (record_btrace_frame_this_id): Use
6400 btrace_find_call_by_number.
6401
eb8f2b9c
TW
64022017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6403
6404 * btrace.c (ftrace_new_function, ftrace_fixup_level,
6405 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
6406 btrace_insn_next, btrace_insn_prev): Remove references to
6407 btrace_thread_info::flow.
6408 * btrace.h (struct btrace_function): Remove FLOW.
6409
42bfe59e
TW
64102017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6411
6412 * btrace.c (ftrace_find_call_by_number): New function.
6413 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
6414 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
6415 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
6416 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
6417 index.
6418 * btrace.h (struct btrace_function): Turn UP into an index.
6419 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
6420 as an index.
6421 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
6422 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
6423 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
6424
b54b03bd
TW
64252017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6426
6427 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6428 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6429 ftrace_update_function, ftrace_compute_global_level_offset,
6430 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
6431 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
6432 btrace_insn_end, btrace_is_empty): Remove references to
6433 btrace_thread_info::begin and btrace_thread_info::end.
6434 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
6435 (struct btrace_thread_info) <functions>: Adjust comment.
6436 * record-btrace.c (record_btrace_start_replaying): Remove reference to
6437 btrace_thread_info::begin.
6438
8286623c
TW
64392017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6440
6441 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6442 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6443 ftrace_update_function): Remove arguments that implicitly were always
6444 BTINFO->END.
6445 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6446 Don't pass BTINFO->END.
6447
a0f1b963
TW
64482017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6449
6450 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6451 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6452 btrace_find_insn_by_number): Replace function segment pointer with
6453 index.
6454 (btrace_insn_cmp): Simplify.
6455 * btrace.h: (struct btrace_insn_iterator) Rename index to
6456 insn_index. Replace function segment pointer with index into function
6457 segment vector.
6458 * record-btrace.c (record_btrace_call_history): Replace function
6459 segment pointer use with index.
6460 (record_btrace_frame_sniffer): Retrieve function call segment through
6461 vector.
6462 (record_btrace_set_replay): Remove defunc't safety check.
6463
f158f208
TW
64642017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6465
6466 * btrace.c (btrace_ends_with_single_insn): New function.
6467 (btrace_call_get, btrace_call_number, btrace_call_begin,
6468 btrace_call_end, btrace_call_next, btrace_call_prev,
6469 btrace_find_call_by_number): Use index into call segment vector
6470 instead of pointer.
6471 (btrace_call_cmp): Simplify.
6472 * btrace.h (struct btrace_call_iterator): Replace function call segment
6473 pointer with index into vector.
6474 * record-btrace.c (record_btrace_call_history): Use index instead of
6475 pointer.
6476
521103fd
TW
64772017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6478
6479 * btrace.c (btrace_insn_begin, btrace_insn_end,
6480 btrace_find_insn_by_number): Add btinfo to iterator.
6481 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6482
17b89b34
TW
64832017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6484
6485 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6486 and save pointers directly.
6487 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6488 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6489 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6490 changed signature of functions.
6491 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6492 (btrace_fetch): Remove code that adds btrace_function pointers to
6493 vector of btrace_functions.
6494 (btrace_clear): Simplify freeing vector of btrace_functions.
6495
2b51eddc
TW
64962017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6497
6498 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6499 Replace VEC_* with std::vector functions.
6500 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6501 (struct btrace_thread_info)<functions>: Change type to std::vector.
6502
db6be0d5
SM
65032017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6504
6505 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6506 "Removed targets and native configurations" up. Merge duplicate
6507 "New commands" sub-sections. Add "New options" sub-sections.
6508
b057297a
AH
65092017-05-26 Alan Hayward <alan.hayward@arm.com>
6510
6511 * defs.h (copy_integer_to_size): New declaration.
6512 * findvar.c (copy_integer_to_size): New function.
6513 (do_cint_test): New selftest function.
6514 (copy_integer_to_size_test): Likewise.
6515 (_initialize_findvar): Likewise.
6516 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6517 (mips_fbsd_collect_reg): Use raw_collect_integer.
6518 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6519 (mips64_fill_gregset): Use raw_collect_integer
6520 (mips64_fill_fpregset): Use raw_supply_integer.
6521 * regcache.c (regcache::raw_supply_integer): New function.
6522 (regcache::raw_collect_integer): Likewise.
6523 * regcache.h: (regcache::raw_supply_integer): New declaration.
6524 (regcache::raw_collect_integer): Likewise.
6525
b77b02a5
YQ
65262017-05-24 Yao Qi <yao.qi@linaro.org>
6527
6528 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6529 (COMMON_OBS): Add gdbarch-selftests.o.
6530 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6531 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6532 * gdbarch-selftests.c: New file.
6533 * regcache.h (regcache) <~regcache>: Mark it virtual if
6534 GDB_SELF_TEST.
6535 <raw_write>: Likewise.
6536
e521e87e
YQ
65372017-05-24 Yao Qi <yao.qi@linaro.org>
6538
6539 * regcache.c (current_regcache): Change it to
6540 regcache::current_regcache.
6541 (regcache_observer_target_changed): Update.
6542 (regcache_thread_ptid_changed): Make it a regcache static
6543 method.
6544 (regcache_thread_ptid_changed): Update.
6545 (class regcache_access): New.
6546 (current_regcache_test): Update.
6547 (_initialize_regcache): Update.
6548 * regcache.h: Include forward_list.
6549 (regcache): Declare regcache_thread_ptid_changed and declare
6550 registers_changed_ptid as friend.
6551
d8e07dda
YQ
65522017-05-24 Yao Qi <yao.qi@linaro.org>
6553
6554 * i387-tdep.c (i387_register_to_value): Use register_size
6555 instead of TYPE_LENGTH.
6556 * m68k-tdep.c (m68k_register_to_value): Likewise.
6557
8c8f9122
YQ
65582017-05-24 Yao Qi <yao.qi@linaro.org>
6559
6560 * i387-tdep.c (i387_convert_register_p): Return false if type
6561 code isn't TYPE_CODE_FLT.
6562
68fce50f
YQ
65632017-05-24 Yao Qi <yao.qi@linaro.org>
6564
6565 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6566 length is 4.
6567 (alpha_register_to_value): Remove type length check.
6568 (alpha_value_to_register): Likewise.
6569
88954b49
YQ
65702017-05-24 Yao Qi <yao.qi@linaro.org>
6571
6572 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6573 TYPE_CODE_FLT.
6574
e3ec9b69
YQ
65752017-05-24 Yao Qi <yao.qi@linaro.org>
6576
6577 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6578 TYPE_CODE_FLT or not.
6579
cdd238da
YQ
65802017-05-24 Yao Qi <yao.qi@linaro.org>
6581
6582 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6583 * avr-tdep.c (avr_gdbarch_init): Likewise.
6584 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6585 * cris-tdep.c (cris_gdbarch_init): Likewise.
6586 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6587 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6588 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6589 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6590 * mep-tdep.c (mep_gdbarch_init): Likewise.
6591 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6592 * mips-tdep.c (mips_gdbarch_init): Likewise.
6593 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6594 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6595 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6596 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6597 * v850-tdep.c (v850_gdbarch_init): Likewise.
6598
7a3929c4
YQ
65992017-05-24 Yao Qi <yao.qi@linaro.org>
6600
6601 * selftest-arch.c (tests_with_arch): Call registers_changed
6602 and reinit_frame_cache.
6603 * selftest.c (run_self_tests): Likewise.
6604
f4985dba
YQ
66052017-05-24 Yao Qi <yao.qi@linaro.org>
6606
6607 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6608 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6609
ab20fa4a
YQ
66102017-05-24 Yao Qi <yao.qi@linaro.org>
6611
6612 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6613 set_gdbarch_print_insn.
6614
f532ab94
YQ
66152017-05-24 Yao Qi <yao.qi@linaro.org>
6616
6617 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6618 set_gdbarch_print_insn.
6619
39503f82
YQ
66202017-05-24 Yao Qi <yao.qi@linaro.org>
6621
6622 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6623 set_gdbarch_print_insn.
6624 * arc-tdep.c (arc_gdbarch_init): Likewise.
6625 * arch-utils.c: include dis-asm.h.
6626 (default_print_insn): New function.
6627 * arch-utils.h (default_print_insn): Declare.
6628 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6629 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6630 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6631 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6632 * frv-tdep.c (frv_gdbarch_init): Likewise.
6633 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6634 * gdbarch.sh (print_insn): Use default_print_insn.
6635 * gdbarch.c: Regenerated.
6636 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6637 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6638 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6639 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6640 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6641 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6642 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6643 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6644 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6645 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6646 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6647 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6648 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6649 * mt-tdep.c (mt_gdbarch_init): Likewise.
6650 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6651 * nios2-tdep.c (nios2_print_insn): Remove.
6652 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6653 * rx-tdep.c (rx_gdbarch_init): Likewise.
6654 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6655 * score-tdep.c (score_print_insn): Remove.
6656 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6657 * sh-tdep.c (sh_gdbarch_init): Likewise.
6658 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6659 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6660 * tic6x-tdep.c (tic6x_print_insn): Remove.
6661 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6662 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6663 * v850-tdep.c (v850_gdbarch_init): Likewise.
6664 * vax-tdep.c (vax_gdbarch_init): Likewise.
6665 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6666 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6667
f7241d4f
JB
66682017-05-23 John Baldwin <jhb@FreeBSD.org>
6669
6670 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6671 (MIPS_FP0_REGNUM): Remove.
6672 (MIPS_FSR_REGNUM): Remove.
6673 (mips_fbsd_supply_fpregs): Use mips_regnum.
6674 (mips_fbsd_supply_gregs): Likewise.
6675 (mips_fbsd_collect_fpregs): Likewise.
6676 (mips_fbsd_collect_gregs): Likewise.
6677
d489d81d
JB
66782017-05-23 John Baldwin <jhb@FreeBSD.org>
6679
6680 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6681 (getpfpregs_supplies): New function.
6682 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6683 getfpregs_supplies.
6684 (mips_fbsd_store_inferior_registers): Likewise.
6685
e11b3cdc
PA
66862017-05-22 Pedro Alves <palves@redhat.com>
6687
6688 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6689 maintainer.
6690
0f068fb5
AH
66912017-05-22 Alan Hayward <alan.hayward@arm.com>
6692
6693 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6694 (store_register): Likewise.
6695 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6696 (get_decimal_float_return_value): Likewise.
6697 (do_ppc_sysv_return_value): Likewise.
6698 (ppc64_sysv_abi_push_integer): Likewise.
6699 (ppc64_sysv_abi_push_freg): Likewise.
6700 (ppc64_sysv_abi_return_value_base): Likewise.
6701 (ppc64_sysv_abi_return_value): Likewise.
6702 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6703 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6704 * rs6000-nat.c: Likewise.
6705 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6706 (rs6000_value_to_register): Likewise.
6707 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6708
e6cf65f2
TT
67092017-05-21 Tom Tromey <tom@tromey.com>
6710
6711 PR rust/21466:
6712 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6713 arrays as "[T]", not "[T; ]".
6714
43cc5389
TT
67152017-05-19 Tom Tromey <tom@tromey.com>
6716
6717 PR rust/21484:
6718 * rust-lang.c (exp_descriptor_rust): New function.
6719 (rust_language_defn): Use it.
6720 * p-lang.c (pascal_language_defn): Update.
6721 * opencl-lang.c (opencl_language_defn): Update.
6722 * objc-lang.c (objc_language_defn): Update.
6723 * m2-lang.c (m2_language_defn): Update.
6724 * language.h (struct language_defn)
6725 <la_watch_location_expression>: New member.
6726 * language.c (unknown_language_defn, auto_language_defn)
6727 (local_language_defn): Update.
6728 * go-lang.c (go_language_defn): Update.
6729 * f-lang.c (f_language_defn): Update.
6730 * d-lang.c (d_language_defn): Update.
6731 * c-lang.h (c_watch_location_expression): Declare.
6732 * c-lang.c (c_watch_location_expression): New function.
6733 (c_language_defn, cplus_language_defn, asm_language_defn)
6734 (minimal_language_defn): Use it.
6735 * breakpoint.c (watch_command_1): Call
6736 la_watch_location_expression.
6737 * ada-lang.c (ada_language_defn): Update.
6738
7a6e7fcc
RO
67392017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6740
6e7e1744
RO
6741 PR tui/21482
6742 * gdb_curses.h (NOMACROS): Define.
6743 (NCURSES_NOMACROS): Define.
6744
67452017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6746
6747 PR tui/21482
7a6e7fcc
RO
6748 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6749 arg to char *.
6750 * tui/tui-wingeneral.c (box_win): Likewise.
6751 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6752 (tui_show_source_line): Likewise.
6753 (tui_show_exec_info_content): Likewise.
6754
1933fd8e
VM
67552017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6756
6757 * sparc-tdep.c (sparc_structure_return_p)
6758 (sparc_arg_on_registers_p): New functions.
6759 (sparc32_store_arguments): Use them.
6760 * sparc64-tdep.c (sparc64_16_byte_align_p)
6761 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6762 Handle TYPE_CODE_ARRAY.
6763
21873064
YQ
67642017-05-17 Yao Qi <yao.qi@linaro.org>
6765
6766 * cli/cli-decode.c (add_alias_cmd): New function.
6767 * command.h (add_alias_cmd): Declare.
6768 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6769 instead call add_alias_cmd.
6770
2b351b19
PA
67712017-05-17 Pedro Alves <palves@redhat.com>
6772
6773 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6774 (nat_makefile_frag): ... this. All references updated.
6775 * configure.ac: Likewise.
6776 * configure.nat: Likewise. Enhance comments.
6777 * configure: Regenerate.
6778
5f2ad7a3
RO
67792017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6780
6781 * procfs.c (procfs_create_inferior): Change prototype to match
6782 definition.
6783
adf3dde5
EZ
67842017-05-13 Eli Zaretskii <eliz@gnu.org>
6785
6786 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6787 C++ compiler warning.
6788
6830f270
TT
67892017-05-12 Tom Tromey <tom@tromey.com>
6790
6791 PR rust/21483:
6792 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6793 recurse, just call value_struct_elt directly.
6794
68f2f2e3
TT
67952017-05-12 Tom Tromey <tom@tromey.com>
6796
6797 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6798 OP_RUST_ARRAY>: Fix.
6799
256afbc2
TT
68002017-05-12 Tom Tromey <tom@tromey.com>
6801
6802 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6803
94bb8dfe
YQ
68042017-05-09 Yao Qi <yao.qi@linaro.org>
6805
6806 * regcache.c: Include <forward_list>.
6807 (struct regcache_list): Remove.
6808 (current_regcache): Update.
6809 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6810 (regcache_thread_ptid_changed): Likewise.
6811 (registers_changed_ptid): Likewise.
6812 (current_regcache_size): Likewise.
6813
8248946c
YQ
68142017-05-09 Yao Qi <yao.qi@linaro.org>
6815
6816 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6817 (current_regcache_size): New function.
6818 (current_regcache_test): New function.
6819 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6820
313c5961
AH
68212017-05-08 Alan Hayward <alan.hayward@arm.com>
6822
6823 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6824 (print_gp_register_row): Use get_frame_register_value.
6825
27bfc1d1
AH
68262017-05-08 Alan Hayward <alan.hayward@arm.com>
6827
6828 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6829 (mips_supply_fpregset): Likewise.
6830 (mips64_supply_gregset): Likewise.
6831
146e6c5c
AH
68322017-05-08 Alan Hayward <alan.hayward@arm.com>
6833
6834 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6835 regcache->raw_supply_zeroed.
6836
e50f25ec
SDJ
68372017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6838
6839 * configure.nat: Rearrange 'case' statements to match
6840 host before cpu.
6841
21ea5acd
SDJ
68422017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6843
6844 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6845 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6846 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6847 "@nat_extra_makefile_frag@".
6848 (Makefile): Remove dependency on "@frags@".
6849 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6850 (data-directory/Makefile): Likewise.
6851 * config/aarch64/linux.mh: Deleted; moved contents to
6852 "gdb/configure.nat".
6853 * config/alpha/alpha-linux.mh: Likewise.
6854 * config/alpha/nbsd.mh: Likewise.
6855 * config/arm/linux.mh: Likewise.
6856 * config/arm/nbsdelf.mh: Likewise.
6857 * config/i386/cygwin.mh: Likewise.
6858 * config/i386/cygwin64.mh: Likewise.
6859 * config/i386/darwin.mh: Likewise.
6860 * config/i386/fbsd.mh: Likewise.
6861 * config/i386/fbsd64.mh: Likewise.
6862 * config/i386/go32.mh: Likewise.
6863 * config/i386/i386gnu.mh: Likewise.
6864 * config/i386/i386sol2.mh: Likewise.
6865 * config/i386/linux.mh: Likewise.
6866 * config/i386/linux64.mh: Likewise.
6867 * config/i386/mingw.mh: Likewise.
6868 * config/i386/mingw64.mh: Likewise.
6869 * config/i386/nbsd64.mh: Likewise.
6870 * config/i386/nbsdelf.mh: Likewise.
6871 * config/i386/nto.mh: Likewise.
6872 * config/i386/obsd.mh: Likewise.
6873 * config/i386/obsd64.mh: Likewise.
6874 * config/i386/sol2-64.mh: Likewise.
6875 * config/ia64/linux.mh: Likewise.
6876 * config/m32r/linux.mh: Likewise.
6877 * config/m68k/linux.mh: Likewise.
6878 * config/m68k/nbsdelf.mh: Likewise.
6879 * config/m68k/obsd.mh: Likewise.
6880 * config/m88k/obsd.mh: Likewise.
6881 * config/mips/fbsd.mh: Likewise.
6882 * config/mips/linux.mh: Likewise.
6883 * config/mips/nbsd.mh: Likewise.
6884 * config/mips/obsd64.mh: Likewise.
6885 * config/pa/linux.mh: Likewise.
6886 * config/pa/nbsd.mh: Likewise.
6887 * config/pa/obsd.mh: Likewise.
6888 * config/powerpc/aix.mh: Likewise.
6889 * config/powerpc/fbsd.mh: Likewise.
6890 * config/powerpc/linux.mh: Likewise.
6891 * config/powerpc/nbsd.mh: Likewise.
6892 * config/powerpc/obsd.mh: Likewise.
6893 * config/powerpc/ppc64-linux.mh: Likewise.
6894 * config/powerpc/spu-linux.mh: Likewise.
6895 * config/s390/linux.mh: Likewise.
6896 * config/sh/nbsd.mh: Likewise.
6897 * config/sparc/fbsd.mh: Likewise.
6898 * config/sparc/linux.mh: Likewise.
6899 * config/sparc/linux64.mh: Likewise.
6900 * config/sparc/nbsd64.mh: Likewise.
6901 * config/sparc/nbsdelf.mh: Likewise.
6902 * config/sparc/obsd64.mh: Likewise.
6903 * config/sparc/sol2.mh: Likewise.
6904 * config/tilegx/linux.mh: Likewise.
6905 * config/vax/nbsdelf.mh: Likewise.
6906 * config/vax/obsd.mh: Likewise.
6907 * config/xtensa/linux.mh: Likewise.
6908 * config/i386/i386gnu.mn: New file, with excerpts from
6909 "config/i386/i386gnu.mh".
6910 * configure: Regenerate.
6911 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6912 *.mh files under "gdb/config".
6913 * configure.nat: New file, with contents from the
6914 "gdb/config/*/*.mh" files.
6915
7ed1acaf
TW
69162017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6917
6918 * btrace.c (btrace_clear): Free insn vector.
6919
e13cb306
PA
69202017-05-05 Pedro Alves <palves@redhat.com>
6921
6922 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6923 * configure: Regenerate.
6924
5ed8105e
PA
69252017-05-04 Pedro Alves <palves@redhat.com>
6926
6927 * Makefile.in (SFILES): Add progspace-and-thread.c.
6928 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6929 (COMMON_OBS): Add progspace-and-thread.o.
6930 * breakpoint.c: Include "progspace-and-thread.h".
6931 (update_inserted_breakpoint_locations)
6932 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6933 Use scoped_restore_current_pspace_and_thread.
6934 (create_std_terminate_master_breakpoint): Use
6935 scoped_restore_current_program_space.
6936 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6937 (print_breakpoint_location): Use
6938 scoped_restore_current_program_space.
6939 (bp_loc_is_permanent): Use
6940 scoped_restore_current_pspace_and_thread.
6941 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6942 (download_tracepoint_locations): Use
6943 scoped_restore_current_pspace_and_thread.
6944 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6945 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6946 (enum step_over_calls_kind): Moved from inferior.h.
6947 (class scoped_restore_current_thread): New class.
6948 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6949 declaration.
6950 (scoped_restore_current_thread): New class.
6951 * infcmd.c: Include "common/gdb_optional.h".
6952 (continue_1, proceed_after_attach): Use
6953 scoped_restore_current_thread.
6954 (notice_new_inferior): Use scoped_restore_current_thread.
6955 * inferior.c: Include "progspace-and-thread.h".
6956 (restore_inferior, save_current_inferior): Delete.
6957 (add_inferior_command, clone_inferior_command): Use
6958 scoped_restore_current_pspace_and_thread.
6959 * inferior.h (scoped_restore_current_inferior): New class.
6960 * infrun.c: Include "progspace-and-thread.h" and
6961 "common/gdb_optional.h".
6962 (follow_fork_inferior): Use
6963 scoped_restore_current_pspace_and_thread.
6964 (scoped_restore_exited_inferior): New class.
6965 (handle_vfork_child_exec_or_exit): Use
6966 scoped_restore_exited_inferior,
6967 scoped_restore_current_pspace_and_thread,
6968 scoped_restore_current_thread and scoped_restore.
6969 (fetch_inferior_event): Use scoped_restore_current_thread.
6970 * linespec.c (decode_line_full, decode_line_1): Use
6971 scoped_restore_current_program_space.
6972 * mi/mi-main.c: Include "progspace-and-thread.h".
6973 (exec_continue): Use scoped_restore_current_thread.
6974 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6975 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6976 * proc-service.c (ps_pglobal_lookup): Use
6977 scoped_restore_current_program_space.
6978 * progspace-and-thread.c: New file.
6979 * progspace-and-thread.h: New file.
6980 * progspace.c (release_program_space, clone_program_space): Use
6981 scoped_restore_current_program_space.
6982 (restore_program_space, save_current_program_space)
6983 (save_current_space_and_thread): Delete.
6984 (switch_to_program_space_and_thread): Moved to
6985 progspace-and-thread.c.
6986 * progspace.h (save_current_program_space)
6987 (save_current_space_and_thread): Delete declarations.
6988 (scoped_restore_current_program_space): New class.
6989 * remote.c (remote_btrace_maybe_reopen): Use
6990 scoped_restore_current_thread.
6991 * symtab.c: Include "progspace-and-thread.h".
6992 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6993 * thread.c (print_thread_info_1): Use
6994 scoped_restore_current_thread.
6995 (struct current_thread_cleanup): Delete.
6996 (do_restore_current_thread_cleanup)
6997 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6998 (scoped_restore_current_thread::~scoped_restore_current_thread):
6999 ... this new dtor.
7000 (make_cleanup_restore_current_thread): Rename/convert to ...
7001 (scoped_restore_current_thread::scoped_restore_current_thread):
7002 ... this new ctor.
7003 (thread_apply_all_command): Use scoped_restore_current_thread.
7004 (thread_apply_command): Use scoped_restore_current_thread.
7005 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
7006 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
7007
f6223dbb
PA
70082017-05-04 Pedro Alves <palves@redhat.com>
7009
7010 * thread.c (make_cleanup_restore_current_thread): Move
7011 find_thread_ptid call before the is_stopped call. Assert that the
7012 thread is found. Replace is_stopped call by checking the thread's
7013 state directly. Remove unnecessary NULL-thread check.
7014
3c3ae77e
PA
70152017-05-04 Pedro Alves <palves@redhat.com>
7016
7017 * corelow.c (thread_section_name): New class.
7018 (get_core_register_section, get_core_siginfo): Use it.
7019
45eba0ab
AA
70202017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7021
7022 * corelow.c (sniff_core_bfd): Remove extra semicolon.
7023 (get_core_register_section): Remove xfree of NULL pointer.
7024
f81fdd35
AH
70252017-05-03 Alan Hayward <alan.hayward@arm.com>
7026
7027 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
7028 * regcache.c (regcache::raw_supply_zeroed): New function.
7029 * regcache.h (regcache::raw_supply_zeroed): New declaration.
7030
35837774
SM
70312017-05-03 Simon Marchi <simon.marchi@ericsson.com>
7032
7033 * gdbarch.sh: Remove commented out definition of
7034 TARGET_CHAR_BIT.
7035 * gdbarch.h: Re-generate.
7036
c94fee56
SDJ
70372017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7038
7039 * configure: Regenerate.
7040
d17f7b36
SM
70412017-05-02 Simon Marchi <simon.marchi@ericsson.com>
7042
7043 * solib-target.c (solib_target_relocate_section_addresses):
7044 Remove num_section_bases, num_bases, segment_bases variables.
7045
b560ebd6
SM
70462017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7047
7048 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
7049
f2f46dfc
SM
70502017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7051
7052 * solib-target.c: Include <vector>
7053 (struct lm_info_target) <~lm_info_target>: Remove.
7054 <segment_bases, section_bases>: Change type to
7055 std::vector<CORE_ADDR>.
7056 (library_list_start_segment, library_list_start_section,
7057 library_list_end_library,
7058 solib_target_relocate_section_addresses): Adjust.
7059
a0ff9e1a
SM
70602017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7061
7062 * gdbarch.sh (software_single_step): Change return type to
7063 std::vector<CORE_ADDR>.
7064 * gdbarch.c, gdbarch.h: Re-generate.
7065 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
7066 Adjust.
7067 (arm_deal_with_atomic_sequence_raw): Adjust.
7068 (thumb_get_next_pcs_raw): Adjust.
7069 (arm_get_next_pcs_raw): Adjust.
7070 (arm_get_next_pcs): Adjust.
7071 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
7072 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
7073 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
7074 (alpha_software_single_step): Adjust.
7075 * alpha-tdep.h (alpha_software_single_step): Adjust.
7076 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
7077 * arm-tdep.c (arm_software_single_step): Adjust.
7078 (arm_breakpoint_kind_from_current_state): Adjust.
7079 * arm-tdep.h (arm_software_single_step): Adjust.
7080 * breakpoint.c (insert_single_step_breakpoint): Adjust.
7081 * cris-tdep.c (cris_software_single_step): Adjust.
7082 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
7083 (micromips_deal_with_atomic_sequence): Adjust.
7084 (deal_with_atomic_sequence): Adjust.
7085 (mips_software_single_step): Adjust.
7086 * mips-tdep.h (mips_software_single_step): Adjust.
7087 * moxie-tdep.c (moxie_software_single_step): Adjust.
7088 * nios2-tdep.c (nios2_software_single_step): Adjust.
7089 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
7090 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
7091 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
7092 * s390-linux-tdep.c (s390_software_single_step): Adjust.
7093 * sparc-tdep.c (sparc_software_single_step): Adjust.
7094 * spu-tdep.c (spu_software_single_step): Adjust.
7095 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
7096
ea480a30
SM
70972017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7098
7099 * gdbarch.sh: Use semi-colon as field separator instead of colon.
7100 * gdbarch.h: Re-generate.
7101
d050f7d7
TW
71022017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7103
7104 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
7105 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
7106 * python/py-instruction.c, python/py-instruction.h: New file.
7107 * python/py-record.c: Add py-instruction.h include.
7108 (gdbpy_initialize_record): Make gdb.Instruction a super class of
7109 gdb.RecordInstruction.
7110 * python/python-internal.h: Add gdbpy_initialize_instruction
7111 declaration.
7112 * python/python.c (do_start_initialization): Add
7113 gdbpy_initialize_instruction.
7114
14f819c8
TW
71152017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7116
7117 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
7118 Remove.
7119 (btrace_func_from_recpy_func): New function.
7120 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
7121 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
7122 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
7123 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
7124 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
7125 Also, use new helper functions.
7126 (btpy_list_item): Use new helper functions.
7127 (recpy_bt_function_call_history): Use new type name.
7128 (btpy_call_getset): Remove.
7129 (gdbpy_initialize_btrace): Remove code to initialize
7130 gdb.BtraceFunctionCall.
7131 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
7132 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
7133 recpy_bt_func_prev, recpy_bt_func_next): New export.
7134 * python/py-record.c (recpy_func_type): New static object.
7135 (recpy_func_new, recpy_func_level, recpy_func_symbol,
7136 recpy_func_instructions, recpy_func_up, recpy_func_prev,
7137 recpy_func_next): New function.
7138 (recpy_element_hash, recpy_element_richcompare): Updated comment.
7139 (recpy_func_getset): New static object.
7140 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
7141 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
7142
0ed5da75
TW
71432017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7144
7145 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
7146 (btpy_object, btpy_insn_type, btpy_new): Remove.
7147 (btpy_list_object): Use gdb.RecordInstruction type instead of
7148 gdb.BtraceInstruction type.
7149 (btrace_insn_from_recpy_insn): New function.
7150 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
7151 btpy_new.
7152 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
7153 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
7154 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
7155 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
7156 instead of btpy_object.
7157 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7158 btpy_insn_data, btpy_insn_decode): Rename to ...
7159 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
7160 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
7161 recpy_bt_insn_decode): This. Also, use new helper functions.
7162 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
7163 recpy_insn_type.
7164 (btpy_insn_getset): Remove.
7165 (gdbpy_initialize_btrace): Remove code to initialize
7166 gdb.BtraceInstruction. Use recpy_element_object.
7167 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
7168 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
7169 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
7170 * python/py-record.c (recpy_insn_type): New static object.
7171 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
7172 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
7173 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
7174 New function.
7175 (recpy_insn_getset): New static object.
7176 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
7177 * python/py-record.h (recpy_element_object): New typedef.
7178 (recpy_insn_type, recpy_insn_new): New export.
7179
913aeadd
TW
71802017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7181
7182 * py-record-btrace.c (btpy_insn_new): Removed.
7183 (btpy_insn_or_gap_new): New function.
7184 (btpy_insn_error): Removed.
7185 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7186 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
7187 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
7188 btpy_insn_or_gap_new instead of btpy_insn_new.
7189 (btpy_insn_getset): Remove btpy_insn_error.
7190 * py-record.c (recpy_gap_type): New static object.
7191 (recpy_gap_object): New typedef.
7192 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
7193 recpy_gap_reason_string): New function.
7194 (recpy_gap_getset): New static object.
7195 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
7196 * py-record.h (recpy_gap_new): New export.
7197
a3be24ad
TW
71982017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7199
7200 * python/py-record.c (recpy_ptid): Remove.
7201 (recpy_record_getset): Remove recpy_ptid.
7202
ae20e79a
TW
72032017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7204
7205 * btrace.c (btrace_fetch): Set inferior_ptid.
7206 * python/py-record-btrace.c: Add "py-record.h" include.
7207 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
7208 recpy_bt_end, recpy_bt_instruction_history,
7209 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
7210 in gdb.Record object instead of current ptid.
7211 * python/py-record.c: Include new "py-record.h" file.
7212 (recpy_record_object): Moved to py-record.h.
7213 * python/py-record.h: New file.
7214
8d0050ea
TW
72152017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7216
7217 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
7218 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
7219 indentation.
7220
3f380b50
JB
72212017-05-01 Joel Brobecker <brobecker@adacore.com>
7222
7223 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
7224 the past maintainers section.
7225
07495424
YQ
72262017-04-28 Yao Qi <yao.qi@linaro.org>
7227
7228 * infcmd.c (get_return_value): Use regcache ctor, and remove
7229 cleanup.
7230
deb1fa3e
YQ
72312017-04-28 Yao Qi <yao.qi@linaro.org>
7232 Pedro Alves <palves@redhat.com>
7233
7234 * regcache.c (regcache::regcache): New tag dispatch ctor.
7235 (do_cooked_read): Moved above.
7236 (regcache_dup): Use the tag dispatch ctor..
7237 * regcache.h (regcache): Declare ctor, delete copy ctor and
7238 assignment operator, remove friend regcache_dup.
7239
b421c83c
YQ
72402017-04-28 Yao Qi <yao.qi@linaro.org>
7241
7242 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
7243 call method save instead of regcache_cpy.
7244 * regcache.h (struct regcache): Make regcache_dup a friend.
7245
ef79d9a3
YQ
72462017-04-28 Yao Qi <yao.qi@linaro.org>
7247
7248 * regcache.c (struct regcache): Move to regcache.h
7249 (regcache::arch): New method.
7250 (regcache_get_ptid): Update.
7251 (get_regcache_arch): Call arch method.
7252 (get_regcache_aspace): Call method aspace.
7253 (register_buffer): Change it to method.
7254 (regcache_save): Change it to regcache::save.
7255 (regcache_restore): Likewise.
7256 (regcache_cpy_no_passthrough): Remove the declaration.
7257 (regcache_cpy): Call methods restore and cpy_no_passthrough.
7258 (regcache_cpy_no_passthrough): Change it to method
7259 cpy_no_passthrough.
7260 (regcache_register_status): Change it to method
7261 get_register_status.
7262 (regcache_invalidate): Change it to method invalidate.
7263 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
7264 (regcache_raw_update): Change it to method raw_update.
7265 (regcache_raw_read): Likewise.
7266 (regcache_raw_read_signed): Likewise.
7267 (regcache_raw_read_unsigned): Likewise.
7268 (regcache_raw_write_signed): Likewise.
7269 (regcache_raw_write_unsigned): Likewise.
7270 (regcache_cooked_read): Likewise.
7271 (regcache_cooked_read_value): Likewise.
7272 (regcache_cooked_read_signed): Likewise.
7273 (regcache_cooked_read_unsigned): Likewise.
7274 (regcache_cooked_write_signed): Likewise.
7275 (regcache_cooked_write_unsigned): Likewise.
7276 (regcache_raw_set_cached_value): Likewise.
7277 (regcache_raw_write): Likewise.
7278 (regcache_cooked_write): Likewise.
7279 (regcache_xfer_part): Likewise.
7280 (regcache_raw_read_part): Likewise.
7281 (regcache_raw_write_part): Likewise.
7282 (regcache_cooked_read_part): Likewise.
7283 (regcache_cooked_write_part): Likewise.
7284 (regcache_raw_supply): Likewise.
7285 (regcache_raw_collect): Likewise.
7286 (regcache_transfer_regset): Likewise.
7287 (regcache_supply_regset): Likewise.
7288 (regcache_collect_regset): Likewise.
7289 (regcache_debug_print_register): Likewise.
7290 (enum regcache_dump_what): Move it to regcache.h.
7291 (regcache_dump): Change it to method dump.
7292 * regcache.h (enum regcache_dump_what): New.
7293 (class regcache): New.
7294 * target.c (target_fetch_registers): Call method
7295 debug_print_register.
7296 (target_store_registers): Likewise.
7297
f8fdb78e
SM
72982017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7299
7300 * windows-nat.c (struct lm_info_windows): Initialize field.
7301 (windows_make_so): Allocate lm_info_windows with new.
7302 (windows_free_so): Free lm_info_windows with delete.
7303
9ccbfd7b
SM
73042017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7305
7306 * solib-darwin.c (struct lm_info_darwin): Initialize field.
7307 (darwin_current_sos): Allocate lm_info_darwin with new, remove
7308 cleanup.
7309 (darwin_free_so): Free lm_info_darwin with delete.
7310
76e75227
SM
73112017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7312
7313 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
7314 <l_addr_p>: Change type to bool.
7315 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
7316 (svr4_free_so): Free lm_info_svr4 with delete.
7317 (svr4_copy_library_list): Replace memcpy with call to copy
7318 constructor.
7319 (library_list_start_library, svr4_default_sos): Allocate
7320 lm_info_svr4 with new.
7321
51046d9e
SM
73222017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7323
7324 * solib-target.c (struct lm_info_target): Add destructor,
7325 initialize fields.
7326 <name>: Change type to std::string.
7327 (library_list_start_library): Allocate lm_info_target with new.
7328 (solib_target_free_library_list): Free lm_info_target with
7329 delete.
7330 (solib_target_current_sos): Adapt to std::string.
7331 (solib_target_free_so): Free lm_info_target with delete.
7332
4023ae76
SM
73332017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7334
7335 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
7336 fields.
7337 (frv_current_sos): Allocate lm_info_frv with new.
7338 (frv_relocate_main_executable): Free lm_info_frv with delete,
7339 allocate with new.
7340 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
7341
af43057b
SM
73422017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7343
7344 * solib-frv.c (struct lm_info_frv): Fix indentation.
7345
b0911207
SM
73462017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7347
7348 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
7349 map field.
7350 (dsbt_current_sos): Allocate lm_info_dsbt with new.
7351 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
7352 and allocate with new.
7353 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
7354
6c401f72
SM
73552017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7356
7357 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
7358 <filename, member_name>: Change type to std::string.
7359 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
7360 (library_list_start_library): Allocate lm_info_aix with new.
7361 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
7362 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
7363 with copy constructor.
7364
d0e449a1
SM
73652017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7366
7367 * solist.h (struct lm_info): Remove.
7368 (struct lm_info_base): New class.
7369 (struct so_list) <lm_info>: Change type to lm_info_base *.
7370 * nto-tdep.c (struct lm_info): Remove.
7371 (lm_addr): Adjust.
7372 * solib-aix.c (struct lm_info): Rename to ...
7373 (struct lm_info_aix): ... this. Extend lm_info_base.
7374 (lm_info_p): Rename to ...
7375 (lm_info_aix_p): ... this, and adjust.
7376 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
7377 solib_aix_parse_libraries, library_list_start_library,
7378 solib_aix_free_library_list, solib_aix_parse_libraries,
7379 solib_aix_get_library_list,
7380 solib_aix_relocate_section_addresses, solib_aix_free_so,
7381 solib_aix_get_section_offsets,
7382 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
7383 Adjust.
7384 (struct solib_aix_inferior_data) <library_list>: Adjust.
7385 * solib-darwin.c (struct lm_info): Rename to ...
7386 (struct lm_info_darwin): ... this. Extend lm_info_base.
7387 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
7388 * solib-dsbt.c (struct lm_info): Rename to ...
7389 (struct lm_info_dsbt): ... this. Extend lm_info_base.
7390 (struct dsbt_info) <main_executable_lm_info): Adjust.
7391 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
7392 dsbt_relocate_section_addresses): Adjust.
7393 * solib-frv.c (struct lm_info): Rename to ...
7394 (struct lm_info_frv): ... this. Extend lm_info_base.
7395 (main_executable_lm_info): Adjust.
7396 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
7397 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
7398 find_canonical_descriptor_in_load_object,
7399 frv_fdpic_find_canonical_descriptor): Adjust.
7400 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
7401 to lm_info_svr4.
7402 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
7403 svr4_clear_so, svr4_copy_library_list,
7404 library_list_start_library, svr4_default_sos, svr4_read_so_list,
7405 svr4_current_sos, svr4_fetch_objfile_link_map,
7406 solist_update_incremental): Adjust.
7407 * solib-svr4.h (struct lm_info_svr4): Move here from
7408 solib-svr4.c.
7409 * solib-target.c (struct lm_info): Rename to ...
7410 (struct lm_info_target): ... this. Extend lm_info_base.
7411 (lm_info_p): Rename to ...
7412 (lm_info_target_p): ... this.
7413 (solib_target_parse_libraries, library_list_start_segment,
7414 library_list_start_section, library_list_start_library,
7415 library_list_end_library, solib_target_free_library_list,
7416 solib_target_current_sos, solib_target_free_so,
7417 solib_target_relocate_section_addresses): Adjust.
7418 * windows-nat.c (struct lm_info): Rename to ...
7419 (struct lm_info_windows): ... this. Extend lm_info_base.
7420 (windows_make_so, handle_load_dll, handle_unload_dll,
7421 windows_xfer_shared_libraries): Adjust.
7422
434a4023
SM
74232017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7424
7425 * solib-darwin.c (struct darwin_so_list): Remove.
7426 (darwin_current_sos): Allocate an so_list object instead of a
7427 darwin_so_list, separately allocate an lm_info object.
7428 (darwin_free_so): Free lm_info.
7429
428544e8
JB
74302017-04-28 John Baldwin <jhb@FreeBSD.org>
7431
7432 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
7433 with fprintf_filtered.
7434
4621115f
YQ
74352017-04-28 Yao Qi <yao.qi@linaro.org>
7436
7437 * regcache.c (regcache::regcache): New function.
7438 (regcache::~regcache): New function.
7439 (regcache_xmalloc_1): Remove.
7440 (regcache_xmalloc): Call new regcache.
7441 (regcache_xfree): Call delete regcache.
7442 (get_thread_arch_aspace_regcache): Call new regcache.
7443
339053c2
YQ
74442017-04-28 Yao Qi <yao.qi@linaro.org>
7445
7446 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7447 lwp instead of ptid_get_lwp.
7448
7974a605
YQ
74492017-04-28 Yao Qi <yao.qi@linaro.org>
7450
7451 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7452 lwp_info instead of getting from inferior_ptid.
7453
e15c3eb4
KS
74542017-04-27 Keith Seitz <keiths@redhat.com>
7455
7456 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7457 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7458 (CV_CONVERSION_BADNESS): Define.
7459 (rank_one_type): Remove overly restrictive rvalue reference
7460 rank checks.
7461 Add cv-qualifier checks and subranks for type equality.
7462 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7463 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7464 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7465
72bc1d24
SM
74662017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7467
7468 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7469 count when creating the object.
7470
55bcecda
UW
74712017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7472 Ulrich Weigand <uweigand@de.ibm.com>
7473
7474 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7475 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7476 is used in AIX.
7477 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7478 (process_xcoff_symbol): Likewise.
7479 (scan_xcoff_symtab): Likewise.
7480
5c99fcf8
AH
74812017-04-26 Alan Hayward <alan.hayward@arm.com>
7482
7483 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7484 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7485 (ia64_access_reg): Use get_frame_register_unsigned.
7486 (ia64_access_rse_reg): Likewise.
7487 (ia64_libunwind_frame_prev_register): Likewise.
7488
b41c5a85
JW
74892017-04-26 Jiong Wang <jiong.wang@arm.com>
7490
7491 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7492 * gdbarch.c: Regenerated.
7493 * gdbarch.h: Regenerated.
7494 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7495 visibility external.
7496 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7497 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7498 (enum cfa_how_kind): Move to ...
7499 (struct dwarf2_frame_state_reg_info): Likewise.
7500 (struct dwarf2_frame_state): Likewise.
7501 * dwarf2-frame.h: ... here.
7502 (dwarf2_frame_state_alloc_regs): New declaration.
7503 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7504 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7505
c185f580
AH
75062017-04-26 Alan Hayward <alan.hayward@arm.com>
7507
7508 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7509 regcache_raw_read_unsigned.
7510 (xtensa_pseudo_register_write): Likewise.
7511
19c45594
AH
75122017-04-26 Alan Hayward <alan.hayward@arm.com>
7513
7514 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7515 (nds32_pseudo_register_write): Likewise.
7516
4658f12e
YQ
75172017-04-25 Yao Qi <yao.qi@linaro.org>
7518
7519 * regcache.c (struct regcache) <readonly_p>: Change its type
7520 to bool.
7521 (regcache_xmalloc_1): Update parameter type and callers update.
7522
d581dda8
YQ
75232017-04-25 Yao Qi <yao.qi@linaro.org>
7524
7525 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7526 set_gdbarch_wchar_bit.
7527 * arm-tdep.c (arm_gdbarch_init): Likewise.
7528
debed3db
PA
75292017-04-25 Pedro Alves <palves@redhat.com>
7530
7531 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7532 (BothAreRelocatable, memcopy, memmove): Don't define.
7533 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7534 macros.
7535
b0b92aeb
PA
75362017-04-25 Pedro Alves <palves@redhat.com>
7537
7538 * common/common-defs.h: Include "common/poison.h".
7539 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7540 and adjust.
7541 * common/poison.h: New file.
7542 * common/traits.h: Include <type_traits>.
7543 (Not, Or, Requires): New, moved from common/function-view.h.
7544
16c4d54a
PA
75452017-04-25 Pedro Alves <palves@redhat.com>
7546
7547 * breakpoint.h (struct breakpoint): In-class initialize all
7548 fields. Make boolean fields "bool".
7549 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7550 memset call and initializations no longer necessary.
7551
b5c36682
PA
75522017-04-25 Pedro Alves <palves@redhat.com>
7553
7554 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7555 reference.
7556 (pt_btrace_insn): New function.
7557 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7558
5625a286
PA
75592017-04-25 Pedro Alves <palves@redhat.com>
7560
7561 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7562 "base" field and inherit from "bp_location" instead. Add
7563 non-default ctor.
7564 (allocate_location_exception): Use new non-default ctor.
7565 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7566 (init_bp_location): Convert to ...
7567 (bp_location::bp_location): ... this new ctor, and remove memset
7568 call.
7569 (base_breakpoint_allocate_location): Use the new non-default ctor.
7570 * breakpoint.h (bp_location): Now a class. Declare default and
7571 non-default ctors. In-class initialize all members.
7572 (init_bp_location): Remove declaration.
7573
23bcc18f
PA
75742017-04-25 Pedro Alves <palves@redhat.com>
7575
7576 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7577 assignment operator.
7578
e1ba3053
YQ
75792017-04-24 Yao Qi <yao.qi@linaro.org>
7580
7581 * doublest.c (convert_doublest_to_floatformat): Call
7582 floatformat_totalsize_bytes.
7583
10f489e5
TT
75842017-04-22 Tom Tromey <tom@tromey.com>
7585
7586 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7587 ui_out_emit_list.
7588 * stack.c (print_frame): Use ui_out_emit_list.
7589 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7590 ui_out_emit_list.
7591 * mi/mi-main.c (print_one_inferior)
7592 (mi_cmd_data_list_register_names)
7593 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7594 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7595 ui_out_emit_list.
7596 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7597 (mi_output_solib_attribs): Use ui_out_emit_list,
7598 ui_out_emit_tuple.
7599 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7600 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7601 (mi_cmd_stack_list_args, list_args_or_locals): Use
7602 ui_out_emit_list.
7603 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7604 * breakpoint.c (print_solib_event, output_thread_groups): Use
7605 ui_out_emit_list.
7606
0092b74d
TT
76072017-04-22 Tom Tromey <tom@tromey.com>
7608
7609 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7610 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7611 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7612
a14a62dd
TT
76132017-04-22 Tom Tromey <tom@tromey.com>
7614
7615 * tracepoint.c (tvariables_info_1)
7616 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7617
46b9c129
TT
76182017-04-22 Tom Tromey <tom@tromey.com>
7619
7620 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7621 annotate_arg_emitter.
7622 * breakpoint.c (print_mention_watchpoint)
7623 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7624 * annotate.h (struct annotate_arg_emitter): New.
7625
2e783024
TT
76262017-04-22 Tom Tromey <tom@tromey.com>
7627
7628 * record-btrace.c (record_btrace_insn_history)
7629 (record_btrace_insn_history_range, record_btrace_call_history)
7630 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7631 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7632 ui_out_emit_tuple.
7633 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7634 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7635 * skip.c (skip_info): Use ui_out_emit_tuple.
7636 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7637 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7638 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7639 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7640 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7641 ui_out_emit_tuple.
7642 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7643 (output_register, mi_cmd_data_read_memory)
7644 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7645 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7646 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7647 Use ui_out_emit_tuple.
7648 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7649 ui_out_emit_tuple.
7650 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7651 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7652 * linux-thread-db.c (info_auto_load_libthread_db): Use
7653 ui_out_emit_tuple.
7654 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7655 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7656 * disasm.c (do_mixed_source_and_assembly_deprecated)
7657 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7658 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7659 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7660 * breakpoint.c (print_one_breakpoint_location)
7661 (print_one_breakpoint): Use ui_out_emit_tuple.
7662 * auto-load.c (print_script, info_auto_load_cmd): Use
7663 ui_out_emit_tuple.
7664 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7665
9be21bb4
SM
76662017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7667
7668 * thread.c (print_thread_info_1): Remove dead code.
7669
0d4c07af
JK
76702017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7671
7672 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7673 GDB_SELF_TEST.
7674 * arm-tdep.c (selftests::arm_record_test): Likewise.
7675
4daf993d
YQ
76762017-04-21 Yao Qi <yao.qi@linaro.org>
7677
7678 * regcache.c (regcache_restore): Remove argument 2. Replace
7679 argument 3 with regcache. Get register status from
7680 src->register_status and get register contents from
7681 register_buffer (src, regnum).
7682 (regcache_cpy): Update.
7683
a6c21d4a
PA
76842017-04-19 Pedro Alves <palves@redhat.com>
7685
7686 * gdbthread.h (thread): Add missing closing parenthesis in
7687 comment.
7688
3a3fd0fd
PA
76892017-04-19 Pedro Alves <palves@redhat.com>
7690
7691 * common/refcounted-object.h: New file.
7692 * gdbthread.h: Include "common/refcounted-object.h".
7693 (thread_info): Inherit from refcounted_object and add comments.
7694 (thread_info::incref, thread_info::decref)
7695 (thread_info::m_refcount): Delete.
7696 (thread_info::deletable): Use the refcounted_object::refcount()
7697 method.
7698 * inferior.c (current_inferior_): Add comment.
7699 (set_current_inferior): Increment/decrement refcounts.
7700 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7701 not-deletable instead of comparing with the current inferior.
7702 (initialize_inferiors): Increment the initial inferior's refcount.
7703 * inferior.h (struct inferior): Forward declare.
7704 Include "common/refcounted-object.h".
7705 (current_inferior, set_current_inferior): Move declaration to
7706 before struct inferior's definition, and fix comment.
7707 (inferior): Inherit from refcounted_object. Add comments.
7708 * thread.c (switch_to_thread_no_regs): Reference the thread's
7709 inferior pointer directly instead of doing a ptid lookup.
7710 (switch_to_no_thread): New function.
7711 (switch_to_thread(thread_info *)): New function, factored out
7712 from ...
7713 (switch_to_thread(ptid_t)): ... this.
7714 (restore_current_thread): Delete.
7715 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7716 fields, and add 'inf' field.
7717 (do_restore_current_thread_cleanup): Check whether old->inf is
7718 alive instead of looking up an inferior by ptid. Use
7719 switch_to_thread and switch_to_no_thread.
7720 (restore_current_thread_cleanup_dtor): Use old->inf directly
7721 instead of lookup up an inferior by id. Decref the inferior.
7722 Don't restore 'removable'.
7723 (make_cleanup_restore_current_thread): Same the inferior pointer
7724 in old, instead of the inferior number. Incref the inferior.
7725 Don't save/clear 'removable'.
7726
9bcb1f16
PA
77272017-04-19 Pedro Alves <palves@redhat.com>
7728
7729 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7730 unittests/scoped_restore-selftests.c.
7731 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7732 * common/scoped_restore.h (scoped_restore_base): Make "class".
7733 (scoped_restore_base::release): New public method.
7734 (scoped_restore_base::scoped_restore_base): New protected ctor.
7735 (scoped_restore_base::m_saved_var): New protected field.
7736 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7737 scoped_restore_base base class instead of m_saved_var directly.
7738 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7739 (scoped_restore_tmpl::scoped_restore_tmpl(const
7740 scoped_restore_tmpl<T>&)): Likewise.
7741 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7742 method.
7743 (scoped_restore_tmpl::saved_var): New method.
7744 (scoped_restore_tmpl::m_saved_var): Delete.
7745 * inferior.h (inferior::detaching): Now a bool.
7746 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7747 cleanup.
7748 * unittests/scoped_restore-selftests.c: New file.
7749
26fcd539
PA
77502017-04-19 Pedro Alves <palves@redhat.com>
7751
7752 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7753 Re-sort in alphabetic order.
7754
fdd243b0
PA
77552017-04-18 Pedro Alves <palves@redhat.com>
7756
7757 * xml-support.c (obstack_xml_printf): Delete.
7758 * xml-support.h (obstack_xml_printf): Delete.
7759
4895cde2
PA
77602017-04-18 Pedro Alves <palves@redhat.com>
7761
7762 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7763 vdebug, verror, body_text, start_element, end_element, name,
7764 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7765 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7766 is_xinclude>: Make private and add m_ prefix.
7767 (gdb_xml_parser::body_text): New method, based on ...
7768 (gdb_xml_body_text): ... this. Adjust.
7769 (gdb_xml_parser::vdebug): New method, based on ...
7770 (gdb_xml_debug): ... this. Adjust.
7771 (gdb_xml_parser::verror): New method, based on ...
7772 (gdb_xml_error): ... this. Adjust.
7773 (gdb_xml_parser::start_element): New method, based on ...
7774 (gdb_xml_start_element): ... this. Adjust.
7775 (gdb_xml_start_element_wrapper): Defer to
7776 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7777 (gdb_xml_parser::end_element): New method, based on ...
7778 (gdb_xml_end_element_wrapper): ... this. Adjust.
7779 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7780 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7781 (gdb_xml_parser::use_dtd): New method, based on ...
7782 (gdb_xml_use_dtd): ... this. Adjust.
7783 (gdb_xml_parser::parse): New method, based on ...
7784 (gdb_xml_parse): ... this. Adjust.
7785 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7786 (xinclude_start_include): Adjust to call the parser's name method.
7787 (xml_xinclude_default, xml_xinclude_start_doctype)
7788 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7789 method.
7790 (xml_process_xincludes): Adjust to call parser methods.
7791 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7792 declarations.
7793
bd8a901f
PA
77942017-04-18 Pedro Alves <palves@redhat.com>
7795
7796 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7797 gdb::optional<std::string>.
7798 * xml-support.c: Include <string>.
7799 (scope_level::scope_level(scope_level &&))
7800 (scope_level::~scope_level): Delete.
7801 (scope_level::body): Now a std::string.
7802 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7803 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7804 parameter.
7805 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7806 (xinclude_parsing_data::output): Now a std::string reference.
7807 (xinclude_start_include): Adjust.
7808 (xml_xinclude_default): Adjust.
7809 (xml_process_xincludes): Add 'output' parameter, and return bool.
7810 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7811 and return bool.
7812 * xml-tdesc.c: Include <unordered_map> and <string>.
7813 (tdesc_xml_cache): Delete.
7814 (tdesc_xml_cache_s): Delete.
7815 (xml_cache): Now an std::unordered_map.
7816 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7817 (target_fetch_description_xml): Change return type to
7818 gdb::optional<std::string>, and adjust.
7819 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7820 (target_fetch_description_xml): Change return type to
7821 gdb::optional<std::string>.
7822
d35d1958
PA
78232017-04-18 Pedro Alves <palves@redhat.com>
7824
7825 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7826 unittests/optional-selftests.c.
7827 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7828 * unittests/optional-selftests.c: New file.
7829 * unittests/optional/assignment/1.cc: New file.
7830 * unittests/optional/assignment/2.cc: New file.
7831 * unittests/optional/assignment/3.cc: New file.
7832 * unittests/optional/assignment/4.cc: New file.
7833 * unittests/optional/assignment/5.cc: New file.
7834 * unittests/optional/assignment/6.cc: New file.
7835 * unittests/optional/assignment/7.cc: New file.
7836 * unittests/optional/cons/copy.cc: New file.
7837 * unittests/optional/cons/default.cc: New file.
7838 * unittests/optional/cons/move.cc: New file.
7839 * unittests/optional/cons/value.cc: New file.
7840 * unittests/optional/in_place.cc: New file.
7841 * unittests/optional/observers/1.cc: New file.
7842 * unittests/optional/observers/2.cc: New file.
7843
22796e97
PA
78442017-04-18 Pedro Alves <palves@redhat.com>
7845
7846 * common/gdb_optional.h: Include common/traits.h.
7847 (in_place_t): New type.
7848 (in_place): New constexpr variable.
7849 (optional::optional): Remove member initialization of
7850 m_instantiated.
7851 (optional::optional(in_place_t...)): New constructor.
7852 (optional::~optional): Use reset.
7853 (optional::optional(const optional&)): New.
7854 (optional::optional(const optional&&)): New.
7855 (optional::optional(T &)): New.
7856 (optional::optional(T &&)): New.
7857 (operator::operator=(const optional &)): New.
7858 (operator::operator=(optional &&)): New.
7859 (operator::operator= (const T &))
7860 (operator::operator= (T &&))
7861 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7862 (operator::reset): New.
7863 (operator::m_instantiated):: Add in-class initializer.
7864 * common/traits.h: Include <type_traits>.
7865 (struct And): New types.
7866
a7fc9b61
PA
78672017-04-18 Pedro Alves <palves@redhat.com>
7868
7869 * xml-support.c: Include <vector>.
7870 (scope_level::scope_level(const gdb_xml_element *))
7871 (scope_level::scope_level(scope_level&&)): New.
7872 (scope_level::~scope_level): New.
7873 (scope_level_s): Delete.
7874 (gdb_xml_parser::scopes): Now a std::vector.
7875 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7876 Use std::vector.
7877 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7878 scope cleanup code.
7879 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7880 of the scopes member. Use std::vector::emplace_back.
7881
010151c9
PA
78822017-04-18 Pedro Alves <palves@redhat.com>
7883
7884 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7885 a bool.
7886 (gdb_xml_end_element): Change type of first parameter.
7887 (gdb_xml_cleanup): Rename to ...
7888 (gdb_xml_parser::~gdb_xml_parser): ... this.
7889 (gdb_xml_create_parser_and_cleanup): Delete with ...
7890 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7891 to this new ctor.
7892 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7893 using gdb_xml_create_parser_and_cleanup.
7894 (xinclude_parsing_data): Add ctor/dtor.
7895 (xml_xinclude_cleanup): Delete.
7896 (xml_process_xincludes): Create a local xinclude_parsing_data
7897 instead of heap-allocating one. Create a local gdb_xml_parser
7898 instead of heap-allocating one with
7899 gdb_xml_create_parser_and_cleanup.
7900
d56060f0
JB
79012017-04-18 John Baldwin <jhb@FreeBSD.org>
7902
7903 PR threads/20743
7904 * fbsd-nat.c (resume_one_thread_cb): Remove.
7905 (resume_all_threads_cb): Remove.
7906 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7907 iterate_over_threads.
7908
305d16a9
JB
79092017-04-17 Joel Brobecker <brobecker@adacore.com>
7910
7911 * NEWS: Create a new section for the next release branch.
7912 Rename the section of the current branch, now that it has
7913 been cut.
7914
8bb57231
JB
79152017-04-17 Joel Brobecker <brobecker@adacore.com>
7916
7917 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7918 * version.in: Bump version to 8.0.50.DATE-git.
7919
096c92dd
SDJ
79202017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7921
7922 PR gdb/21385
7923 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7924 independently of the host, and fix build breakage on Cygwin.
7925
0550c955
PA
79262017-04-13 Pedro Alves <palves@redhat.com>
7927
7928 * inferior.c (free_inferior): Convert to ...
7929 (inferior::~inferior): ... this dtor.
7930 (inferior::inferior): New ctor, factored out from ...
7931 (add_inferior_silent): ... here. Allocate the inferior with a new
7932 expression.
7933 (delete_inferior): Call delete instead of free_inferior.
7934 * inferior.h (gdb_environ, continuation): Forward declare.
7935 (inferior): Now a class. Add in-class initialization to all
7936 members. Make boolean fields bool, except 'detaching'.
7937 (inferior::inferior): New explicit ctor.
7938 (inferior::~inferior): New.
7939
e3d60dfc
PA
79402017-04-13 Pedro Alves <palves@redhat.com>
7941
7942 * inferior.c (init_inferior_list): Delete.
7943 * inferior.h (init_inferior_list): Delete.
7944
5fd69d0a
PA
79452017-04-13 Pedro Alves <palves@redhat.com>
7946
7947 PR threads/13217
7948 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7949 (top level): Call it twice, with different thread sets.
7950
c6609450
PA
79512017-04-13 Pedro Alves <palves@redhat.com>
7952
7953 * thread.c: Include <algorithm>.
7954 (thread_array_cleanup): Delete.
7955 (scoped_inc_dec_ref): New class.
7956 (live_threads_count): New function.
7957 (set_thread_refcount): Delete.
7958 (tp_array_compar_ascending): Now a bool.
7959 (tp_array_compar): Convert to a std::sort comparison function.
7960 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7961 and live_threads_count.
7962
2a00d7ce
PA
79632017-04-13 Pedro Alves <palves@redhat.com>
7964
7965 * infrun.c (follow_fork_inferior): Also switch the current
7966 inferior.
7967
441d7c93
PA
79682017-04-13 Pedro Alves <palves@redhat.com>
7969
7970 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7971 before calling create_internal_breakpoint.
7972
808480f6
PA
79732017-04-13 Pedro Alves <palves@redhat.com>
7974
7975 * fork-child.c (execv_argv): New class.
7976 (breakup_args): Refactored as ...
7977 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7978 Copy arguments to storage and replace separators with NULL
7979 terminators in place.
7980 (escape_bang_in_quoted_argument): Adjust to return bool.
7981 (execv_argv::execv_argv): New ctor.
7982 (execv_argv::init_for_shell): New method, factored out from
7983 fork_inferior. Don't strdup strings into the vector.
7984 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7985 Remove free_vector_argv call.
7986
ad3d022a
YQ
79872017-04-13 Yao Qi <yao.qi@linaro.org>
7988
7989 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7990 tdep->rx_psw_type.
7991
e6ddc3bf
YQ
79922017-04-13 Yao Qi <yao.qi@linaro.org>
7993
7994 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7995 * rx-tdep.c (rx_gdbarch_init): Likewise.
7996
bfb8cf90
PA
79972017-04-13 Pedro Alves <palves@redhat.com>
7998
7999 * breakpoint.h (struct breakpoint): Reindent.
8000
f5336ca5
PA
80012017-04-13 Pedro Alves <palves@redhat.com>
8002
8003 * breakpoint.c (bp_location): Rename to ...
8004 (bp_locations): ... this. All references updated.
8005 (bp_location_count): Rename to ...
8006 (bp_locations_count): ... this. All references updated.
8007 (bp_location_placed_address_before_address_max): Rename to ...
8008 (bp_locations_placed_address_before_address_max): ... this. All
8009 references updated.
8010 (bp_location_shadow_len_after_address_max): Rename to ...
8011 (bp_locations_shadow_len_after_address_max): ... this. All
8012 references updated.
8013 (bp_location_compare_addrs): Rename to ...
8014 (bp_locations_compare_addrs): ... this. All references updated.
8015 (bp_location_compare):Rename to ...
8016 (bp_locations_compare): ... this. All references updated.
8017 (bp_location_target_extensions_update): Rename to ...
8018 (bp_locations_target_extensions_update): ... this. All references
8019 updated.
8020
be628ab8
SDJ
80212017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8022
8023 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
8024 * common/common.m4: Check headers 'termios.h', 'termio.h' and
8025 'sgtty.h'.
8026 * common/gdb_termios.h: New file, with parts of "terminal.h".
8027 * inflow.c: Include "gdb_termios.h".
8028 * ser-unix.c: Include "gdb_termios.h".
8029 * terminal.h: Move terminal-related defines to
8030 "common/gdb_termios.h".
8031
8e9e35b1
TT
80322017-04-12 Tom Tromey <tom@tromey.com>
8033
8034 * probe.c (parse_probes): Update.
8035 * location.h (delete_event_location): Don't declare.
8036 (event_location_deleter::operator()): Update.
8037 * location.c (event_location_deleter::operator()): Rename from
8038 delete_event_location.
8039 * linespec.h (linespec_result) <location>: Change type to
8040 event_location_up.
8041 * linespec.c (canonicalize_linespec, event_location_to_sals)
8042 (decode_objc): Update.
8043 (linespec_result): Don't call delete_event_location.
8044 * breakpoint.c (create_breakpoints_sal)
8045 (bkpt_probe_create_sals_from_location)
8046 (strace_marker_create_sals_from_location): Update.
8047
16e802b9
TT
80482017-04-12 Tom Tromey <tom@tromey.com>
8049
8050 * linespec.h (struct linespec_result): Add constructor and
8051 destructor.
8052 (init_linespec_result, destroy_linespec_result)
8053 (make_cleanup_destroy_linespec_result): Don't declare.
8054 * linespec.c (init_linespec_result): Remove.
8055 (linespec_result::~linespec_result): Rename from
8056 destroy_linespec_result. Update.
8057 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
8058 Remove.
8059 * breakpoint.c (create_breakpoint, break_range_command)
8060 (decode_location_default): Update.
8061 * ax-gdb.c (agent_command_1): Update.
8062
d28cd78a
TT
80632017-04-12 Tom Tromey <tom@tromey.com>
8064
8065 * remote.c (remote_download_tracepoint): Update.
8066 * python/py-breakpoint.c (bppy_get_location): Update.
8067 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
8068 (gdbscm_breakpoint_location): Update.
8069 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
8070 * breakpoint.h (struct breakpoint) <location, location_range_end>:
8071 Change type to event_location_up.
8072 * breakpoint.c (create_overlay_event_breakpoint)
8073 (create_longjmp_master_breakpoint)
8074 (create_std_terminate_master_breakpoint)
8075 (create_exception_master_breakpoint)
8076 (breakpoint_event_location_empty_p, print_breakpoint_location)
8077 (print_one_breakpoint_location, create_thread_event_breakpoint)
8078 (init_breakpoint_sal, create_breakpoint)
8079 (print_recreate_ranged_breakpoint, break_range_command)
8080 (init_ada_exception_breakpoint, say_where): Update.
8081 (base_breakpoint_dtor): Don't call delete_event_location.
8082 (bkpt_print_recreate, tracepoint_print_recreate)
8083 (dprintf_print_recreate, update_static_tracepoint)
8084 (breakpoint_re_set_default): Update.
8085
711799d5
TT
80862017-04-12 Tom Tromey <tom@tromey.com>
8087
8088 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
8089 type of "to_do". Update.
8090 (compute_stack_depth): Use std::vector.
8091
52d214d3
TT
80922017-04-12 Tom Tromey <tom@tromey.com>
8093
8094 * printcmd.c (find_instruction_backward): Use std::vector.
8095
4c404b8b
TT
80962017-04-12 Tom Tromey <tom@tromey.com>
8097
8098 * symfile.c (objfilep): Remove typedef.
8099 (reread_symbols): Use a std::vector.
8100
156d9eab
TT
81012017-04-12 Tom Tromey <tom@tromey.com>
8102
8103 * mi/mi-main.c (exec_direction_forward): Remove.
8104 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
8105 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
8106 scoped_restore.
8107 * guile/guile.c (guile_repl_command, guile_command)
8108 (gdbscm_execute_gdb_command): Use scoped_restore.
8109 * go-exp.y (go_parse): Use scoped_restore.
8110 * d-exp.y (d_parse): Use scoped_restore.
8111 * cli/cli-decode.c (cmd_func): Use scoped_restore.
8112 * c-exp.y (c_parse): Use scoped_restore.
8113
4d89769a
TT
81142017-04-12 Tom Tromey <tom@tromey.com>
8115
8116 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
8117 (mi_parse): Update return type.
8118 (mi_parse_free): Remove.
8119 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
8120 (mi_parse::~mi_parse): Rename from mi_parse_free.
8121 (mi_parse_cleanup): Remove.
8122 (mi_parse): Return a unique_ptr. Use new.
8123 * mi/mi-main.c (mi_execute_command): Update.
8124
4b217cc7
TT
81252017-04-12 Tom Tromey <tom@tromey.com>
8126
8127 * location.c (explicit_location_lex_one): Return a
8128 unique_xmalloc_ptr.
8129 (string_to_explicit_location): Update. Remove cleanups.
8130
59d3651b
TT
81312017-04-12 Tom Tromey <tom@tromey.com>
8132
8133 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
8134 (compare_value_and_voffset): Change type. Update.
8135 (compute_vtable_size): Change type of "offset_vec".
8136 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
8137 (gnuv3_get_typeid): Remove extraneous declaration.
8138
b24b0d6c
TT
81392017-04-12 Tom Tromey <tom@tromey.com>
8140
8141 * charset.h (wchar_iterator): Fix comment.
8142
80a3b8c5
TT
81432017-04-12 Tom Tromey <tom@tromey.com>
8144
8145 * charset.c (iconv_wrapper): New class.
8146 (cleanup_iconv): Remove.
8147 (convert_between_encodings): Use it.
8148
c83dd867
TT
81492017-04-12 Tom Tromey <tom@tromey.com>
8150
8151 * symfile.h (increment_reading_symtab): Update type.
8152 * symfile.c (decrement_reading_symtab): Remove.
8153 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
8154 * psymtab.c (psymtab_to_symtab): Update.
8155 * dwarf2read.c (dw2_instantiate_symtab): Update.
8156
0e8621a0
TT
81572017-04-12 Tom Tromey <tom@tromey.com>
8158
8159 * jit.c (struct jit_reader): Declare separately. Add constructor
8160 and destructor. Change type of "handle".
8161 (loaded_jit_reader): Define separately.
8162 (jit_reader_load): Update. New "new".
8163 (jit_reader_unload_command): Use "delete".
8164 * gdb-dlfcn.h (struct dlclose_deleter): New.
8165 (gdb_dlhandle_up): New typedef.
8166 (gdb_dlopen, gdb_dlsym): Update types.
8167 (gdb_dlclose): Remove.
8168 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
8169 (gdb_dlsym): Change type of "handle".
8170 (make_cleanup_dlclose): Remove.
8171 (dlclose_deleter::operator()): Rename from gdb_dlclose.
8172 * compile/compile-c-support.c (load_libcc): Update.
8173
67d89901
TT
81742017-04-12 Tom Tromey <tom@tromey.com>
8175
8176 * symtab.h (find_pcs_for_symtab_line): Change return type.
8177 * symtab.c (find_pcs_for_symtab_line): Change return type.
8178 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
8179 type of "vec". Update.
8180 (ltpy_get_pcs_for_line): Update.
8181 * linespec.c (decode_digits_ordinary): Update.
8182
93921405
TT
81832017-04-12 Tom Tromey <tom@tromey.com>
8184
8185 * tracepoint.c (actions_command): Update.
8186 * python/python.c (python_command, python_interactive_command):
8187 Update.
8188 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8189 * guile/guile.c (guile_command): Update.
8190 * defs.h (read_command_lines, read_command_lines_1): Return
8191 command_line_up.
8192 (command_lines_deleter): New struct.
8193 (command_line_up): New typedef.
8194 * compile/compile.c (compile_code_command)
8195 (compile_print_command): Update.
8196 * cli/cli-script.h (get_command_line, copy_command_lines): Return
8197 command_line_up.
8198 (make_cleanup_free_command_lines): Remove.
8199 * cli/cli-script.c (get_command_line, read_command_lines_1)
8200 (copy_command_lines): Return command_line_up.
8201 (while_command, if_command, read_command_lines, define_command)
8202 (document_command): Update.
8203 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
8204 Remove.
8205 * breakpoint.h (breakpoint_set_commands): Change type of
8206 "commands".
8207 * breakpoint.c (breakpoint_set_commands): Change type of
8208 "commands". Update.
8209 (do_map_commands_command, update_dprintf_command_list)
8210 (create_tracepoint_from_upload): Update.
8211
ffc2605c
TT
82122017-04-12 Tom Tromey <tom@tromey.com>
8213
8214 * tracepoint.c (scope_info): Update.
8215 * spu-tdep.c (spu_catch_start): Update.
8216 * python/python.c (gdbpy_decode_line): Update.
8217 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
8218 * python/py-breakpoint.c (bppy_init): Update.
8219 * probe.c (parse_probes): Update.
8220 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
8221 * location.h (event_location_deleter): New struct.
8222 (event_location_up): New typedef.
8223 (new_linespec_location, new_address_location, new_probe_location)
8224 (new_explicit_location, copy_event_location)
8225 (string_to_event_location, string_to_event_location_basic)
8226 (string_to_explicit_location): Update return type.
8227 (make_cleanup_delete_event_location): Remove.
8228 * location.c (new_linespec_location, new_address_location)
8229 (new_probe_location, new_explicit_location, copy_event_location):
8230 Return event_location_up.
8231 (delete_event_location_cleanup)
8232 (make_cleanup_delete_event_location): Remove.
8233 (string_to_explicit_location, string_to_event_location_basic)
8234 (string_to_event_location): Return event_location_up.
8235 * linespec.c (canonicalize_linespec, event_location_to_sals)
8236 (decode_line_with_current_source)
8237 (decode_line_with_last_displayed, decode_objc): Update.
8238 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8239 * completer.c (location_completer): Update.
8240 * cli/cli-cmds.c (edit_command, list_command): Update.
8241 * breakpoint.c (create_overlay_event_breakpoint)
8242 (create_longjmp_master_breakpoint)
8243 (create_std_terminate_master_breakpoint)
8244 (create_exception_master_breakpoint)
8245 (create_thread_event_breakpoint): Update.
8246 (init_breakpoint_sal): Update. Remove some dead code.
8247 (create_breakpoint_sal): Change type of "location". Update.
8248 (create_breakpoints_sal, create_breakpoint, break_command_1)
8249 (dprintf_command, break_range_command, until_break_command)
8250 (init_ada_exception_breakpoint)
8251 (strace_marker_create_sals_from_location)
8252 (update_static_tracepoint, trace_command, ftrace_command)
8253 (strace_command, create_tracepoint_from_upload): Update.
8254 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8255 * ax-gdb.c (agent_command_1): Update.
8256
8f10c932
PA
82572017-04-12 Pedro Alves <palves@redhat.com>
8258
8259 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
8260 * configure.tgt: Handle i[34567]86-*-go32* and
8261 i[34567]86-*-msdosdjgpp*.
8262 * i386-tdep.c (i386_svr4_reg_to_regnum):
8263 Make extern.
8264 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
8265 i386-go32-tdep.c.
8266 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
8267 * i386-go32-tdep.c: New file.
8268 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
8269 declarations.
8270
0a31ccfb
SM
82712017-04-12 Simon Marchi <simon.marchi@ericsson.com>
8272
8273 * aix-thread.c (pd_status2str): Change return type to const char *.
8274
e9bb3fbb
PA
82752017-04-12 Pedro Alves <palves@redhat.com>
8276
8277 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
8278 calls to set_gdbarch_gnu_triplet_regexp.
8279
53375380
PA
82802017-04-12 Pedro Alves <palves@redhat.com>
8281
8282 PR gdb/21323
8283 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
8284 New enum value.
8285 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
8286 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
8287 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
8288 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
8289 * gdbarch.h, gdbarch.c: Regenerate.
8290 * aarch64-tdep.c (aarch64_gdbarch_init): Override
8291 gdbarch_wchar_bit and gdbarch_wchar_signed.
8292 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
8293 * arm-tdep.c (arm_gdbarch_init): Likewise.
8294 * avr-tdep.c (avr_gdbarch_init): Likewise.
8295 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8296 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
8297 * i386-tdep.c (i386_go32_init_abi): Likewise.
8298 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8299 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8300 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8301 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8302 * sh-tdep.c (sh_gdbarch_init): Likewise.
8303 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8304 * sparc64-tdep.c (sparc64_init_abi): Likewise.
8305 * windows-tdep.c (windows_init_abi): Likewise.
8306 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8307
53e710ac
PA
83082017-04-12 Pedro Alves <palves@redhat.com>
8309
8310 PR c++/21323
8311 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
8312 cplus_primitive_type_char32_t>: New enum values.
8313 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
8314 and cplus_primitive_type_char32_t.
8315 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
8316 32, use the archtecture's built-in type for char16_t and char32_t,
8317 respectively. Otherwise, fallback to init_integer_type as before,
8318 but make the type unsigned, and issue a complaint.
8319 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
8320
ab0538b8
AH
83212017-04-12 Alan Hayward <alan.hayward@arm.com>
8322
5e0e0422 8323 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
8324 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
8325
5430098f
SDJ
83262017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8327
8328 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
8329 'const char *'.
8330
7c5ded6a
SDJ
83312017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8332
8333 * common/common-utils.c (free_vector_argv): New function.
8334 * common/common-utils.h: Include <vector>.
8335 (free_vector_argv): New prototype.
8336 * darwin-nat.c (darwin_create_inferior): Rewrite function
8337 prototype in order to constify "exec_file" and accept a
8338 "std::string" for "allargs".
8339 * fork-child.c: Include <vector>.
8340 (breakup_args): Rewrite function, using C++.
8341 (fork_inferior): Rewrite function header, constify "exec_file_arg"
8342 and accept "std::string" for "allargs". Update the code to
8343 calculate "argv" based on "allargs". Update calls to "exec_fun"
8344 and "execvp".
8345 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
8346 order to constify "exec_file" and accept a "std::string" for
8347 "allargs".
8348 * go32-nat.c (go32_create_inferior): Likewise.
8349 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
8350 * infcmd.c (run_command_1): Constify "exec_file". Use
8351 "std::string" for inferior arguments.
8352 * inferior.h (fork_inferior): Update prototype.
8353 * linux-nat.c (linux_nat_create_inferior): Rewrite function
8354 prototype in order to constify "exec_file" and accept a
8355 "std::string" for "allargs".
8356 * nto-procfs.c (procfs_create_inferior): Likewise.
8357 * procfs.c (procfs_create_inferior): Likewise.
8358 * remote-sim.c (gdbsim_create_inferior): Likewise.
8359 * remote.c (extended_remote_run): Update code to accept
8360 "std::string" as argument.
8361 (extended_remote_create_inferior): Rewrite function prototype in
8362 order to constify "exec_file" and accept a "std::string" for
8363 "allargs".
8364 * rs6000-nat.c (super_create_inferior): Likewise.
8365 (rs6000_create_inferior): Likewise.
8366 * target.h (struct target_ops) <to_create_inferior>: Likewise.
8367 * windows-nat.c (windows_create_inferior): Likewise.
8368
ae0eee42
PA
83692017-04-11 Pedro Alves <palves@redhat.com>
8370
8371 * thread.c: Fix whitespace throughout.
8372
a6acac06
PR
83732017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
8374
8375 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
8376
64403bd1
AH
83772017-04-11 Alan Hayward <alan.hayward@arm.com>
8378
8379 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
8380
a5bef50f
SDJ
83812017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
8382
8383 PR gdb/21364
8384 * osdata.c (info_osdata): Check if 'type' is an empty string
8385 instead of NULL.
8386
9295a5a9
PA
83872017-04-10 Pedro Alves <palves@redhat.com>
8388
8389 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
8390 (ptid_to_global_thread_id, in_thread_list)
8391 (do_captured_list_thread_ids, set_resumed, set_running)
8392 (set_executing, set_stop_requested, finish_thread_state)
8393 (validate_registers_access, can_access_registers_ptid)
8394 (print_thread_info_1, switch_to_thread)
8395 (do_restore_current_thread_cleanup)
8396 (make_cleanup_restore_current_thread, thread_command)
8397 (thread_name_command): Use operator== instead of ptid_equal.
8398
996812e3
PA
83992017-04-10 Pedro Alves <palves@redhat.com>
8400
8401 * thread.c (struct current_thread_cleanup) <next>: Delete field.
8402 (current_thread_cleanup_chain): Delete.
8403 (restore_current_thread_cleanup_dtor)
8404 (make_cleanup_restore_current_thread): Remove references to
8405 current_thread_cleanup_chain.
8406
845b344f
AH
84072017-04-10 Alan Hayward <alan.hayward@arm.com>
8408
8409 * msp430-tdep.c (msp430_pseudo_register_read): Never return
8410 REG_UNKNOWN.
8411
803bdfe4
YQ
84122017-04-10 Yao Qi <yao.qi@linaro.org>
8413
8414 PR gdb/19942
8415 * gdbthread.h (thread_info::deletable): New method.
8416 (thread_info::incref): New method.
8417 (thread_info::decref): New method.
8418 (thread_info::refcount): Move it to private.
8419 * infrun.c (save_stop_context): Call inc_refcount.
8420 (release_stop_context_cleanup): Likewise.
8421 * thread.c (set_thread_exited): New function.
8422 (init_thread_list): Delete "tp" only it is deletable, otherwise
8423 call set_thread_exited.
8424 (delete_thread_1): Call set_thread_exited.
8425 (current_thread_cleanup) <inferior_pid>: Remove.
8426 <thread>: New field.
8427 (restore_current_thread_ptid_changed): Removed.
8428 (do_restore_current_thread_cleanup): Adjust.
8429 (restore_current_thread_cleanup_dtor): Don't call
8430 find_thread_ptid.
8431 (set_thread_refcount): Use dec_refcount.
8432 (make_cleanup_restore_current_thread): Adjust.
8433 (thread_apply_all_command): Call inc_refcount.
8434 (_initialize_thread): Don't call
8435 observer_attach_thread_ptid_changed.
8436
8c25b497
YQ
84372017-04-10 Yao Qi <yao.qi@linaro.org>
8438
8439 * thread.c (delete_thread_1): Hoist code on marking thread as
8440 exited.
8441
8473b447
SM
84422017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8443
8444 * windows-nat.c (windows_detach): Initialize ptid with
8445 minus_one_ptid.
8446
6670ec13
SM
84472017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8448
8449 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8450
ba2f91bb
AH
84512017-04-07 Alan Hayward <alan.hayward@arm.com>
8452
8453 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8454 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8455 (bfin_pseudo_register_write): Likewise
8456
436252de
SM
84572017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8458
8459 * common/ptid.h (struct ptid): Change to...
8460 (class ptid_t): ... this.
8461 <ptid_t>: New constructors.
8462 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8463 matches>: New methods.
8464 <make_null, make_minus_one>: New static methods.
8465 <pid>: Rename to...
8466 <m_pid>: ...this.
8467 <lwp>: Rename to...
8468 <m_lwp>: ...this.
8469 <tid>: Rename to...
8470 <m_tid>: ...this.
8471 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8472 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8473 as references, move comment to class ptid_t.
8474 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8475 ptid_t static methods.
8476 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8477 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8478 Take ptid arguments as references, implement using ptid_t methods.
8479 * unittests/ptid-selftests.c: New file.
8480 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8481 unittests/ptid-selftests.c.
8482 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8483
0dedf377
TP
84842017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8485
8486 * python/python.c (python_run_simple_file): Cast mode literal to
8487 non-const char pointer as expected by PyFile_FromString.
8488
4e9868d4
SM
84892017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8490
8491 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8492 minus_one_ptid and null_ptid.
8493
9bf2a700
PA
84942017-04-05 Pedro Alves <palves@redhat.com>
8495
8496 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8497 * configure: Regenerate.
8498
a121b7c1
PA
84992017-04-05 Pedro Alves <palves@redhat.com>
8500
8501 * ada-exp.y (yyerror): Constify.
8502 * ada-lang.c (bound_name, get_selections)
8503 (ada_variant_discrim_type)
8504 (ada_variant_discrim_name, ada_value_struct_elt)
8505 (ada_lookup_struct_elt_type, is_unchecked_variant)
8506 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8507 (catch_ada_exception_command_split)
8508 (catch_ada_assert_command_split, catch_assert_command)
8509 (ada_op_name): Constify.
8510 * ada-lang.h (ada_yyerror, get_selections)
8511 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8512 * arc-tdep.c (arc_print_frame_cache): Constify.
8513 * arm-tdep.c (arm_skip_stub): Constify.
8514 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8515 (gen_aggregate_elt_ref): Constify.
8516 * bcache.c (print_bcache_statistics): Constify.
8517 * bcache.h (print_bcache_statistics): Constify.
8518 * break-catch-throw.c (catch_exception_command_1):
8519 * breakpoint.c (struct ep_type_description::description):
8520 Constify.
8521 (add_solib_catchpoint): Constify.
8522 (catch_fork_command_1): Add cast.
8523 (add_catch_command): Constify.
8524 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8525 Constify.
8526 * bsd-uthread.c (bsd_uthread_state): Constify.
8527 * buildsym.c (patch_subfile_names): Constify.
8528 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8529 Constify.
8530 * c-exp.y (yyerror): Constify.
8531 (token::oper): Constify.
8532 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8533 * c-varobj.c (cplus_describe_child): Constify.
8534 * charset.c (find_charset_names): Add cast.
8535 (find_charset_names): Constify array and add const_cast.
8536 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8537 (edit_command): Constify.
8538 * cli/cli-decode.c (lookup_cmd): Constify.
8539 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8540 Constify.
8541 (struct dump_context): Constify.
8542 (add_dump_command, restore_command): Constify.
8543 * cli/cli-script.c (get_command_line): Constify.
8544 * cli/cli-script.h (get_command_line): Constify.
8545 * cli/cli-utils.c (check_for_argument): Constify.
8546 * cli/cli-utils.h (check_for_argument): Constify.
8547 * coff-pe-read.c (struct read_pe_section_data): Constify.
8548 * command.h (lookup_cmd): Constify.
8549 * common/print-utils.c (decimal2str): Constify.
8550 * completer.c (gdb_print_filename): Constify.
8551 * corefile.c (set_gnutarget): Constify.
8552 * cp-name-parser.y (yyerror): Constify.
8553 * cp-valprint.c (cp_print_class_member): Constify.
8554 * cris-tdep.c (cris_register_name, crisv32_register_name):
8555 Constify.
8556 * d-exp.y (yyerror): Constify.
8557 (struct token::oper): Constify.
8558 * d-lang.h (d_yyerror): Constify.
8559 * dbxread.c (struct header_file_location::name): Constify.
8560 (add_old_header_file, add_new_header_file, last_function_name)
8561 (dbx_next_symbol_text, add_bincl_to_list)
8562 (find_corresponding_bincl_psymtab, set_namestring)
8563 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8564 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8565 * defs.h (command_line_input, print_address_symbolic)
8566 (deprecated_readline_begin_hook): Constify.
8567 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8568 Constify.
8569 * event-top.c (handle_line_of_input): Constify and add cast.
8570 * exceptions.c (catch_errors): Constify.
8571 * exceptions.h (catch_errors): Constify.
8572 * expprint.c (print_subexp_standard, op_string, op_name)
8573 (op_name_standard, dump_raw_expression, dump_raw_expression):
8574 * expression.h (op_name, op_string, dump_raw_expression):
8575 Constify.
8576 * f-exp.y (yyerror): Constify.
8577 (struct token::oper): Constify.
8578 (struct f77_boolean_val::name): Constify.
8579 * f-lang.c (f_word_break_characters): Constify.
8580 * f-lang.h (f_yyerror): Constify.
8581 * fork-child.c (fork_inferior): Add cast.
8582 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8583 (new_variant): Constify.
8584 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8585 * gdbarch.c: Regenerate.
8586 * gdbcore.h (set_gnutarget): Constify.
8587 * go-exp.y (yyerror): Constify.
8588 (token::oper): Constify.
8589 * go-lang.h (go_yyerror): Constify.
8590 * go32-nat.c (go32_sysinfo): Constify.
8591 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8592 * guile/scm-cmd.c (cmdscm_function): Constify.
8593 * guile/scm-param.c (pascm_param_value): Constify.
8594 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8595 (h8300sx_register_name): Constify.
8596 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8597 Constify.
8598 * ia64-tdep.c (ia64_register_names): Constify.
8599 * infcmd.c (construct_inferior_arguments): Constify.
8600 (path_command, attach_post_wait): Constify.
8601 * language.c (show_range_command, show_case_command)
8602 (unk_lang_error): Constify.
8603 * language.h (language_defn::la_error)
8604 (language_defn::la_name_of_this): Constify.
8605 * linespec.c (decode_line_2): Constify.
8606 * linux-thread-db.c (thread_db_err_str): Constify.
8607 * lm32-tdep.c (lm32_register_name): Constify.
8608 * m2-exp.y (yyerror): Constify.
8609 * m2-lang.h (m2_yyerror): Constify.
8610 * m32r-tdep.c (m32r_register_names): Constify and make static.
8611 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8612 * m88k-tdep.c (m88k_register_name): Constify.
8613 * macroexp.c (appendmem): Constify.
8614 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8615 (upgrade_type, parse_external, parse_partial_symbols)
8616 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8617 (new_symbol): Constify.
8618 * memattr.c (mem_info_command): Constify.
8619 * mep-tdep.c (register_name_from_keyword): Constify.
8620 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8621 Constify.
8622 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8623 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8624 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8625 cast.
8626 (mi_execute_async_cli_command): Constify.
8627 * mips-tdep.c (mips_register_name): Constify.
8628 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8629 (am33_register_name, am33_2_register_name)
8630 * moxie-tdep.c (moxie_register_names): Constify.
8631 * nat/linux-osdata.c (osdata_type): Constify fields.
8632 * nto-tdep.c (nto_parse_redirection): Constify.
8633 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8634 (lookup_child_selector): Constify.
8635 (objc_methcall::name): Constify.
8636 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8637 (lookup_struct_typedef): Constify.
8638 * objfiles.c (pc_in_section): Constify.
8639 * objfiles.h (pc_in_section): Constify.
8640 * p-exp.y (struct token::oper): Constify.
8641 (yyerror): Constify.
8642 * p-lang.h (pascal_yyerror): Constify.
8643 * parser-defs.h (op_name_standard): Constify.
8644 (op_print::string): Constify.
8645 (exp_descriptor::op_name): Constify.
8646 * printcmd.c (print_address_symbolic): Constify.
8647 * psymtab.c (print_partial_symbols): Constify.
8648 * python/py-breakpoint.c (stop_func): Constify.
8649 (bppy_get_expression): Constify.
8650 * python/py-cmd.c (cmdpy_completer::name): Constify.
8651 (cmdpy_function): Constify.
8652 * python/py-event.c (evpy_add_attribute)
8653 (gdbpy_initialize_event_generic): Constify.
8654 * python/py-event.h (evpy_add_attribute)
8655 (gdbpy_initialize_event_generic): Constify.
8656 * python/py-evts.c (add_new_registry): Constify.
8657 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8658 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8659 * python/py-inferior.c (get_buffer): Add cast.
8660 * python/py-param.c (parm_constant::name): Constify.
8661 * python/py-unwind.c (fprint_frame_id): Constify.
8662 * python/python.c (gdbpy_parameter_value): Constify.
8663 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8664 * remote.c (memory_packet_config::name): Constify.
8665 (show_packet_config_cmd, remote_write_bytes)
8666 (remote_buffer_add_string):
8667 * reverse.c (exec_reverse_once): Constify.
8668 * rs6000-tdep.c (variant::name, variant::description): Constify.
8669 * rust-exp.y (rustyyerror): Constify.
8670 * rust-lang.c (rust_op_name): Constify.
8671 * rust-lang.h (rustyyerror): Constify.
8672 * serial.h (serial_ops::name): Constify.
8673 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8674 (sh_sh3e_register_name, sh_sh2e_register_name)
8675 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8676 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8677 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8678 (sh_sh4al_dsp_register_name): Constify.
8679 * sh64-tdep.c (sh64_register_name): Constify.
8680 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8681 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8682 * stabsread.c (patch_block_stabs, read_type_number)
8683 (ref_map::stabs, ref_add, process_reference)
8684 (symbol_reference_defined, define_symbol, define_symbol)
8685 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8686 (read_one_struct_field, read_struct_fields, read_baseclasses)
8687 (read_tilde_fields, read_struct_type, read_array_type)
8688 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8689 (read_huge_number, read_range_type, read_args, common_block_start)
8690 (find_name_end): Constify.
8691 * stabsread.h (common_block_start, define_symbol)
8692 (process_one_symbol, symbol_reference_defined, ref_add):
8693 * symfile.c (get_section_index, add_symbol_file_command):
8694 * symfile.h (get_section_index): Constify.
8695 * target-descriptions.c (tdesc_type::name): Constify.
8696 (tdesc_free_type): Add cast.
8697 * target.c (find_default_run_target):
8698 (add_deprecated_target_alias, find_default_run_target)
8699 (target_announce_detach): Constify.
8700 (do_option): Constify.
8701 * target.h (add_deprecated_target_alias): Constify.
8702 * thread.c (print_thread_info_1): Constify.
8703 * top.c (deprecated_readline_begin_hook, command_line_input):
8704 Constify.
8705 (init_main): Add casts.
8706 * top.h (handle_line_of_input): Constify.
8707 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8708 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8709 (tfind_command): Rename to ...
8710 (tfind_command_1): ... this and constify.
8711 (tfind_command): New function.
8712 (tfind_end_command, tfind_start_command): Adjust.
8713 (encode_source_string): Constify.
8714 * tracepoint.h (encode_source_string): Constify.
8715 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8716 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8717 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8718 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8719 * tui/tui-win.c (parse_scrolling_args): Constify.
8720 * tui/tui-windata.c (tui_erase_data_content): Constify.
8721 * tui/tui-windata.h (tui_erase_data_content): Constify.
8722 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8723 * tui/tui.c (tui_enable): Add cast.
8724 * utils.c (defaulted_query): Constify.
8725 (init_page_info): Add cast.
8726 (puts_debug, subset_compare): Constify.
8727 * utils.h (subset_compare): Constify.
8728 * varobj.c (varobj_format_string): Constify.
8729 * varobj.h (varobj_format_string): Constify.
8730 * vax-tdep.c (vax_register_name): Constify.
8731 * windows-nat.c (windows_detach): Constify.
8732 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8733 * xml-support.c (gdb_xml_end_element): Constify.
8734 * xml-tdesc.c (tdesc_start_reg): Constify.
8735 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8736 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8737 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8738
995816ba
PA
87392017-04-05 Pedro Alves <palves@redhat.com>
8740
8741 * proc-api.c (struct trans): Constify.
8742 (procfs_note): Constify.
8743 * proc-events.c (struct trans, syscall_table):
8744 * proc-flags.c (struct trans): Constify.
8745 * proc-utils.h (procfs_note): Constify.
8746 * proc-why.c (struct trans): Constify.
8747 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8748 (procfs_detach): Constify.
8749 * sol-thread.c (struct string_map): Constify.
8750 (td_err_string, td_state_string): Constify.
8751
3e83a920
PA
87522017-04-05 Pedro Alves <palves@redhat.com>
8753
8754 * proc-api.c (procfs_filename): Don't initialize
8755 procfs_filename.
8756 (prepare_to_trace): Assume procfs_filename is non-NULL.
8757 (_initialize_proc_api): Give procfs_filename a default value here.
8758
63160a43
PA
87592017-04-05 Pedro Alves <palves@redhat.com>
8760
8761 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8762 'cond_string' parameter.
8763 (extract_exception_regexp): Constify 'string' parameter.
8764 (catch_exception_command_1): Constify.
8765 * breakpoint.c (init_catchpoint)
8766 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8767 parameter.
8768 (ep_parse_optional_if_clause, catch_fork_command_1)
8769 (catch_exec_command_1): Constify.
8770 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8771 parameter.
8772 (ep_parse_optional_if_clause): Constify.
8773 * cli/cli-utils.c (remove_trailing_whitespace)
8774 (check_for_argument): Constify.
8775 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8776 non-const overload.
8777 (check_for_argument): Likewise.
8778
9b2eba3d
PA
87792017-04-05 Pedro Alves <palves@redhat.com>
8780
8781 * event-top.c (command_line_handler): Add cast to execute_command
8782 call.
8783 * record-btrace.c (cmd_record_btrace_bts_start)
8784 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8785 (cmd_record_btrace_start): Add cast to execute_command call.
8786 * record-full.c (record_full_goto_insn):
8787 * record.c (record_start, record_stop): Add cast to
8788 execute_command_to_string calls.
8789 (cmd_record_start): Add cast to execute_command calls.
8790
2adadf51
PA
87912017-04-05 Pedro Alves <palves@redhat.com>
8792
8793 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8794 static inline function.
8795 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8796 array and use gdb_PyArg_ParseTupleAndKeywords.
8797 * python/py-cmd.c (cmdpy_init): Likewise.
8798 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8799 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8800 (infpy_search_memory): Likewise.
8801 * python/py-objfile.c (objfpy_add_separate_debug_file)
8802 (gdbpy_lookup_objfile): Likewise.
8803 * python/py-symbol.c (gdbpy_lookup_symbol)
8804 (gdbpy_lookup_global_symbol): Likewise.
8805 * python/py-type.c (gdbpy_lookup_type): Likewise.
8806 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8807 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8808 Likewise.
8809
0d1f4ceb
PA
88102017-04-05 Pedro Alves <palves@redhat.com>
8811
8812 * python/python-internal.h (gdb_PyGetSetDef): New type.
8813 * python/py-block.c (block_object_getset)
8814 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8815 * python/py-event.c (event_object_getset)
8816 (finish_breakpoint_object_getset): Likewise.
8817 * python/py-inferior.c (inferior_object_getset): Likewise.
8818 * python/py-infthread.c (thread_object_getset): Likewise.
8819 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8820 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8821 * python/py-objfile.c (objfile_getset): Likewise.
8822 * python/py-progspace.c (pspace_getset): Likewise.
8823 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8824 Likewise.
8825 * python/py-record.c (recpy_record_getset): Likewise.
8826 * python/py-symbol.c (symbol_object_getset): Likewise.
8827 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8828 Likewise.
8829 * python/py-type.c (type_object_getset, field_object_getset):
8830 Likewise.
8831 * python/py-value.c (value_object_getset): Likewise.
8832
4d759979
PA
88332017-04-05 Pedro Alves <palves@redhat.com>
8834
8835 * python/python-internal.h (gdb_PyObject_CallMethod)
8836 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8837 New functions.
8838 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8839 (PySys_GetObject, PySys_SetPath): New macros.
8840
fdf9e36f
PA
88412017-04-05 Pedro Alves <palves@redhat.com>
8842
8843 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8844 info_osdata_command.
8845 * osdata.c (info_osdata_command): Rename to ...
8846 (info_osdata): ... this. Constify 'type' parameter, and remove
8847 the 'from_tty' parameter. Accept NULL TYPE.
8848 (info_osdata_command): New function.
8849 * osdata.h (info_osdata_command): Remove declaration.
8850 (info_osdata): New declaration.
8851
9f33b8b7
PA
88522017-04-05 Pedro Alves <palves@redhat.com>
8853
8854 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8855 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8856 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8857 parameter.
8858 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8859 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8860 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8861 parameter.
8862 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8863 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8864 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8865 (mi_cmd_file_list_exec_source_files)
8866 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8867 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8868 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8869 parameter.
8870 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8871 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8872 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8873 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8874 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8875 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8876 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8877 'command' parameter.
8878 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8879 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8880 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8881 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8882 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8883 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8884 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8885 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8886 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8887 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8888 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8889 parameter.
8890 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8891 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8892 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8893 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8894 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8895 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8896 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8897 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8898 (mi_cmd_data_list_changed_registers)
8899 (mi_cmd_data_write_register_values)
8900 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8901 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8902 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8903 (mi_cmd_list_features, mi_cmd_list_target_features)
8904 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8905 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8906 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8907 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8908 (mi_cmd_trace_frame_collected): Constify 'command'
8909 parameter.
8910 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8911 'command' parameter.
8912
67cb5b2d
PA
89132017-04-05 Pedro Alves <palves@redhat.com>
8914
8915 * ada-lang.c (ada_completer_word_break_characters): Now a const
8916 array.
8917 (ada_get_gdb_completer_word_break_characters): Constify.
8918 * completer.c (gdb_completer_command_word_break_characters)
8919 (gdb_completer_file_name_break_characters)
8920 (gdb_completer_quote_characters): Now const arrays.
8921 (get_gdb_completer_quote_characters): Constify.
8922 (set_rl_completer_word_break_characters): New function.
8923 (set_gdb_completion_word_break_characters)
8924 (complete_line_internal): Use it.
8925 * completer.h (get_gdb_completer_quote_characters): Constify.
8926 (set_rl_completer_word_break_characters): Declare.
8927 * f-lang.c (f_word_break_characters): Constify.
8928 * language.c (default_word_break_characters): Constify.
8929 * language.h (language_defn::la_word_break_characters): Constify.
8930 (default_word_break_characters): Constify.
8931 * top.c (init_main): Use set_rl_completer_word_break_characters.
8932
7a114964
PA
89332017-04-05 Pedro Alves <palves@redhat.com>
8934
8935 * aix-thread.c (aix_thread_pid_to_str)
8936 (aix_thread_extra_thread_info): Constify.
8937 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8938 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8939 (bsd_uthread_pid_to_str): Constify.
8940 * corelow.c (core_pid_to_str): Constify.
8941 * darwin-nat.c (darwin_pid_to_str): Constify.
8942 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8943 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8944 Constify.
8945 * gnu-nat.c (gnu_pid_to_str): Constify.
8946 * go32-nat.c (go32_pid_to_str): Constify.
8947 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8948 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8949 * inferior.c (inferior_pid_to_str): Constify.
8950 * linux-nat.c (linux_nat_pid_to_str): Constify.
8951 * linux-tdep.c (linux_core_pid_to_str): Constify.
8952 * linux-thread-db.c (thread_db_pid_to_str)
8953 (thread_db_extra_thread_info): Constify.
8954 * nto-tdep.c (nto_extra_thread_info): Constify.
8955 * nto-tdep.h (nto_extra_thread_info): Constify.
8956 * obsd-nat.c (obsd_pid_to_str): Constify.
8957 * procfs.c (procfs_pid_to_str): Constify.
8958 * ravenscar-thread.c (ravenscar_extra_thread_info)
8959 (ravenscar_pid_to_str): Constify.
8960 * remote-sim.c (gdbsim_pid_to_str): Constify.
8961 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8962 Constify.
8963 * sol-thread.c (solaris_pid_to_str): Constify.
8964 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8965 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8966 * target.c (default_pid_to_str, target_pid_to_str)
8967 (normal_pid_to_str, default_pid_to_str): Constify.
8968 * target.h (target_ops::to_pid_to_str)
8969 (target_ops::to_extra_thread_info): Constify.
8970 (target_pid_to_str, normal_pid_to_str): Constify.
8971 * windows-nat.c (windows_pid_to_str): Constify.
8972 * gdbarch.sh (core_pid_to_str): Constify.
8973 * target-delegates.c: Regenerate.
8974 * gdbarch.h, gdbarch.c: Regenerate.
8975
69bbf465
PA
89762017-04-05 Pedro Alves <palves@redhat.com>
8977
8978 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8979 the memory of the temporary warning_pre_print override.
8980 * utils.c (warning_pre_print): Constify.
8981 * utils.h (warning_pre_print): Constify.
8982
be47f9e8
PA
89832017-04-05 Pedro Alves <palves@redhat.com>
8984
8985 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8986 (shell_command): New function.
8987 (make_command): Use std::string.
8988 (init_cli_cmds): Register shell_command instead of shell_escape.
8989
bde6261a
PA
89902017-04-05 Pedro Alves <palves@redhat.com>
8991
8992 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8993 * tracepoint.c (default_collect): Don't initialize.
8994
b38ef47f
PA
89952017-04-05 Pedro Alves <palves@redhat.com>
8996
8997 * macroexp.c (macro_buffer::shared): Now a bool.
8998 (init_buffer): Update.
8999 (init_shared_buffer): Constify 'addr' parameter.
9000 (substitute_args, expand, macro_expand, macro_expand_next): Remove
9001 casts.
9002
f995bbe8
PA
90032017-04-05 Pedro Alves <palves@redhat.com>
9004
9005 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
9006 * disasm.c (set_disassembler_options): Constify local.
9007 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
9008
4a596fe2
SDJ
90092017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
9010
9011 PR gdb/21352
9012 * tracefile.c (tsave_command): Fix argument parsing for '-r'
9013 option.
9014
2cad08ea
YQ
90152017-04-05 Yao Qi <yao.qi@linaro.org>
9016
9017 * frame.c (frame_unwind_register_unsigned): Call
9018 frame_unwind_register_value.
9019
55a98976
YQ
90202017-04-05 Yao Qi <yao.qi@linaro.org>
9021
9022 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
9023 Use gdb_test_multiple, and don't match anchor.
9024
4ac40124
PA
90252017-04-05 Pedro Alves <palves@redhat.com>
9026
9027 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
9028 (Write After Approval): Remove Simon Marchi.
9029
c053b654
PA
90302017-04-05 Pedro Alves <palves@redhat.com>
9031
9032 * common/gdb_optional.h (optional::optional): Make constexpr and
9033 initialize m_dummy.
9034
4c7bf4f9
JB
90352017-04-04 John Baldwin <jhb@FreeBSD.org>
9036
9037 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9038 (amd64fbsd_jmp_buf_reg_offset): Remove.
9039 (amd64fbsd_supply_uthread): Remove function.
9040 (amd64fbsd_collect_uthread): Remove function.
9041 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
9042 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
9043 (x86_64-*-freebsd*): Remove bsd-uthread.o.
9044 (fbsd-nat.c): Update comment.
9045 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9046 (i386fbsd_jmp_buf_reg_offset): Remove.
9047 (i386fbsd_supply_uthread): Remove function.
9048 (i386fbsd_collect_uthread): Remove function.
9049 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
9050
1e1a8bef
JB
90512017-04-04 John Baldwin <jhb@FreeBSD.org>
9052
9053 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
9054 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
9055 * NEWS: Mention that support for FreeBSD/alpha was removed.
9056 * alpha-fbsd-tdep.c: Delete file.
9057 * config/alpha/fbsd.mh: Delete file.
9058 * configure.host: Delete alpha*-*-freebsd* and
9059 alpha*-*-kfreebsd*-gnu.
9060 * configure.tgt: Delete alpha*-*-freebsd* and
9061 alpha*-*-kfreebsd*-gnu.
9062
49907934
JB
90632017-04-04 John Baldwin <jhb@FreeBSD.org>
9064
9065 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
9066 amd64bsd_store_inferior_registers): Use ptid from regcache.
9067
6f77053d
PA
90682017-04-04 Pedro Alves <palves@redhat.com>
9069
9070 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
9071 data fields, make them private and add "m_" prefixes.
9072 (lnp_state_machine::lnp_state_machine): New ctor.
9073 (record_line, check_line_address, handle_set_discriminator)
9074 (handle_set_address, handle_advance_pc, handle_special_opcode)
9075 (handle_advance_line, handle_set_file, handle_negate_stmt)
9076 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
9077 (end_sequence, advance_line): New methods.
9078 (m_gdbarch, m_record_lines_p): New fields.
9079 (lnp_reader_state): Delete.
9080 (dwarf_record_line): Rename to ...
9081 (lnp_state_machine::record_line): ... adjust.
9082 (init_lnp_state_machine): Delete.
9083 (lnp_state_machine::lnp_state_machine): New.
9084 (check_line_address): Rename to ...
9085 (lnp_state_machine::check_line_address): This.
9086 (dwarf_decode_lines_1): Remove reference to "reader_state".
9087 Adjust lnp_state_machine having a non-default ctor. Use bool.
9088 State machine internal state manipulation moved to
9089 lnp_state_machine methods.
9090
9c541725
PA
90912017-04-04 Pedro Alves <palves@redhat.com>
9092
9093 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9094 unittests/offset-type-selftests.c.
9095 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
9096 * common/offset-type.h: New file.
9097 * common/preprocessor.h: New file.
9098 * common/traits.h: New file.
9099 * common/valid-expr.h: New file.
9100 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
9101 sect_offset and cu_offset strong typedefs throughout.
9102 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
9103 typedefs throughout.
9104 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
9105 sect_offset and cu_offset strong typedefs throughout.
9106 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
9107 typedefs throughout.
9108 * gdbtypes.h: Include "common/offset-type.h".
9109 (cu_offset): Now an offset type (strong typedef) instead of a
9110 struct.
9111 (sect_offset): Likewise.
9112 (union call_site_parameter_u): Rename "param_offset" field to
9113 "param_cu_off".
9114 * unittests/offset-type-selftests.c: New file.
9115
ecfb656c
PA
91162017-04-04 Pedro Alves <palves@redhat.com>
9117
9118 * common/underlying.h: New file.
9119 * dwarf2read.c: Include "common/gdb_optional.h" and
9120 "common/underlying.h".
9121 (dir_index, file_name_index): New types.
9122 (file_entry): Use them.
9123 (file_entry::include): Use to_underlying.
9124 (line_header::add_file_name): Use dir_index.
9125 (read_formatted_entries): Use gdb::optional. Read form before
9126 writting to file_entry.
9127 (dwarf_decode_line_header): Use dir_index.
9128 (lnp_state_machine::current_file): Use to_underlying.
9129 (lnp_state_machine::file): Change type to file_name_index.
9130 (dwarf_record_line): Use to_underlying.
9131 (init_lnp_state_machine): Use file_name_index.
9132 (dwarf_decode_lines_1): Use dir_index and file_name_index.
9133
d194f1fe
PA
91342017-04-04 Pedro Alves <palves@redhat.com>
9135
9136 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
9137 operator bool, has_value and get methods.
9138
fff8551c
PA
91392017-04-04 Pedro Alves <palves@redhat.com>
9140
9141 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
9142 fields.
9143 (line_header): Initialize all data fields. Change type of
9144 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
9145 Change type of include_dirs to std::vector<const char *>. Remove
9146 num_include_dirs, include_dirs_size. Change type of file_names to
9147 std::vector<file_entry>. Remove num_file_names, file_names_size.
9148 (line_header::line_header): New.
9149 (line_header::add_include_dir, line_header::add_file_name): New
9150 methods.
9151 (line_header::include_dir_at): Remove NULL check.
9152 (line_header::file_name_at): Add const overload.
9153 (line_header_up): New unique_ptr typedef.
9154 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
9155 std::vector. Remove free_line_header call.
9156 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
9157 free_line_header call.
9158 (free_cu_line_header): Delete.
9159 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
9160 (setup_type_unit_groups): Use line_header_up instead of cleanups.
9161 Adjust to use std::vector.
9162 (free_line_header): Delete.
9163 (free_line_header_voidp): Use delete.
9164 (add_include_dir): Replace with ...
9165 (line_header::add_include_dir): ... this method. Use std::vector.
9166 (add_file_name): Replace with ...
9167 (line_header::add_file_name): ... this method. Use std::vector.
9168 (add_include_dir_stub): Delete.
9169 (read_formatted_entries): Remove memset.
9170 (dwarf_decode_line_header): Return a line_header_up instead of a
9171 raw pointer. Remove cleanup handling. Pass lambdas to
9172 read_formatted_entries. Adjust to use line_header methods.
9173 (dwarf_decode_lines_1): Adjust to use line_header methods.
9174 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
9175 use std::vector.
9176
d62a8ae2
SM
91772017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
9178
9179 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
9180 instead of struct ptid.
9181
db3a1dc7
AH
91822017-05-04 Alan Hayward <alan.hayward@arm.com>
9183
9184 * frame.c (get_frame_register_bytes): Unwind using value.
9185 (put_frame_register_bytes): Likewise.
9186
b1b45502
IB
91872017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
9188
9189 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
9190 aggregate-like.
9191
ec13808e
JK
91922017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9193
9194 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
9195
12316564
YQ
91962017-03-29 Yao Qi <yao.qi@linaro.org>
9197
9198 * gdbthread.h (struct thread_info): Declare constructor and
9199 destructor. Add some in-class member initializers.
9200 * thread.c (free_thread): Remove.
9201 (init_thread_list): Call delete instead of free_thread.
9202 (new_thread): Call thread_info constructor.
9203 (thread_info::thread_info): New function.
9204 (thread_info::~thread_info): New function.
9205 (delete_thread_1): Call delete instead of free_thread.
9206 (make_cleanup_restore_current_thread): Move tp and frame to
9207 inner block.
9208
fe5f7374
AK
92092017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9210
9211 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
9212 (arc_skip_prologue): Likewise.
9213 (arc_make_frame_cache): Likewise.
9214 (arc_pv_get_operand): New function.
9215 (arc_is_in_prologue): Likewise.
9216 (arc_analyze_prologue): Likewise.
9217 (arc_print_frame_cache): Likewise.
9218 (MAX_PROLOGUE_LENGTH): New constant.
9219
eea78757
AK
92202017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9221
9222 * configure.tgt: Add arc-insn.o.
9223 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
9224 (dump_arc_instruction_command): New function.
9225 (arc_fprintf_disasm): Likewise.
9226 (arc_disassemble_info): Likewise.
9227 (arc_insn_get_operand_value): Likewise.
9228 (arc_insn_get_operand_value_signed): Likewise.
9229 (arc_insn_get_memory_base_reg): Likewise.
9230 (arc_insn_get_memory_offset): Likewise.
9231 (arc_insn_get_branch_target): Likewise.
9232 (arc_insn_dump): Likewise.
9233 (arc_insn_get_linear_next_pc): Likewise.
9234 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
9235 (arc_disassemble_info): Likewise.
9236 (arc_insn_get_branch_target): Likewise.
9237 (arc_insn_get_linear_next_pc): Likewise.
9238 * NEWS: Mention new "maint print arc arc-instruction".
9239
3be78afd
AK
92402017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9241
9242 * arc-tdep (maintenance_print_arc_list): New variable.
9243 (maintenance_print_arc_command): New function.
9244
296ec4fa
AK
92452017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9246
9247 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
9248 Add "limm" and "reserved".
9249 (arc_cannot_fetch_register, arc_cannot_store_register): Add
9250 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
9251 * arc-tdep.h (arc_regnum): Likewise.
9252
f74f865e
MF
92532017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9254
9255 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9256 for THREADPTR register.
9257 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
9258 register.
9259 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
9260 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
9261 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
9262
0d0bf81a
MF
92632017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9264
9265 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
9266 registers above gdbarch_num_regs (gdbarch) as privileged in
9267 call0 ABI.
9268
0ce4291e
MF
92692017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9270
9271 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9272 for a single specified register or for all registers in
9273 a0_base..a0_base + C0_NREGS range.
9274 (supply_gregset_reg): Call regcache_raw_supply for a single
9275 specified register or for all registers in a0_base..a0_base +
9276 C0_NREGS range.
9277
c56054f9
MF
92782017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9279
9280 * arch/xtensa.h (C0_NREGS): Add definition.
9281 * xtensa-tdep.c (C0_NREGS): Remove definition.
9282
a4398628
MF
92832017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9284
9285 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
9286 Drop xtensa_default_isa initialization.
9287 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
9288
8c43009f
PA
92892017-03-27 Pedro Alves <palves@redhat.com>
9290
9291 * dwarf2read.c (file_entry) <dir_index>: Add comment.
9292 (file_entry::include_dir): New method.
9293 (line_header::include_dir_at, line_header::file_name_at): New
9294 methods.
9295 (setup_type_unit_groups, setup_type_unit_groups)
9296 (psymtab_include_file_name): Simplify using the new methods.
9297 (lnp_state_machine) <the_line_header>: New field.
9298 <file>: Add comment.
9299 (lnp_state_machine::current_file): New method.
9300 (dwarf_record_line): Simplify using the new methods.
9301 (init_lnp_state_machine): Initialize the "the_line_header" field.
9302 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
9303 Simplify using the new methods.
9304
a7e80b9e
PA
93052017-03-27 Pedro Alves <palves@redhat.com>
9306
9307 * cp-name-parser.y (make_empty): Delete.
9308 (demangler_special, nested_name, ptr_operator, array_indicator)
9309 (direct_declarator, declarator_1): Use fill_comp instead of
9310 make_empty.
9311
21047726
PA
93122017-03-27 Pedro Alves <palves@redhat.com>
9313
9314 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
9315 to ATTRIBUTE_PRINTF.
9316 * solib-target.c (library_list_start_list): Print "string" not
9317 "version".
9318 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
9319 gdb_xml_error call.
9320
d721ba37
PA
93212017-03-27 Pedro Alves <palves@redhat.com>
9322
9323 * dwarf2read.c (struct file_and_directory): New.
9324 (dwarf2_get_dwz_file): Adjust to use std::string.
9325 (dw2_get_file_names_reader): Adjust to use file_and_directory.
9326 (find_file_and_directory): Adjust to return a file_and_directory
9327 object.
9328 (read_file_scope): Adjust to use file_and_directory. Remove
9329 make_cleanup/do_cleanups calls.
9330 (open_and_init_dwp_file): Adjust to use std::string. Remove
9331 make_cleanup/do_cleanups calls.
9332 * python/python.c (do_start_initialization): Adjust to ldirname
9333 returning a std::string.
9334 * utils.c (ldirname): Now returns a std::string.
9335 * utils.h (ldirname): Change return type to std::string.
9336 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
9337 returning a std::string.
9338 * xml-tdesc.c (file_read_description_xml): Likewise.
9339
ed771251
AH
93402017-03-24 Alan Hayward <alan.hayward@arm.com>
9341
9342 * regcache.c (regcache_debug_print_register): New function.
9343 * regcache.h (regcache_debug_print_register): New declaration.
9344 * target.c (debug_print_register): Remove.
9345 (target_fetch_registers): Call regcache_debug_print_register.
9346 (target_store_registers): Likewise.
9347
568c1b9f
PB
93482017-03-24 Pádraig Brady <pbrady@fb.com>
9349
9350 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
9351 reference beyond the 'lh->include_dirs' array before accessing to
9352 it.
9353 (psymtab_include_file_name): Likewise.
9354 (dwarf_decode_lines_1): Likewise.
9355 (dwarf_decode_lines): Likewise.
9356 (file_file_name): Likewise.
9357
3e00d44f
SM
93582017-03-23 Simon Marchi <simon.marchi@ericsson.com>
9359
9360 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
9361 inferior_ptid.
9362 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9363 ps_lsetfpregs): Likewise.
9364 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
9365 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9366 ps_lsetfpregs): Likewise.
9367 * target.c (target_fetch_registers, target_store_registers):
9368 Remove asserts.
9369
077ae656
AH
93702017-03-23 Alan Hayward <alan.hayward@arm.com>
9371
9372 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
9373
1e2b521d
YQ
93742017-03-23 Yao Qi <yao.qi@linaro.org>
9375
9376 * aarch64-tdep.c (aarch64_process_record_test): Declare.
9377 (_initialize_aarch64_tdep): Register it.
9378 (aarch64_record_load_store): Handle PRFM instruction.
9379 (aarch64_process_record_test): New function.
9380
33877125
YQ
93812017-03-23 Yao Qi <yao.qi@linaro.org>
9382
9383 * aarch64-tdep.c (aarch64_record_load_store): Fix code
9384 indentation.
9385
a0eef940
YQ
93862017-03-23 Yao Qi <yao.qi@linaro.org>
9387
9388 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
9389
3f2a3564
PR
93902017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9391
9392 python/python.c (do_start_initialization): Fix memory leak.
9393
b67aeab0
SM
93942017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9395
9396 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
9397 using get_ptrace_pid.
9398 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
9399 inferior_ptid.
9400 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
9401 inferior_ptid instead of pid.
9402
ffdbe864
YQ
94032017-03-22 Yao Qi <yao.qi@linaro.org>
9404
9405 * aarch64-tdep.c: Wrap locally used classes in anonymous
9406 namespace.
9407 * arm-tdep.c: Likewise.
9408 * linespec.c: Likewise.
9409 * ui-out.c: Likewise.
9410
9d736fbf
JG
94112017-03-22 Jonah Graham <jonah@kichwacoders.com>
9412
9413 PR gdb/19637
9414 * python/lib/gdb/printer/bound_registers.py: Import sys.
9415
3de88e9a
SM
94162017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9417
9418 * windows-nat.c (do_windows_fetch_inferior_registers): Add
9419 windows_thread_info parameter and use it instead of
9420 current_thread.
9421 (windows_fetch_inferior_registers): Don't set current_thread,
9422 pass the thread to do_windows_fetch_inferior_registers. Use
9423 ptid from regcache instead of inferior_ptid.
9424 (do_windows_store_inferior_registers): Add windows_thread_info
9425 parameter and use it instead of current_thread.
9426 (windows_store_inferior_registers): Don't set current_thread,
9427 pass the thread to do_windows_store_inferior_registers. Use
9428 ptid from regcache instead of inferior_ptid.
9429
0e7b8f61
SM
94302017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9431
9432 * ser-mingw.c (ser_windows_raw): Remove reference to
9433 struct serial::current_timeout.
9434
5badf10a
IR
94352017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
9436
9437 PR tdep/20928
9438 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
9439 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
9440 (sparc64_fsr_type): Fix %fsr decoding.
9441
cee59b3f
TW
94422017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
9443
9444 * python/py-record-btrace.c (btpy_insn_data): Change return type
9445 for Python 2.
9446
639a9038
SM
94472017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9448
9449 * spu-linux-nat.c (spu_fetch_inferior_registers,
9450 spu_store_inferior_registers): Use ptid from regcache, set and
9451 restore inferior_ptid.
9452 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9453 Likewise.
9454
bcc0c096
SM
94552017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9456
9457 * i386-linux-nat.c (fetch_register, store_register,
9458 i386_linux_fetch_inferior_registers,
9459 i386_linux_store_inferior_registers): Use ptid from regcache.
9460 * ia64-linux-nat.c (ia64_linux_fetch_register,
9461 ia64_linux_store_register): Likewise.
9462 * inf-ptrace.c (inf_ptrace_fetch_register,
9463 inf_ptrace_store_register): Likewise.
9464 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9465 m32r_linux_store_inferior_registers): Likewise.
9466 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9467 m68kbsd_store_inferior_registers): Likewise.
9468 * m68k-linux-nat.c (fetch_register, store_register,
9469 m68k_linux_fetch_inferior_registers,
9470 m68k_linux_store_inferior_registers): Likewise.
9471 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9472 m88kbsd_store_inferior_registers): Likewise.
9473 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9474 mips_fbsd_store_inferior_registers): Likewise.
9475 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9476 mips64_linux_regsets_store_registers): Likewise.
9477 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9478 mipsnbsd_store_inferior_registers): Likewise.
9479 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9480 mips64obsd_store_inferior_registers): Likewise.
9481 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9482 Likewise.
9483 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9484 ppcfbsd_store_inferior_registers): Likewise.
9485 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9486 ppc_linux_store_inferior_registers): Likewise.
9487 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9488 ppcnbsd_store_inferior_registers): Likewise.
9489 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9490 ppcobsd_store_registers): Likewise.
9491 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9492 Likewise.
9493 * ravenscar-thread.c (ravenscar_fetch_registers,
9494 ravenscar_store_registers, ravenscar_prepare_to_store):
9495 Likewise.
9496 * record-btrace.c (record_btrace_fetch_registers,
9497 record_btrace_store_registers, record_btrace_prepare_to_store):
9498 Likewise.
9499 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9500 Lookup inferior using ptid from regcache, instead of
9501 current_inferior.
9502 * remote.c (remote_fetch_registers, remote_store_registers): Use
9503 ptid from regcache.
9504 * rs6000-nat.c (fetch_register, store_register): Likewise.
9505 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9506 s390_linux_store_inferior_registers): Likewise.
9507 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9508 shnbsd_store_inferior_registers): Likewise.
9509 * sol-thread.c (sol_thread_fetch_registers,
9510 sol_thread_store_registers): Likewise.
9511 * sparc-nat.c (sparc_fetch_inferior_registers,
9512 sparc_store_inferior_registers): Likewise.
9513 * tilegx-linux-nat.c (fetch_inferior_registers,
9514 store_inferior_registers): Likewise.
9515 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9516 vaxbsd_store_inferior_registers): Likewise.
9517 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9518 store_xtregs): Likewise.
9519
c0f55cc6
AV
95202017-03-20 Artemiy Volkov <artemiyv@acm.org>
9521
9522 PR gdb/14441
9523 * NEWS: Mention support for rvalue references in GDB and python.
9524 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9525 supports both lvalue and rvalue references.
9526
15c0a2a9
AV
95272017-03-20 Artemiy Volkov <artemiyv@acm.org>
9528
9529 PR gdb/14441
9530 * gdbtypes.c (rank_one_type): Implement overloading
9531 resolution rules regarding rvalue references.
9532
aa006118
AV
95332017-03-20 Artemiy Volkov <artemiyv@acm.org>
9534
9535 PR gdb/14441
9536 * aarch64-tdep.c (aarch64_type_align)
9537 (aarch64_extract_return_value, aarch64_store_return_value): Change
9538 lvalue reference type checks to general reference type checks.
9539 * amd64-tdep.c (amd64_classify): Likewise.
9540 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9541 Likewise.
9542 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9543 (arm_store_return_value): Likewise.
9544 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9545 * c-typeprint.c (c_print_type): Likewise.
9546 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9547 (cplus_number_of_children, cplus_describe_child): Likewise.
9548 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9549 * completer.c (expression_completer): Likewise.
9550 * cp-support.c (make_symbol_overload_list_adl_namespace):
9551 Likewise.
9552 * darwin-nat-info.c (info_mach_region_command): Likewise.
9553 * dwarf2loc.c (entry_data_value_coerce_ref)
9554 (value_of_dwarf_reg_entry): Likewise.
9555 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9556 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9557 Likewise.
9558 * findvar.c (extract_typed_address, store_typed_address):
9559 Likewise.
9560 * gdbtypes.c (rank_one_type): Likewise.
9561 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9562 * infcall.c (value_arg_coerce): Likewise.
9563 * language.c (pointer_type): Likewise.
9564 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9565 Likewise.
9566 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9567 * mn10300-tdep.c (mn10300_type_align): Likewise.
9568 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9569 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9570 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9571 Likewise.
9572 * printcmd.c (print_formatted, x_command): Likewise.
9573 * python/py-type.c (typy_get_composite, typy_template_argument):
9574 Likewise.
9575 * python/py-value.c (valpy_referenced_value)
9576 (valpy_get_dynamic_type, value_has_field): Likewise.
9577 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9578 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9579 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9580 * spu-tdep.c (spu_scalar_value_p): Likewise.
9581 * symtab.c (lookup_symbol_aux): Likewise.
9582 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9583 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9584 Likewise.
9585 * valops.c (value_cast_pointers, value_cast)
9586 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9587 (value_struct_elt, value_struct_elt_bitpos)
9588 (value_find_oload_method_list, find_overload_match)
9589 (value_rtti_indirect_type): Likewise.
9590 * valprint.c (val_print_scalar_type_p, generic_val_print):
9591 Likewise.
9592 * value.c (value_actual_type, value_as_address, unpack_long)
9593 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9594 (coerce_ref): Likewise.
9595 * varobj.c (varobj_get_value_type): Likewise.
9596
3fcf899d
AV
95972017-03-20 Artemiy Volkov <artemiyv@acm.org>
9598
9599 PR gdb/14441
9600 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9601 table of constants.
9602 * python/lib/gdb/command/explore.py: Support exploring values
9603 of rvalue reference types.
9604 * python/lib/gdb/types.py: Implement get_basic_type() for
9605 rvalue reference types.
9606 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9607 constant.
9608 * python/py-value.c (valpy_getitem): Add an rvalue reference
9609 check.
9610 (valpy_reference_value): Add new parameter "refcode".
9611 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9612 New wrappers for valpy_reference_value().
9613 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9614 (gdbpy_invoke_xmethod): Likewise.
9615
4297a3f0
AV
96162017-03-20 Artemiy Volkov <artemiyv@acm.org>
9617
9618 PR gdb/14441
9619 * dwarf2read.c (process_die, read_type_die_1): Handle the
9620 DW_TAG_rvalue_reference_type DIE.
9621 (read_tag_reference_type): Add new parameter "refcode".
9622
e1cb3213
AV
96232017-03-20 Artemiy Volkov <artemiyv@acm.org>
9624
9625 PR gdb/14441
9626 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9627 (c_type_print_modifier, c_type_print_varspec_suffix)
9628 (c_type_print_base): Support printing rvalue reference types.
9629 * c-valprint.c (c_val_print, c_value_print): Support printing
9630 rvalue reference values.
9631
e4347c89
AV
96322017-03-20 Artemiy Volkov <artemiyv@acm.org>
9633
9634 PR gdb/14441
9635 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9636 typename.
9637 * cp-support.c (replace_typedefs): Handle
9638 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9639 * python/py-type.c (typy_lookup_type): Likewise.
9640
53cc15f5
AV
96412017-03-20 Artemiy Volkov <artemiyv@acm.org>
9642
9643 PR gdb/14441
9644 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9645 * parse.c (insert_type): Change assert statement.
9646 (follow_types): Handle rvalue reference types.
9647 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9648 constant.
9649
a65cfae5
AV
96502017-03-20 Artemiy Volkov <artemiyv@acm.org>
9651
9652 PR gdb/14441
9653 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9654 value_ref() interface.
9655 * c-valprint.c (c_value_print): Likewise.
9656 * infcall.c (value_arg_coerce): Likewise.
9657 * python/py-value.c (valpy_reference_value): Likewise.
9658 * valops.c (value_cast, value_reinterpret_cast)
9659 (value_dynamic_cast, typecmp): Likewise.
9660 (value_ref): Parameterize by kind of return value reference type.
9661 * value.h (value_ref): Add new parameter "refcode".
9662
3b224330
AV
96632017-03-20 Artemiy Volkov <artemiyv@acm.org>
9664
9665 PR gdb/14441
9666 * dwarf2read.c (read_tag_reference_type): Use
9667 lookup_lvalue_reference_type() instead of lookup_reference_type().
9668 * eval.c (evaluate_subexp_standard): Likewise.
9669 * f-exp.y: Likewise.
9670 * gdbtypes.c (make_reference_type, lookup_reference_type):
9671 Generalize with rvalue reference types.
9672 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9673 convenience wrappers for lookup_reference_type().
9674 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9675 reference kind parameter.
9676 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9677 wrappers for lookup_reference_type().
9678 * guile/scm-type.c (gdbscm_type_reference): Use
9679 lookup_lvalue_reference_type() instead of lookup_reference_type().
9680 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9681 * parse.c (follow_types): Likewise.
9682 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9683 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9684 Likewise.
9685 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9686 (gdbpy_invoke_xmethod): Likewise.
9687 * stabsread.c: Provide extra argument to make_reference_type()
9688 call.
9689 * valops.c (value_ref, value_rtti_indirect_type): Use
9690 lookup_lvalue_reference_type() instead of lookup_reference_type().
9691
f9aeb8d4
AV
96922017-03-20 Artemiy Volkov <artemiyv@acm.org>
9693
9694 PR gdb/14441
9695 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9696 (TYPE_IS_REFERENCE): New macro.
9697 (struct type): Add rvalue_reference_type field.
9698 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9699
51457a05
MAL
97002017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9701
9702 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9703 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9704 New function definition.
9705 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9706 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9707 New function declaration.
9708 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9709 * mi/mi-interp.h: New file.
9710 * solib.c (info_sharedlibrary_command): Replace for loop with
9711 ALL_SO_LIBS macro
9712 * solib.h (update_solib_list): New function declaration.
9713 (so_list_head): Move macro.
9714 * solist.h (ALL_SO_LIBS): New macro.
9715
e696b3ad
MAL
97162017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9717
9718 * infcmd.c (post_create_inferior): Remove unused argument in
9719 call to solib_add.
9720 * remote.c (remote_start_remote): Likewise.
9721 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9722 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9723 (enable_break): Likewise.
9724 * solib.c (update_solib_list): Remove unused target argument
9725 and its documentation.
9726 (solib_add): Remove unused target argument. Remove unused
9727 argument in call to update_solib_list.
9728 (info_sharedlibrary_command): Remove unused argument in call
9729 to update_solib_list.
9730 (sharedlibrary_command): Remove unused argument in call to
9731 solib_add.
9732 (handle_solib_event): Likewise.
9733 (reload_shared_libraries): Likewise.
9734 * solib.h (solib_add): Remove unused target argument.
9735
dcb84eda
AA
97362017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9737
9738 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9739 (s390_displaced_step_fixup): Cover relative branches with the
9740 default fixup handling. This fixes lack of support for some
9741 relative branch instructions.
9742
d9cb6cdc
SM
97432017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9744
9745 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9746 ptid from regcache.
9747
1afaf9f4
SM
97482017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9749
9750 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9751 i386_darwin_store_inferior_registers): Use ptid from regcache.
9752
aac12e24
SM
97532017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9754
9755 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9756 i386bsd_store_inferior_registers): Use ptid from regcache.
9757
bbe1eef1
SM
97582017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9759
9760 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9761 hppaobsd_store_registers): Use ptid from regcache.
9762
10799020
SM
97632017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9764
9765 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9766 hppanbsd_store_registers): Use ptid from regcache.
9767
00204cf7
SM
97682017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9769
9770 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9771 from regcache. Use get_ptrace_pid.
9772
11a33714
SM
97732017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9774
9775 * corelow.c (get_core_register_section): Use ptid from regcache,
9776 update doc.
9777
317cd492
SM
97782017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9779
9780 * bsd-uthread.c (bsd_uthread_fetch_registers,
9781 bsd_uthread_store_registers): Use ptid from regcache, set and
9782 restore inferior_ptid.
9783
9ac8a7c2
SM
97842017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9785
9786 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9787 fetch_fp_regs, store_register, store_regs, store_fp_register,
9788 store_fp_regs): Use ptid from regcache.
9789
4ac4bb6a
SM
97902017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9791
9792 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9793 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9794 store_vfp_regs): Use ptid from regcache.
9795
9bcbdca8
PA
97962017-03-17 Pedro Alves <palves@redhat.com>
9797
9798 PR remote/21188
9799 * ser-base.c (ser_base_wait_for): Add comment.
9800 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9801 version.
9802 * ser-unix.c (hardwire_raw): Remove reference to
9803 scb->current_timeout.
9804 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9805 (hardwire_ops): Install ser_base_readchar instead of
9806 hardwire_readchar.
9807 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9808 Remove fields.
9809
7503099f
JG
98102017-03-17 Jonah Graham <jonah@kichwacoders.com>
9811
9812 PR gdb/19637
9813 * python/lib/gdb/printer/bound_registers.py: Add support for
9814 Python 3.
9815
7942e96e
AA
98162017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9817
9818 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9819 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9820 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9821 byte_offset to subobj_byte_offset. Fix the handling of
9822 DWARF_VALUE_STACK on big-endian targets when coming via an
9823 implicit pointer.
9824 (dwarf2_evaluate_loc_desc): Adjust call to
9825 dwarf2_evaluate_loc_desc_full.
9826 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9827 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9828
ba14f379
YQ
98292017-03-16 Yao Qi <yao.qi@linaro.org>
9830
9831 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9832 and REVSH instructions.
9833
b121eeb9
YQ
98342017-03-16 Yao Qi <yao.qi@linaro.org>
9835
9836 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9837 (arm_record_test): Declare.
9838 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9839 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9840 align with the manual.
9841 (thumb_record_misc): Adjust the code order to align with the
9842 manual.
9843 (thumb2_record_decode_insn_handler): Fix instruction matching.
9844 (instruction_reader_thumb): New class.
9845 (arm_record_test): New function.
9846
728a7913
YQ
98472017-03-16 Yao Qi <yao.qi@linaro.org>
9848
9849 * arm-tdep.c (abstract_memory_reader): New class.
9850 (instruction_reader): New class.
9851 (extract_arm_insn): Add argument 'reader'. Callers updated.
9852 (decode_insn): Likewise.
9853
34b43320
DE
98542017-03-16 Doug Evans <dje@google.com>
9855
a7c0469f
DE
9856 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9857 member. Change type of TYPE member to SCM. All uses updated.
9858 (lsscm_make_lazy_string_smob): Add assert.
9859 (lsscm_make_lazy_string): Flag bad length values.
9860 (lsscm_elt_type): New function.
9861 (gdbscm_lazy_string_to_value): Rewrite to use
9862 lsscm_safe_lazy_string_to_value.
9863 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9864 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9865 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9866 in incoming type.
9867 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9868 * guile/scm-type.c (tyscm_scm_to_type): New function.
9869
98702017-03-15 Doug Evans <dje@google.com>
9871
34b43320
DE
9872 PR python/17728, python/18439, python/18779
9873 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9874 member. Change type of TYPE member to PyObject *. All uses updated.
9875 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9876 (gdbpy_create_lazy_string_object): Flag bad length values.
9877 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9878 Handle typedefs in incoming type.
9879 (stpy_lazy_string_elt_type): New function.
9880 (gdbpy_extract_lazy_string): Call it.
9881 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9882 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9883 typedefs in incoming type.
9884
a3a5fecc
DE
98852017-03-16 Doug Evans <dje@google.com>
9886
9887 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9888 * guile/scm-type.c (tyscm_scm_to_type): New function.
9889
28f1c605
JW
98902017-03-16 Jiong Wang <jiong.wang@arm.com>
9891
9892 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9893 "ULONGEST" for "skip".
9894
87c336f6
AA
98952017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9896
9897 PR gdb/21220
9898 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9899 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9900 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9901 over ptrace peek/poke until end of buffer or error.
9902
cf81cf60
SM
99032017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9904
9905 * parse.c (length_of_subexp): Make static.
9906 * parser-defs.h (length_of_subexp): Remove.
9907
a379284a
AA
99082017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9909
9910 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9911 as well.
9912
8a6200ba
PA
99132017-03-14 Pedro Alves <palves@redhat.com>
9914
9915 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9916 (main): Use std::unique_ptr. Remove calls to
9917 cp_demangled_name_parse_free.
9918
f79ec206
SM
99192017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9920
9921 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9922 alphabsd_store_inferior_registers): Use regcache->ptid instead
9923 of inferior_ptid.
9924
edb5fb00
SM
99252017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9926
9927 * aix-thread.c (aix_thread_fetch_registers,
9928 aix_thread_store_registers): Use regcache->ptid instead of
9929 inferior_ptid.
9930
55119686
SM
99312017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9932
9933 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9934 store_gregs_to_thread, fetch_fpregs_from_thread,
9935 store_fpregs_to_thread): Use regcache->ptid instead of
9936 inferior_ptid.
9937
6a06fbb7
SM
99382017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9939
9940 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9941 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9942 instead of inferior_ptid.
9943
c6386875
SM
99442017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9945
9946 * target.c (target_fetch_registers, target_store_registers): Add
9947 assert.
9948
ddaaf0fb
SM
99492017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9950
9951 * regcache.h (regcache_get_ptid): New function.
9952 * regcache.c (regcache_get_ptid): New function.
9953
b9da89d1 99542017-03-13 Mark Wielaard <mark@klomp.org>
9955
9956 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9957
5f4d1085
KS
99582017-03-10 Keith Seitz <keiths@redhat.com>
9959
9960 PR c++/8218
9961 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9962
c65d6b55
PA
99632017-03-08 Pedro Alves <palves@redhat.com>
9964
9965 PR gdb/18360
9966 * infrun.c (start_step_over, do_target_resume, resume)
9967 (restart_threads): Assert we're not resuming a thread that is
9968 meant to be stopped.
9969 (infrun_thread_stop_requested_callback): Delete.
9970 (infrun_thread_stop_requested): If the thread is internally
9971 stopped, queue a pending stop event and clear the thread's
9972 inline-frame state.
9973 (handle_stop_requested): New function.
9974 (handle_syscall_event, handle_inferior_event_1): Use
9975 handle_stop_requested.
9976 (handle_stop_requested): New function.
9977 (handle_signal_stop): Set the thread's stop_signal here instead of
9978 at caller.
9979 (finish_step_over): Clear step over info unconditionally.
9980 (handle_signal_stop): If the user had interrupted the event
9981 thread, consider the stop a random signal.
9982 (handle_signal_stop) <signal arrived while stepping over
9983 breakpoint>: Don't restart threads here.
9984 (stop_waiting): Don't clear step-over info here.
9985
15c22686
PA
99862017-03-08 Pedro Alves <palves@redhat.com>
9987
9988 PR 21206
9989 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9990 goes to argument 2, not 1.
9991
6e5d74e7
PA
99922017-03-08 Pedro Alves <palves@redhat.com>
9993
9994 PR cli/21218
9995 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9996 display_gdb_prompt.
9997 (command_line_input): Add comment.
9998
9753a2f6
PA
99992017-03-08 Pedro Alves <palves@redhat.com>
10000
10001 PR tui/21216
10002 * tui/tui-file.c (tui_file::write): New.
10003 * tui/tui-file.h (tui_file): Override "write".
10004 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
10005 factored out from ...
10006 (tui_puts): ... here.
10007 (tui_putc): Use them.
10008 (tui_write): New function.
10009 * tui/tui-io.h (tui_write): Declare.
10010
1672e0d9
SDJ
100112017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
10012
10013 * Makefile.in (SFILES): Replace "environ.c" with
10014 "common/environ.c".
10015 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
10016 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
10017 to...
10018 * common/environ.c: ... here.
10019 * environ.h: Moved to...
10020 * common/environ.h: ... here.
10021
f7bb4e3a
PB
100222017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10023
10024 * gdbarch.sh (pstring_ptr): New static function.
10025 (gdbarch_disassembler_options): Use it.
10026 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
10027 not valid_disassembler_option->name.
10028 * gdbarch.c: Regenerate.
10029
e45ced6c
PB
100302017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10031
10032 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
10033
5f6fd321
PA
100342017-03-07 Pedro Alves <palves@redhat.com>
10035
10036 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
10037
6dbb839a 100382017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
10039
10040 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
10041 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
10042 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 10043 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 10044
d274ecf4
SM
100452017-03-06 Simon Marchi <simon.marchi@ericsson.com>
10046
10047 * xtensa-linux-nat.c (fetch_gregs): Remove const.
10048
df97be55
SM
100492017-03-03 Simon Marchi <simon.marchi@ericsson.com>
10050
10051 * remote.c (remote_add_target_side_commands): Use range-based
10052 for loop.
10053
7d45f3df
YQ
100542017-03-03 Yao Qi <yao.qi@linaro.org>
10055
10056 PR gdb/21165
10057 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
10058 value is lazy.
10059 * valprint.c (common_val_print): Likewise.
10060
65b48a81
PB
100612017-02-28 Peter Bergner <bergner@vnet.ibm.com>
10062
10063 * NEWS: Mention new set/show disassembler-options commands.
10064 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
10065 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
10066 (prospective_options): New static variable.
10067 (gdb_disassembler::gdb_disassembler): Initialize
10068 m_di.disassembler_options.
10069 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
10070 (get_disassembler_options): New function.
10071 (set_disassembler_options): Likewise.
10072 (set_disassembler_options_sfunc): Likewise.
10073 (show_disassembler_options_sfunc): Likewise.
10074 (disassembler_options_completer): Likewise.
10075 (_initialize_disasm): Likewise.
10076 * disasm.h (get_disassembler_options): New prototype.
10077 (set_disassembler_options): Likewise.
10078 * gdbarch.sh (gdbarch_disassembler_options): New variable.
10079 (gdbarch_verify_disassembler_options): Likewise.
10080 * gdbarch.c: Regenerate.
10081 * gdbarch.h: Likewise.
10082 * arm-tdep.c (num_disassembly_options): Delete.
10083 (set_disassembly_style): Likewise.
10084 (arm_disassembler_options): New static variable.
10085 (set_disassembly_style_sfunc): Convert short style name into long
10086 option name. Call set_disassembler_options.
10087 (show_disassembly_style_sfunc): New function.
10088 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
10089 set_gdbarch_verify_disassembler_options.
10090 (_initialize_arm_tdep): Delete regnames variable and update callers.
10091 (arm_disassembler_options): Initialize.
10092 (disasm_options): New variable.
10093 (num_disassembly_options): Rename from this...
10094 (num_disassembly_styles): ...to this. Compute by scanning through
10095 disasm_options.
10096 (valid_disassembly_styles): Initialize using disasm_options.
10097 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
10098 set_arm_regname_option.
10099 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
10100 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
10101 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
10102 set_gdbarch_verify_disassembler_options.
10103 * s390-tdep.c (s390_disassembler_options): New static variable.
10104 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
10105 set_gdbarch_verify_disassembler_options.
10106
d538e36d
SM
101072017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10108
10109 * remote.c (remote_add_target_side_condition): Remove "struct"
10110 keyword from range-based for loop.
10111
83621223
SM
101122017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10113
10114 * remote.c (remote_add_target_side_condition): Use range-based
10115 for loop. Update comment.
10116
2123df0e
YQ
101172017-02-27 Yao Qi <yao.qi@linaro.org>
10118
10119 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
10120
8e368124
AH
101212017-02-26 Alan Hayward <alan.hayward@arm.com>
10122
10123 * regcache.c (regcache_raw_update): New function.
10124 (regcache_raw_read): Move code to regcache_raw_update.
10125 * regcache.h (regcache_raw_update): New declaration.
10126 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
10127
a49dd8dd
JK
101282017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10129
10130 * dwarf2read.c (create_debug_type_hash_table): Initialize
10131 header.signature and header.type_offset_in_tu.
10132
34e4bae9
PA
101332017-02-24 Pedro Alves <palves@redhat.com>
10134
10135 * symtab.c (make_file_symbol_completion_list_1): Use
10136 add_symtab_completions.
10137
b0e4b369
AH
101382017-02-24 Alan Hayward <alan.hayward@arm.com>
10139
10140 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
10141
975c21ab
AH
101422017-02-24 Alan Hayward <alan.hayward@arm.com>
10143
10144 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
10145 I386_MAX_REGISTER_SIZE.
10146 (i386_pseudo_register_write): Likewise.
10147 (i386_process_record): Likewise.
10148 * i387-tdep.c (i387_supply_xsave): Likewise.
10149 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
10150 (store_register): Likewise.
10151
14bc53a8
PA
101522017-02-23 Pedro Alves <palves@redhat.com>
10153
10154 * ada-lang.c: Include "common/function-view.h".
10155 (ada_iterate_over_symbols): Adjust to use function_view as
10156 callback type.
10157 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
10158 (ada_make_symbol_completion_list): Use a lambda.
10159 (ada_exc_search_name_matches): Delete.
10160 (name_matches_regex): New.
10161 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
10162 * compile/compile-c-support.c: Include "common/function-view.h".
10163 (print_one_macro): Change prototype to accept a ui_file pointer.
10164 (write_macro_definitions): Use a lambda.
10165 * dwarf2read.c: Include "common/function-view.h".
10166 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10167 (dw2_expand_symtabs_matching): Adjust to use function_view as
10168 callback type.
10169 * language.h: Include "common/function-view.h".
10170 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
10171 function_view as callback type.
10172 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
10173 * linespec.c: Include "common/function-view.h".
10174 (collect_info::add_symbol): New method.
10175 (struct symbol_and_data_callback, iterate_inline_only, struct
10176 symbol_matcher_data, iterate_name_matcher): Delete.
10177 (iterate_over_all_matching_symtabs): Adjust to use function_view
10178 as callback type and lambdas.
10179 (iterate_over_file_blocks): Adjust to use function_view as
10180 callback type.
10181 (decode_compound_collector): Now a class with private fields.
10182 (decode_compound_collector::release_symbols): New method.
10183 (collect_one_symbol): Rename to...
10184 (decode_compound_collector::operator()): ... this and adjust.
10185 (lookup_prefix_sym): decode_compound_collector construction bits
10186 move to decode_compound_collector ctor. Pass the
10187 decode_compound_collector object directly as callback. Remove
10188 cleanups and use decode_compound_collector::release_symbols
10189 instead.
10190 (symtab_collector): Now a class with private fields.
10191 (symtab_collector::release_symtabs): New method.
10192 (add_symtabs_to_list): Rename to...
10193 (symtab_collector::operator()): ... this and adjust.
10194 (collect_symtabs_from_filename): symtab_collector construction
10195 bits move to symtab_collector ctor. Pass the symtab_collector
10196 object directly as callback. Remove cleanups and use
10197 symtab_collector::release_symtabs instead.
10198 (collect_symbols): Delete.
10199 (add_matching_symbols_to_info): Use lambdas.
10200 * macrocmd.c (print_macro_callback): Delete.
10201 (info_macro_command): Use a lambda.
10202 (info_macros_command): Pass print_macro_definition as callable
10203 directly.
10204 (print_one_macro): Remove 'ignore' parameter.
10205 (macro_list_command): Adjust.
10206 * macrotab.c (macro_for_each_data::fn): Now a function_view.
10207 (macro_for_each_data::user_data): Delete field.
10208 (foreach_macro): Adjust to call the function_view.
10209 (macro_for_each): Adjust to use function_view as callback type.
10210 (foreach_macro_in_scope): Adjust to call the function_view.
10211 (macro_for_each_in_scope): Adjust to use function_view as callback
10212 type.
10213 * macrotab.h: Include "common/function-view.h".
10214 (macro_callback_fn): Declare a prototype instead of a pointer.
10215 Remove "user_data" parameter.
10216 (macro_for_each, macro_for_each_in_scope): Adjust to use
10217 function_view as callback type.
10218 * psymtab.c (partial_map_expand_apply)
10219 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
10220 Adjust to use function_view as callback type and to return bool.
10221 (psym_expand_symtabs_matching): Adjust to use function_view as
10222 callback types.
10223 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
10224 to use function_view as callback type and to return bool.
10225 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
10226 callback types.
10227 * symfile.c (expand_symtabs_matching): Adjust to use function_view
10228 as callback types.
10229 * symfile.h: Include "common/function-view.h".
10230 (expand_symtabs_file_matcher_ftype)
10231 (expand_symtabs_symbol_matcher_ftype)
10232 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
10233 return bool.
10234 (quick_symbol_functions::map_symtabs_matching_filename)
10235 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
10236 function_view as callback type and return bool.
10237 (expand_symtabs_matching): Adjust to use function_view as callback
10238 type.
10239 (maintenance_expand_name_matcher)
10240 (maintenance_expand_file_matcher): Delete.
10241 (maintenance_expand_symtabs): Use lambdas.
10242 * symtab.c (iterate_over_some_symtabs): Adjust to use
10243 function_view as callback types and return bool.
10244 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
10245 of a cleanup.
10246 (lookup_symtab_callback): Delete.
10247 (lookup_symtab): Use a lambda.
10248 (iterate_over_symbols): Adjust to use function_view as callback
10249 type.
10250 (struct search_symbols_data, search_symbols_file_matches)
10251 (search_symbols_name_matches): Delete.
10252 (search_symbols): Use a pair of lambdas.
10253 (struct add_name_data, add_macro_name, symbol_completion_matcher)
10254 (symtab_expansion_callback): Delete.
10255 (default_make_symbol_completion_list_break_on_1): Use lambdas.
10256 * symtab.h: Include "common/function-view.h".
10257 (iterate_over_some_symtabs): Adjust to use function_view as
10258 callback type and return bool.
10259 (iterate_over_symtabs): Adjust to use function_view as callback
10260 type.
10261 (symbol_found_callback_ftype): Remove 'data' parameter and return
10262 bool.
10263 (iterate_over_symbols): Adjust to use function_view as callback
10264 type.
10265
07e253aa
PA
102662017-02-23 Pedro Alves <palves@redhat.com>
10267
10268 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
10269 (%.o) <unittests/%.c>: New pattern.
10270 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
10271 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
10272 * common/function-view.h: New file.
10273 * unittests/function-view-selftests.c: New file.
10274 * configure: Regenerate.
10275
8eaf5320
SM
102762017-02-23 Simon Marchi <simon.marchi@ericsson.com>
10277
10278 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
10279 inferior_ptid.
10280 * go32-nat.c (go32_thread_alive): Likewise.
10281
38768751
YQ
102822017-02-23 Yao Qi <yao.qi@linaro.org>
10283
10284 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
10285 delete.
10286
0a8beaba
YQ
102872017-02-23 Yao Qi <yao.qi@linaro.org>
10288
10289 * varobj.c (varobj_clear_saved_item): Use delete instead of
10290 xfree.
10291 (update_dynamic_varobj_children): Likewise.
10292
58fdfd2c
JK
102932017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10294
10295 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
10296
1b90b139
SM
102972017-02-21 Simon Marchi <simon.marchi@ericsson.com>
10298
10299 * common/enum-flags.h (enum_flags::enum_flags): Initialize
10300 m_enum_value to 0 in default constructor.
10301
2039d74e
EBM
103022017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10303
10304 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
10305 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
10306 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
10307 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
10308 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
10309 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
10310 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
10311 IS_STORE_CONDITIONAL_INSN.
10312
7814882a
JK
103132017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10314
10315 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
10316
0ae60b63
JK
103172017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10318
10319 * NEWS (Changes since GDB 7.12): Add DWARF-5.
10320
0224619f
JK
103212017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10322
10323 * dwarf2read.c (skip_one_die, read_attribute_value)
10324 (dwarf2_const_value_attr, dump_die_shallow)
10325 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
10326 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
10327
0af92d60
JK
103282017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10329
10330 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
10331 (dwarf_parse_macro_header): Accept DWARF version 5.
10332 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
10333
216f72a1
JK
103342017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10335
10336 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
10337 DW_AT_GNU_*.
10338 * common/common-exceptions.h (enum errors): Likewise.
10339 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
10340 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
10341 (dwarf_expr_context::execute_stack_op): Likewise.
10342 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
10343 Likewise.
10344 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
10345 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10346 (show_entry_values_debug, call_site_to_target_addr)
10347 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
10348 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
10349 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
10350 (value_of_dwarf_block_entry, indirect_pieced_value)
10351 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
10352 (disassemble_dwarf_expression): Likewise.
10353 * dwarf2read.c (process_die, inherit_abstract_dies)
10354 (read_call_site_scope): Likewise.
10355 * gdbtypes.h (struct func_type, struct call_site_parameter)
10356 (struct call_site): Likewise.
10357 * stack.c (read_frame_arg): Likewise.
10358 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
10359
43988095
JK
103602017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10361
10362 * defs.h (read_unsigned_leb128): New declaration.
10363 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
10364 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
10365 (dwarf2_find_location_expression): Call also
10366 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
10367 * dwarf2loc.h (dwarf2_version): New declaration.
10368 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
10369 rnglists.
10370 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
10371 .debug_rnglists.
10372 (struct dwop_section_names): Add loclists_dwo.
10373 (dwop_section_names): Add .debug_loclists.dwo.
10374 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
10375 (struct dwarf2_per_cu_data): Add dwarf_version.
10376 (struct dwo_sections): Add loclists.
10377 (struct attr_abbrev): Add implicit_const.
10378 (read_indirect_line_string): New declaration.
10379 (read_unsigned_leb128): Delete declaration.
10380 (rcuh_kind): New definition.
10381 (read_and_check_comp_unit_head): Change parameter
10382 is_debug_types_section to section_kind.
10383 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
10384 (read_comp_unit_head): Change parameter abfd to section, add parameter
10385 section_kind. Handle DWARF-5.
10386 (error_check_comp_unit_head): Accept also DWARF version 5.
10387 (read_and_check_comp_unit_head): Change parameter
10388 is_debug_types_section to section_kind.
10389 (read_and_check_type_unit_head): Delete function.
10390 (read_abbrev_offset): Handle DWARF-5.
10391 (create_debug_type_hash_table): Add parameter section_kind. Process
10392 only DW_UT_type. Use signature and type_offset_in_tu from struct
10393 comp_unit_head.
10394 (create_debug_types_hash_table): Update create_debug_type_hash_table
10395 caller.
10396 (create_all_type_units): Call create_debug_type_hash_table.
10397 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
10398 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
10399 caller.
10400 (skip_one_die): Handle DW_FORM_implicit_const.
10401 (dwarf2_rnglists_process): New function.
10402 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
10403 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
10404 (read_attribute_value): Handle DW_FORM_implicit_const,
10405 DW_FORM_line_strp.
10406 (read_attribute): Handle DW_FORM_implicit_const.
10407 (read_indirect_string_at_offset_from): New function from
10408 read_indirect_string_at_offset.
10409 (read_indirect_string_at_offset): Call
10410 read_indirect_string_at_offset_from.
10411 (read_indirect_line_string_at_offset): New function.
10412 (read_indirect_string): New function comment.
10413 (read_indirect_line_string): New function.
10414 (read_unsigned_leb128): Make it global.
10415 (dwarf2_string_attr): Handle DWARF-5.
10416 (add_include_dir_stub, read_formatted_entries): New functions.
10417 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
10418 Handle DWARF-5.
10419 (per_cu_header_read_in): Update read_comp_unit_head caller.
10420 (dwarf2_version): New function.
10421 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
10422 rnglists.
10423 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
10424 fields.
10425
22d2f3ab
JK
104262017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10427
10428 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
10429
5f46c5a5
JK
104302017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10431
10432 * dwarf2read.c (dwarf2_ranges_process): New function from
10433 dwarf2_ranges_read.
10434 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
10435 dwarf2_ranges_process.
10436
78d4d2c5
JK
104372017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10438
10439 * dwarf2read.c (create_debug_type_hash_table): New function from
10440 create_debug_types_hash_table.
10441 (create_debug_types_hash_table): Call create_debug_type_hash_table.
10442 (create_all_type_units, open_and_init_dwo_file): Update
10443 create_debug_types_hash_table callers.
10444
1b076f25
SDJ
104452017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10446
10447 PR gdb/16188
10448 * fork-child.c (trace_start_error): Fix thinko. va_end should
10449 refer to 'ap', not 'args'.
10450
0db8980c
SDJ
104512017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10452 Pedro Alves <palves@redhat.com>
10453
10454 PR gdb/16188
10455 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10456 calls succeeded.
10457 * fork-child.c (trace_start_error): New function.
10458 (trace_start_error_with_name): Likewise.
10459 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10460 * inf-ptrace.c (inf_ptrace_me): Likewise.
10461 * inferior.h (trace_start_error): New prototype.
10462 (trace_start_error_with_name): Likewise.
10463
99e8a4f9
SDJ
104642017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10465
10466 PR gdb/21164
10467 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10468 NULL before using it.
10469 * symmisc.c (maintenance_print_symbols): Likewise.
10470 (maintenance_print_msymbols): Likewise.
10471
4e746bb6
TW
104722017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10473
10474 * NEWS: Add record Python bindings entry.
10475
104762017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10477
10478 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10479 py-record-full.o.
10480 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10481 * python/py-record-btrace.c, python/py-record-btrace.h,
10482 python/py-record-full.c, python/py-record-full.h: New file.
10483 * python/py-record.c: Add include for py-record-btrace.h and
10484 py-record-full.h.
10485 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10486 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10487 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10488 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10489 New definition.
10490 (gdbpy_initialize_btrace): New export.
10491 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10492
104932017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10494
10495 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10496 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10497 * python/py-record.c: New file.
10498 * python/python-internal.h (gdbpy_start_recording,
10499 gdbpy_current_recording, gdpy_stop_recording,
10500 gdbpy_initialize_record): New export.
10501 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10502 (python_GdbMethods): Add gdbpy_start_recording,
10503 gdbpy_current_recording and gdbpy_stop_recording.
10504
105052017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10506
10507 * record-btrace.c (record_btrace_record_method): New function.
10508 (init_record_btrace_ops): Initialize to_record_method.
10509 * record-full.c (record_full_record_method): New function.
10510 (init_record_full_ops, init_record_full_core_ops): Add
10511 record_full_record_method.
10512 * record.h (enum record_method): New enum.
10513 * target-debug.h (target_debug_print_enum_record_method: New define.
10514 * target-delegates.c: Regenerate.
10515 * target.c (target_record_method): New function.
10516 * target.h: Include record.h.
10517 (struct target_ops) <to_record_method>: New field.
10518 (target_record_method): New export.
10519
105202017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10521
10522 * record.h (record_start, record_stop): New export.
10523 * record.c (record_start, record_stop): New function.
10524
105252017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10526
10527 * btrace.c (btrace_fetch): Copy function call segments pointer
10528 into a vector.
10529 (btrace_clear): Clear the vector.
10530 (btrace_find_insn_by_number): Use binary search to find the correct
10531 function call segment.
10532 * btrace.h (brace_fun_p): New typedef.
10533 (struct btrace_thread_info) <functions>: New field.
10534
105352017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10536
10537 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10538 * btrace.c (btrace_decode_error): ... here. New function.
10539 * btrace.h (btrace_decode_error): New export.
10540
105412017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10542
10543 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10544 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10545 btrace_find_insn_by_number): Remove special case for gaps.
10546 * btrace.h (btrace_insn_get_error): New export.
10547 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10548 * record-btrace.c (btrace_insn_history): Print number for gaps.
10549 (record_btrace_info, record_btrace_goto): Handle gaps.
10550
3f77c769
TT
105512017-02-14 Tom Tromey <tom@tromey.com>
10552
10553 PR python/13598:
10554 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10555 event.
10556 * python/py-evts.c (gdbpy_initialize_py_events): Add
10557 before_prompt registry.
10558 * python/py-events.h (events_object) <before_prompt>: New field.
10559
4c2c7ac6
MM
105602017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10561
10562 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10563
5cf30ebf
LM
105642017-02-13 Luis Machado <lgustavo@codesourcery.com>
10565
10566 * symfile (_initialize_symfile): Add usage text to the load command's
10567 help text.
10568
26a06916
SM
105692017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10570
10571 * utils.c (defaulted_query): Don't query on secondary UIs.
10572
0b145e37
TT
105732017-02-10 Tom Tromey <tom@tromey.com>
10574
10575 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10576
2d8365c4
TT
105772017-02-10 Tom Tromey <tom@tromey.com>
10578
10579 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10580 "cleanup" local.
10581 * python/py-type.c (typy_legacy_template_argument): Remove
10582 unnecessary "cleanup" local.
10583
2bb8f231
TT
105842017-02-10 Tom Tromey <tom@tromey.com>
10585
10586 * python/python.c (do_start_initialization): New function, from
10587 _initialize_python.
10588 (_initialize_python): Call do_start_initialization.
10589 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10590 goto.
10591
1bdfaf42
TT
105922017-02-10 Tom Tromey <tom@tromey.com>
10593
10594 * python/py-prettyprint.c (pretty_print_one_value): Use
10595 gdbpy_ref.
10596
88b6faea
TT
105972017-02-10 Tom Tromey <tom@tromey.com>
10598
10599 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10600 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10601 gdbpy_ref.
10602 * python/py-type.c (field_new): Use gdbpy_ref.
10603 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10604 gdbpy_ref.
10605 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10606 (py_free_pspace): Likewise.
10607 (pspace_to_pspace_object): Likewise.
10608 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10609 (py_free_objfile): Likewise.
10610 (objfile_to_objfile_object): Likewise.
10611 * python/py-inferior.c (delete_thread_object): Use
10612 gdbpy_ref.
10613 (infpy_read_memory): Likewise.
10614 (py_free_inferior): Likewise.
10615 * python/py-evtregistry.c (create_eventregistry_object): Use
10616 gdbpy_ref.
10617 * python/py-event.c (create_event_object): Use gdbpy_ref.
10618
7780f186
TT
106192017-02-10 Tom Tromey <tom@tromey.com>
10620
10621 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10622 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10623 used.
10624 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10625 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10626 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10627 python/py-framefilter.c, python/py-function.c,
10628 python/py-inferior.c, python/py-infevents.c,
10629 python/py-linetable.c, python/py-newobjfileevent.c,
10630 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10631 python/py-signalevent.c, python/py-stopevent.c,
10632 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10633 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10634 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10635 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10636
d4b0bb18
TT
106372017-02-10 Tom Tromey <tom@tromey.com>
10638
10639 * ui-out.h (ui_out_emit_type): New class.
10640 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10641 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10642 and ui_out_emit_tuple.
10643 (enumerate_locals): Likewise.
10644 (py_mi_print_variables, py_print_locals, py_print_args): Use
10645 ui_out_emit_list.
10646 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10647 ui_out_emit_list.
10648 * common/gdb_optional.h: New file.
10649
f67f945c
MG
106502017-02-10 Martin Galvan <martingalvan@sourceware.org>
10651
10652 * MAINTAINERS (Write After Approval): Update my e-mail address.
10653
18da0c51
MG
106542017-02-10 Martin Galvan <martingalvan@sourceware.org>
10655
10656 PR gdb/21122
10657 * breakpoint.c (_initialize_breakpoint): Update the help description
10658 of the 'commands' command to indicate that it takes a list argument.
10659
62c14536
SM
106602017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10661
10662 * interps.c (current_interp_set_logging): Remove "return".
10663
ff6fa247
GB
106642017-02-09 Gary Benson <gbenson@redhat.com>
10665
10666 * symtab.c (add_symtab_completions): Prevent NULL pointer
10667 dereference.
10668
a474bd8e
PA
106692017-02-08 Pedro Alves <palves@redhat.com>
10670
10671 * interps.c (interp::interp): Remove reference to quiet_p.
10672 (interp_set): Make static. Remove dead "Switching to" output
10673 code.
10674 (interp_quiet_p, interp_set_quiet): Delete.
10675 (interpreter_exec_cmd): Don't set the interpreter quiet.
10676 * interps.h (interp_quiet_p): Make static.
10677 (class interp) <quiet_p>: Remove field
10678
3d7b173c
JG
106792017-02-08 Jerome Guitton <guitton@adacore.com>
10680
604c4576
JG
10681 * cli/cli-decode.c (find_command_name_length): Make it extern.
10682 * cli/cli-decode.h (find_command_name_length): Declare.
10683 * cli/cli-script.c (command_name_equals, line_first_arg):
10684 New functions.
10685 (process_next_line): Use cli-decode to parse command names.
10686 (build_command_line): Make args a constant pointer.
10687
106882017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 10689
3d7b173c
JG
10690 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10691 Remove case-insensitive search.
10692
1291063d
JM
106932017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10694
10695 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10696 at the end of the line. Avoids an ARI warning.
10697
20b477a7
LM
106982017-02-06 Luis Machado <lgustavo@codesourcery.com>
10699
10700 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10701 rdseed instructions.
10702 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10703
3f7b46f2
IR
107042017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10705
10706 PR tdep/20936
10707 Provide and use sparc32 and sparc64 target description XML files.
10708 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10709 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10710 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10711 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10712 * features/sparc/sparc32-solaris.xml: New file.
10713 * features/sparc/sparc64-solaris.xml: New file.
10714 * features/sparc/sparc32-solaris.c: Generated.
10715 * features/sparc/sparc64-solaris.c: Generated.
10716 * sparc-tdep.h: Account for differences in target descriptions.
10717 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10718 (sparc32_register_type): Use target provided registers.
10719 (validate_tdesc_registers): New function.
10720 (sparc32_gdbarch_init): Use tdesc_has_registers.
10721 Set pseudoregister functions.
10722 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10723 (sparc64_register_type): Use target provided registers.
10724 (sparc64_init_abi): Set pseudoregister functions.
10725
f0fd41c1
TT
107262017-02-03 Tom Tromey <tom@tromey.com>
10727
10728 PR rust/21097:
10729 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10730 with a single member.
10731
d6f9b0fb
PA
107322017-02-03 Pedro Alves <palves@redhat.com>
10733
10734 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10735 (cli_interp_base::~cli_interp_base): New.
10736 (cli_interp): New struct.
10737 (as_cli_interp): Cast the interp itself to cli_interp.
10738 (cli_interpreter_pre_command_loop): Rename to ...
10739 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10740 parameter.
10741 (cli_interpreter_init): Rename to ...
10742 (cli_interp::init): ... this. Remove 'self' parameter. Use
10743 boolean. Make extern.
10744 (cli_interpreter_resume): Rename to ...
10745 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10746 extern.
10747 (cli_interpreter_suspend): Rename to ...
10748 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10749 extern.
10750 (cli_interpreter_exec): Rename to ...
10751 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10752 extern.
10753 (cli_interpreter_supports_command_editing): Rename to ...
10754 (cli_interp_base::supports_command_editing): ... this. Remove
10755 'interp' parameter. Make extern.
10756 (cli_ui_out): Rename to ...
10757 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10758 Make extern.
10759 (cli_set_logging): Rename to ...
10760 (cli_interp_base::set_logging): ... this. Remove 'interp'
10761 parameter. Make extern.
10762 (cli_interp_procs): Delete.
10763 (cli_interp_factory): Adjust to use "new".
10764 * cli/cli-interp.h: Include "interps.h".
10765 (struct cli_interp_base): New struct.
10766 * interps.c (struct interp): Delete. Fields moved to interps.h.
10767 (interp_new): Delete.
10768 (interp::interp, interp::~interp): New.
10769 (interp_set): Use bool, and return void. Assume the interpreter
10770 has suspend, init and resume methods, and that the all return
10771 void.
10772 (set_top_level_interpreter): interp_set returns void.
10773 (interp_ui_out): Adapt.
10774 (current_interp_set_logging): Adapt.
10775 (interp_data): Delete.
10776 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10777 (interp_exec): Adapt.
10778 (top_level_interpreter_data): Delete.
10779 * interps.h (interp_init_ftype, interp_resume_ftype)
10780 (interp_suspend_ftype, interp_exec_ftype)
10781 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10782 (class interp): New.
10783 (interp_new): Delete.
10784 (interp_set): Now returns void. Use bool.
10785 (interp_data, top_level_interpreter_data): Delete.
10786 * mi/mi-common.h: Include interps.h.
10787 (class mi_interp): Inherit from interp. Define a ctor. Declare
10788 init, resume, suspect, exec, interp_ui_out, set_logging and
10789 pre_command_loop methods.
10790 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10791 (mi_interpreter_init): Rename to ...
10792 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10793 bool, return void and make extern. Adjust.
10794 (mi_interpreter_resume): ... Rename to ...
10795 (mi_interp::resume): ... this. Remove the 'data' parameter,
10796 return void and make extern. Adjust.
10797 (mi_interpreter_suspend): ... Rename to ...
10798 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10799 return void and make extern. Adjust.
10800 (mi_interpreter_exec): ... Rename to ...
10801 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10802 extern. Adjust.
10803 (mi_interpreter_pre_command_loop): ... Rename to ...
10804 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10805 parameter and make extern.
10806 (mi_on_normal_stop_1): Adjust.
10807 (mi_ui_out): Rename to ...
10808 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10809 parameter and make extern. Adjust.
10810 (mi_set_logging): Rename to ...
10811 (mi_interp::set_logging): ... this. Remove the 'interp'
10812 parameter and make extern. Adjust.
10813 (mi_interp_procs): Delete.
10814 (mi_interp_factory): Adjust to use 'new'.
10815 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10816 (mi_print_exception, mi_execute_command, mi_load_progress):
10817 Adjust.
10818 * tui/tui-interp.c (tui_interp): New class.
10819 (as_tui_interp): Return a tui_interp pointer.
10820 (tui_on_normal_stop, tui_on_signal_received)
10821 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10822 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10823 to use interp::interp_ui_out.
10824 (tui_init): Rename to ...
10825 (tui_interp::init): ... this. Remove the 'self' parameter, use
10826 bool, return void and make extern. Adjust.
10827 (tui_resume): Rename to ...
10828 (tui_interp::resume): ... this. Remove the 'data' parameter,
10829 return void and make extern. Adjust.
10830 (tui_suspend): Rename to ...
10831 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10832 return void and make extern. Adjust.
10833 (tui_ui_out): Rename to ...
10834 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10835 parameter, and make extern. Adjust.
10836 (tui_exec): Rename to ...
10837 (tui_interp::exec): ... this. Remove the 'data' parameter and
10838 make extern.
10839 (tui_interp_procs): Delete.
10840 (tui_interp_factory): Use "new".
10841
65c40c95
TT
108422017-02-02 Tom Tromey <tom@tromey.com>
10843
10844 * rust-exp.y (ends_raw_string, space_then_number)
10845 (rust_identifier_start_p): Return bool.
10846 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10847 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10848 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10849 (rust_chartype_p): Return bool.
10850 (val_print_struct, rust_print_struct_def, rust_print_type):
10851 Update.
10852 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10853 Return bool.
10854
b50f188d
TT
108552017-02-02 Tom Tromey <tom@tromey.com>
10856
10857 * rust-lang.c: Reindent.
10858
03c85b11
TT
108592017-02-02 Tom Tromey <tom@tromey.com>
10860
10861 * rust-lang.h (rust_crate_for_block): Update.
10862 * rust-lang.c (rust_crate_for_block): Return std::string.
10863 (rust_get_disr_info): Use std:;string, not
10864 gdb::unique_xmalloc_ptr.
10865 * rust-exp.y (crate_name): Update.
10866
9b6da501
PA
108672017-02-02 Pedro Alves <palves@redhat.com>
10868
10869 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10870 field out of gdb_disassembler_test and make it static.
10871
ec4cb20b
PA
108722017-02-02 Pedro Alves <palves@redhat.com>
10873
10874 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10875 mi1_interp and mi_interp fields.
10876
5be5dbf0
PA
108772017-02-02 Pedro Alves <palves@redhat.com>
10878
616268b6
PA
10879 * cli/cli-interp.c (struct saved_output_files, saved_output):
10880 Moved from cli/cli-logging.c.
10881 (cli_set_logging): New function.
10882 (cli_interp_procs): Install cli_set_logging.
10883 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10884 Declare.
10885 * cli/cli-logging.c (struct saved_output_files, saved_output):
10886 Moved to cli/cli-interp.c.
10887 (pop_output_files): Don't save outputs here.
10888 (make_logging_output): New function.
10889 (handle_redirections): Don't build tee nor save previous outputs
10890 here.
10891 * interps.c (current_interp_set_logging): Change prototype.
10892 Assume there's always a set_logging_proc method installed.
10893 * interps.h (interp_set_logging_ftype): Change prototype.
10894 (current_interp_set_logging): Change prototype and adjust comment.
10895 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10896 use make_logging_output.
10897 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
108982017-02-02 Pedro Alves <palves@redhat.com>
10899
5be5dbf0
PA
10900 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10901 from ...
10902 (set_logging_overwrite): ... here.
10903 (logging_no_redirect_file): Delete.
10904 (set_logging_redirect): Don't handle redirection on the fly.
10905 Instead warn that "logging off" / "logging on" is necessary.
10906 (pop_output_files): Delete references to logging_no_redirect_file.
10907 (show_logging_command): Always speak in terms of what will happen
10908 once logging is reenabled.
10909
c99cc448
PA
109102017-02-02 Pedro Alves <palves@redhat.com>
10911
10912 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10913
8b172ce7
PA
109142017-02-02 Pedro Alves <palves@redhat.com>
10915
10916 * disasm.c (gdb_pretty_print_insn): Rename to ...
10917 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10918 Remove gdbarch parameter. Adapt to clear the object's buffers
10919 instead of allocating new buffers, and to print using the object's
10920 gdb_disassembler instead of calling gdb_print_insn.
10921 (dump_insns): Use gdb_pretty_print_disassembler.
10922 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10923 (gdb_pretty_print_disassembler): New class.
10924 * record-btrace.c (btrace_insn_history): Use
10925 gdb_pretty_print_disassembler.
10926
d7e74731
PA
109272017-02-02 Pedro Alves <palves@redhat.com>
10928
10929 * ada-lang.c (type_as_string): Use string_file.
10930 * ada-valprint.c (ada_print_floating): Use string_file.
10931 * ada-varobj.c (ada_varobj_scalar_image)
10932 (ada_varobj_get_value_image): Use string_file.
10933 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10934 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10935 * breakpoint.c (update_inserted_breakpoint_locations)
10936 (insert_breakpoint_locations, reattach_breakpoints)
10937 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10938 (print_it_watchpoint): Use string_file.
10939 (save_breakpoints): Use stdio_file.
10940 * c-exp.y (oper): Use string_file.
10941 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10942 tee_file.
10943 (pop_output_files): Use delete.
10944 (handle_redirections): Use stdio_file and tee_file.
10945 * cli/cli-setshow.c (do_show_command): Use string_file.
10946 * compile/compile-c-support.c (c_compute_program): Use
10947 string_file.
10948 * compile/compile-c-symbols.c (generate_vla_size): Take a
10949 'string_file &' instead of a 'ui_file *'.
10950 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10951 of a 'ui_file *'. Use string_file.
10952 (generate_c_for_variable_locations): Take a 'string_file &'
10953 instead of a 'ui_file *'.
10954 * compile/compile-internal.h (generate_c_for_for_one_variable):
10955 Take a 'string_file &' instead of a 'ui_file *'.
10956 * compile/compile-loc2c.c (push, pushf, unary, binary)
10957 (print_label, pushf_register_address, pushf_register)
10958 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10959 'ui_file *'. Adjust.
10960 * compile/compile.c (compile_to_object): Use string_file.
10961 * compile/compile.h (compile_dwarf_expr_to_c)
10962 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10963 'ui_file *'.
10964 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10965 (replace_typedefs_qualified_name): Use string_file and
10966 obstack_copy0.
10967 * disasm.c (gdb_pretty_print_insn): Use string_file.
10968 (gdb_disassembly): Adjust reference the null_stream global.
10969 (do_ui_file_delete): Delete.
10970 (gdb_insn_length): Use null_stream.
10971 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10972 * dwarf2loc.c (dwarf2_compile_property_to_c)
10973 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10974 'string_file &' instead of a 'ui_file *'.
10975 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10976 * dwarf2read.c (do_ui_file_peek_last): Delete.
10977 (dwarf2_compute_name): Use string_file.
10978 * event-top.c (gdb_setup_readline): Use stdio_file.
10979 * gdbarch.sh (verify_gdbarch): Use string_file.
10980 * gdbtypes.c (safe_parse_type): Use null_stream.
10981 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10982 string_file.
10983 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10984 'string_file *' instead of a 'ui_file *'.
10985 (gdbscm_arch_disassemble): Use string_file.
10986 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10987 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10988 inherits from ui_file.
10989 (ioscm_file_port_delete, ioscm_file_port_rewind)
10990 (ioscm_file_port_put): Delete.
10991 (ioscm_file_port_write): Rename to ...
10992 (ioscm_file_port::write): ... this. Remove file_port_magic
10993 checks.
10994 (ioscm_file_port_new): Delete.
10995 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10996 ui_file_up.
10997 * guile/scm-type.c (tyscm_type_name): Use string_file.
10998 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10999 Use string_file.
11000 * infcmd.c (print_return_value_1): Use string_file.
11001 * infrun.c (print_target_wait_results): Use string_file.
11002 * language.c (add_language): Use string_file.
11003 * location.c (explicit_to_string_internal): Use string_file.
11004 * main.c (captured_main_1): Use null_file.
11005 * maint.c (maintenance_print_architecture): Use stdio_file.
11006 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
11007 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
11008 event_channel>: Change type to mi_console_file pointer.
11009 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
11010 (mi_console_file_delete): Delete.
11011 (struct mi_console_file): Delete.
11012 (mi_console_file_magic): Delete.
11013 (mi_console_file_new): Delete.
11014 (mi_console_file::mi_console_file): New.
11015 (mi_console_file_delete): Delete.
11016 (mi_console_file_fputs): Delete.
11017 (mi_console_file::write): New.
11018 (mi_console_raw_packet): Delete.
11019 (mi_console_file::flush): New.
11020 (mi_console_file_flush): Delete.
11021 (mi_console_set_raw): Rename to ...
11022 (mi_console_file::set_raw): ... this.
11023 * mi/mi-console.h (class mi_console_file): New class.
11024 (mi_console_file_new, mi_console_set_raw): Delete.
11025 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
11026 (mi_set_logging): Use delete and tee_file. Adjust.
11027 * mi/mi-main.c (output_register): Use string_file.
11028 (mi_cmd_data_evaluate_expression): Use string_file.
11029 (mi_cmd_data_read_memory): Use string_file.
11030 (mi_cmd_execute, print_variable_or_computed): Use string_file.
11031 * mi/mi-out.c (mi_ui_out::main_stream): New.
11032 (mi_ui_out::rewind): Use main_stream and
11033 string_file.
11034 (mi_ui_out::put): Use main_stream and string_file.
11035 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11036 Allocate a 'string_file' instead.
11037 (mi_out_new): Don't allocate a mem_fileopen stream here.
11038 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11039 (mi_ui_out::main_stream): Declare method.
11040 * printcmd.c (eval_command): Use string_file.
11041 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
11042 * python/py-arch.c (archpy_disassemble): Use string_file.
11043 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
11044 * python/py-frame.c (frapy_str): Use string_file.
11045 * python/py-framefilter.c (py_print_type, py_print_single_arg):
11046 Use string_file.
11047 * python/py-type.c (typy_str): Use string_file.
11048 * python/py-unwind.c (unwind_infopy_str): Use string_file.
11049 * python/py-value.c (valpy_str): Use string_file.
11050 * record-btrace.c (btrace_insn_history): Use string_file.
11051 * regcache.c (regcache_print): Use stdio_file.
11052 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
11053 * remote.c (escape_buffer): Use string_file.
11054 * rust-lang.c (rust_get_disr_info): Use string_file.
11055 * serial.c (serial_open_ops_1): Use stdio_file.
11056 (do_serial_close): Use delete.
11057 * stack.c (print_frame_arg): Use string_file.
11058 (print_frame_args): Remove local mem_fileopen stream, not used.
11059 (print_frame): Use string_file.
11060 * symmisc.c (maintenance_print_symbols): Use stdio_file.
11061 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
11062 Take a 'string_file *' instead of a 'ui_file *'.
11063 * top.c (new_ui): Use stdio_file and stderr_file.
11064 (free_ui): Use delete.
11065 (execute_command_to_string): Use string_file.
11066 (quit_confirm): Use string_file.
11067 * tracepoint.c (collection_list::append_exp): Use string_file.
11068 * tui/tui-disasm.c (tui_disassemble): Use string_file.
11069 * tui/tui-file.c: Don't include "ui-file.h".
11070 (enum streamtype, struct tui_stream): Delete.
11071 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
11072 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
11073 (tui_file::tui_file): New method.
11074 (tui_file_fputs): Delete.
11075 (tui_file_get_strbuf): Delete.
11076 (tui_file::puts): New method.
11077 (tui_file_adjust_strbuf): Delete.
11078 (tui_file_flush): Delete.
11079 (tui_file::flush): New method.
11080 * tui/tui-file.h: Tweak intro comment.
11081 Include ui-file.h.
11082 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
11083 (tui_file_adjust_strbuf): Delete declarations.
11084 (class tui_file): New class.
11085 * tui/tui-io.c (tui_initialize_io): Use tui_file.
11086 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
11087 (tui_register_format): Use string_stream.
11088 * tui/tui-stack.c (tui_make_status_line): Use string_file.
11089 (tui_get_function_from_frame): Use string_file.
11090 * typeprint.c (type_to_string): Use string_file.
11091 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
11092 (null_stream): New global.
11093 (ui_file_delete): Delete.
11094 (ui_file::ui_file): New.
11095 (null_file_isatty): Delete.
11096 (ui_file::~ui_file): New.
11097 (null_file_rewind): Delete.
11098 (ui_file::printf): New.
11099 (null_file_put): Delete.
11100 (null_file_flush): Delete.
11101 (ui_file::putstr): New.
11102 (null_file_write): Delete.
11103 (ui_file::putstrn): New.
11104 (null_file_read): Delete.
11105 (ui_file::putc): New.
11106 (null_file_fputs): Delete.
11107 (null_file_write_async_safe): Delete.
11108 (ui_file::vprintf): New.
11109 (null_file_delete): Delete.
11110 (null_file::write): New.
11111 (null_file_fseek): Delete.
11112 (null_file::puts): New.
11113 (ui_file_data): Delete.
11114 (null_file::write_async_safe): New.
11115 (gdb_flush, ui_file_isatty): Adjust.
11116 (ui_file_put, ui_file_rewind): Delete.
11117 (ui_file_write): Adjust.
11118 (ui_file_write_for_put): Delete.
11119 (ui_file_write_async_safe, ui_file_read): Adjust.
11120 (ui_file_fseek): Delete.
11121 (fputs_unfiltered): Adjust.
11122 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
11123 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
11124 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
11125 (set_ui_file_data): Delete.
11126 (string_file::~string_file, string_file::write)
11127 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
11128 (do_ui_file_as_string, ui_file_as_string): Delete.
11129 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
11130 (struct mem_file): Delete.
11131 (mem_file_new): Delete.
11132 (stdio_file::stdio_file): New.
11133 (mem_file_delete): Delete.
11134 (stdio_file::stdio_file): New.
11135 (mem_fileopen): Delete.
11136 (stdio_file::~stdio_file): New.
11137 (mem_file_rewind): Delete.
11138 (stdio_file::set_stream): New.
11139 (mem_file_put): Delete.
11140 (stdio_file::open): New.
11141 (mem_file_write): Delete.
11142 (stdio_file_magic, struct stdio_file): Delete.
11143 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
11144 (stdio_file::flush): New.
11145 (stdio_file_read): Rename to ...
11146 (stdio_file::read): ... this. Adjust.
11147 (stdio_file_write): Rename to ...
11148 (stdio_file::write): ... this. Adjust.
11149 (stdio_file_write_async_safe): Rename to ...
11150 (stdio_file::write_async_safe) ... this. Adjust.
11151 (stdio_file_fputs): Rename to ...
11152 (stdio_file::puts) ... this. Adjust.
11153 (stdio_file_isatty): Delete.
11154 (stdio_file_fseek): Delete.
11155 (stdio_file::isatty): New.
11156 (stderr_file_write): Rename to ...
11157 (stderr_file::write) ... this. Adjust.
11158 (stderr_file_fputs): Rename to ...
11159 (stderr_file::puts) ... this. Adjust.
11160 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
11161 (stderr_file::stderr_file): New.
11162 (tee_file_magic): Delete.
11163 (struct tee_file): Delete.
11164 (tee_file::tee_file): New.
11165 (tee_file_new): Delete.
11166 (tee_file::~tee_file): New.
11167 (tee_file_delete): Delete.
11168 (tee_file_flush): Rename to ...
11169 (tee_file::flush): ... this. Adjust.
11170 (tee_file_write): Rename to ...
11171 (tee_file::write): ... this. Adjust.
11172 (tee_file::write_async_safe): New.
11173 (tee_file_fputs): Rename to ...
11174 (tee_file::puts): ... this. Adjust.
11175 (tee_file_isatty): Rename to ...
11176 (tee_file::isatty): ... this. Adjust.
11177 * ui-file.h (struct obstack, struct ui_file): Don't
11178 forward-declare.
11179 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
11180 (ui_file_write_ftype)
11181 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
11182 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
11183 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
11184 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
11185 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
11186 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
11187 (set_ui_file_fseek): Delete.
11188 (ui_file_data, ui_file_delete, ui_file_rewind)
11189 (struct ui_file): New.
11190 (ui_file_up): New.
11191 (class null_file): New.
11192 (null_stream): Declare.
11193 (ui_file_write_for_put, ui_file_put): Delete.
11194 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
11195 Delete.
11196 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
11197 (gdb_fopen, tee_file_new): Delete.
11198 (struct string_file): New.
11199 (struct stdio_file): New.
11200 (stdio_file_up): New.
11201 (struct stderr_file): New.
11202 (class tee_file): New.
11203 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
11204 of a 'ui_file *'. Adjust.
11205 * ui-out.h (class ui_out) <field_stream>: Likewise.
11206 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
11207 (null_stream): Delete.
11208 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
11209 Adjust.
11210 * utils.h (struct ui_file): Delete forward declaration..
11211 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
11212 (error_stream): Take a 'string_file &' instead of a
11213 'ui_file *'.
11214 * varobj.c (varobj_value_get_print_value): Use string_file.
11215 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
11216 * gdbarch.c: Regenerate.
11217
187808b0
PA
112182017-02-02 Pedro Alves <palves@redhat.com>
11219
11220 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
11221 (gdb_pretty_print_insn): ... this. Now a free function. Add back
11222 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
11223 Adjust to call gdb_print_insn instead of
11224 gdb_disassembler::print_insn.
11225 (dump_insns, do_mixed_source_and_assembly_deprecated)
11226 (do_mixed_source_and_assembly, do_assembly_only): Add back a
11227 'gdbarch' parameter. Remove gdb_disassembler parameter.
11228 (gdb_disassembly): Don't allocate a gdb_disassembler here.
11229 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
11230 declaration.
11231 (gdb_pretty_print_insn): Re-add declaration.
11232 * record-btrace.c (btrace_insn_history): Don't allocate a
11233 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
11234
7a8eb317
SM
112352017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
11236
11237 * disasm.h (gdb_disassembly): Remove file_string parameter.
11238 * disasm.c (gdb_disassembly): Likewise.
11239 * cli/cli-cmds.c (print_disassembly): Adapt.
11240 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
11241 * stack.c (do_gdb_disassembly): Likewise.
11242
7346ef59
AA
112432017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
11244
11245 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
11246 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
11247 targets. And if the implicit value is longer than needed, extract
11248 the first bytes instead of the "least significant" ones.
11249
cd4007e4
MM
112502017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11251
11252 * btrace.c (btrace_enable): Do not call btrace_add_pc for
11253 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
11254 (btrace_fetch): Assert can_access_registers_ptid.
11255 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
11256 validate_registers_access.
11257
cf77c34e
MM
112582017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11259
11260 * gdbthread.h (can_access_registers_ptid): New.
11261 * thread.c (can_access_registers_ptid): New.
11262
be85ce7d
PA
112632017-02-01 Pedro Alves <palves@redhat.com>
11264
11265 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
11266
29b0b251
PA
112672017-01-31 Pedro Alves <palves@redhat.com>
11268
11269 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
11270 Fix typos.
11271
289b5b24
PA
112722017-01-31 Pedro Alves <palves@redhat.com>
11273
11274 * stack.c (print_frame_args): Remove local mem_fileopen stream,
11275 not used.
11276
b47413b4
PA
112772017-01-31 Pedro Alves <palves@redhat.com>
11278
11279 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
11280
60adb36c
PA
112812017-01-31 Pedro Alves <palves@redhat.com>
11282
11283 * common/scoped_restore.h
11284 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
11285 change the value's parameter type to T2.
11286 (make_scoped_restore): Likewise.
11287
2735833d
WT
112882017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11289 Richard Henderson <rth@redhat.com>
11290
11291 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
11292 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
11293 GS_BASE for older kernels.
11294 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
11295 GS_BASE for older kernels.
11296 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
11297 and GS_BASE to the offset table.
11298 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
11299 system register group.
11300 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
11301 for older kernels.
11302 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
11303 amd64 ABI.
11304 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
11305 AMD64_GSBASE_REGNUM.
11306 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
11307 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
11308 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
11309 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
11310 i386/64bit-segments.xml in those rules.
11311 * features/i386/64bit-segments.xml: New file.
11312 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
11313 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
11314 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
11315 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
11316 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
11317 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
11318 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
11319 * features/i386/amd64-avx-linux.c: Regenerated.
11320 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
11321 * features/i386/amd64-avx-mpx.c: Regenerated.
11322 * features/i386/amd64-avx512-linux.c: Regenerated.
11323 * features/i386/amd64-linux.c: Regenerated.
11324 * features/i386/amd64-mpx-linux.c: Regenerated.
11325 * features/i386/i386-avx-mpx-linux.c: Regenerated.
11326 * features/i386/i386-avx-mpx.c: Regenerated.
11327 * features/i386/x32-avx-linux.c: Regenerated.
11328 * features/i386/x32-avx512-linux.c: Regenerated.
11329 * regformats/i386/amd64-avx-linux.dat: Regenerated.
11330 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
11331 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
11332 * regformats/i386/amd64-linux.dat: Regenerated.
11333 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
11334 * regformats/i386/x32-avx-linux.dat: Regenerated.
11335 * regformats/i386/x32-avx512-linux.dat: Regenerated.
11336 * regformats/i386/x32-linux.dat: Regenerated.
11337
8884e97e
WT
113382017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11339
11340 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
11341 Set to AMD64_NUM_REGS.
11342
7005d26a
WT
113432017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11344
11345 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
11346 that checks validity of a register number.
11347
4bd2e1b2
KC
113482017-01-27 Kees Cook <keescook@google.com>
11349
11350 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
11351 fetch_fpregs if target has fpa registers.
11352 (arm_linux_store_inferior_registers): Call store_fpregs if target
11353 has fpa registers.
11354
7cf1de6c
AA
113552017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
11356
11357 * cris-tdep.c (cris_gdbarch_init): Remove check for
11358 info.byte_order and force it to BFD_ENDIAN_LITTLE.
11359
874a1c8c
AT
113602017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11361
11362 * corelow.c (get_core_register_section): Check for regset
11363 existence before checking for REGSET_VARIABLE_SIZE.
11364
d8b49cf0
YQ
113652017-01-26 Yao Qi <yao.qi@linaro.org>
11366 Pedro Alves <palves@redhat.com>
11367
11368 PR gdb/20939
11369 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
11370 call memory_error, save memaddr instead.
11371 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
11372 negative, cal memory_error.
11373 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
11374
658ca58c
YQ
113752017-01-26 Yao Qi <yao.qi@linaro.org>
11376
11377 * disasm-selftests.c (memory_error_test): New function.
11378 (_initialize_disasm_selftests): Register memory_error_test.
11379
79843d45
YQ
113802017-01-26 Yao Qi <yao.qi@linaro.org>
11381
11382 * Makefile.in (SFILES): Add disasm-selftests.c and
11383 selftest-arch.c.
11384 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
11385 * disasm-selftests.c: New file.
11386 * selftest-arch.c: New file.
11387 * selftest-arch.h: New file.
11388
8cafda32
YQ
113892017-01-26 Yao Qi <yao.qi@linaro.org>
11390
11391 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
11392 to bfd_arch_mep. Don't return 0 if section is not
11393 found. Call print_insn_mep.
11394
e47ad6c0
YQ
113952017-01-26 Pedro Alves <palves@redhat.com>
11396 Yao Qi <yao.qi@linaro.org>
11397
11398 * arm-tdep.c: Include "disasm.h".
11399 (gdb_print_insn_arm): Update code to get gdbarch.
11400 * disasm.c (dis_asm_read_memory): Change it to
11401 gdb_disassembler::dis_asm_read_memory.
11402 (dis_asm_memory_error): Likewise.
11403 (dis_asm_print_address): Likewise.
11404 (gdb_pretty_print_insn): Change it to
11405 gdb_disassembler::pretty_print_insn.
11406 (dump_insns): Add one argument gdb_disassemlber. All
11407 callers updated.
11408 (do_mixed_source_and_assembly_deprecated): Likewise.
11409 (do_mixed_source_and_assembly): Likewise.
11410 (do_assembly_only): Likewise.
11411 (gdb_disassembler::gdb_disassembler): New.
11412 (gdb_disassembler::print_insn): New.
11413 * disasm.h (class gdb_disassembler): New.
11414 (gdb_pretty_print_insn): Remove declaration.
11415 (gdb_disassemble_info): Likewise.
11416 * guile/scm-disasm.c (class gdbscm_disassembler): New.
11417 (gdbscm_disasm_read_memory_worker): Update.
11418 (gdbscm_disasm_read_memory): Update.
11419 (gdbscm_disasm_memory_error): Remove.
11420 (gdbscm_disasm_print_address): Remove.
11421 (gdbscm_disassembler::gdbscm_disassembler): New.
11422 (gdbscm_print_insn_from_port): Update.
11423 * mips-tdep.c: Include disasm.h.
11424 (gdb_print_insn_mips): Update code to get gdbarch.
11425 * record-btrace.c (btrace_insn_history): Update.
11426 * spu-tdep.c: Include disasm.h.
11427 (struct spu_dis_asm_data): Remove.
11428 (struct spu_dis_asm_info): New.
11429 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
11430 SPU id.
11431 (gdb_print_insn_spu): Cast disassemble_info to
11432 spu_dis_asm_info.
11433
80d75874
YQ
114342017-01-26 Yao Qi <yao.qi@linaro.org>
11435
11436 * disasm.c (do_ui_file_delete): Delete.
11437 (gdb_insn_length): Move code creating stream to ...
11438 * utils.c (null_stream): ... here. New function.
11439 * utils.h (null_stream): Declare.
11440
60685cd0
SM
114412017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11442
11443 * python/py-inferior.c (find_thread_object): Return directly
11444 from the loop. Remove "found" variable.
11445
eb1cdb62
JB
114462017-01-21 Joel Brobecker <brobecker@adacore.com>
11447
11448 GDB 7.12.1 released.
11449
b1ce6568
SM
114502017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11451
11452 * python/py-function.c (fnpy_call): Reorder declarations to have
11453 the gdbpy_enter object declared first.
11454 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11455
6f8b0407
SM
114562017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11457
fec93fb1 11458 PR python/21068
6f8b0407
SM
11459 * python/python-internal.h (PyMem_RawMalloc): Define for
11460 Python < 3.4.
11461 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11462 PyMem_RawMalloc instead of PyMem_Malloc.
11463
78cbbba8
LM
114642017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11465 Luis Machado <lgustavo@codesourcery.com>
11466
11467 * NEWS (New commands): Mention flash-erase.
11468 (New MI commands): Mention target-flash-erase.
11469 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11470 command.
11471 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11472 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11473 * target.c (flash_erase_command): New function.
11474 (initialize_targets): Add new flash-erase command.
11475 * target.h (flash_erase_command): New declaration.
11476
2132fe85
JB
114772017-01-20 Joel Brobecker <brobecker@adacore.com>
11478
11479 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11480 HAVE_SYS_PROCFS_H is defined.
11481
d1dff226
AH
114822017-01-18 Alan Hayward <alan.hayward@arm.com>
11483
11484 * remote.c (struct cached_reg): Change data into a pointer.
11485 * (stop_reply_dtr): Free data pointers before deleting vector.
11486 (process_stop_reply): Likewise.
11487 (remote_parse_stop_reply): Allocate space for data
11488
9890e433
AH
114892017-01-18 Alan Hayward <alan.hayward@arm.com>
11490
11491 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11492 MAX_REGISTER_SIZE.
11493 (amd64_pseudo_register_read_value): Likewise.
11494 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11495 (store_register_using_P): Likewise.
11496 * regcache.c (regcache_xfer_part): Likewise.
11497
7a36499a
IR
114982017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11499
11500 Split real and pseudo registers.
11501 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11502 (sparc32_pseudo_regnum): New enum.
11503 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11504 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11505 (SPARC32_CP0_REGISTERS): New macro.
11506 (sparc32_pseudo_register_name): New function.
11507 (sparc32_register_name): Use sparc32_pseudo_register_name.
11508 (sparc32_pseudo_register_type): New function.
11509 (sparc32_register_type): Use sparc32_pseudo_register_type.
11510 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11511 pseudo register numbers.
11512 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11513 (SPARC64_CP0_REGISTERS): New macro.
11514 (sparc64_pseudo_register_name): New function.
11515 (sparc64_register_name): Use sparc64_pseudo_register_name.
11516 (sparc64_pseudo_register_type): New function.
11517 (sparc64_register_type): Use sparc64_pseudo_register_type.
11518 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11519 pseudo register numbers.
11520 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11521 sparc64_store_arguments): Handle pseudo register numbers.
11522
6f8976bf
YQ
115232017-01-13 Yao Qi <yao.qi@linaro.org>
11524
11525 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11526 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11527 output.
11528 (getpkt_or_notif_sane_1): Likewise.
11529
e4241ace
YQ
115302017-01-13 Yao Qi <yao.qi@linaro.org>
11531
11532 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11533 of CC. Pass "-x c++-header" instead of "-x c".
11534
3015c064
SM
115352017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11536
11537 * remote.c (remote_can_async_p): Update comment.
11538
fde1b17d
SM
115392017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11540
11541 * linux-nat.c (linux_nat_can_async_p): Update comment.
11542
ca1ca08b
SM
115432017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11544
11545 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11546
4ad2da73
SM
115472017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11548
11549 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11550
c8b23b3f
TT
115512017-01-10 Tom Tromey <tom@tromey.com>
11552
11553 * python/py-type.c (typy_legacy_template_argument): Update.
11554 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11555 ~demangle_parse_info): Declare new members.
11556 (cp_demangled_name_to_comp): Return unique_ptr.
11557 (cp_demangled_name_parse_free)
11558 (make_cleanup_cp_demangled_name_parse_free)
11559 (cp_new_demangle_parse_info): Remove.
11560 * cp-support.c (do_demangled_name_parse_free_cleanup)
11561 (make_cleanup_cp_demangled_name_parse_free): Remove.
11562 (inspect_type, cp_canonicalize_string_full)
11563 (cp_canonicalize_string): Update.
11564 (mangled_name_to_comp): Change return type.
11565 (cp_class_name_from_physname, method_name_from_physname)
11566 (cp_func_name, cp_remove_params): Update.
11567 * cp-name-parser.y (demangle_parse_info): New constructor, from
11568 cp_new_demangle_parse_info.
11569 (~demangle_parse_info): New destructor, from
11570 cp_demangled_name_parse_free.
11571 (cp_merge_demangle_parse_infos): Update.
11572 (cp_demangled_name_to_comp): Change return type.
11573
1ac32117
TT
115742017-01-10 Tom Tromey <tom@tromey.com>
11575
11576 * top.c (prevent_dont_repeat): Change return type.
11577 * python/python.c (execute_gdb_command): Use std::string.
11578 Update.
11579 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11580 * command.h (prevent_dont_repeat): Change return type.
11581 * breakpoint.c (bpstat_do_actions_1): Update.
11582
0cf08227
TT
115832017-01-10 Tom Tromey <tom@tromey.com>
11584
11585 * value.h (scoped_value_mark::~scoped_value_mark): Call
11586 free_to_mark.
11587 (scoped_value_mark::free_to_mark): New method.
11588 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11589 scoped_value_mark.
11590
eb115069
TT
115912017-01-10 Tom Tromey <tom@tromey.com>
11592
11593 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11594 (valpy_reference_value, valpy_const_value, valpy_get_address)
11595 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11596 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11597 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11598 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11599 scoped_value_mark.
11600 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11601 * value.h (scoped_value_mark): New class.
11602
906768f9
TT
116032017-01-10 Tom Tromey <tom@tromey.com>
11604
11605 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11606 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11607 * psymtab.c (discard_psymtabs_upto): Remove.
11608 (make_cleanup_discard_psymtabs): Remove.
11609 (struct psymtab_state): Remove.
11610
bef155c3
TT
116112017-01-10 Tom Tromey <tom@tromey.com>
11612
11613 * record-full.c (record_full_save_cleanups): Remove.
11614 (record_full_save): Use gdb::unlinker.
11615 * gcore.c (do_bfd_delete_cleanup): Remove.
11616 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11617 cleanups.
11618 * dwarf2read.c (unlink_if_set): Remove.
11619 (write_psymtabs_to_index): Use gdb::unlinker.
11620 * common/gdb_unlinker.h: New file.
11621
192b62ce
TT
116222017-01-10 Tom Tromey <tom@tromey.com>
11623
11624 * windows-tdep.c (windows_xfer_shared_library): Update.
11625 * windows-nat.c (windows_make_so): Update.
11626 * utils.h (make_cleanup_bfd_unref): Remove.
11627 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11628 * symfile.h (symfile_bfd_open)
11629 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11630 * symfile.c (read_symbols, symbol_file_add)
11631 (separate_debug_file_exists): Update.
11632 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11633 (generic_load, reread_symbols): Update.
11634 * symfile-mem.c (symbol_file_add_from_memory): Update.
11635 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11636 (spu_symbol_file_add_from_memory): Update.
11637 * solist.h (struct target_so_ops) <bfd_open>: Return
11638 gdb_bfd_ref_ptr.
11639 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11640 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11641 gdb_bfd_ref_ptr.
11642 (solib_map_sections, reload_shared_libraries_1): Update.
11643 * solib-svr4.c (enable_break): Update.
11644 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11645 * solib-frv.c (enable_break2): Update.
11646 * solib-dsbt.c (enable_break): Update.
11647 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11648 gdb_bfd_ref_ptr.
11649 (darwin_solib_get_all_image_info_addr_at_init): Update.
11650 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11651 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11652 * record-full.c (record_full_save): Update.
11653 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11654 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11655 * minidebug.c (find_separate_debug_file_in_section): Return
11656 gdb_bfd_ref_ptr.
11657 * machoread.c (macho_add_oso_symfile): Change abfd to
11658 gdb_bfd_ref_ptr.
11659 (macho_symfile_read_all_oso): Update.
11660 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11661 (macho_symfile_read): Update.
11662 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11663 (jit_bfd_try_read_symtab): Update.
11664 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11665 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11666 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11667 gdb_bfd_ref_ptr.
11668 (gdb_bfd_ref_policy): New struct.
11669 (gdb_bfd_ref_ptr): New typedef.
11670 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11671 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11672 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11673 gdb_bfd_ref_ptr.
11674 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11675 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11676 (gcore_command): Update.
11677 * exec.c (exec_file_attach): Update.
11678 * elfread.c (elf_symfile_read): Update.
11679 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11680 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11681 (open_and_init_dwo_file): Update.
11682 (open_dwp_file): Return gdb_bfd_ref_ptr.
11683 (open_and_init_dwp_file): Update.
11684 * corelow.c (core_open): Update.
11685 * compile/compile-object-load.c (compile_object_load): Update.
11686 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11687 * coffread.c (coff_symfile_read): Update.
11688 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11689 gdb_bfd_ref_ptr. Rename.
11690 (dump_bfd_file, restore_command): Update.
11691 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11692 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11693 (find_separate_debug_file_by_buildid): Update.
11694
50315b21
TT
116952017-01-10 Tom Tromey <tom@tromey.com>
11696
11697 * common/gdb_ref_ptr.h: New file.
11698 * python/py-ref.h (struct gdbpy_ref_policy): New.
11699 (gdbpy_ref): Now a typedef.
11700
fc4007c9
TT
117012017-01-10 Tom Tromey <tom@tromey.com>
11702
11703 * utils.h (make_cleanup_htab_delete): Don't declare.
11704 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11705 Remove.
11706 * linespec.c (decode_compound_collector): Add constructor,
11707 destructor.
11708 (lookup_prefix_sym): Remove cleanup.
11709 (symtab_collector): Add constructor, destructor.
11710 (collect_symtabs_from_filename): Remove cleanup.
11711 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11712 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11713 Use htab_up.
11714 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11715 * dwarf2read.c (dw2_expand_symtabs_matching)
11716 (dw2_map_symbol_filenames, dwarf_decode_macros)
11717 (write_psymtabs_to_index): Use htab_up.
11718 * dwarf2loc.c (func_verify_no_selftailcall)
11719 (call_site_find_chain_1, func_verify_no_selftailcall)
11720 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11721 std::vector, gdb::unique_xmalloc_ptr.
11722 (call_sitep): Remove typedef.
11723 (dwarf2_locexpr_baton_eval): Remove unused variable.
11724
8dbcee67
TT
117252017-01-10 Tom Tromey <tom@tromey.com>
11726
11727 * python/python-internal.h (make_cleanup_py_decref)
11728 (make_cleanup_py_xdecref): Don't declare.
11729 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11730 (py_xdecref, make_cleanup_py_xdecref): Remove.
11731
13df46cc
TT
117322017-01-10 Tom Tromey <tom@tromey.com>
11733
11734 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11735 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11736
06fc9bf7
TT
117372017-01-10 Tom Tromey <tom@tromey.com>
11738
11739 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11740
830a4934
TT
117412017-01-10 Tom Tromey <tom@tromey.com>
11742
11743 * python/py-utils.c (unicode_to_encoded_string)
11744 (python_string_to_target_string)
11745 (python_string_to_target_python_string)
11746 (python_string_to_host_string, gdbpy_obj_to_string)
11747 (get_addr_from_python): Use gdbpy_ref.
11748
4586d543
TT
117492017-01-10 Tom Tromey <tom@tromey.com>
11750
11751 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11752 gdbpy_ref.
11753
59876f8f
TT
117542017-01-10 Tom Tromey <tom@tromey.com>
11755
11756 * python/python.c (eval_python_command, gdbpy_decode_line)
11757 (gdbpy_run_events, gdbpy_start_type_printers)
11758 (gdbpy_apply_type_printers): Use gdbpy_ref.
11759
97d83487
TT
117602017-01-10 Tom Tromey <tom@tromey.com>
11761
11762 * python/py-param.c (get_doc_string, compute_enum_values): Use
11763 gdbpy_ref.
11764
9205649a
TT
117652017-01-10 Tom Tromey <tom@tromey.com>
11766
11767 * python/py-inferior.c (find_thread_object, build_inferior_list):
11768 Use gdbpy_ref.
11769
74c49d45
TT
117702017-01-10 Tom Tromey <tom@tromey.com>
11771
11772 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11773
16361ffb
TT
117742017-01-10 Tom Tromey <tom@tromey.com>
11775
11776 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11777 gdbpy_ref.
11778
905f2cca
TT
117792017-01-10 Tom Tromey <tom@tromey.com>
11780
11781 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11782 extra incref.
11783 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11784 Use gdbpy_ref.
11785
64081434
TT
117862017-01-10 Tom Tromey <tom@tromey.com>
11787
11788 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11789 gdbpy_ref.
11790
59e9e831
TT
117912017-01-10 Tom Tromey <tom@tromey.com>
11792
11793 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11794 decref results of PyArg_ParseTupleAndKeywords.
11795
9de10f6d
TT
117962017-01-10 Tom Tromey <tom@tromey.com>
11797
11798 * python/python.c (python_run_simple_file): Use
11799 unique_xmalloc_ptr, gdbpy_ref.
11800
2bd5759d
TT
118012017-01-10 Tom Tromey <tom@tromey.com>
11802
11803 * python/py-prettyprint.c (print_stack_unless_memory_error)
11804 (print_string_repr, print_children): Use gdbpy_ref.
11805 (dummy_python_frame): New class.
11806 (dummy_python_frame::dummy_python_frame): Rename from
11807 push_dummy_python_frame.
11808 (py_restore_tstate): Remove.
11809
3b4e0e01
TT
118102017-01-10 Tom Tromey <tom@tromey.com>
11811
11812 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11813
17a22718
TT
118142017-01-10 Tom Tromey <tom@tromey.com>
11815
11816 * python/python.c (ensure_python_env, restore_python_env):
11817 Remove.
11818 * python/python-internal.h (ensure_python_env): Don't declare.
11819 * varobj.h (varobj_ensure_python_env): Don't declare.
11820 * varobj.c (varobj_ensure_python_env): Remove.
11821
68cdc557
TT
118222017-01-10 Tom Tromey <tom@tromey.com>
11823
11824 * varobj.c (varobj_value_get_print_value): Use
11825 gdbpy_enter_varobj.
11826
1eba6383
TT
118272017-01-10 Tom Tromey <tom@tromey.com>
11828
11829 * python/py-prettyprint.c (print_string_repr, print_children):
11830 Update.
11831 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11832 of "encoding".
11833 * varobj.c (varobj_value_get_print_value): Update.
11834 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11835
bde7b3e3
TT
118362017-01-10 Tom Tromey <tom@tromey.com>
11837
11838 * varobj.c (varobj_get_display_hint)
11839 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11840 (varobj_set_visualizer, free_variable): Use
11841 gdbpy_enter_varobj.
11842
a7785f8c
TT
118432017-01-10 Tom Tromey <tom@tromey.com>
11844
11845 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11846 (do_finish_initialization): New function. Use gdbpy_ref.
11847 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11848 do_finish_initialization.
11849
2865bfce
TT
118502017-01-10 Tom Tromey <tom@tromey.com>
11851
11852 * python/py-param.c (get_set_value, get_show_value): Use
11853 gdbpy_enter, gdbpy_ref.
11854
0e9dcc75
TT
118552017-01-10 Tom Tromey <tom@tromey.com>
11856
11857 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11858
12a5cedd
TT
118592017-01-10 Tom Tromey <tom@tromey.com>
11860
11861 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11862
788f2586
TT
118632017-01-10 Tom Tromey <tom@tromey.com>
11864
11865 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11866 Use gdbpy_enter_varobj.
11867
6cd67bea
TT
118682017-01-10 Tom Tromey <tom@tromey.com>
11869
11870 * varobj.c (gdbpy_enter_varobj): New constructor.
11871 * python/python-internal.h (gdbpy_enter_varobj): New class.
11872 * python/py-varobj.c (py_varobj_get_iterator): Use
11873 gdbpy_enter_varobj.
11874
14b122bf
TT
118752017-01-10 Tom Tromey <tom@tromey.com>
11876
11877 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11878 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11879 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11880 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11881 unique_xmalloc_ptr.
11882 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11883
bf1ca3b9
TT
118842017-01-10 Tom Tromey <tom@tromey.com>
11885
11886 * python/py-xmethods.c (invoke_match_method): Use
11887 gdbpy_ref.
11888
572a5524
TT
118892017-01-10 Tom Tromey <tom@tromey.com>
11890
11891 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11892 gdbpy_enter, gdbpy_ref.
11893
396a78b6
TT
118942017-01-10 Tom Tromey <tom@tromey.com>
11895
11896 * python/python.c (python_interactive_command): Use gdbpy_enter.
11897
a88b13c7
TT
118982017-01-10 Tom Tromey <tom@tromey.com>
11899
11900 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11901 gdbpy_ref.
11902
e9f0c363
TT
119032017-01-10 Tom Tromey <tom@tromey.com>
11904
11905 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11906 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11907
6349f452
TT
119082017-01-10 Tom Tromey <tom@tromey.com>
11909
11910 * utils.h (htab_deleter): New struct.
11911 (htab_up): New typedef.
11912 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11913 gdbpy_enter, gdbpy_ref, htab_up.
11914
c0171de6
TT
119152017-01-10 Tom Tromey <tom@tromey.com>
11916
11917 * python/py-unwind.c (pending_frame_invalidate): Remove.
11918 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11919
f18e226f
TT
119202017-01-10 Tom Tromey <tom@tromey.com>
11921
11922 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11923 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11924
c57af3f1
TT
119252017-01-10 Tom Tromey <tom@tromey.com>
11926
11927 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11928
60e600ec
TT
119292017-01-10 Tom Tromey <tom@tromey.com>
11930
11931 * python/python.c (gdbpy_eval_from_control_command)
11932 (gdbpy_source_script, gdbpy_run_events)
11933 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11934 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11935 gdbpy_enter.
11936
bf7da5b0
TT
119372017-01-10 Tom Tromey <tom@tromey.com>
11938
11939 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11940
2d38bced
TT
119412017-01-10 Tom Tromey <tom@tromey.com>
11942
11943 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11944
07bc7329
TT
119452017-01-10 Tom Tromey <tom@tromey.com>
11946
11947 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11948 (python_on_inferior_call_pre, python_on_inferior_call_post)
11949 (python_on_memory_change, python_on_register_change)
11950 (python_inferior_exit, python_new_objfile, add_thread_object)
11951 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11952
6e7c365e
TT
119532017-01-10 Tom Tromey <tom@tromey.com>
11954
11955 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11956 (bpfinishpy_handle_exit): Use gdbpy_enter.
11957
6ba0cd40
TT
119582017-01-10 Tom Tromey <tom@tromey.com>
11959
11960 * python/py-cmd.c (cmdpy_destroyer)
11961 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11962 gdbpy_enter.
11963
de2dc875
TT
119642017-01-10 Tom Tromey <tom@tromey.com>
11965
11966 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11967 gdbpy_enter.
11968 (gdbpy_breakpoint_has_cond): Likewise.
11969
4ecee2c4
TT
119702017-01-10 Tom Tromey <tom@tromey.com>
11971
11972 * python/python.c (gdbpy_enter): New constructor.
11973 (~gdbpy_enter): New destructor.
11974 (restore_python_env, ensure_python_env): Rewrite.
11975 * python/python-internal.h (gdbpy_enter): New class.
11976
37fce74f
TT
119772017-01-10 Tom Tromey <tom@tromey.com>
11978
11979 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11980
53a0cca3
TT
119812017-01-10 Tom Tromey <tom@tromey.com>
11982
11983 * python/py-value.c (value_has_field, get_field_flag)
11984 (get_field_type, valpy_getitem, convert_value_from_python): Use
11985 gdbpy_ref.
11986
ff3724f5
TT
119872017-01-10 Tom Tromey <tom@tromey.com>
11988
11989 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11990 gdbpy_ref.
11991
0700aea5
TT
119922017-01-10 Tom Tromey <tom@tromey.com>
11993
11994 * python/py-prettyprint.c (search_pp_list)
11995 (find_pretty_printer_from_objfiles)
11996 (find_pretty_printer_from_progspace)
11997 (find_pretty_printer_from_gdb, find_pretty_printer)
11998 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11999 gdbpy_ref.
12000
1bb44c9f
TT
120012017-01-10 Tom Tromey <tom@tromey.com>
12002
12003 * python/py-param.c (call_doc_function): Use gdbpy_ref.
12004
87ce03fd
TT
120052017-01-10 Tom Tromey <tom@tromey.com>
12006
12007 * python/py-linetable.c (build_line_table_tuple_from_pcs)
12008 (ltpy_get_all_source_lines): Use gdbpy_ref.
12009
ee0a3fb8
TT
120102017-01-10 Tom Tromey <tom@tromey.com>
12011
12012 * python/py-framefilter.c (extract_sym, extract_value)
12013 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
12014 gdbpy_ref.
12015
bf2a52fa
TT
120162017-01-10 Tom Tromey <tom@tromey.com>
12017
12018 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
12019
f59fe7f8
TT
120202017-01-10 Tom Tromey <tom@tromey.com>
12021
12022 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
12023
80bd970a
TT
120242017-01-10 Tom Tromey <tom@tromey.com>
12025
12026 * python/py-function.c (convert_values_to_python, fnpy_init): Use
12027 gdbpy_ref.
12028
d1b3de2e
TT
120292017-01-10 Tom Tromey <tom@tromey.com>
12030
12031 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
12032
3bb43384
TT
120332017-01-10 Tom Tromey <tom@tromey.com>
12034
12035 * python/py-type.c (convert_field, make_fielditem, typy_fields)
12036 (typy_range): Use gdbpy_ref.
12037
abf5651e
TT
120382017-01-10 Tom Tromey <tom@tromey.com>
12039
12040 * python/py-threadevent.c (create_thread_event_object): Use
12041 gdbpy_ref.
12042 * python/py-stopevent.c (create_stop_event_object): Simplify.
12043 (emit_stop_event): Use gdbpy_ref.
12044 * python/py-signalevent.c (create_signal_event_object): Use
12045 gdbpy_ref.
12046 * python/py-newobjfileevent.c (create_new_objfile_event_object)
12047 (emit_new_objfile_event, create_clear_objfiles_event_object)
12048 (emit_clear_objfiles_event): Use gdbpy_ref.
12049 * python/py-infevents.c (create_inferior_call_event_object)
12050 (create_register_changed_event_object)
12051 (create_memory_changed_event_object, emit_inferior_call_event)
12052 (emit_memory_changed_event, emit_register_changed_event): Use
12053 gdbpy_ref.
12054 * python/py-exitedevent.c (create_exited_event_object)
12055 (emit_exited_event): Use gdbpy_ref.
12056 * python/py-event.h (evpy_emit_event): Remove
12057 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
12058 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
12059 * python/py-continueevent.c (emit_continue_event): Use
12060 gdbpy_ref.
12061 * python/py-breakpoint.c (gdbpy_breakpoint_created)
12062 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
12063 gdbpy_ref.
12064 * python/py-bpevent.c (create_breakpoint_event_object): Use
12065 gdbpy_ref.
12066
a68ff33e
TT
120672017-01-10 Tom Tromey <tom@tromey.com>
12068
12069 * python/py-ref.h: New file.
12070
7becfd03
SM
120712017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12072
12073 * cli-out.c (cli_ui_out::do_redirect): Change return type to
12074 void.
12075 * cli-out.h (cli_ui_out::do_redirect): Likewise.
12076 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
12077 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
12078 * ui-out.c (ui_out::redirect): Likewise.
12079 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
12080 * cli/cli-logging.c (set_logging_redirect): Update call site of
12081 ui_out::redirect.
12082 (handle_redirections): Likewise.
12083 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
12084 * top.c (execute_command_to_string): Likewise.
12085 * utils.c (do_ui_out_redirect_pop): Likewise.
12086
df294654
SM
120872017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12088
12089 * stack.c (_initialize_stack): Update "frame" command help message.
12090
f5e6296e
IB
120912017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
12092
12093 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
12094
0e2d6fa6
YQ
120952017-01-06 Yao Qi <yao.qi@linaro.org>
12096
12097 * x86-linux-nat.h: Include gdb_proc_service.h.
12098
44d6d3f9
YQ
120992017-01-06 Yao Qi <yao.qi@linaro.org>
12100
12101 * ser-base.h: Include serial.h.
12102
656731fe
YQ
121032017-01-06 Yao Qi <yao.qi@linaro.org>
12104
12105 * ppc-linux-tdep.h: Include ppc-tdep.h.
12106
1ca8f924
YQ
121072017-01-06 Yao Qi <yao.qi@linaro.org>
12108
12109 * nat/amd64-linux-siginfo.h: Include signal.h.
12110
bc3008c4
YQ
121112017-01-06 Yao Qi <yao.qi@linaro.org>
12112
12113 * nat/aarch64-linux-hw-point.h: Include break-common.h.
12114
66c80d03
YQ
121152017-01-06 Yao Qi <yao.qi@linaro.org>
12116
12117 * mi/mi-parse.h: Include mi-cmds.h.
12118
051d2dda
YQ
121192017-01-06 Yao Qi <yao.qi@linaro.org>
12120
12121 * inf-loop.c: Don't include "target.h".
12122 * inf-loop.h: Include it here.
12123
8018d34f
YQ
121242017-01-06 Yao Qi <yao.qi@linaro.org>
12125
12126 * dfp.h: Include "dboulest.h" and "expression.h".
12127
c0b8369c
YQ
121282017-01-06 Yao Qi <yao.qi@linaro.org>
12129
12130 * ax-gdb.h: Include "ax.h".
12131
ad5cba2a
YQ
121322017-01-06 Yao Qi <yao.qi@linaro.org>
12133
12134 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
12135 with nat/gdb_ptrace.h.
12136
1c33cd7f
YQ
121372017-01-05 Yao Qi <yao.qi@linaro.org>
12138
12139 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
12140 new line.
12141 (mips64_fbsd_sigframe_init): Likewise.
12142
c988ac1d
JB
121432017-01-04 John Baldwin <jhb@FreeBSD.org>
12144
12145 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
12146 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
12147
b268007c
JB
121482017-01-04 John Baldwin <jhb@FreeBSD.org>
12149
12150 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
12151 * NEWS: Mention new FreeBSD/mips native configuration.
12152 * config/mips/fbsd.mh: New file.
12153 * configure.host: Add mips*-*-freebsd*.
12154 * mips-fbsd-nat.c: New file.
12155
387360da
JB
121562017-01-04 John Baldwin <jhb@FreeBSD.org>
12157
12158 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
12159 (ALLDEPFILES): Add mips-fbsd-tdep.c.
12160 * NEWS: Mention new FreeBSD/mips target.
12161 * configure.tgt: Add mips*-*-freebsd*.
12162 * mips-fbsd-tdep.c: New file.
12163 * mips-fbsd-tdep.h: New file.
12164
2aaaf250
YQ
121652017-01-04 Yao Qi <yao.qi@linaro.org>
12166
12167 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
12168 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
12169
61baf725
JB
121702017-01-01 Joel Brobecker <brobecker@adacore.com>
12171
6dbb839a 12172 Update copyright year range in all GDB files.
61baf725 12173
c113e7ff 121742017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 12175
c113e7ff 12176 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 12177
c113e7ff 12178For older changes see ChangeLog-2016.
c906108c
SS
12179\f
12180Local Variables:
12181mode: change-log
12182left-margin: 8
12183fill-column: 74
12184version-control: never
57da7796 12185coding: utf-8
c906108c 12186End: